skill-factory
Generate new Claude Skills for the Dual-Domain LLM Platform using natural language. Use when the user wants to create a new skill, automate a workflow, or build team capabilities. Activates when user mentions "create a skill", "new skill", "skill for", or "automate [task]".
SKILL.md
| Name | skill-factory |
| Description | Generate new Claude Skills for the Dual-Domain LLM Platform using natural language. Use when the user wants to create a new skill, automate a workflow, or build team capabilities. Activates when user mentions "create a skill", "new skill", "skill for", or "automate [task]". |
name: skill-factory description: Generate new Claude Skills for the Dual-Domain LLM Platform using natural language. Use when the user wants to create a new skill, automate a workflow, or build team capabilities. Activates when user mentions "create a skill", "new skill", "skill for", or "automate [task]". allowed-tools: Read, Write, Edit, Grep, Glob, Bash
Skill Factory š
Meta-skill for generating domain-specific Claude Skills for your team.
This skill helps you create production-ready skills tailored to the Dual-Domain LLM Platform (AI Dev Cockpit + Enterprise).
How It Works
When you say something like:
- "Create a skill for deploying models to RunPod"
- "I need a skill to manage Supabase auth flows"
- "Build a skill that helps with theme consistency"
- "Automate cost optimization analysis"
I will:
- Analyze your codebase to understand the domain
- Generate a complete skill with YAML frontmatter and instructions
- Add supporting files (scripts, templates, references) if needed
- Test the skill description for Claude's discovery
- Document how to use it
Project Context
This factory knows about your platform:
Architecture
- Frontend: Next.js 14, TypeScript, Tailwind CSS, Framer Motion
- Services: RunPod (deployment, vLLM), HuggingFace (model discovery)
- Auth: Supabase with MFA, RBAC, organizations
- Testing: Playwright E2E, chaos engineering, performance tests
- Themes: Dual-domain (AI Dev Cockpit dark/terminal, Enterprise light/corporate)
Key Service Areas
src/services/
āāā runpod/ # 7 services (client, deployment, monitoring, rollback, cost, vllm)
āāā huggingface/ # 11 services (api, cache, circuit-breaker, webhooks, unified-llm)
āāā inference/ # Streaming and model management
āāā monitoring/ # Observability and metrics
Common Workflows
- Model deployment (HuggingFace ā RunPod ā vLLM)
- Cost estimation and optimization
- Auth operations (user, org, RBAC)
- Theme management (dual-domain consistency)
- E2E testing and validation
- Performance monitoring and chaos testing
Skill Generation Process
Step 1: Understand the Need
Ask clarifying questions:
- What workflow are you trying to automate?
- What files/services are involved?
- Who will use this skill? (you, team, specific role)
- What's the expected frequency? (daily, per-feature, rarely)
Step 2: Analyze the Codebase
Search for relevant files:
# Find services
find src/services -name "*keyword*"
# Search for patterns
grep -r "specific function" src/
# Check existing components
ls src/components/[area]/
Step 3: Generate the Skill
Create SKILL.md with:
---
name: descriptive-skill-name
description: Clear description of what it does AND when to use it. Include trigger keywords.
allowed-tools: Read, Write, Edit, Bash, Grep, Glob
---
# Skill Name
Brief overview of what this skill does.
## When to Use This Skill
- Specific scenario 1
- Specific scenario 2
- Specific scenario 3
## Instructions
Step-by-step workflow:
1. **First step** - Clear action
2. **Second step** - What to check
3. **Third step** - How to proceed
## Examples
### Example 1: Common Use Case
\`\`\`bash
# Command to run
\`\`\`
Expected outcome: ...
### Example 2: Edge Case
...
## Files Involved
- `src/services/[service]/file.ts` - Purpose
- `src/components/[area]/Component.tsx` - Purpose
## Best Practices
- Do this
- Don't do that
- Watch out for...
## Troubleshooting
**Issue**: Common problem
**Solution**: How to fix it
Step 4: Add Supporting Files (if needed)
Reference docs (REFERENCE.md):
- Detailed API documentation
- Complex workflows
- Advanced configurations
Scripts (scripts/helper.sh):
- Automation utilities
- Validation scripts
- Quick commands
Templates (templates/template.ts):
- Code templates
- Configuration files
- Boilerplate
Examples (examples/example.md):
- Real-world usage
- Complete workflows
- Before/after comparisons
Step 5: Test Discovery
Ensure the description triggers correctly:
- Include action verbs: "deploy", "manage", "analyze", "create"
- Add domain terms: "RunPod", "vLLM", "Supabase", "Qwen"
- Specify when to use: "Use when...", "Activates when..."
- List trigger phrases: "model deployment", "cost optimization"
Step 6: Document Usage
Add to team CLAUDE.md:
## Available Skills
### skill-name
**Purpose**: Brief description
**When to use**: Trigger conditions
**Example**: "Deploy Qwen model to RunPod"
Skill Templates
See templates/ for common patterns:
service-skill.md- Wrapping a service layerworkflow-skill.md- Multi-step process automationanalysis-skill.md- Code analysis and reportingtesting-skill.md- Test generation and validation
Examples
See examples/ for complete skills:
runpod-deployment-example.md- Full deployment skilltheme-management-example.md- Theme consistency skillcost-analysis-example.md- Cost optimization skill
Skill Naming Conventions
ā Good names:
runpod-deployment- Clear, specificsupabase-auth-ops- Domain + actioncost-optimization- Descriptive
ā Avoid:
helper- Too vagueutils- Not descriptivemisc-tools- Unfocused
Best Practices for Skills
Keep Skills Focused
One skill = one capability
- ā "Deploy models to RunPod"
- ā "Do everything with models"
Write Clear Descriptions
Include both what and when:
description: Deploy Chinese LLM models (Qwen, DeepSeek, ChatGLM) to RunPod serverless with vLLM. Use when deploying models, checking deployment status, or configuring vLLM settings.
Use Progressive Disclosure
- Core instructions in SKILL.md (< 200 lines)
- Details in REFERENCE.md
- Complex workflows in separate docs
- Claude reads additional files only when needed
Test with Real Questions
Ask questions that should trigger the skill:
- "How do I deploy a Qwen model?"
- "Check the status of my RunPod deployment"
- "Optimize vLLM configuration for DeepSeek"
Version Your Skills
Add version history in SKILL.md:
## Version History
- v1.1.0 (2025-11-06): Added support for ChatGLM-4
- v1.0.0 (2025-11-05): Initial deployment skill
Skill Discovery Tips
High-Priority Skills Needed
Based on your codebase, create skills for:
-
runpod-deployment (CRITICAL)
- 7 services, 100+ LOC
- Complex deployment workflow
- Cost optimization needed
-
supabase-auth-ops (HIGH)
- 11 auth routes
- MFA, RBAC, organizations
- Frequent user management
-
dual-domain-theme (MEDIUM)
- 2 distinct themes
- 40+ components
- Brand consistency critical
-
e2e-testing (MEDIUM)
- Playwright + chaos testing
- Performance validation
- Comprehensive test suite
-
cost-optimization (LOW)
- Analysis and reporting
- ROI calculations
- Less frequent use
Interactive Skill Creation
Quick Creation Flow
User: "Create a skill for [X]"
I will:
- Ask 2-3 clarifying questions
- Search codebase for relevant files
- Generate complete SKILL.md
- Add supporting files if needed
- Test the description
- Document in CLAUDE.md
Detailed Creation Flow
User: "Let's build a comprehensive skill for [X]"
I will:
- Deep-dive into requirements
- Analyze all related services
- Create main SKILL.md
- Add REFERENCE.md with details
- Create helper scripts
- Add templates and examples
- Write tests for the skill
- Full documentation
Maintenance
Updating Skills
When project evolves, update skills:
# Review skill effectiveness
grep -r "skill-name" .claude/skills/
# Update description for better discovery
# Add new examples
# Update file references
Deprecating Skills
If a skill is no longer needed:
- Add deprecation notice to SKILL.md
- Suggest replacement skill
- Keep for 2 weeks
- Then remove directory
Integration with Development Workflow
Morning Routine
User: "What should I work on today?"
ā Uses task management skills
ā Prioritizes based on complexity
ā Suggests relevant skills to use
Feature Development
User: "Implement authentication for org management"
ā Uses supabase-auth-ops skill
ā Reads existing auth patterns
ā Generates consistent code
ā Updates tests
Code Review
User: "Review this deployment code"
ā Uses runpod-deployment skill
ā Checks best practices
ā Validates cost optimization
ā Suggests improvements
Ready to Build?
Say something like:
- "Create a skill for deploying models"
- "I need a skill to help with auth"
- "Build me a theme management skill"
- "What skills should we create first?"
I'll guide you through the creation process! š