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

claude-code-skill-factory / documentation

CLAUDE.md877 starsChanged 13 months agoMITView on GitHub

This file provides guidance for working with documentation, references, and factory templates in this repository. The documentation/ folder contains two main subdirectories: The templates/ folder contains four powerful prompt templates for creating different types of Claude Code capabilities. Purpose: Generate complete Claude Skills (folders with SKILL.md + Python files) Use for: Creating capabilities like financial analysis, content research, data processing Output: - Skill folders with SKILL.md, Python files, samples, and ZIP files - Complete skill package ready for installation Location:…

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

Show its rules and text

We split this CLAUDE.md into the rules it gives an agent

14 rules. About 0 are common, 10 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Claude Apps: Use the "skill-creator" skill to import

    line 168
  2. Very specific:

    API: Use the /v1/skills endpoint

    line 169
  3. Very specific:

    CLI: Use --agents flag for session-specific agents

    line 174
  4. Very specific:

    Project-level: Place in generated-commands/[command-name]/

    line 177
  5. Very specific:

    User-level: Place in ~/.claude/commands/

    line 178
  6. Distinctive:

    Stay Current: Update documentation when APIs or patterns change

    line 188
  7. Distinctive:

    Include Examples: Always provide working code examples

    line 189
  8. Distinctive:

    Preserve Details: All important technical details must be preserved

    line 190
  9. Distinctive:

    Professional Format: Use clear TOC, tables, and code blocks

    line 191
  10. Distinctive:

    Follow Patterns: Use official patterns (Simple, Multi-Phase, Agent-Style)

    line 196
  11. Distinctive:

    Validate Output: Check YAML syntax, bash permissions, naming conventions

    line 197
  12. Distinctive:

    Separation of Concerns: Keep references separate from templates

    line 203
  13. Distinctive:

    Easy Navigation: Use clear folder names and consistent structure

    line 205
  14. Distinctive:

    Contextual Loading: Use sub-CLAUDE.md files for focused guidance

    line 207

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

documentation/CLAUDE.md

This file provides guidance for working with documentation, references, and factory templates in this repository.


Documentation Structure

The documentation/ folder contains two main subdirectories:

references/

Official documentation and reference materials:

  • claude-skills-instructions.md - Complete Claude Skills documentation
  • claude-agents-instructions.md - Complete Claude Agents documentation
  • openai-codex-cli-instructions.md - Complete OpenAI Codex CLI reference
  • slash-commands-instructions.md - Slash commands overview
  • slash-command-code-review-example.md - Code review command example
  • slash-command-codebase-analysis-example.md - Codebase analysis command example
  • slash-command-open-api-example.md - OpenAPI sync command example
  • slash-command-update-claude-md-example.md - Update CLAUDE.md command example
  • slash-commands-ultrathink-example.md - Ultrathink command example

templates/

Factory prompt templates for generation:

  • SKILLS_FACTORY_PROMPT.md - Generate Claude Skills (multi-file)
  • AGENTS_FACTORY_PROMPT.md - Generate Claude Code Agents (single .md)
  • PROMPTS_FACTORY_PROMPT.md - Generate domain prompt builders
  • MASTER_SLASH_COMMANDS_PROMPT.md - Generate slash commands (official patterns)

Templates for Generation

The templates/ folder contains four powerful prompt templates for creating different types of Claude Code capabilities.

SKILLS_FACTORY_PROMPT.md

Purpose: Generate complete Claude Skills (folders with SKILL.md + Python files)

Use for: Creating capabilities like financial analysis, content research, data processing

Output:

  • Skill folders with SKILL.md, Python files, samples, and ZIP files
  • Complete skill package ready for installation

Location: Skills go in .claude/skills/ or ~/.claude/skills/

Example Skills:

  • Financial statement analyzer
  • AWS solution architect
  • Content trend researcher
  • Microsoft 365 tenant manager
  • Psychology advisor

AGENTS_FACTORY_PROMPT.md

Purpose: Generate Claude Code agents/sub-agents (single .md files)

Use for: Creating specialized agents like code reviewers, developers, testers

Output:

  • Agent .md files with enhanced YAML frontmatter
  • Includes color, field, expertise, MCP tools configuration
  • Tool access patterns and delegation logic

Location: Agents go in .claude/agents/ or ~/.claude/agents/

Key Features:

  • YAML frontmatter validation
  • Tool access patterns (Read/Write/Edit/Bash/Grep/Glob)
  • Model selection (sonnet/opus/haiku)
  • MCP integration support
  • Color coding for agent types

Example Agents:

  • Code reviewer
  • Frontend developer
  • Backend developer
  • Test automation specialist
  • Security engineer

PROMPTS_FACTORY_PROMPT.md

