execute

A command workflow for implementing a planned feature from its context, requirements, and task files.

In plain words
What is it for?
Use it to select a feature directory, load its specifications, and carry out the implementation steps in its tasks file.
Why use it?
It removes the need to manually find the right feature and decide which planning documents to read before coding.

Command for Claude Code

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/marcelsud/spec-driven-agentic-development/execute
Clone the repo
git clone --depth 1 https://github.com/marcelsud/spec-driven-agentic-development

Made for: Claude Code.

Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,000 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.00019 $0.01000
Opus 5 $0.00010 $0.00500
Sonnet 5 $0.00004 $0.00200
Haiku 4.5 $0.00002 $0.00100

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

Security

Grade A, and why

execute 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.

.claude/commands/spec/execute.md · 74 lines

How it starts

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

Execute Feature Implementation

Feature: $ARGUMENTS

You are executing a feature implementation based on the structured specifications.

Feature Selection Logic:

  1. IF a feature name is provided in $ARGUMENTS:

    • TRY to find a directory in features/ that matches $ARGUMENTS.
    • IF no exact match is found, SEARCH for the closest directory name.
    • IF a close match is found, ASK the user for confirmation: "Did you mean 'features/[found_directory_name]'? (yes/no)"
    • IF user confirms, PROCEED. IF user denies, STOP and ask for the correct name.
  2. IF no feature name is provided:

    • LIST all directories under features/.
    • IF only one feature directory exists, automatically SELECT it and state which one you are using.
    • IF multiple feature directories exist, LIST them and ASK the user to specify which one to proceed with.

Context Loading:

  • Once a feature is selected, READ these files into your context:
    • features/[selected_feature_name]/context.md
    • features/[selected_feature_name]/requirements.md
    • features/[selected_feature_name]/tasks.md

Your Task

Implement the feature by executing the plan in tasks.md.

Execution Process

  1. Understand the Full Specification:

    • Read context.md to understand the context and technical decisions.
    • Read requirements.md to understand the "what" (EARS requirements).
    • Thoroughly review tasks.md for the detailed implementation plan and TDD steps.
  2. ULTRATHINK & Plan Execution:

    • Think hard before you execute. Create a comprehensive plan to tackle the tasks.
    • Use your TodoWrite tool to break down the implementation of each task from tasks.md into smaller, manageable steps.
    • Identify implementation patterns from the existing codebase as guided by context.md.
    • Use your TodoWrite tool to create a task to run the complete test suite. All tests must pass otherwise you MUST fix them as we can only proceed to IMPLEMENTED after the whole test suite is 100% passing.
    • Use your TodoWrite tool to create a task for the Approval Gate
    • Use your TodoWrite tool to create a task to create the task_{nr}_completed.md with the completion summary after the Approval Gate
    • Use your TodoWrite tool to create a task to mark the task with [IMPLEMENTED] inside tasks.md file after the Approval Gate

Read the full file on GitHub · 74 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 · 74 lines · 19 tokens per session scan A 0610ca05188d

Subscribe to this mod's changes

execute is a command published in the GitHub repository marcelsud/spec-driven-agentic-development (174 stars, last pushed 9mo ago), licensed MIT. It adds 19 tokens to every session and 1,000 once invoked, about $0.0001 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.