phase-gate

phase-gate is a skill for Claude Code, Codex from firatcand/forge. It costs 36 tokens per session (331 once invoked), scanned A, original, MIT.

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

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it to verify a phase, record shipped work and lessons, update the project tracker, and begin the next phase after approval.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/firatcand/forge/phase-gate
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.

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.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for phase-gate

README.md
[![agentmods](https://agentmods.dev/badge/skills/firatcand/forge/phase-gate/github.svg)](https://agentmods.dev/skills/firatcand/forge/phase-gate)
Your own site
<a href="https://agentmods.dev/skills/firatcand/forge/phase-gate"><img src="https://agentmods.dev/badge/skills/firatcand/forge/phase-gate/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for phase-gate

Your own site · 80×15
<a href="https://agentmods.dev/skills/firatcand/forge/phase-gate"><img src="https://agentmods.dev/badge/skills/firatcand/forge/phase-gate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00036 $0.00331
Opus 5.5 $0.00014 $0.00132
Sonnet 5.5 $0.00007 $0.00066
Haiku 4.5 $0.00004 $0.00033

Measured 1mo ago against content hash 66fc298ea594, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 2mo ago), licensed MIT. It adds 36 tokens to every session and 331 once invoked, about $0.0001 per session on Opus 5.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.

Related

Other skills, from other repositories

github-triage

Triage GitHub issues through a configurable label-based state machine. Use when user wants to triage incoming issues, prepare issues for an autonomous agent, or move an issue between workflow states. Repo inferred from git remote; all GitHub calls go through gh.

OutlineDriven/odin-codex-plugin · 59 tokens

to-issues

Decompose a plan, PRD, or spec into independently-grabbable vertical-slice issues (markdown file by default, GitHub issues via flag). Trigger when the user wants implementation tickets, work decomposition, or to convert an implementation plan into parallelizable work. Takes a plan file and emits atomic vertical slices.

OutlineDriven/odin-codex-plugin · 67 tokens

loop-build

(loop-engineering) Implements exactly one feature from the BACKLOG.md Backlog — syncs main, acquires the loop lock, creates a feature branch, implements all acceptance criteria with tests, visually inspects UI changes, passes the independent verifier, and opens a PR. Use for Build-mode loop runs, or when asked to…

muzafferkadir/nextjs-loop-engineering-starter · 84 tokens

loop-report

(loop-engineering) Runs the daily Report-mode triage — checks open PRs, CI status and the BACKLOG.md backlog, then updates STATE.md and appends to the run log without writing any code. Use for scheduled daily loop runs, project health checks, or when asked to "triage", "run report mode", or "update the loop state".

muzafferkadir/nextjs-loop-engineering-starter · 76 tokens

to-issues

Decompose a plan, PRD, or spec into independently-grabbable vertical-slice issues (markdown file by default, GitHub issues via flag). Trigger when the user wants implementation tickets, work decomposition, or to convert an implementation plan into parallelizable work. Takes a plan file and emits atomic vertical slices.

OutlineDriven/odin-gemini-cli-extension · 67 tokens

github-triage

Triage GitHub issues through a configurable label-based state machine. Use when user wants to triage incoming issues, prepare issues for an autonomous agent, or move an issue between workflow states. Repo inferred from git remote; all GitHub calls go through gh.

OutlineDriven/odin-gemini-cli-extension · 59 tokens