implement

A controlled workflow for carrying out an approved development plan one task at a time. TDD, or test-driven development, means writing a failing test before the production code that makes it pass.

In plain words
What is it for?
Use it to build the next task on an active track, check status or test coverage, or revert work when explicitly needed.
Why use it?
It adds checks around implementation so tasks are tested, verified, and tracked instead of being marked complete by assumption.

Skill for Claude CodeCodex

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 skills/drafthq/draft/implement
Any agent
npx skills add drafthq/draft --skill implement
Clone the repo
git clone --depth 1 https://github.com/drafthq/draft

Made for: Claude Code, Codex.

Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,900 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.00043 $0.07900
Opus 5 $0.00022 $0.03950
Sonnet 5 $0.00009 $0.01580
Haiku 4.5 $0.00004 $0.00790

Measured yesterday against content hash e6be3eb3eb51, 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 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.

skills/implement/SKILL.md · 853 lines

How it starts

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

Implement Track

Implement tasks from the active track's plan following the TDD workflow.

/draft:implement is the canonical implementation parent.

It owns the common execution loop and absorbs three adjacent commands when appropriate:

  • /draft:status
  • /draft:coverage
  • /draft:revert

Red Flags - STOP if you're

  • Implementing without an approved spec and plan
  • Skipping TDD cycle when workflow.md has TDD enabled
  • Marking a task [x] without fresh verification evidence
  • Batching multiple tasks into a single commit
  • Proceeding past a phase boundary without running the three-stage review
  • Writing production code before a failing test (when TDD is strict)
  • Assuming a test passes without actually running it

Verify before you mark complete. One task, one commit.

Constraints

Draft skills are designed for single-agent, single-track execution. Do not run multiple Draft commands concurrently on the same track.


Parent Contract

/draft:implement owns four execution jobs:

  1. Build the next task → baseline /draft:implement
  2. Show current execution state/draft:status
  3. Measure implementation completeness via coverage/draft:coverage
  4. Undo implementation safely/draft:revert

Most developers should only need /draft:implement in the common path.

Explicit Child Modes

If the user invokes explicit child intent, route directly:

  • /draft:implement status → follow /draft:status
  • /draft:implement coverage → follow /draft:coverage
  • /draft:implement revert → follow /draft:revert

Examples:

  • /draft:implement status
  • /draft:implement coverage src/auth
  • /draft:implement revert phase 2

Explicit child mode always wins over the baseline implementation workflow.

Bare /draft:implement

Without an explicit child mode, /draft:implement should:

  • continue the active track's next task
  • surface blocked-task conditions immediately
  • run review and verification gates at phase boundaries
  • suggest or attach coverage only when the implementation state justifies it

Read the full file on GitHub · 853 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 · 853 lines · 43 tokens per session scan A e6be3eb3eb51

Subscribe to this mod's changes

implement is a skill published in the GitHub repository drafthq/draft (40 stars, last pushed 13d ago), licensed MIT. It adds 43 tokens to every session and 7,900 once invoked, about $0.0002 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.