implement

A coding workflow for test-driven development, or TDD, where tests are written before the implementation and the code is then refined. It follows a red, green, refactor cycle and includes verification and review.

In plain words
What is it for?
Use it to implement features by writing a failing test, making it pass, cleaning up the code, and running verification and review.
Why use it?
It reduces the risk of changing code without tests and adds checks before the work is considered complete.

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

Made for: Claude Code, Codex.

Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 395 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.00018 $0.00395
Opus 5 $0.00009 $0.00198
Sonnet 5 $0.00004 $0.00079
Haiku 4.5 $0.00002 $0.00040

Measured 3d ago against content hash 6622adc37d53, 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 3d 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/skills/implement/SKILL.md · 48 lines

What it actually says

Implement

Flow

Analysis → Gate pre-run → TDD(RED→GREEN→REFACTOR) → /verify → /review → /wrap

Execution

  1. Analysis: Review plan, identify affected modules

  2. Gate pre-run (MUST — before coding) Run the PLAN's [unverified-gate: probe=…] / Phase 0 probes before RED. Fail → halt + report (don't build on a falsified assumption). Map Acceptance/DoD → RED tests; mark unverifiable as [unverified-gate] to carry to verify/wrap. Detail → references/gates.md (tag vocab: ../clarify/references/provenance.md).

    Rust-specific probes:

    • cargo check — whether it compiles
    • cargo test -- --list — verify test targets exist
    • make check — unified fmt + clippy + test gate
  3. TDD Cycle:

    • RED: Write failing test first
    • GREEN: Minimal code to pass
    • REFACTOR: Clean up (keep tests passing)
  4. Auto-call /verify: On implementation complete

  5. Auto-call /review: On verify pass

  6. Auto-call /wrap: On review PASS

Commands

cargo test
cargo clippy -- -D warnings
cargo fmt --check

Rules

  • No implementation without test
  • On verify fail → fix and retry
  • On review FAIL → fix and retry
  • Complete full chain without stopping
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3d ago First seen · 48 lines · 18 tokens per session scan A 6622adc37d53

Subscribe to this mod's changes

implement is a skill published in the GitHub repository mag123c/toktrack (187 stars, last pushed 4d ago), licensed MIT. It adds 18 tokens to every session and 395 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.

Related

Other skills, from other repositories

implement

Write the production code that makes a pre-decided set of failing tests pass, within an explicit writeset, following an explicit behavior contract. Used by /tdd Step 3 and by /swarm-dispatch workers. The caller has already decided architecture, naming, file layout, and abstraction boundaries — this skill executes that…

friedbotstudio/baseline · 98 tokens

scenario

Write executable failing tests from a recipe handed to you by the main context. Used by /tdd Step 2 and ad-hoc when a phase needs tests-first to drive implementation. Decisions about which scenarios to cover, which categories matter, and which fixtures to use are made by the caller — this skill executes that recipe…

friedbotstudio/baseline · 73 tokens

test-first

Use when implementing any feature, bugfix, or refactor that has a testable outcome. Activate for keywords like "TDD", "test-first", "red-green", "write the test first", "implement ", "fix ". Enforces the red-green-refactor discipline -- write a failing test, make it pass with the smallest change, refactor with tests…

duthaho/claudekit · 106 tokens

implement

Harmonia implement stage - red-green build against the coverage gate under the criteria gate. Use ONLY when explicitly invoked as /harmonia:implement.

foliveira/harmonia · 32 tokens

todos

This chat has a shared, live TODO plan — your tasks for the conversation, which the user also edits. Read this skill and reach for the todo tools whenever a request takes more than a couple of steps. It covers the plan model (group = task, items = its steps; loose items are the user's lane), how to work it: propose…

JetBrains/thinkrail · 127 tokens

writing-workflow-skills

Use when adding a new workflow skill to pi-thinkrail-workflow, changing an existing workflow skill's role, trigger, handoff, or structure, or checking a workflow skill against the workflow system's rules. Not for authoring general-purpose skills outside this package.

JetBrains/thinkrail · 60 tokens