Rust TDD Workflow
rtk-ai/rtk
Enforces red-green-refactor for Rust work, with idiomatic test patterns, a naming convention and a pre-commit gate of cargo fmt, clippy and test.
TDD implementation (RED→GREEN→REFACTOR) → verify → review. An agent skill from mag123c/toktrack.
$ npx skills add mag123c/toktrack --skill implement -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install mag123c/toktrack implement --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/mag123c/toktrack.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/implement .claude/skills/implement && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "implement" agent skill from https://github.com/mag123c/toktrack/tree/main/.claude/skills/implement into .claude/skills/implement/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "implement", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/mag123c/toktrack/tree/main/.claude/skills/implementType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add mag123c/toktrack --skill implement -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install mag123c/toktrack implement --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mag123c/toktrack.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/implement .agents/skills/implement && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "implement" agent skill from https://github.com/mag123c/toktrack/tree/main/.claude/skills/implement into .agents/skills/implement/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "implement", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add mag123c/toktrack --skill implement -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install mag123c/toktrack implement --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mag123c/toktrack.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/implement .cursor/skills/implement && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "implement" agent skill from https://github.com/mag123c/toktrack/tree/main/.claude/skills/implement into .cursor/skills/implement/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "implement", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/mag123c/toktrack.git --path .claude/skills/implement--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add mag123c/toktrack --skill implement -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install mag123c/toktrack implement --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mag123c/toktrack.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/implement .gemini/skills/implement && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "implement" agent skill from https://github.com/mag123c/toktrack/tree/main/.claude/skills/implement into .gemini/skills/implement/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "implement", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install mag123c/toktrack implementInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add mag123c/toktrack --skill implement -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/mag123c/toktrack.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/implement .github/skills/implement && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "implement" agent skill from https://github.com/mag123c/toktrack/tree/main/.claude/skills/implement into .github/skills/implement/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "implement", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add mag123c/toktrack --skill implement -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install mag123c/toktrack implement --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mag123c/toktrack.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/implement .opencode/skills/implement && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "implement" agent skill from https://github.com/mag123c/toktrack/tree/main/.claude/skills/implement into .opencode/skills/implement/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "implement", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
implementTDD implementation (RED→GREEN→REFACTOR) → verify → review. An agent skill from mag123c/toktrack.
Implement is an agent skill from mag123c/toktrack. TDD implementation (RED→GREEN→REFACTOR) → verify → review
Its SKILL.md is about 350 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/gates.md`).
It sits in Testing & QA, covering Test-driven development. It works with Rust. The repository describes itself as: Ultra-fast token & cost tracker for LLM Token Usage (e.g. Claude Code). The licence is MIT.
6 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 75a86fa. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
cargomakeFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Implement loads about 353 tokens when it runs, and up to ~660 if it reads all its reference files. Until then it costs about 17 tokens; SKILL.md has 133 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from mag123c/toktrack at commit 75a86fa, republished under its MIT licence (© mag123c). 133 words, ~353 tokens.
.claude/skills/implement/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Analysis → Gate pre-run → TDD(RED→GREEN→REFACTOR) → /verify → /review → /wrapAnalysis: Review plan, identify affected modules
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 compilescargo test -- --list — verify test targets existmake check — unified fmt + clippy + test gateTDD Cycle:
Auto-call /verify: On implementation complete
Auto-call /review: On verify pass
Auto-call /wrap: On review PASS
cargo test
cargo clippy -- -D warnings
cargo fmt --check© mag123c, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file (references) in .claude/skills/implement of mag123c/toktrack.
Open the folder on GitHubat commit 75a86fa
Implement next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Implement this skillmag123c/toktrack | 193 | — | ~353 | Automated safety check: Pass | MIT | |
| Rust TDD Workflowrtk-ai/rtk | 83k | — | ~753 | Automated safety check: Notes | Apache-2.0 | |
| RTK Filter TDD in Rustrtk-ai/rtk | 83k | — | ~1.9k | Automated safety check: Notes | Apache-2.0 | |
| TDDccusage/ccusage | 19k | — | ~665 | Automated safety check: Pass | Custom licence | |
| Rust Testingkurealnum/dotfiles | 290 | 6 repos | ~2.9k | Automated safety check: Pass | None | |
| Rust Testingaffaan-m/ECC | 274k | 1 repos | ~2.5k | Automated safety check: Pass | MIT |
rtk-ai/rtk
Enforces red-green-refactor for Rust work, with idiomatic test patterns, a naming convention and a pre-commit gate of cargo fmt, clippy and test.
rtk-ai/rtk
Enforces red-green-refactor for new RTK output filters in Rust, using real captured fixtures, snapshot tests with insta and token-savings assertions.
ccusage/ccusage
Guides t-wada Red-Green-Refactor TDD for ccusage logic changes.
kurealnum/dotfiles
Rust testing patterns including unit tests, integration tests, async testing, property-based testing, mocking, and coverage.
affaan-m/ECC
Rust测试模式,包括单元测试、集成测试、异步测试、基于属性的测试、模拟和覆盖率。遵循TDD方法学. An agent skill from affaan-m/ECC.
lexler/skill-factory
Drive feature development using Outside-In TDD with Hexagonal Architecture.
mag123c/toktrack
Adaptive requirements clarification with auto-depth routing.
mag123c/toktrack
Multi-agent code review for Rust CLI/TUI. An agent skill from mag123c/toktrack.
mag123c/toktrack
Self-healing verification loop (test → clippy → fmt). An agent skill from mag123c/toktrack.
mag123c/toktrack
Session start - check progress, suggest next task. An agent skill from mag123c/toktrack.
mag123c/toktrack
Session end - document updates, commit
Works with
Categories
TDD implementation (RED→GREEN→REFACTOR) → verify → review. An agent skill from mag123c/toktrack. Implement is an agent skill from mag123c/toktrack.
Implement fits situations like: tasks that involve Test-driven development.
Run `npx skills add mag123c/toktrack --skill implement -a claude-code`. Or copy the skill folder (.claude/skills/implement in mag123c/toktrack) into .claude/skills/implement in your project. Claude Code loads it when a task matches its description.
Run `npx skills add mag123c/toktrack --skill implement -a codex`. Or copy the skill folder (.claude/skills/implement in mag123c/toktrack) into .agents/skills/implement in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mag123c/toktrack --skill implement -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/implement, .gemini/skills/implement, .github/skills/implement and .opencode/skills/implement in your project.
Going by SKILL.md and its folder, Implement needs the command-line tools its instructions call (cargo and make).
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Implement is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 353 tokens (SKILL.md is roughly 1.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 307 tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Implement: Rust TDD Workflow (rtk-ai/rtk, 83k stars), RTK Filter TDD in Rust (rtk-ai/rtk, 83k stars), TDD (ccusage/ccusage, 19k stars) and Rust Testing (kurealnum/dotfiles, 290 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
mag123c (a GitHub user) maintains it in mag123c/toktrack, which has 193 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on October 1, 2026.
Source: mag123c/toktrack on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.