Purpose: Generate domain-specific prompt builders (complete prompt generation systems)

Use for: Creating specialized prompt builders for specific industries (Healthcare, Legal, FinTech, etc.)

Output:

  • Complete prompt builder systems with 10-20 role presets
  • Custom 7-question flow for prompt generation
  • Domain compliance rules (HIPAA, GDPR, SOC2, etc.)
  • Multi-format output (XML/Claude/ChatGPT/Gemini)

Example: Generate "Healthcare Prompt Builder" with:

  • 15 medical role presets (Physician, Nurse Practitioner, Medical Researcher, etc.)
  • HIPAA compliance validation
  • Clinical documentation standards
  • Medical terminology optimization

Key Features:

  • Domain-specific preset libraries
  • Compliance validation (HIPAA, GDPR, SOC2, PCI-DSS)
  • Industry-specific workflows
  • Multi-LLM output formats
  • Quality validation layer

MASTER_SLASH_COMMANDS_PROMPT.md

Purpose: Generate custom Claude Code slash commands following official Anthropic patterns

Use for: Creating slash commands for business automation, development workflows, compliance checking, research, and specialized tasks

Output:

  • Self-contained .md files with YAML frontmatter
  • Proper bash permissions (specific commands only)
  • $ARGUMENTS usage (never $1, $2, $3)
  • Organized in generated-commands/[command-name]/ folders

Key Features:

  • Three official patterns:
    • Simple Pattern (code-review): Context → Task (straightforward workflows)
    • Multi-Phase Pattern (codebase-analyze): Discovery → Analysis → Task (complex documentation)
    • Agent-Style Pattern (ultrathink, openapi-sync): Role → Process → Guidelines (expert coordination)
  • Strict validation (command naming, bash permissions, arguments usage, YAML structure)
  • Kebab-case naming convention (verb-noun, noun-verb patterns)
  • Auto-generated bash permissions (git commands, discovery commands, comprehensive commands)

Location: Generated commands go in:

  • Project-level: generated-commands/[command-name]/
  • User-level: ~/.claude/commands/

Based on: 6 official Anthropic slash command examples in documentation/references/

Example Commands:

  • Business research automation
  • Content analysis workflows
  • Medical translation systems
  • Compliance audit automation
  • API building workflows
  • Test automation frameworks

Key Differences

TypeStructureFilesInstallation
SkillsMulti-file capabilitySKILL.md + Python files + resources.claude/skills/
AgentsSingle-file specialist.md with YAML frontmatter.claude/agents/
PromptsMeta-prompt systemComplete prompt builderUse as template
Slash CommandsSelf-contained workflow.md with YAML + bash integration.claude/commands/ or generated-commands/

Installation Locations

Skills

  • Claude Code Project: Copy skill folder to .claude/skills/
  • Claude Code Personal: Copy skill folder to ~/.claude/skills/
  • Claude Apps: Use the "skill-creator" skill to import
  • API: Use the /v1/skills endpoint

Agents

  • Claude Code Project: Copy .md file to .claude/agents/
  • Claude Code Personal: Copy .md file to ~/.claude/agents/
  • CLI: Use --agents flag for session-specific agents

Slash Commands

  • Project-level: Place in generated-commands/[command-name]/
  • User-level: Place in ~/.claude/commands/
  • Invocation: /command-name [arguments]

Documentation Best Practices

When Creating Documentation

  1. Use References: Link to existing official documentation (Anthropic, OpenAI)
  2. Stay Current: Update documentation when APIs or patterns change
  3. Include Examples: Always provide working code examples
  4. Preserve Details: All important technical details must be preserved
  5. Professional Format: Use clear TOC, tables, and code blocks

When Using Templates

  1. Start with Examples: Review existing skills/agents before generating new ones
  2. Follow Patterns: Use official patterns (Simple, Multi-Phase, Agent-Style)
  3. Validate Output: Check YAML syntax, bash permissions, naming conventions
  4. Test Locally: Install and test generated output before deployment
  5. Iterate: Refine templates based on real-world usage

When Organizing Documentation

  1. Separation of Concerns: Keep references separate from templates
  2. Logical Hierarchy: Group related documentation together
  3. Easy Navigation: Use clear folder names and consistent structure
  4. Version Control: Track changes to documentation in git
  5. Contextual Loading: Use sub-CLAUDE.md files for focused guidance

Related Resources

  • Main README: ../README.md - Project overview
  • Root CLAUDE.md: ../CLAUDE.md - Orchestration layer
  • Skills Examples: ../claude-skills-examples/ - Reference skill implementations
  • Generated Skills: ../generated-skills/ - Production-ready skills catalog
  • GitHub Workflows: ../.github/CLAUDE.md - GitHub automation guidance

External Links

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.