phase-gate

A phase-advancement procedure for projects divided into numbered phases. It checks that the current phase is complete, runs its end-to-end tests, and prepares a retrospective, a written review of the work.

In plain words
What is it for?
Use it to verify a phase, record shipped work and lessons, update the project tracker, and begin the next phase after approval.
Why use it?
It prevents a project from moving forward while tasks or checks are still unfinished. Human approval is required before the next phase starts.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/firatcand/forge/phase-gate
Any agent
npx skills add firatcand/forge --skill phase-gate
Clone the repo
git clone --depth 1 https://github.com/firatcand/forge

Made for: Claude Code, Codex.

Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 331 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00036 $0.00331
Opus 5 $0.00018 $0.00166
Sonnet 5 $0.00007 $0.00066
Haiku 4.5 $0.00004 $0.00033

Measured 3d ago against content hash 66fc298ea594, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

phase-gate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/phase-gate/SKILL.md · 38 lines

What it actually says

/phase-gate

Delegate to phase-gatekeeper.

Args

  • phase-{N} (e.g., phase-1)

Steps

  1. Read plans/phases.yaml for phase-N.gate_criteria
  2. Verify all phase-N tasks are Done in Linear (abort with list if not)
  3. Run gate_check_command from phases.yaml (e.g., npm run e2e && npm run typecheck)
  4. Generate docs/retros/phase-{N}.md:
    • Tasks shipped (with PR links)
    • Decisions made
    • Scope changes from original phases.yaml
    • Learnings to harvest
    • What to do differently in phase-{N+1}
  5. Print summary, ask: "Approve advancing to phase-{N+1}? [y/N]"
  6. On y:
    • Linear: close Cycle N, activate Cycle N+1
    • Move all phase-(N+1) tasks Backlog → Todo
    • Update phases.yaml: phase-N.status = "complete"
    • Commit retro
  7. On N: list what's missing, exit (no partial advances)

Output

If approved: confirmation + Phase N+1 task summary. If not: list of blockers.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 38 lines · 36 tokens per session scan A 66fc298ea594

Subscribe to this mod's changes

phase-gate is a skill published in the GitHub repository firatcand/forge (13 stars, last pushed 1mo ago), licensed MIT. It adds 36 tokens to every session and 331 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.