agentleFS
aneja5aneja5/forge-skills/CLAUDE.md

forge-skills

CLAUDE.md3 starsChanged 7 months agoMITView on GitHub

A planning-first skill library for Claude Code. Skills are structured workflows, not reference docs. Each skill encodes a specific engineering process that the agent follows step-by-step.

  • In this repositoryOne other file it gives its agents.

The file

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

12 rules. About 0 are common, 3 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never skip ahead without the previous artifact.

    line 143
  2. Very specific:

    Every skill lives in skills/<name>/SKILL.md

    line 195
  3. Very specific:

    Keep SKILL.md under 150 lines — extract reference material to supporting files in the same directory

    line 198
  4. Very specific:

    Iron Law: no skill ships without a failing test first.

    line 246
  5. Very specific:

    Write tests/<name>/scenarios.md with 3+ pressure scenarios

    line 251
  6. Very specific:

    Run RED — record verbatim subagent outputs in tests/<name>/results.md

    line 252
  7. Very specific:

    Create skills/<name>/SKILL.md (under 150 lines, CSO-compliant description, all required sections)

    line 253
  8. Very specific:

    Add supporting files to skills/<name>/ if needed

    line 254
  9. Distinctive:

    Run GREEN — verify the skill closes the failures

    line 255
  10. Very specific:

    If it fits the pipeline, add a slash command in commands/<name>.md

    line 257
  11. Distinctive:

    Update skills tables in README.md and this file

    line 258
  12. Very specific:

    Update using-forge-skills/SKILL.md discovery flowchart if the skill has a new trigger pattern

    line 259

≈ “Common” is an estimate: at least 1 in 5 of the 29,248 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

forge-skills

A planning-first skill library for Claude Code. Skills are structured workflows, not reference docs. Each skill encodes a specific engineering process that the agent follows step-by-step.

Project Structure

