toktrack: Skill for Claude Code

.claude/skills/implement/SKILL.md

implement is a skill for Claude Code from mag123c/toktrack. It costs 18 tokens per session (395 once invoked), scanned A, original, MIT.

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 Code

Written for Claude Code: installed under .claude/.

This is mag123c/toktrack's own configuration. It tells Claude Code how to work on toktrack itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything toktrack configures →

Reuse

Borrowing it

Nothing to install: this file belongs to mag123c/toktrack. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/mag123c/toktrack/main/.claude/skills/implement/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/mag123c/toktrack

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for implement

README.md
[![agentmods](https://agentmods.dev/badge/skills/mag123c/toktrack/implement/github.svg)](https://agentmods.dev/skills/mag123c/toktrack/implement)
Your own site
<a href="https://agentmods.dev/skills/mag123c/toktrack/implement"><img src="https://agentmods.dev/badge/skills/mag123c/toktrack/implement/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for implement

Your own site · 80×15
<a href="https://agentmods.dev/skills/mag123c/toktrack/implement"><img src="https://agentmods.dev/badge/skills/mag123c/toktrack/implement.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00018 $0.00395
Opus 5.5 $0.00007 $0.00158
Sonnet 5.5 $0.00004 $0.00079
Haiku 4.5 $0.00002 $0.00040

Measured 1mo ago against content hash 6622adc37d53, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 (196 stars, last pushed yesterday), licensed MIT. It adds 18 tokens to every session and 395 once invoked, about $0.0001 per session on Opus 5.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

agent-test-generator

Specialist subagent: Generates comprehensive test suites using TDD patterns. Use only when the user explicitly asks for tests, improved coverage, or test-first development.

travisjneuman/.claude · 36 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

accessibility-a11y

WCAG 2.2 compliance, ARIA patterns, keyboard navigation, screen readers, automated testing.

travisjneuman/.claude · 26 tokens

plan-pipeline-execute

Execute a validated plan: worktree isolation, TDD scaffolding, level-based parallel agents, quality gate with smoke test, PR creation and merge. Handles everything through to merged PR.

FlorianBruniaux/claude-code-ultimate-guide · 43 tokens

agent-e2e-test-specialist

Specialist subagent: Playwright, Cypress, and visual regression testing specialist. Use only when the user explicitly asks for E2E tests, browser test automation, or visual regression testing. Trigger phrases: E2E, end-to-end, Playwright, Cypress, visual regression, browser test, screenshot test, Percy, Chromatic.

travisjneuman/.claude · 76 tokens

refactor-ops

Safe refactoring patterns - extract, rename, restructure with test-driven methodology and dead code detection. Use for: refactor, refactoring, extract function, extract component, rename, move file, restructure, dead code, unused imports, code smell, duplicate code, long function, god object, feature envy, DRY…

0xDarkMatter/claude-mods · 95 tokens