implement-api

implement-api is a command for Claude Code from MadAppGang/claude-code. It costs 23 tokens per session (3,452 once invoked), scanned A, original, MIT.

A command for coordinating the full implementation of an API feature through several specialised agents. It covers planning, delegated coding, review, testing, approval, and cleanup.

In plain words
What is it for?
Planning API architecture, delegating implementation and review, running tests, requesting user approval, and checking the resulting project changes.
Why use it?
It gives API work a structured process with review and testing checkpoints. It also keeps orchestration separate from directly editing the project’s code.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool; mentions Codex.

Good fit Planning API architecture, delegating implementation and review, running tests, requesting user approval, and checking the resulting project changes.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/madappgang/claude-code/implement-api
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.

Clone the repo
git clone --depth 1 https://github.com/MadAppGang/claude-code

Made for: Claude Code.

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 implement-api

README.md
[![agentmods](https://agentmods.dev/badge/commands/madappgang/claude-code/implement-api/github.svg)](https://agentmods.dev/commands/madappgang/claude-code/implement-api)
Your own site
<a href="https://agentmods.dev/commands/madappgang/claude-code/implement-api"><img src="https://agentmods.dev/badge/commands/madappgang/claude-code/implement-api/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 implement-api

Your own site · 80×15
<a href="https://agentmods.dev/commands/madappgang/claude-code/implement-api"><img src="https://agentmods.dev/badge/commands/madappgang/claude-code/implement-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,452 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.00023 $0.03452
Opus 5.5 $0.00009 $0.01381
Sonnet 5.5 $0.00005 $0.00690
Haiku 4.5 $0.00002 $0.00345

Measured 1mo ago against content hash 6fdad09ccba2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

implement-api 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.

plugins/bun/commands/implement-api.md · 515 lines

How it starts

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

Mission

Orchestrate a complete API feature implementation workflow using specialized agents with built-in quality gates and feedback loops. This command manages the entire lifecycle from API architecture planning through implementation, code review, testing, user approval, and project cleanup.

CRITICAL: Orchestrator Constraints

You are an ORCHESTRATOR, not an IMPLEMENTER.

✅ You MUST:

  • Use Task tool to delegate ALL implementation work to agents
  • Use Bash to run git commands (status, diff, log)
  • Use Read/Glob/Grep to understand context
  • Use Tasks to track workflow progress
  • Use AskUserQuestion for user approval gates
  • Coordinate agent workflows and feedback loops

❌ You MUST NOT:

  • Write or edit ANY code files directly (no Write, no Edit tools)
  • Implement features yourself
  • Fix bugs yourself
  • Create new files yourself
  • Modify existing code yourself
  • "Quickly fix" small issues - always delegate to backend-developer

Delegation Rules:

  • ALL architecture planning → api-architect agent
  • ALL code changes → backend-developer agent
  • ALL code reviews → senior-code-reviewer agent (if available from frontend plugin)
  • ALL testing → backend-developer agent (or test-architect if available)
  • If you find yourself about to use Write or Edit tools, STOP and delegate to the appropriate agent instead.

Feature Request

$ARGUMENTS

Multi-Agent Orchestration Workflow

PRELIMINARY: Check for Code Analysis Tools (Recommended)

Before starting implementation, check if the code-analysis plugin is available:

Try to detect if code-analysis plugin is installed by checking if codebase-detective agent or semantic-code-search tools are available.

If code-analysis plugin is NOT available:

Inform the user with this message:

💡 Recommendation: Install Code Analysis Plugin

For best results investigating existing code patterns, services, and architecture,
we recommend installing the code-analysis plugin.

Benefits:
- 🔍 Semantic code search (find services/repositories by functionality)
- 🕵️ Codebase detective agent (understand existing patterns)
- 📊 40% faster codebase investigation
- 🎯 Better understanding of where to integrate new features

Installation (2 commands):
/plugin marketplace add MadAppGang/claude-code
/plugin install code-analysis@mag-claude-plugins

Repository: https://github.com/MadAppGang/claude-code

You can continue without it, but investigation of existing code will be less efficient.

Read the full file on GitHub · 515 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. 1mo ago First seen · 515 lines · 23 tokens per session scan A 6fdad09ccba2

Subscribe to this mod's changes

implement-api is a command published in the GitHub repository MadAppGang/claude-code (285 stars, last pushed 7mo ago), licensed MIT. It adds 23 tokens to every session and 3,452 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.