Skip to content

jixoai/skill-creator

Repository files navigation

Skill Creator

A powerful composite tool for creating and managing Claude Code skills. It serves as both:

  1. CLI Tool - A TypeScript/Node.js command-line interface for skill management
  2. Claude Code Subagent - An intelligent agent that automates skill creation workflow

Features

Core Capabilities

  • 🚀 Automated Skill Creation: Generate skills with proper folder naming (package@version format)
  • 📚 Context7 Integration: Download and slice documentation from Context7 with automatic project ID detection
  • 🔍 Intelligent Search: ChromaDB-powered semantic search with automatic indexing
  • 💾 Dynamic Content Management: Add custom knowledge with deduplication

CLI & Subagent

  • 🛠️ Modern TypeScript: Full type safety with ESM modules
  • 🎯 Interactive CLI: Professional command-line interface with inquirer prompts
  • 🤖 Subagent Mode: Intelligent agent that handles the entire skill creation workflow
  • 📦 Flexible Storage: Store skills in project (.claude/skills/) or user directory (~/.claude/skills)

Installation

Install skill-creator

npm install -g skill-creator

Verify Installation

After installation, you can verify that the MCP servers are working:

# Check if Context7 MCP is accessible
skill-creator --help

# The help should show all commands if MCP servers are properly configured

Prerequisites

Before installing skill-creator, make sure you have the required MCP (Model Context Protocol) servers installed for full functionality:

Context7 MCP - For downloading and managing documentation
# Install from npm
npm install -g @upstash/context7-mcp

# Or follow installation guide: https://github.com/upstash/context7?tab=readme-ov-file
Chrome DevTools MCP - For browser automation and web scraping
# Install from npm
npm install -g @chromedevtools/chrome-devtools-mcp

# Or follow installation guide: https://github.com/ChromeDevTools/chrome-devtools-mcp?tab=readme-ov-file
MCP Server Configuration

After installing the MCP servers, you need to configure them in your Claude Code settings. Add the following to your Claude Code configuration:

{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_CONTEXT7_API_KEY"]
    },
    "chrome-devtools": {
      "command": "npx",
      "args": ["-y", "chrome-devtools-mcp@latest"]
    }
  }
}

Note: The MCP servers are required for full functionality. Without them, some features like Context7 documentation downloading and web-based research may not work properly.

Quick Start

1. Install as CLI Tool

npm install -g skill-creator

2. Setup for Claude Code

# Interactive installation - installs skill-creator to Claude Code
skill-creator init

3. Choose Your Usage Mode

CLI Mode - Full Control

Use commands directly for complete control over the skill creation process.

Subagent Mode - Effortless

Simply describe what you want, and let the subagent handle everything automatically.

User: Use skill-creator subagent to help me create a vitest skill

User: Tell me about vitest testing patterns

The skill-creator subagent will handle the entire workflow automatically.

4. Create a Skill by cli

# Search for packages
skill-creator search "react query"

# Get package information (Options)
skill-creator get-info @tanstack/react-query

# Create skill with custom package name (recommended)
skill-creator create-cc-skill --scope user --name "@tanstack/react-query" --description "React Query for data fetching" @tanstack/react-query@5

# Create skill with interactive prompts
skill-creator create-cc-skill --interactive --description "React Query for data fetching" @tanstack/react-query@5

# Download documentation (automatically builds search index)
skill-creator download-context7 --package @tanstack/react-query /tanstack/react-query

# Search your skill knowledge base
skill-creator search-skill --package @tanstack/react-query "useQuery hook"

Commands

Installation & Setup

Command Description
init Install skill-creator as Claude Code subagent (interactive)
init-cc Install skill-creator as subagent in user directory

Skill Creation (CLI Mode)

Command Description
search <keywords> Search npm packages
get-info <package> Get detailed package information
create-cc-skill <name> Create a new skill directory

Content Management

Command Description
download-context7 <project_id> Download and slice Context7 documentation
search-skill <query> Search in skill knowledge base
add-skill Add custom knowledge to skill

Tip: When using the skill-creator as a subagent, you don't need to remember these commands. Just tell Claude what you want to create, and the subagent will handle the entire workflow automatically.

Options

  • --scope <user|current>: Storage location for skills (required)
  • --name <name>: Package name for the skill (recommended)
  • --pwd <path>: Working directory for skill operations
  • --package <name>: Use package name to find skill directory
  • --description <description>: Custom description for the skill
  • --force: Force overwrite existing files
  • --skip-chroma-indexing: Skip automatic ChromaDB index building
  • --interactive: Enable interactive prompts

Workflow

Complete Skill Creation Workflow

  1. Search Package: Find the right package for your skill

    skill-creator search "state management"
  2. Get Package Info: Retrieve detailed information

    skill-creator get-info zustand
  3. Create Skill: Set up skill directory (requires --scope, recommended to use --name)

    # With custom package name (recommended)
    skill-creator create-cc-skill --scope current --name zustand --description "Zustand state management"
    
    # With interactive prompts
    skill-creator create-cc-skill --scope current --interactive zustand
  4. Download Documentation: Get Context7 docs with automatic indexing

    skill-creator download-context7 --package zustand /zustand
  5. Add Custom Knowledge: Enhance with your own content

    skill-creator add-skill --package zustand --title "Best Practices" --content "Your custom notes"
  6. Search Knowledge Base: Query your skill

    skill-creator search-skill --package zustand "typescript patterns"

Directory Structure

.claude/skills/
└── package@version/
    ├── assets/
    │   └── references/
    │       ├── context7/     # Auto-sliced Context7 docs
    │       └── user/         # Custom knowledge files
    ├── config.json          # Skill configuration
    └── SKILL.md             # Skill documentation

Development

Prerequisites

Make sure you have the MCP servers installed and configured before development:

# Verify MCP servers are available
npm list -g @upstash/context7-mcp @chromedevtools/chrome-devtools-mcp

Development Setup

# Install dependencies
npm install

# Development mode with watch
npm run dev

# Build TypeScript
npm run build

# Run tests
npm test

# Run tests with coverage
npm run test:coverage

# Lint code
npm run lint

# Type check
npm run type-check

Testing MCP Integration

To test MCP server integration during development:

# Test Context7 integration
skill-creator get-info @upstash/context7

# Test Chrome DevTools integration
skill-creator download-context7 --help

Configuration

Skills are configured via config.json in the skill directory:

{
  "context7LibraryId": "/org/project",
  "searchEngine": {
    "type": "chroma",
    "chromaPath": "./chroma"
  }
}

Architecture

  • TypeScript + ESM: Modern JavaScript with full type safety
  • ChromaDB Integration: Vector search for intelligent document retrieval
  • Context7 API: Automated documentation downloading and slicing
  • CLI-first Design: Professional command-line interface
  • Modular Architecture: Clean separation of concerns

License

MIT


For detailed subagent usage, see templates/skill-creator.md

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •