agentleFS
faizaniofaizanio/FORGE/skills/forge/SKILL.md

forge

Skill0 starsChanged 12 days agoMITView on GitHub

Use for software implementation, debugging, refactoring, review, migration, and other repository-changing engineering work where correctness must be verified. Enforces scoped reconnaissance, adaptive planning, evidence-backed verification, requirement tracking, failure recovery, and budget-aware delegation. Model-agnostic reliability runtime for coding agents -- measured, not claimed.

78 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use forge-ship, forge-review and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • redteamlifeSkill

    forge-ship

    Use when the user asks to merge, release, promote, reconcile, or close out work in a repo containing `docs/forge/` or governed by FORGE. Not for per-task commits; those complete inside forge-execute-task.

    Also in 6 projects that use this

  • tonmoy007Skill

    forge-review

    Run a multi-dimensional parallel code review over the current change.

    Also in 8 projects that use this

  • weselbenSkill

    forge-docs

    Load before code changes, before writing docs or an ADR, when a user question exposes a missing how-to, and when closing a chunk of work; also loaded by forge after each squash-merge and by deep-research after a report.

    Also in 3 projects that use this

  • DailenGSkill

    forge-design

    Design, UX, and polish discipline for the forge lifecycle. Covers the design tier, the design brief in docs/DESIGN.md, UX requirements and their verification methods, the per-slice design pass, the UX defect register, and the release polish pass. Load whenever work touches a user-facing surface (GUI, terminal, library API, or operated service), whenever a UX observation needs disposing of, and whenever a release is in reach.

    Also in 3 projects that use this

  • DshamirSkill

    forge-plan

    Takes analysis.json + budget cap → derives the full phase sequence, hyperparameters, instance type, cost estimate, and acceptance thresholds. Emits plan.md (the single human gate document) and plan.json (the machine-readable spec that dispatch-v2 consumes). Refuses to plan if estimated cost exceeds budget×1.2.

    Also in 4 projects that use this

  • tonmoy007Skill

    forge-build

    Run Stage 6 of the Forge pipeline — implementation. Use when the user says

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 67 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When you claim something is done, fixed, or verified -- that claim rests on output you observed in this session.

    line 16
  2. Distinctive:

    Ground before mutating: Read the target, its tests, and its callers before editing.

    line 27
  3. Very specific:

    Before multi-file or risky work, emit the planning-policy record (forge decide --signals '{...}' or the equivalent judgment):

    line 47
  4. Very specific:

    No universal ceremony: a one-line fix in one file is direct, even with many files read.

    line 64
  5. Very specific:

    read src/auth/session.ts line 23: SESSION_TIMEOUT = 5000

    line 93
  6. Distinctive:

    Prefer executable evidence over prose, in this order:

    line 102
  7. Distinctive:

    Every verification ends with exactly: VERDICT: PASS or VERDICT: FAIL -- [reason] with failing output

    line 114
  8. Distinctive:

    Default to one capable agent.

    line 139
  9. Distinctive:

    Read before write. Plan before act.

    line 186

“Common” is measured: kept by at least 6 in 10 of the 67 edited versions of this file we could read. “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
SKILL.md

Forge -- Engineering Reliability Runtime

One rule above all: Report what actually happened, not what you intended. When you claim something is done, fixed, or verified -- that claim rests on output you observed in this session. If you did not check, say you did not check.


THE 6 INVARIANTS

These hold across models and hosts. The runtime enforces the machine-checkable ones at hook level; the rest are on you.

  1. Ground before mutating. Read the target, its tests, and its callers before editing. Never act on assumed file state.
  2. Stay in declared scope. Writes outside allowed_write_scope are denied. If the scope is wrong, amend the contract -- don't route around it.
  3. Completion needs evidence. A criterion is done only when a Forge-owned validator passed after the last relevant mutation. Stale evidence and self-review don't count.
  4. Never exact-retry a failure. A failed approach may be retried only after something material changed (diagnosis, context, strategy). The runtime blocks byte-identical retries.
  5. Satisfy the contract. Acceptance criteria and required validators in contract.json gate completion. Generic "tests passed" doesn't cover unrelated criteria.
  6. Say what you can't verify. Mark uncertain or unverifiable claims explicitly. Downgrade confidence instead of fabricating certainty.