forge-skills/
├── skills/                          # All skill definitions (one per directory)
│   ├── using-forge-skills/          # Meta-skill: skill discovery, pipeline, anti-rationalization
│   ├── idea-griller/                # Socratic interview → .forge/idea-brief.md
│   │   ├── SKILL.md
│   │   └── evaluation-criteria.md
│   ├── spec-driven-development/     # PRD via interview + codebase → .forge/prd.md
│   ├── architecture-and-contracts/  # System design + interface contracts → .forge/architecture.md + contracts/
│   ├── planning-and-task-breakdown/ # Task sizing + dependency graph → .forge/tasks.yaml
│   ├── incremental-implementation/  # Execute tasks.yaml one task at a time with TDD
│   ├── tdd/                         # Red-green-refactor with vertical slices
│   │   ├── SKILL.md
│   │   ├── deep-modules.md
│   │   ├── interface-design.md
│   │   ├── mocking.md
│   │   ├── refactoring.md
│   │   └── tests.md
│   ├── debugging-and-recovery/      # Reproduce → localize → fix → guard
│   ├── code-review-and-quality/     # Five-axis review with contract compliance
│   ├── git-workflow/                # Atomic commits, branch strategy, PR prep
│   ├── shipping-and-launch/         # Six-domain pre-launch gate
│   ├── triage-issue/                # Bug investigation → GitHub Issue + TDD fix plan
│   ├── competitive-analysis/        # Market research → .forge/competitive.md
│   ├── gtm-strategy/               # Go-to-market plan → .forge/gtm.md
│   ├── security-and-compliance/     # Security assessment → .forge/security.md
│   ├── scalability-analysis/        # Capacity planning → .forge/scalability.md
│   ├── cross-validation/            # External review → .forge/cross-validation-*.md
│   ├── redaction-and-cleanup/       # Redact for sharing → .forge/redacted/
│   ├── api-design/                  # REST conventions, error envelopes → .forge/api-design.md
│   ├── database-design/             # Schema + migrations → .forge/database-design.md + migrations-policy.md
│   ├── brand-and-identity/          # Brand essence, voice, logo, icons → .forge/brand-identity.md
│   ├── design-system/               # Tokens + components → .forge/design-system.md (soft dep on brand)
│   ├── interaction-patterns/        # Modal/sheet/expand decisions → .forge/interaction-patterns.md
│   ├── component-library/           # Component catalog → .forge/component-library.md
│   ├── page-composition/            # Page templates + responsive plan → .forge/page-composition.md
│   ├── data-visualization/          # Chart selection + color encoding → .forge/data-visualization.md
│   ├── visual-polish/               # Quality pass before demo/ship → .forge/polish-checklist.md
│   ├── parallel-execution-strategy/ # Multi-agent dispatch → .forge/parallel-plan.md
│   ├── seed-data-and-fixtures/      # Realistic data → .forge/seed-data.md
│   ├── testing-strategy/            # Test pyramid + coverage → .forge/testing-strategy.md
│   ├── error-handling-and-resilience/ # Retries + circuit breakers → .forge/error-handling.md
│   ├── observability/               # Logs + traces + alerts → .forge/observability.md
│   ├── performance-and-cost-optimization/ # Latency + cost budgets → .forge/performance-budget.md
│   ├── incident-response-and-postmortems/ # Severity + runbooks → .forge/incident-response.md
│   ├── accessibility/               # WCAG AA baseline → .forge/accessibility.md
│   ├── refactoring-and-tech-debt/   # Debt registry + strangler-fig → .forge/tech-debt-registry.md
│   ├── demo-narrative/              # Demo script + fallbacks → .forge/demo-narrative.md
│   ├── documentation-hygiene/       # README + changelog policy → .forge/docs-policy.md
│   ├── writing-skills/              # Meta-skill for contributors (TDD for skills)
│   ├── forge-sync/                  # Check .forge/ artifact freshness → .forge/sync-report.md
│   ├── forge-migrate/               # Backfill forge:meta headers on legacy .forge/ files (in-place)
│   └── feedback/                    # File reverse-cascade entries → .forge/feedback/*.md
├── agents/                          # Specialist agent personas
│   ├── architect.md                 # System design, contracts, ADRs
│   ├── project-manager.md           # Task breakdown, dependency ordering
│   ├── test-engineer.md             # Test strategy, TDD coaching
│   ├── code-reviewer.md             # PR review, contract validation
│   ├── security-auditor.md          # Threat modeling, hardening
│   ├── competitive-analyst.md       # Market research, positioning
│   ├── compliance-officer.md        # Regulatory assessment, certification
│   ├── reliability-engineer.md      # Errors, observability, incidents, performance
│   ├── data-engineer.md             # Schema, migrations, query performance
│   ├── qa-engineer.md               # Test strategy, quality gates
│   ├── design-engineer.md           # Visual system, interaction, accessibility
│   ├── brand-strategist.md          # Brand identity, voice, cross-product consistency
│   └── platform-architect.md        # Multi-product boundaries, deploy topology
├── references/                      # Shared checklists linked from skills
│   ├── contract-templates.md        # Interface contract + ADR formats
│   ├── idea-evaluation.md           # Per-branch resolution criteria for idea-griller
│   ├── testing-patterns.md          # Good/bad tests, mocking rules, TDD patterns
│   ├── security-checklist.md        # OWASP checklist, severity levels
│   ├── motion-system.md             # Durations, curves, transitions, reduced-motion
│   └── forge-dependency-graph.md    # Canonical .forge/ dependency tree (read by forge-sync)
├── commands/                        # 36 slash commands for the full lifecycle
│   ├── grill.md spec.md architect.md plan.md build.md review.md ship.md
│   ├── compete.md gtm.md secure.md scale.md validate.md redact.md
│   ├── api.md db.md design.md interaction.md
│   ├── brand.md components.md pages.md dataviz.md polish.md
│   ├── parallel.md seed.md test-strategy.md
│   ├── errors.md observe.md perf.md incident.md
│   ├── a11y.md debt.md demo.md docs.md
│   ├── sync.md forge-migrate.md feedback.md
├── hooks/
│   ├── hooks.json                   # SessionStart hook configuration
│   └── session-start.sh             # Injects using-forge-skills at every session start
├── tests/                           # Pressure scenarios + RED/GREEN test results
│   ├── METHODOLOGY.md               # TDD-for-skills cycle
│   ├── idea-griller/                # Test scenarios and results
│   ├── architecture-and-contracts/
│   └── spec-driven-development/
├── docs/                            # Guides and explanations
├── install.sh                       # Single-skill installer
├── CLAUDE.md                        # This file
├── AGENTS.md                        # Intent-to-skill mapping for non-Claude-Code tools
└── README.md

