claude-code-skill-factory
CLAUDE.md877 starsChanged 13 months agoMITView on GitHub
This file provides top-level guidance for working with this Claude Code Skills Factory repository. This repository is a Claude Code Skills factory - a collection of example skills that demonstrate how to create specialized capabilities for Claude Code. Skills are folders with instructions and resources that Claude loads when relevant to the user's task. Key Point: This is NOT a development project itself. It's a reference repository that users can customize and extend for their own projects. Focus on helping…
1 other project uses a version of this.
Adopted by
Most recently taken up by
- krzemienski/claude-code-skills-factoryword for word, first seen Dec 8, 2025
Other versions1 project uses a version of this.
Word for word · 1
- krzemienski/claude-code-skills-factory★ 0100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- claude-skills-examples/CLAUDE.mdCLAUDE.md
- documentation/CLAUDE.mdCLAUDE.md
- generated-skills/CLAUDE.mdCLAUDE.md
- .github/CLAUDE.mdCLAUDE.md
The file
We split this CLAUDE.md into the rules it gives an agent
12 rules. About 0 are common, 7 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 61
When generating skills, agents, prompts, or slash commands:
- Very specific: line 63
Check reference examples in documentation/references/
- Distinctive: line 64
Verify all required sections/fields are present
- Distinctive: line 74
Prefer editing existing skill files over creating new ones.
- Very specific: line 77
Always check for missing/invalid data before calculations.
- Distinctive: line 127
Test with relevant task
- Very specific: line 134
Test with --agents flag or automatic delegation
- Very specific: line 146
Use /build-hook slash command or run python3 hook_factory.py -i for interactive mode
- Distinctive: line 153
Test hook with relevant events
- Distinctive: line 157
Read .github/CLAUDE.md for workflow requirements
- Very specific: line 158
Create plan issue with plan label (5-10 tasks max)
- Distinctive: line 218
NO .md files in root except the ones above: - All other documentation goes in appropriate subfolders with their own CLAUDE.md files.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md - Skills Factory Orchestration
This file provides top-level guidance for working with this Claude Code Skills Factory repository.
Repository Purpose
This repository is a Claude Code Skills factory - a collection of example skills that demonstrate how to create specialized capabilities for Claude Code. Skills are folders with instructions and resources that Claude loads when relevant to the user's task.
Key Point: This is NOT a development project itself. It's a reference repository that users can customize and extend for their own projects. Focus on helping users understand, adapt, and create their own skills based on these examples.
Modular CLAUDE.md Architecture
This repository uses modular CLAUDE.md files for different contexts. Claude automatically loads the appropriate file based on your working directory.
Navigation Map
| Location | Purpose | When Claude Loads It |
| .github/CLAUDE.md | GitHub workflows, task hierarchy, automation | Working with GitHub issues, PRs, workflows |
| claude-skills-examples/CLAUDE.md | Skill architecture patterns, examples | Browsing or modifying example skills |
| generated-skills/CLAUDE.md | Production-ready skills catalog | Exploring or installing generated skills |
| documentation/CLAUDE.md | Templates and references structure | Working with templates or documentation |
How It Works: Claude loads the most relevant CLAUDE.md based on your current task context, giving you focused guidance without information overload.
Repository Structure
claude-code-skills-factory/
├── README.md # Project overview and quick start
├── CLAUDE.md # This file - orchestration layer
├── .github/
│ ├── CLAUDE.md # GitHub workflows & task hierarchy
│ └── workflows/ # Automation (smart-sync, plan-auto-close, etc.)
├── claude-skills-examples/
│ ├── CLAUDE.md # Skill patterns & architecture
│ └── *.md, *.py # Reference skill implementations
├── documentation/
│ ├── CLAUDE.md # Templates & references guide
│ ├── references/ # Official docs (Skills, Agents, Codex CLI)
│ └── templates/ # Factory templates (SKILLS, AGENTS, PROMPTS, SLASH_COMMANDS)
└── generated-skills/
├── CLAUDE.md # Production skills catalog
└── */ # Production-ready skills (AWS, Prompt Factory, etc.)Key Principles
0. Critical Validation Rule ⚠️
"Always validate your output against official native examples before declaring complete."
When generating skills, agents, prompts, or slash commands:
- Compare output against official Anthropic documentation
- Check reference examples in
documentation/references/ - Verify all required sections/fields are present
- Cross-check against similar generated examples
- Never assume completion without validation
This prevents gaps like missing project structure diagrams, setup instructions, or other native format requirements.
1. Don't Overengineer
Skills should be as simple as possible while solving the problem. Avoid unnecessary complexity.
2. Edit Existing Files
Prefer editing existing skill files over creating new ones. This maintains consistency and reduces clutter.
3. Validate Inputs
Always check for missing/invalid data before calculations. Use safe operations (e.g., safe_divide to avoid division by zero).
4. Document Assumptions
Financial models and domain-specific calculations need clear assumption documentation.
5. Industry Context
Many calculations (ratios, valuations, metrics) require industry-specific interpretation.
Quick Reference
Factory Templates
Generate new capabilities using these templates:
| Template | Purpose | Output | Location |
| Skills | Multi-file capabilities | SKILL.md + Python files | ~/.claude/skills/ |
| Agents | Single-file specialists | .md with YAML frontmatter | ~/.claude/agents/ |
| Prompts | Meta-prompt systems | Domain-specific prompt builders | Use as template |
| Slash Commands | Workflow automation | .md with YAML + bash | ~/.claude/commands/ |
| Hooks | Event-driven automation | hook.json + README.md | .claude/settings.json or ~/.claude/settings.json |
Templates Location: documentation/templates/
Installation Locations
Skills:
- Project-level:
.claude/skills/[skill-name]/ - User-level:
~/.claude/skills/[skill-name]/
Agents:
- Project-level:
.claude/agents/[agent-name].md - User-level:
~/.claude/agents/[agent-name].md
Slash Commands:
- Project-level:
generated-commands/[command-name]/ - User-level:
~/.claude/commands/[command-name]/
Common Workflows
Create a New Skill
- Review examples in
claude-skills-examples/ - Use
documentation/templates/SKILLS_FACTORY_PROMPT.md - Generate skill with SKILL.md + Python files
- Install to
.claude/skills/or~/.claude/skills/ - Test with relevant task
Create a New Agent
- Review
documentation/templates/AGENTS_FACTORY_PROMPT.md - Generate agent .md file with YAML frontmatter
- Install to
.claude/agents/or~/.claude/agents/ - Test with
--agentsflag or automatic delegation
Create a Slash Command
- Review official examples in
documentation/references/ - Use
documentation/templates/MASTER_SLASH_COMMANDS_PROMPT.md - Generate command with YAML + bash permissions
- Install to
.claude/commands/orgenerated-commands/ - Test with
/command-name [args]
Create a Hook
- Use
/build-hookslash command or runpython3 hook_factory.py -ifor interactive mode - Answer 7 questions about hook purpose and behavior (event type, language, matcher, command, timeout, install level, auto-install)
- Generated files:
generated-hooks/[hook-name]/hook.json+ README.md - Install automatically (if selected) or manually:
- Automated:
python3 installer.py install generated-hooks/[hook-name] user|project - Manual: Add hook.json config to
.claude/settings.json(project) or~/.claude/settings.json(user)
- Automated:
- Restart Claude Code to activate hook
- Test hook with relevant events
Work with GitHub Issues
- Read .github/CLAUDE.md for workflow requirements
- Create plan issue with
planlabel (5-10 tasks max) - Automation creates TASK and SUBTASK issues
- Work on tasks in priority order
- Close issues when complete (auto-syncs to project board)
Key Files to Know
Documentation
- Claude Skills Guide - Complete Anthropic documentation
- Claude Agents Guide - Complete Anthropic documentation
- Claude Hooks Guide - Complete Anthropic hooks documentation
- OpenAI Codex CLI Reference - Complete CLI documentation
Templates
- SKILLS_FACTORY_PROMPT.md - Generate multi-file skills
- AGENTS_FACTORY_PROMPT.md - Generate single-file agents
- PROMPTS_FACTORY_PROMPT.md - Generate domain prompt builders
- MASTER_SLASH_COMMANDS_PROMPT.md - Generate slash commands
Examples
- Example Skills - Financial analysis, branding, DCF models
- Generated Skills - AWS architect, Prompt factory, Content researcher, etc.
Getting Help
Context-Specific Guidance
Navigate to the relevant folder and Claude will load the appropriate CLAUDE.md:
- GitHub workflows? → Open .github/CLAUDE.md
- Skill patterns? → Open claude-skills-examples/CLAUDE.md
- Production skills? → Open generated-skills/CLAUDE.md
- Templates? → Open documentation/CLAUDE.md
External Resources
- Anthropic Skills Docs: https://docs.claude.com/en/docs/agents-and-tools/agent-skills/overview
- Skills Marketplace: https://github.com/anthropics/skills
- Claude Code Docs: https://docs.claude.com/en/docs/claude-code
- OpenAI Codex CLI: https://developers.openai.com/codex/cli
File Organization
What Goes Where
Root Directory (this level):
- README.md - Project overview
- CLAUDE.md - This orchestration file
- CHANGELOG.md - Version history
- CONTRIBUTING.md - Contribution guidelines
NO .md files in root except the ones above - All other documentation goes in appropriate subfolders with their own CLAUDE.md files.
Subfolder CLAUDE.md Files
Each major folder has its own CLAUDE.md for focused guidance:
.github/CLAUDE.md- 303 lines of GitHub-specific guidanceclaude-skills-examples/CLAUDE.md- Skill architecture and patternsgenerated-skills/CLAUDE.md- Production skills catalogdocumentation/CLAUDE.md- Templates and references
Benefit: You get exactly the guidance you need, when you need it, without scrolling through 665 lines.
Version: 2.0 (Modular Architecture) Last Updated: October 30, 2025 Lines: ~155 (down from 665, 77% reduction)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