POLICY RECORD

Before multi-file or risky work, emit the planning-policy record (forge decide --signals '{...}' or the equivalent judgment):

{
  "planning": "compact",
  "context_depth": "dependency",
  "verification_depth": "impact",
  "delegation": "none",
  "reason_codes": ["multiple-files", "shared-module"]
}
  • planning: direct (trivial, localized) / compact (dependent changes, moderate uncertainty) / deep (architecture, security, migration, broad blast radius) / replan (evidence invalidated assumptions, scope grew, or repeated failure).
  • No universal ceremony: a one-line fix in one file is direct, even with many files read. A trivial-looking change with huge fanout is deep.
  • Store the record; never store hidden chain-of-thought.
  • Tier 0/1/2 language surviving in agent files maps to direct/compact/deep until those files migrate to this record.

MODES

ModeWritesMeaning
answer, research, plan, review, security-reviewNoneRead-only. Hooks deny writes and non-query shell.
implement, debugScopedNormal work inside allowed_write_scope.
migrationConfirmedDestructive-risk work. User checkpoint required.

Legacy plan-only / review-only are accepted as aliases. See references/task-contract.md.


DECISION RECORDS

For non-trivial actions, emit a decision record before executing:

decision: action: modify src/auth/session.ts reason: SESSION_TIMEOUT is 5000ms, task requires 30000ms evidence: - read src/auth/session.ts line 23: SESSION_TIMEOUT = 5000 - failing test: auth/session.test.ts:47 expects 5000 (will need update) risk: low allowed_by_contract: true


VERIFICATION HIERARCHY

Prefer executable evidence over prose, in this order:

  1. Hidden deterministic acceptance validator
  2. External integration / runtime execution
  3. Project tests
  4. Compiler / type checker
  5. Deterministic static analysis
  6. Executable reproducer
  7. Structural / diff invariant
  8. Independent model review
  9. Same-model self-review (supplementary only -- never completion evidence)

Every verification ends with exactly: VERDICT: PASS or VERDICT: FAIL -- [reason] with failing output

See references/verification.md for validator discovery and escalation (targeted -> neighborhood -> regression -> full CI).


EFFORT PROFILES

ProfilePlanningDelegationVerification
ecodirect-firstnone unless blockedtargeted only
balancedadaptive (default)conditionaltargeted + affected
deepdeep-firstconditional verifierfull suite + independent check

eco never bypasses scope or evidence gates. deep never runs every command blindly -- depth follows blast radius and uncertainty.


DELEGATION

Default to one capable agent. Delegate only when the policy record says so:

SignalRole
Localization uncertain, read-onlyinvestigator
Risky implementationreviewer
Broad dependency fanoutimpact-auditor
Strict security worktest-adversary

Subagents get minimum necessary context plus explicit permissions. Never assume a child inherits restrictions unless the host guarantees it.


OUTPUT FORMAT

Every non-trivial response:

What Changed

[files modified, lines changed, behavior delta]

Evidence

[actual command output -- pass counts, lint results, build output]

Why

[rationale for the key decision]


DEEP REFERENCES

Load when the task requires:

ReferenceLoad when
references/task-contract.mdestablishing a formal task contract
references/reasoning.mdcalibrating reasoning depth
references/reconnaissance.mdlarge/unfamiliar codebase recon
references/verification.mdcomplex verification requirements
references/delegation.mdconsidering subagent spawning
references/recovery.mdresuming after interruption or failure
references/model-routing.mdbudget/model selection decisions
references/typescript-guide.mdworking with TypeScript / Node.js (strict mode, Vitest/Jest, types)
references/python-guide.mdworking with Python (mypy strict, ruff, pytest, type safety)

Read before write. Plan before act. Verify with proof. Report what happened.

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.