The .forge/ Handoff Chain

Skills produce and consume artifacts in .forge/:

.forge/idea-brief.md   ← idea-griller
.forge/prd.md          ← spec-driven-development  (reads idea-brief.md)
.forge/architecture.md ← architecture-and-contracts (reads prd.md)
.forge/contracts/*.md  ← architecture-and-contracts
.forge/adr/*.md        ← architecture-and-contracts
.forge/tasks.yaml      ← planning-and-task-breakdown (reads prd.md + architecture.md + contracts/)
.forge/tasks-summary.md ← planning-and-task-breakdown
.forge/competitive.md  ← competitive-analysis (reads prd.md)
.forge/gtm.md          ← gtm-strategy (reads prd.md + competitive.md)
.forge/security.md     ← security-and-compliance (reads architecture.md + contracts/)
.forge/scalability.md  ← scalability-analysis (reads architecture.md)
.forge/cross-validation-prompt.md    ← cross-validation (reads all .forge/ artifacts)
.forge/cross-validation-synthesis.md ← cross-validation (reads reviewer responses)
.forge/redaction-manifest.md         ← redaction-and-cleanup
.forge/redacted/       ← redaction-and-cleanup (copies, never modifies originals)
.forge/api-design.md           ← api-design
.forge/database-design.md      ← database-design
.forge/migrations-policy.md    ← database-design
.forge/design-system.md        ← design-system
.forge/interaction-patterns.md ← interaction-patterns
.forge/parallel-plan.md        ← parallel-execution-strategy (reads tasks.yaml)
.forge/seed-data.md            ← seed-data-and-fixtures
.forge/testing-strategy.md     ← testing-strategy
.forge/error-handling.md       ← error-handling-and-resilience
.forge/observability.md        ← observability
.forge/performance-budget.md   ← performance-and-cost-optimization
.forge/incident-response.md    ← incident-response-and-postmortems
.forge/accessibility.md        ← accessibility
.forge/tech-debt-registry.md   ← refactoring-and-tech-debt
.forge/demo-narrative.md       ← demo-narrative
.forge/docs-policy.md          ← documentation-hygiene

Never skip ahead without the previous artifact. You can join mid-pipeline if you have the artifact.

Skills by Phase

PhaseSkillCommandInputOutput
Defineidea-griller/grillRaw idea.forge/idea-brief.md
Specifyspec-driven-development/specidea-brief.md.forge/prd.md
Designarchitecture-and-contracts/architectprd.mdarchitecture.md + contracts/ + adr/
Planplanning-and-task-breakdown/planprd.md + arch + contracts.forge/tasks.yaml
Buildincremental-implementation/buildtasks.yaml + contractscode + commits
Buildtdd/buildtask acceptance criteriapassing tests
Verifydebugging-and-recovery—bug descriptionfix + regression test
Reviewcode-review-and-quality/reviewcode changefindings + merge decision
Shipgit-workflow—completed tasksatomic commits + PR
Shipshipping-and-launch/shipready PRgo/no-go decision
Triagetriage-issue—bug reportGitHub issue + TDD plan
Metawriting-skills—new skill / edittested skill + scenarios + results
Analyzecompetitive-analysis/competeprd.md.forge/competitive.md
Analyzegtm-strategy/gtmprd.md + competitive.md.forge/gtm.md
Analyzesecurity-and-compliance/securearchitecture.md + contracts/.forge/security.md
Analyzescalability-analysis/scalearchitecture.md.forge/scalability.md
Validatecross-validation/validate.forge/ artifactscross-validation-*.md
Shareredaction-and-cleanup/redact.forge/ artifacts.forge/redacted/
Designapi-design/apiprd.md.forge/api-design.md
Designdatabase-design/dbprd.md + architecture.md.forge/database-design.md + migrations-policy.md
Designbrand-and-identity/brand—.forge/brand-identity.md
Designdesign-system/designbrand-identity.md (soft).forge/design-system.md
Designinteraction-patterns/interactiondesign-system.md.forge/interaction-patterns.md
Designcomponent-library/componentsdesign-system + interaction-patterns + brand-identity.forge/component-library.md
Designpage-composition/pagescomponent-library + design-system + interaction-patterns.forge/page-composition.md
Designdata-visualization/datavizdesign-system + component-library.forge/data-visualization.md
Planparallel-execution-strategy/paralleltasks.yaml.forge/parallel-plan.md
Planseed-data-and-fixtures/seedarchitecture.md + database-design.md.forge/seed-data.md
Plantesting-strategy/test-strategyprd.md.forge/testing-strategy.md
Operateerror-handling-and-resilience/errorsarchitecture.md.forge/error-handling.md
Operateobservability/observearchitecture.md.forge/observability.md
Operateperformance-and-cost-optimization/perfarchitecture.md.forge/performance-budget.md
Operateincident-response-and-postmortems/incidentlive incident or service list.forge/incident-response.md
Polishaccessibility/a11yUI surfaces.forge/accessibility.md
Polishvisual-polish/polishall UI artifacts.forge/polish-checklist.md
Polishrefactoring-and-tech-debt/debtcodebase.forge/tech-debt-registry.md
Polishdemo-narrative/demoprd.md + seed-data.md.forge/demo-narrative.md
Polishdocumentation-hygiene/docsrepo.forge/docs-policy.md
Syncforge-sync/syncevery .forge/ file.forge/sync-report.md
Migrateforge-migrate/forge-migratelegacy .forge/ files (no headers)in-place forge:meta backfill
Feedbackfeedback/feedbackone upstream artifact + a downstream finding.forge/feedback/<ts>-<source>.md

Conventions

Skill files

  • Every skill lives in skills/<name>/SKILL.md
  • Frontmatter: name (kebab-case), description (≤1024 chars, includes trigger phrases)
  • Required sections: Overview, When to Use, When NOT to Use, Common Rationalizations, Red Flags, Core Process, Verification
  • Keep SKILL.md under 150 lines — extract reference material to supporting files in the same directory
  • Supporting files linked from SKILL.md with relative paths

Agent personas

  • One file per persona in agents/
  • Frontmatter: name, role, invoke_when
  • Each persona defines: responsibilities, how they think, how they push back, what they never do, output quality bar

Reference files

  • Shared checklists and templates in references/
  • Skills link to references with relative paths: ../../references/contract-templates.md
  • References don't contain skill logic — they contain structured data (templates, checklists, examples)

Slash commands

  • Short files in commands/
  • Frontmatter: description (one line, shown in command picker)
  • Body: which skill to invoke + 5-15 lines of concrete instruction
  • Commands align 1:1 with pipeline phases

Hooks

  • hooks/hooks.json — copy content into project's .claude/settings.json to activate
  • hooks/session-start.sh — reads skills/using-forge-skills/SKILL.md, emits it as IMPORTANT context

Boundaries

This repo IS:

  • A collection of planning and development workflow skills for Claude Code and other agents
  • Installable into any project via install.sh
  • Designed to chain together into a full feature lifecycle via the .forge/ artifact chain

This repo is NOT:

  • Project-specific business logic
  • A framework or runtime — it's Markdown files and shell scripts
  • A replacement for thinking — skills guide the thinking process, not bypass it

Testing Skills

Skills are pressure-tested using TDD-for-skills methodology (see tests/METHODOLOGY.md):

  • RED — run pressure scenario without skill, document failures verbatim
  • GREEN — run with skill loaded, verify compliance
  • REFACTOR — close any new rationalizations the agent invented

Tests live in tests/<skill>/scenarios.md (3+ scenarios) and tests/<skill>/results.md (verbatim outputs).

Iron Law: no skill ships without a failing test first. See skills/writing-skills/SKILL.md for the full contribution flow.

Adding a New Skill

  1. Read skills/writing-skills/SKILL.md first
  2. Write tests/<name>/scenarios.md with 3+ pressure scenarios
  3. Run RED — record verbatim subagent outputs in tests/<name>/results.md
  4. Create skills/<name>/SKILL.md (under 150 lines, CSO-compliant description, all required sections)
  5. Add supporting files to skills/<name>/ if needed
  6. Run GREEN — verify the skill closes the failures
  7. REFACTOR until no new rationalizations appear
  8. If it fits the pipeline, add a slash command in commands/<name>.md
  9. Update skills tables in README.md and this file
  10. Update using-forge-skills/SKILL.md discovery flowchart if the skill has a new trigger pattern

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.