agentleFS
aneja5aneja5/forge-skills/AGENTS.md

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:

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

    If a task matches a skill, invoke the skill before doing anything else

    line 7
  2. Distinctive:

    Never implement directly when a skill applies

    line 9
  3. Distinctive:

    Follow skill steps in order — do not skip steps

    line 10
  4. Very specific:

    Every skill ships with pressure-scenario tests in tests/<name>/ (see tests/METHODOLOGY.md)

    line 12
  5. Very specific:

    Every artifact-producing skill prepends a <!-- forge:meta --> header to its output (generated_by, generated_at, depends_on, content_hash).

    line 200
  6. Distinctive:

    When NOT to Use

    line 252

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

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

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>/ (see tests/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-development

Design

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-patterns

Validate 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-validation

Plan & 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-fixtures

Operate, 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-postmortems

Review, 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  →  feedback

Lifecycle Mapping

For tools that don't support slash commands, follow this internal lifecycle:

PhaseSkillTrigger
GRILLidea-grillerVague idea, needs pressure-testing
SPECspec-driven-developmentReady to formalize requirements
BRANDbrand-and-identityNew company/product, or two products need to feel related
DESIGNarchitecture-and-contracts.forge/prd.md exists
INTERFACEapi-designTouching endpoints or designing a new API surface
DATAdatabase-designTouching schema, writing migrations, or reviewing queries
LOOKdesign-systemTouching UI without established tokens
FEELinteraction-patternsTouching UX or deciding interaction shape
COMPONENTScomponent-libraryCataloging components before a UI build sprint
PAGESpage-compositionDefining page templates + responsive collapse strategy
DATAVIZdata-visualizationBuilding dashboards / charts / data displays
COMPETEcompetitive-analysisPRD exists, entering a market
SCALEscalability-analysisArchitecture exists, need growth plan
SECUREsecurity-and-complianceSystem handles sensitive data
LAUNCHgtm-strategyProduct ready for market
VALIDATEcross-validationMajor decisions need external input
PLANplanning-and-task-breakdown.forge/architecture.md exists
FORKparallel-execution-strategy3+ independent tasks ready in tasks.yaml
FILLseed-data-and-fixturesDemoing, testing, or seeding dev environment
BUILDincremental-implementation.forge/tasks.yaml exists
TDDtddImplementing a feature test-first within BUILD
VERIFYtesting-strategyDefining test approach for a new project or after a flake spike
OPERATEerror-handling-and-resilienceService is real, must not fail silently
OBSERVEobservabilityService deployed; "how will I know" needs an answer
TUNEperformance-and-cost-optimizationHot path or LLM-heavy surface needs budgets
RESPONDincident-response-and-postmortemsSomething broke in production
REPAYrefactoring-and-tech-debtThird occurrence of a pattern, or before adjacent feature work
INCLUDEaccessibilityAny UI shipping to users
POLISHvisual-polishUI built, demo/ship imminent — needs a quality pass
TELLdemo-narrativeSales / investor demo coming up
KEEPdocumentation-hygieneRepo >1 month old, doc rot visible
DEBUGdebugging-and-recoverySomething broke
TRIAGEtriage-issueBug reported, needs investigation + GitHub issue
REVIEWcode-review-and-qualityCode ready for review
GITgit-workflowCommitting, branching, or preparing a PR
SHIPshipping-and-launchAll tasks done, ready to deploy
REDACTredaction-and-cleanupSharing docs externally
SYNCforge-syncUpstream artifact changed; check what's stale before re-building
MIGRATEforge-migrateUpgraded across forge-skills versions; legacy .forge/ files lack headers
FEEDBACKfeedbackDownstream stage discovered an upstream artifact needs revision
METAwriting-skillsCreating 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:

ThoughtWhy 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 notes

SKILL.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

  1. Overview (1-2 sentences)
  2. When to Use
  3. When NOT to Use
  4. Common Rationalizations (table: thought | reality)
  5. Red Flags
  6. Core Process (numbered steps with verification gates)
  7. Verification (checklist)

Agent Personas

Specialist personas for dispatch via Task tool:

PersonaFileRole
Architectagents/architect.mdSystem design, contracts, ADRs
Platform Architectagents/platform-architect.mdMulti-product boundaries, shared vs forked, deploy topology
Project Manageragents/project-manager.mdTask breakdown, dependency ordering
Test Engineeragents/test-engineer.mdTDD coaching, test quality review
Code Revieweragents/code-reviewer.mdPR review, contract validation
Security Auditoragents/security-auditor.mdThreat modeling, hardening
Competitive Analystagents/competitive-analyst.mdCompetitor research, positioning
Compliance Officeragents/compliance-officer.mdRegulatory, privacy, certifications
Reliability Engineeragents/reliability-engineer.mdErrors, observability, incidents, performance
Data Engineeragents/data-engineer.mdSchema, migrations, query performance
QA Engineeragents/qa-engineer.mdTest strategy, quality gates
Design Engineeragents/design-engineer.mdVisual system, interaction, accessibility
Brand Strategistagents/brand-strategist.mdBrand identity, voice and tone, cross-product consistency

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.