maestro: Command for Claude Code

.claude/commands/implement.md

implement is a command for Claude Code from CarlosDanielDev/maestro. It costs 0 tokens per session (6,819 once invoked), scanned A, original, MIT.

A command that fetches a GitHub issue and implements it using the project's required test-driven development process. It also defines how the main agent and helper agents divide planning and code changes.

In plain words
What is it for?
It is for taking an issue number, researching and planning the work, writing the code, running tests, and following the project's agent and language options.
Why use it?
It turns an issue into a structured coding task instead of relying on an informal plan. The required failing-test, implementation, and cleanup cycle helps check behavior as the change is made.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

This is CarlosDanielDev/maestro's own configuration. It tells Claude Code how to work on maestro itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything maestro configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash .maestro/hooks/implement-gates.sh $ISSUE_NUMBER ${DIRTY_TREE_ACTION:+--dirty-tree-action=$DIRTY_TREE_ACTION}.

Reuse

Borrowing it

Nothing to install: this file belongs to CarlosDanielDev/maestro. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/CarlosDanielDev/maestro/main/.claude/commands/implement.md
Clone the repo
git clone --depth 1 https://github.com/CarlosDanielDev/maestro

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/carlosdanieldev/maestro/implement"><img src="https://agentmods.dev/badge/commands/carlosdanieldev/maestro/implement.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,819 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.00000 $0.06819
Opus 5.5 $0.00000 $0.02728
Sonnet 5.5 $0.00000 $0.01364
Haiku 4.5 $0.00000 $0.00682

Measured 1mo ago against content hash 2b41e840d268, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

.claude/commands/implement.md · 659 lines

How it starts

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


command: implement version: 1.0.0 description: Fetch a GitHub issue and implement it following the enforced TDD harness. placeholders:

  • HOOK_GATE
  • INCLUDE
  • INVOKE_SUBAGENT includes:
  • core/premises.md
  • core/tdd-cycle.md source_provenance: ported_from: .claude/commands/implement.md ported_at: 2026-05-13

Implement Issue

Fetch a GitHub issue and implement it following the enforced TDD harness.

Usage: /implement #123 or /implement 123 --english --orchestrator

Premises (Canonical Fragment)

Canonical fragment. Do not edit per-provider — render via manifest.toml. Source of truth ported from .claude/CLAUDE.md § CRITICAL PREMISES.

1. YOU ARE THE ONLY AGENT THAT WRITES CODE

The orchestrator is the ONLY agent authorized to:

  • Write, edit, or create code files
  • Execute bash commands
  • Run tests
  • Create any files (except documentation - see docs-analyst)

ALL subagents are CONSULTIVE ONLY. They:

  • Analyze, research, and plan
  • Provide detailed recommendations with exact file paths and code examples
  • Return blueprints for YOU to implement

Exception: subagent-docs-analyst can create/edit .md files.

2. Subagent Delegation Depends on MODE

In 🤖 Subagents Orchestrator Mode - You are FORBIDDEN from doing these tasks directly:

  • Researching or exploring codebases → delegate to subagents
  • Planning implementations → delegate to subagents
  • Analyzing code or architecture → delegate to subagents
  • Web searches for solutions → delegate to subagents
  • Reading documentation to understand how things work → delegate to subagents

Orchestrator Mode workflow is ALWAYS (TDD ENFORCED):

  1. Receive user request
  2. Pre-check hook (MANDATORY):
    • Run bash .maestro/hooks/implement-gates.sh <issue-number>
    • Abort on any non-zero exit (see exit-code table in /implement)
  3. Delegate to Gatekeeper (MANDATORY):
    • subagent-gatekeeper → structured JSON report (DOR, blockers, contracts, task_type)
    • Parse via .maestro/hooks/parse_gatekeeper_report.py
    • On DOR FAIL → by default, orchestrator prints the proposed comment for human review and STOPs (does NOT auto-post); pass --auto-comment to /implement to auto-post the comment and apply needs-info label
    • On blocker/contract FAIL → STOP with reasons from the report
  4. Delegate to Architect for blueprint - MANDATORY:
    • subagent-architect - For all architecture decisions
    • NEVER skip architecture step - the architect MUST be called
  5. CONTRACT VALIDATION (if task involves API endpoints) - MANDATORY:
    • Run /validate-contracts to check existing models against docs/api-contracts/ schemas
    • If no contract schema exists for the endpoint → STOP and ask user to provide the JSON schema
    • If contract exists but models mismatch → fix models BEFORE proceeding
  6. Delegate to QA for test blueprint - MANDATORY (TDD):
    • subagent-qa - Provides test cases, mocks, and expected behaviors
    • Tests are designed BEFORE implementation
  7. Write tests FIRST (RED) — verify they fail (enforced by /implement Step 6e bash gate)
  8. Implement minimum code (GREEN) — make tests pass (enforced by /implement Step 6g bash gate)
  9. Refactor — clean up while tests stay green
  10. Delegate to Security for review of implemented code
  11. Call docs-analyst at the end

Read the full file on GitHub · 659 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 · 659 lines · 0 tokens per session scan A 2b41e840d268

Subscribe to this mod's changes

implement is a command published in the GitHub repository CarlosDanielDev/maestro (31 stars, last pushed 20d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 6,819 tokens. 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-10-02.

Related

implement compared with commands from other repositories

implement next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
implementCarlosDanielDev/maestroCommand3120d agoMITA0Claude Code
bugfixnWave-ai/nWaveCommand631yesterdayMITA18Claude Code
evalajhcs/healthcare-agentsCommand549d agoApache-2.0A0Claude Code
usage-addthixpin/pitwayCommand2016d agoMITA0Claude Code
speckit.tdd.planarrrrny/zuraffaCommand5yesterdayMITA37Claude Code
tddcfrs2005/claude-initCommand1.4k7mo agoMITA37Claude Code
dashboarddoncheli/don-cheli-sddCommand592mo agoApache-2.0A14Claude Code