agentleFS
alirezarezvanialirezarezvani/claude-code-skill-factory/CLAUDE.md

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

  • Other versions1 project uses a version of this.

    Word for word · 1

    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.

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
  1. Distinctive:

    When generating skills, agents, prompts, or slash commands:

    line 61
  2. Very specific:

    Check reference examples in documentation/references/

    line 63
  3. Distinctive:

    Verify all required sections/fields are present

    line 64
  4. Distinctive:

    Prefer editing existing skill files over creating new ones.

    line 74
  5. Very specific:

    Always check for missing/invalid data before calculations.

    line 77
  6. Distinctive:

    Test with relevant task

    line 127
  7. Very specific:

    Test with --agents flag or automatic delegation

    line 134
  8. Very specific:

    Use /build-hook slash command or run python3 hook_factory.py -i for interactive mode

    line 146
  9. Distinctive:

    Test hook with relevant events

    line 153
  10. Distinctive:

    Read .github/CLAUDE.md for workflow requirements

    line 157
  11. Very specific:

    Create plan issue with plan label (5-10 tasks max)

    line 158
  12. Distinctive:

    NO .md files in root except the ones above: - All other documentation goes in appropriate subfolders with their own CLAUDE.md files.

    line 218

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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

LocationPurposeWhen Claude Loads It
.github/CLAUDE.mdGitHub workflows, task hierarchy, automationWorking with GitHub issues, PRs, workflows
claude-skills-examples/CLAUDE.mdSkill architecture patterns, examplesBrowsing or modifying example skills
generated-skills/CLAUDE.mdProduction-ready skills catalogExploring or installing generated skills
documentation/CLAUDE.mdTemplates and references structureWorking 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:

  1. Compare output against official Anthropic documentation
  2. Check reference examples in documentation/references/
  3. Verify all required sections/fields are present
  4. Cross-check against similar generated examples
  5. 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:

TemplatePurposeOutputLocation
SkillsMulti-file capabilitiesSKILL.md + Python files~/.claude/skills/
AgentsSingle-file specialists.md with YAML frontmatter~/.claude/agents/
PromptsMeta-prompt systemsDomain-specific prompt buildersUse as template
Slash CommandsWorkflow automation.md with YAML + bash~/.claude/commands/
HooksEvent-driven automationhook.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

  1. Review examples in claude-skills-examples/
  2. Use documentation/templates/SKILLS_FACTORY_PROMPT.md
  3. Generate skill with SKILL.md + Python files
  4. Install to .claude/skills/ or ~/.claude/skills/
  5. Test with relevant task

Create a New Agent

  1. Review documentation/templates/AGENTS_FACTORY_PROMPT.md
  2. Generate agent .md file with YAML frontmatter
  3. Install to .claude/agents/ or ~/.claude/agents/
  4. Test with --agents flag or automatic delegation

Create a Slash Command

  1. Review official examples in documentation/references/
  2. Use documentation/templates/MASTER_SLASH_COMMANDS_PROMPT.md
  3. Generate command with YAML + bash permissions
  4. Install to .claude/commands/ or generated-commands/
  5. Test with /command-name [args]

Create a Hook

  1. Use /build-hook slash command or run python3 hook_factory.py -i for interactive mode
  2. Answer 7 questions about hook purpose and behavior (event type, language, matcher, command, timeout, install level, auto-install)
  3. Generated files: generated-hooks/[hook-name]/hook.json + README.md
  4. 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)
  5. Restart Claude Code to activate hook
  6. Test hook with relevant events

Work with GitHub Issues

  1. Read .github/CLAUDE.md for workflow requirements
  2. Create plan issue with plan label (5-10 tasks max)
  3. Automation creates TASK and SUBTASK issues
  4. Work on tasks in priority order
  5. 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


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 guidance
  • claude-skills-examples/CLAUDE.md - Skill architecture and patterns
  • generated-skills/CLAUDE.md - Production skills catalog
  • documentation/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)

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.