forge-skills
AGENTS.md3 starsChanged 7 months agoMITView on GitHub
Forge Skills for AI coding agents. Skills encode structured engineering workflows — not reference docs. Every skill has a trigger, a process, and a verification gate. Grouped by lifecycle phase. For tools that don't support slash commands, follow this internal lifecycle:
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,337 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
We split this AGENTS.md into the rules it gives an agent
6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
If a task matches a skill, invoke the skill before doing anything else
- Distinctive: line 9
Never implement directly when a skill applies
- Distinctive: line 10
Follow skill steps in order — do not skip steps
- Very specific: line 12
Every skill ships with pressure-scenario tests in tests/<name>/ (see tests/METHODOLOGY.md)
- Very specific: line 200
Every artifact-producing skill prepends a <!-- forge:meta --> header to its output (generated_by, generated_at, depends_on, content_hash).
- Distinctive: line 252
When NOT to Use
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.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
AGENTS.md
Forge Skills for AI coding agents. Skills encode structured engineering workflows — not reference docs. Every skill has a trigger, a process, and a verification gate.
Core Rules
- If a task matches a skill, invoke the skill before doing anything else
- Skills are in
skills/<name>/SKILL.md - Never implement directly when a skill applies
- Follow skill steps in order — do not skip steps
- A task is not complete until the skill's Verification checklist passes
- Every skill ships with pressure-scenario tests in
tests/<name>/(seetests/METHODOLOGY.md)
Intent → Skill Mapping
Grouped by lifecycle phase.
Define & specify
Raw idea / haven't thought it through → idea-griller
Write a spec / PRD / requirements → spec-driven-developmentDesign
Establish brand foundations / voice → brand-and-identity
Design system / write contracts → architecture-and-contracts
Design REST endpoints / API contracts → api-design
Design schema / migrations → database-design
Establish design tokens / component lib → design-system
Build a component catalog → component-library
Define page templates + responsive plan → page-composition
Build charts / dashboards / data display → data-visualization
Decide modal vs sheet, expand vs nav → interaction-patternsValidate before building
Research competitors / positioning → competitive-analysis
Plan go-to-market / find customers → gtm-strategy
Will this scale / capacity math → scalability-analysis
Security & compliance review → security-and-compliance
Validate decisions externally → cross-validationPlan & build
Break into tasks / sprint plan → planning-and-task-breakdown
Implement code / execute tasks → incremental-implementation
Need test-first discipline → tdd
Define test pyramid + coverage targets → testing-strategy
Run multiple agents in parallel → parallel-execution-strategy
Need realistic demo / test data → seed-data-and-fixturesOperate, observe, respond
Handle errors well / resilience → error-handling-and-resilience
Add logging / monitoring / alerts → observability
Optimize performance or cost → performance-and-cost-optimization
Respond to incident / write postmortem → incident-response-and-postmortemsReview, polish, ship
Something broke / unexpected behavior → debugging-and-recovery
Triage a bug / file an issue → triage-issue
Code ready for review → code-review-and-quality
Commit / branch / prepare PR → git-workflow
Make it accessible (WCAG) → accessibility
Visual quality pass before ship/demo → visual-polish
Pay down tech debt → refactoring-and-tech-debt
Keep docs from rotting → documentation-hygiene
Write demo script + dry-run plan → demo-narrative
Deploy / launch / pre-launch check → shipping-and-launch
Redact before sharing externally → redaction-and-cleanup
Creating or editing a forge-skill → writing-skills
Check if artifacts are stale → forge-sync
Legacy .forge/ files lack headers → forge-migrate
Downstream finding implies upstream fix → feedbackLifecycle Mapping
For tools that don't support slash commands, follow this internal lifecycle:
| Phase | Skill | Trigger |
| GRILL | idea-griller | Vague idea, needs pressure-testing |
| SPEC | spec-driven-development | Ready to formalize requirements |
| BRAND | brand-and-identity | New company/product, or two products need to feel related |
| DESIGN | architecture-and-contracts | .forge/prd.md exists |
| INTERFACE | api-design | Touching endpoints or designing a new API surface |
| DATA | database-design | Touching schema, writing migrations, or reviewing queries |
| LOOK | design-system | Touching UI without established tokens |
| FEEL | interaction-patterns | Touching UX or deciding interaction shape |
| COMPONENTS | component-library | Cataloging components before a UI build sprint |
| PAGES | page-composition | Defining page templates + responsive collapse strategy |
| DATAVIZ | data-visualization | Building dashboards / charts / data displays |
| COMPETE | competitive-analysis | PRD exists, entering a market |
| SCALE | scalability-analysis | Architecture exists, need growth plan |
| SECURE | security-and-compliance | System handles sensitive data |
| LAUNCH | gtm-strategy | Product ready for market |
| VALIDATE | cross-validation | Major decisions need external input |
| PLAN | planning-and-task-breakdown | .forge/architecture.md exists |
| FORK | parallel-execution-strategy | 3+ independent tasks ready in tasks.yaml |
| FILL | seed-data-and-fixtures | Demoing, testing, or seeding dev environment |
| BUILD | incremental-implementation | .forge/tasks.yaml exists |
| TDD | tdd | Implementing a feature test-first within BUILD |
| VERIFY | testing-strategy | Defining test approach for a new project or after a flake spike |
| OPERATE | error-handling-and-resilience | Service is real, must not fail silently |
| OBSERVE | observability | Service deployed; "how will I know" needs an answer |
| TUNE | performance-and-cost-optimization | Hot path or LLM-heavy surface needs budgets |
| RESPOND | incident-response-and-postmortems | Something broke in production |
| REPAY | refactoring-and-tech-debt | Third occurrence of a pattern, or before adjacent feature work |
| INCLUDE | accessibility | Any UI shipping to users |
| POLISH | visual-polish | UI built, demo/ship imminent — needs a quality pass |
| TELL | demo-narrative | Sales / investor demo coming up |
| KEEP | documentation-hygiene | Repo >1 month old, doc rot visible |
| DEBUG | debugging-and-recovery | Something broke |
| TRIAGE | triage-issue | Bug reported, needs investigation + GitHub issue |
| REVIEW | code-review-and-quality | Code ready for review |
| GIT | git-workflow | Committing, branching, or preparing a PR |
| SHIP | shipping-and-launch | All tasks done, ready to deploy |
| REDACT | redaction-and-cleanup | Sharing docs externally |
| SYNC | forge-sync | Upstream artifact changed; check what's stale before re-building |
| MIGRATE | forge-migrate | Upgraded across forge-skills versions; legacy .forge/ files lack headers |
| FEEDBACK | feedback | Downstream stage discovered an upstream artifact needs revision |
| META | writing-skills | Creating or editing a forge-skill |
The .forge/ Artifact Chain
Each phase produces an artifact consumed by the next. The chain branches after .forge/architecture.md — multiple analytical and operational artifacts can be produced in parallel.
Phase 1 — Define & Specify
.forge/idea-brief.md (idea-griller)
↓
.forge/prd.md (spec-driven-development)
↓
Phase 2 — Design (fans out)
.forge/brand-identity.md (brand-and-identity — upstream of every visual artifact)
.forge/architecture.md (architecture-and-contracts)
.forge/contracts/*.md (architecture-and-contracts)
.forge/adr/*.md (architecture-and-contracts)
.forge/api-design.md (api-design)
.forge/database-design.md (database-design)
.forge/migrations-policy.md (database-design)
.forge/design-system.md (design-system — depends on brand-identity)
.forge/interaction-patterns.md (interaction-patterns)
.forge/component-library.md (component-library — depends on design-system + interaction-patterns + brand-identity)
.forge/page-composition.md (page-composition — depends on component-library)
.forge/data-visualization.md (data-visualization — depends on design-system + component-library)
Phase 3 — Validate before building
.forge/competitive.md (competitive-analysis)
.forge/scalability.md (scalability-analysis)
.forge/security.md (security-and-compliance)
.forge/gtm.md (gtm-strategy)
.forge/cross-validation-prompt.md (cross-validation, phase 1)
.forge/cross-validation-synthesis.md (cross-validation, phase 2)
Phase 4 — Plan
.forge/tasks.yaml (planning-and-task-breakdown)
.forge/tasks-summary.md (planning-and-task-breakdown)
.forge/parallel-plan.md (parallel-execution-strategy)
.forge/seed-data.md (seed-data-and-fixtures)
.forge/testing-strategy.md (testing-strategy)
Phase 5 — Build & operate
code + commits (incremental-implementation + tdd)
.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)
Phase 6 — Polish & ship
.forge/accessibility.md (accessibility)
.forge/polish-checklist.md (visual-polish — depends on all available UI artifacts)
.forge/tech-debt-registry.md (refactoring-and-tech-debt)
.forge/demo-narrative.md (demo-narrative)
.forge/docs-policy.md (documentation-hygiene)
Phase 7 — Share externally
.forge/redaction-manifest.md (redaction-and-cleanup)
.forge/redacted/* (redaction-and-cleanup)
Cross-cutting — chain consistency + reverse cascade
.forge/sync-report.md (forge-sync — reads every .forge/ file + references/forge-dependency-graph.md)
(in-place header backfill) (forge-migrate — writes forge:meta onto legacy .forge/ files; no new artifact)
.forge/feedback/*.md (feedback — captures downstream findings targeting one upstream artifact)Every artifact-producing skill prepends a <!-- forge:meta --> header to its output (generated_by, generated_at, depends_on, content_hash). The headers are the source of truth for forge-sync's staleness check. See references/forge-dependency-graph.md for the canonical dependency tree.
A phase must not start without its input artifact. If the artifact is missing, run the preceding phase first.
Anti-Rationalization
The following thoughts are wrong — do not act on them:
| Thought | Why it's wrong |
| "This is too small for a skill" | Small tasks have the most unchecked assumptions |
| "I'll gather context first, then invoke the skill" | Skills tell you HOW to gather context — invoke first |
| "I remember this skill from before" | Skills evolve — always read the current SKILL.md |
| "The .forge/ artifact is close enough" | Missing artifacts break the handoff chain downstream |
| "I can skip architecture for a small feature" | Contracts protect parallel work — skip them and work diverges |
| "Tests can come after" | Then they test implementation shape, not behavior |
| "Dark mode / a11y / observability can wait" | Retrofitting these costs 5-10x building them in |
| "We'll just merge at the end" | Merge conflicts compound — fix parallel-execution-strategy at dispatch time |
Skill Directory Structure
skills/
{skill-name}/
SKILL.md # Required — frontmatter + full skill anatomy
*.md # Optional supporting files (linked from SKILL.md)
agents/
{persona}.md # Specialist agent personas (invoked via Task tool)
references/
*.md # Shared checklists and templates (linked from skills)
tests/
{skill-name}/
scenarios.md # Pressure scenarios (RED/GREEN methodology)
results.md # Verbatim subagent outputs + REFACTOR notesSKILL.md Frontmatter
---
name: skill-name
description: Use when... [triggering conditions only — never a workflow summary; see writing-skills for CSO rules]
---Required Sections in Every SKILL.md
- Overview (1-2 sentences)
- When to Use
- When NOT to Use
- Common Rationalizations (table: thought | reality)
- Red Flags
- Core Process (numbered steps with verification gates)
- Verification (checklist)
Agent Personas
Specialist personas for dispatch via Task tool:
| Persona | File | Role |
| Architect | agents/architect.md | System design, contracts, ADRs |
| Platform Architect | agents/platform-architect.md | Multi-product boundaries, shared vs forked, deploy topology |
| Project Manager | agents/project-manager.md | Task breakdown, dependency ordering |
| Test Engineer | agents/test-engineer.md | TDD coaching, test quality review |
| Code Reviewer | agents/code-reviewer.md | PR review, contract validation |
| Security Auditor | agents/security-auditor.md | Threat modeling, hardening |
| Competitive Analyst | agents/competitive-analyst.md | Competitor research, positioning |
| Compliance Officer | agents/compliance-officer.md | Regulatory, privacy, certifications |
| Reliability Engineer | agents/reliability-engineer.md | Errors, observability, incidents, performance |
| Data Engineer | agents/data-engineer.md | Schema, migrations, query performance |
| QA Engineer | agents/qa-engineer.md | Test strategy, quality gates |
| Design Engineer | agents/design-engineer.md | Visual system, interaction, accessibility |
| Brand Strategist | agents/brand-strategist.md | Brand identity, voice and tone, cross-product consistency |
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.

