implement-task

A command that implements one planned task, or automatically chooses the next available task from a feature's TASKS.json file. A task is one defined piece of work within a larger feature.

In plain words
What is it for?
Use it to run a specific task by its ID or implement the next task whose prerequisites are complete.
Why use it?
It gives you a controlled way to build a feature step by step instead of asking an agent to handle an entire large change at once.

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/jsegov/shipspec-claude-code-plugin/implement-task
Clone the repo
git clone --depth 1 https://github.com/jsegov/shipspec-claude-code-plugin
Per session 13 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,438 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.00013 $0.03438
Opus 5 $0.00006 $0.01719
Sonnet 5 $0.00003 $0.00688
Haiku 4.5 $0.00001 $0.00344

Measured yesterday against content hash 8855ad5a7110, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

implement-task 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 yesterday.

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-task.md · 383 lines

How it starts

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

Implement Task: $ARGUMENTS

Implement a specific task by ID, or find and implement the next available task.

Step 0: Parse and Validate Arguments

Parse $ARGUMENTS to extract:

  1. feature-dir (required): The first word/argument
  2. task-id (optional): The second word/argument, if provided

Normalize task-id format:

  • If task-id is just a number (e.g., 3), convert to TASK-003 format (zero-padded to 3 digits)
  • If task-id is already in TASK-XXX format, use as-is
  • Store the normalized task-id for later use

If feature-dir is empty or missing:

"Error: Feature directory is required.

Usage: /implement-task <feature-dir> [task-id]

Examples:

  • /implement-task my-feature - implement next available task
  • /implement-task my-feature 3 - implement TASK-003 specifically
  • /implement-task my-feature TASK-003 - same as above

To see available features:

ls .shipspec/planning/
```"

Stop here - do not proceed without a feature directory.

Step 1: Locate Feature Directory

Check that the feature directory exists:

ls -d .shipspec/planning/[feature-dir] 2>/dev/null || echo "NOT_FOUND"

If NOT_FOUND:

"No directory found for '[feature-dir]' at .shipspec/planning/[feature-dir].

Please run /feature-planning first to create the planning artifacts."

Check for TASKS.json:

ls -la .shipspec/planning/[feature-dir]/TASKS.json 2>/dev/null || echo "TASKS.json NOT FOUND"

If TASKS.json not found:

"No TASKS.json found in .shipspec/planning/[feature-dir]/.

Run /feature-planning to complete the planning workflow and generate tasks."

Step 2: Load, Parse, and Validate Tasks

Delegate to the task-manager agent with:

  • Feature name: [feature-dir]
  • Operation: parse

If error (TASKS.json not found or empty): Show the error message from task-manager and stop.

If successful: Use the task map and statistics from the response.

Next, validate the task structure by delegating to task-manager with:

  • Feature name: [feature-dir]
  • Operation: validate

Read the full file on GitHub · 383 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. yesterday First seen · 383 lines · 13 tokens per session scan A 8855ad5a7110

Subscribe to this mod's changes

implement-task is a command published in the GitHub repository jsegov/shipspec-claude-code-plugin (20 stars, last pushed 7mo ago), licensed MIT. It adds 13 tokens to every session and 3,438 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.