implement

A multi-agent workflow for planning, reviewing, and implementing code changes. It adjusts how much analysis it performs based on the change's risk and size.

In plain words
What is it for?
Use it to implement code changes, from small fixes with quick mode to deeper work involving planning, specialist advice, implementation, and a final review.
Why use it?
It adds structured planning and review before code is changed, helping catch blockers and risks in larger or more sensitive work.

Command

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 commands/ggemba/squad-mcp/implement
Clone the repo
git clone --depth 1 https://github.com/ggemba/squad-mcp
Per session 156 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 863 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.00156 $0.00863
Opus 5 $0.00078 $0.00432
Sonnet 5 $0.00031 $0.00173
Haiku 4.5 $0.00016 $0.00086

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

Security

Grade A, and why

implement 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 2d 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.

commands/implement.md · 33 lines

How it starts

The opening of the file, as written. The whole thing — 33 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are running the squad skill in implement mode for the user's request:

$ARGUMENTS

Execute the skill exactly as specified at skills/squad/SKILL.md. The full contract — Inviolable Rules, phase-by-phase workflow, gates, and edge cases — lives there. This file is a thin trigger; the skill file is the source of truth.

Mode: implement (default). The skill orchestrates the full squad-dev workflow: classify → score risk → select advisory agents → planner → Gate 1 (plan approval) → parallel advisory dispatch → Gate 2 (Blocker halt) → implementation → consolidator → final verdict.

Execution depth (--quick / --deep)

The skill resolves an execution depth from classify+risk signals. Pass mode to compose_squad_workflow per the user's flag, or omit it to let auto-detect choose:

  • --quick → cap squad to 2 agents, skip tech-lead-planner and the tech-lead-consolidator persona, reject-loop ceiling at 1 cycle. Aim: sub-30s feedback on small / Low-risk changes. The auto-detect picks this when risk == Low && files_count <= 5 and no auth/money/migration signals (and work_type != Security). Example: /squad:implement --quick fix typo in src/utils/format.ts.
  • --normal (the implicit default) → pre-v0.8.0 behaviour: full pipeline, 4–7 agents, 2 reject-loop cycles. Pass --normal explicitly only to override an auto-detected quick / deep when you want the middle path. Same vocabulary as /brainstorm --normal and /squad:review --normal.
  • --deep → force-include architect + security, allow 3 reject-loop cycles, suggest Codex (still gated on --codex consent). Auto-detect picks this on risk == High or work_type == Security or any of touches_auth / money / migration. Example: /squad:implement --deep refactor src/auth/jwt-validator.

If the user FORCES --quick on a high-risk diff (auth / money / migration), the cap stays at 2 but security is force-included as one of the two. The output will carry mode_warning — surface that to the user, do not bury it.

Read the full file on GitHub · 33 lines

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. 2d ago First seen · 33 lines · 0 tokens per session scan A aa6242883818

Subscribe to this mod's changes

implement is a command published in the GitHub repository ggemba/squad-mcp (4 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 156 tokens to every session and 863 once invoked, about $0.0008 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-31.