implement · mag123c — Claude Code skill: what it does, how to install
Guides code changes through a strict TDD cycle and triggers verification commands automatically inside Claude Code.
npx skills add mag123c/toktrack --skill implement -a claude-codeWhat implement does
The skill structures development around test-driven development. It begins with an analysis phase to check the plan and spot affected modules. Before any code is written, it executes pre-run gates and probes. If an assumption fails a gate probe, the agent halts immediately and reports the failure.
Once gates pass, development follows the RED, GREEN, and REFACTOR stages. It requires failing tests first, followed by minimal code to pass them and cleanup. Built-in command sequences for Rust include cargo check, cargo test -- --list, make check, cargo clippy -- -D warnings, and cargo fmt --check.
For context, it requires .claude/ai-context/architecture.md and .claude/ai-context/conventions.md. After implementation finishes, it automatically invokes /verify, then /review, and finally /wrap once reviews pass.
What it helps with
- Enforce test-first development through RED, GREEN, and REFACTOR cycles
- Halt execution when pre-run gate probes fail
- Verify Rust code using cargo clippy, fmt, and cargo test
- Chain completed tasks into verify, review, and wrap steps
Example prompts for the agent
- Implement the tokenization module plan using TDD
- Execute the feature phase with pre-run gates and tests
- Complete the planned task and hand off to verify and review
How to install implement
1Skills CLI (Vercel)
npx skills add mag123c/toktrack --skill implement -a claude-code2Manually: put the files in place
~/.claude/skills/implement/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/implement/
1Skills CLI (Vercel)
npx skills add mag123c/toktrack --skill implement -a codex2Manually: put the files in place
.agents/skills/implement/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add mag123c/toktrack --skill implement -a cursor2Manually: put the files in place
.cursor/skills/implement/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install mag123c/toktrack implement2Manually: put the files in place
.github/skills/implement/SKILL.md1Skills CLI (Vercel)
npx skills add mag123c/toktrack --skill implement -a gemini-cli2Platform CLI
gemini skills install https://github.com/mag123c/toktrack --path .claude/skills/implementManually: put the files in place
.devin/skills/implement/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add mag123c/toktrack --skill implement -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about implement
How to install implement in Claude Code?
Run npx skills add mag123c/toktrack --skill implement -a claude-code.
What does the implement skill do?
It enforces test-first implementation, runs plan probes, and hands off completed code to /verify, /review, and /wrap.
What context files does this skill require?
It requires .claude/ai-context/architecture.md and .claude/ai-context/conventions.md.
Source text
SKILL.md · MIT
--- name: implement description: TDD implementation (RED→GREEN→REFACTOR) → verify → review required_context: - .claude/ai-context/architecture.md - .claude/ai-context/conventions.md --- # 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 ```bash 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
© mag123c · MIT · mag123c/toktrack
Similar skills
All skills for Testing and QA →implement by other authors comes first.