A comprehensive Claude Code skill for managing Hexo static blog sites.
This skill enables Claude to help you with all aspects of Hexo blog development, including:
- 🚀 Initializing new Hexo sites
- 📝 Creating posts, pages, and drafts
- 🎨 Creating custom layouts and scaffolds
- 📤 Publishing and deploying content
- ⚙️ Configuration and troubleshooting
-
Copy the skill to your project:
mkdir -p .claude/skills cp -r path/to/hexo-skill/.claude/skills/hexo .claude/skills/
-
The skill will be available when you open the project in Claude Code
-
Copy the skill to your global Claude skills directory:
mkdir -p ~/.claude/skills cp -r path/to/hexo-skill/.claude/skills/hexo ~/.claude/skills/
-
The skill will be available in all your Claude Code sessions
# Clone to your project
cd your-hexo-project
git clone https://github.com/yourusername/hexo-skill .claudeThe skill is automatically invoked when you mention Hexo-related tasks:
Initialize a new Hexo site:
Create a new Hexo blog called "my-awesome-blog"
Create a blog post:
Create a new Hexo post titled "Getting Started with Hexo"
Create a custom layout:
Create a custom Hexo scaffold for photo gallery posts
Generate and deploy:
Generate and deploy my Hexo site
Troubleshooting:
My Hexo site isn't updating after I made changes
- Site Initialization - Set up new Hexo projects with proper structure
- Content Creation - Generate posts, pages, and drafts with proper front-matter
- Custom Layouts - Create and use custom scaffolds for different content types
- Publishing - Manage drafts and publish content
- Generation - Build static site files
- Development Server - Run local preview server
- Deployment - Deploy to various hosting platforms
The skill includes comprehensive reference documentation:
- Commands Reference - Detailed guide to all Hexo CLI commands
- Front-Matter Guide - Complete documentation of front-matter fields
- GitHub Pages Deployment Guide - Step-by-step instructions for deploying to GitHub Pages
- GitHub Actions setup (recommended)
- hexo-deployer-git configuration
- Authentication methods (SSH, personal access tokens)
- Custom domain setup
- Troubleshooting deployment issues
- Custom Scaffold Examples - Ready-to-use templates for various content types:
- Photo galleries
- Project showcases
- Tutorials
- Video posts
- Link posts
- Book reviews
- Recipes
Claude will:
- ✅ Check prerequisites before operations
- ✅ Suggest best practices
- ✅ Help troubleshoot common issues
- ✅ Provide configuration recommendations
- ✅ Guide you through workflows
- ✅ Explain command options and flags
To use this skill effectively, ensure you have:
- Node.js 20.19.0 or later
- Git
- hexo-cli installed globally (
npm install -g hexo-cli)
.claude/skills/hexo/
├── SKILL.md # Main skill definition
├── examples/
│ └── custom-scaffold.md # Custom scaffold examples
└── references/
├── commands.md # Hexo commands reference
└── front-matter.md # Front-matter guide
You: "Initialize a new Hexo blog and create my first post"
Claude: Will help you:
- Run
hexo initwith appropriate folder name - Install dependencies
- Configure
_config.yml - Create a new post
- Start the development server
You: "Create a custom layout for photo gallery posts"
Claude: Will help you:
- Create a custom scaffold in
scaffolds/photo.md - Include appropriate front-matter fields
- Show you how to use it with
hexo new photo "title" - Explain customization options
You: "My Hexo deployment is failing"
Claude: Will help you:
- Check deployment configuration in
_config.yml - Verify deployment plugin installation
- Test Git credentials and access
- Guide you through the fix
The skill respects Hexo's standard configuration in _config.yml and works with:
- All official Hexo themes
- Standard Hexo directory structure
- Custom deployment configurations
- Multiple deployment targets
You can extend the skill by:
- Adding your own scaffold examples to
examples/ - Creating project-specific reference materials
- Adding custom workflows for your team
Contributions are welcome! To contribute:
- Fork the repository
- Create a feature branch
- Add your improvements
- Submit a pull request
MIT License - feel free to use and modify for your needs.
For issues or questions:
- Check the Hexo official documentation
- Review the skill's reference materials
- Ask Claude for help with specific Hexo tasks
- Initial release
- Core Hexo operations support
- Comprehensive command reference
- Front-matter documentation
- Custom scaffold examples
- Common workflows and troubleshooting
- Built for Claude Code by Anthropic
- Hexo documentation and community
- Contributors and testers
Made with ❤️ for the Hexo and Claude Code communities