A powerful Claude Code skill that helps users quickly generate, configure, and manage Docsify documentation projects with built-in version management to prevent breaking changes.
This skill provides an easy way to:
- Initialize new Docsify documentation projects with theme selection
- Generate documentation from source code and Markdown files
- Manage versions with specific major versions (@4, @5) to avoid breaking changes
- Preview documentation locally with hot reload
- β One-command project initialization with interactive setup
- β Version-specific installation support (@4, @5, or exact versions)
- β Automatic documentation structure generation with theme selection
- β Documentation generation from source code
- β Local development server with hot reload
- β Breaking change prevention with version pinning
- β Helper prompts for user guidance
Ensure Node.js and docsify-cli are installed on your system:
# Install Node.js from https://nodejs.org/ (v12 or higher)
# Install docsify-cli globally
npm install -g docsify-cli@4# With stable v4 (recommended)
/docsify init --name my-docs --version @4
# Or with latest v5
/docsify init --name my-docs --version @5/docsify serveVisit http://localhost:3000 in your browser to see your documentation!
| Command | Purpose |
|---|---|
/docsify init |
Initialize a new Docsify project with default structure |
/docsify generate |
Generate documentation from source code and Markdown files |
/docsify serve |
Start local development server for preview |
For detailed command documentation, options, and examples, see .claude/skills/docsify.md
docsify-skill/
βββ README.md # This file
βββ SKILL.md # Main skill definition with command details
This skill helps you avoid breaking changes by supporting specific major versions:
- Breaking Changes: Major versions often introduce breaking changes
- Consistency: Keep your team using the same version
- Predictability: Know exactly what version is installed
- Safety: Test upgrades before applying them
# Install stable v4 (recommended for existing projects)
/docsify install-deps --version @4
# Install latest v5 (new features, possible breaking changes)
/docsify install-deps --version @5
# Initialize with specific version
/docsify init --name my-docs --version @4
# Install exact version
/docsify install-deps --version @4.13.1- SKILL.md - Complete command reference, options, and best practices
Before using this skill, ensure you have:
-
Node.js (v12 or higher)
- Download: https://nodejs.org/
- Check:
node --version
-
npm (comes with Node.js)
- Check:
npm --version
- Check:
-
docsify-cli
npm install -g docsify-cli@4 # Or @5 for latest
For detailed installation instructions, see the "Prerequisites & Installation" section in SKILL.md
# 1. Initialize project with v4
/docsify init --name my-docs --version @4
# 2. Preview locally
/docsify serve
# 3. Edit markdown files in my-docs/docs/
# 4. Commit and deploy docs folder to hosting# 1. Initialize project
/docsify init --name api-docs --version @4
# 2. Generate docs from source code
/docsify generate --source ./src --output ./api-docs/docs
# 3. Preview locally
/docsify serve
# 4. Deploy docs folder# 1. Check current version
npm list docsify-cli
# 2. Install new version globally
npm install -g docsify-cli@5
# 3. Test with serve command
/docsify serve
# 4. If successful, commit changes. If issues, rollback to @4
npm install -g docsify-cli@4- Use clear, hierarchical structure
- Keep consistent naming conventions
- Include a comprehensive README
- Organize navigation logically
- Lock major versions in package.json
- Test before upgrading major versions
- Document version usage in your project
- Communicate changes to your team
- Review breaking changes before updating
- Always test locally first
- Build and verify before deployment
- Keep version history in git
- Maintain backward compatibility during transitions
- Docsify Official Documentation: https://docsify.js.org
- Markdown Guide: https://www.markdownguide.org
- Semantic Versioning: https://semver.org/
- npm Documentation: https://docs.npmjs.com/
# Make sure docsify-cli is installed globally
npm install -g docsify-cli@4
# Verify installation
docsify --version# Check installed version
npm list -g docsify-cli
# Reinstall specific version
npm install -g docsify-cli@4# Use different port
/docsify serve --port 3001# Create stable documentation site
/docsify init --name api-docs --version @4
cd api-docs
/docsify serve
# Then edit files in the docs/ folder and reload browser# Initialize project
/docsify init --name technical-docs --version @4
# Generate docs from source code
/docsify generate --source ./my-project/src --output ./technical-docs/docs
# Preview
/docsify serve# 1. Initialize
/docsify init --name my-project-docs --version @4
# 2. Generate from source code
/docsify generate --source ./src --output ./my-project-docs/docs
# 3. Preview locally
/docsify serve
# 4. Edit markdown files in my-project-docs/docs/
# 5. Deploy my-project-docs folder to GitHub Pages, Netlify, or VercelTo extend or modify this skill:
- Edit
SKILL.mdfor command definitions - Update
README.mdfor documentation changes - Test all commands locally before committing
- Keep version management guidelines updated
This skill is provided as-is for use with Claude Code Skill. LICENSE
For issues or questions:
- Review the command documentation in
SKILL.md - Visit Docsify official docs for Docsify-specific questions
Happy documenting! π