mag123c/toktrack
Ultra-fast token & cost tracker for LLM Token Usage (e.g. Claude Code)
ARCHETYPE
Automator
Hooks on every lifecycle event: format, lint, notify, log.
Copy this rig
# review before running: this installs third-party code
$ npx degit mag123c/toktrack/.claude ./rig-toktrack # inspect, then merge into .claude/ MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.
$ npx degit mag123c/toktrack/.claude/skills/clarify .claude/skills/clarify $ npx degit mag123c/toktrack/.claude/skills/implement .claude/skills/implement $ npx degit mag123c/toktrack/.claude/skills/next .claude/skills/next $ npx degit mag123c/toktrack/.claude/skills/review .claude/skills/review $ npx degit mag123c/toktrack/.claude/skills/verify .claude/skills/verify $ npx degit mag123c/toktrack/.claude/skills/wrap .claude/skills/wrap
Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.
{
"hooks": {
"PreToolUse": [
{
"matcher": "Skill",
"hooks": [
{
"type": "command",
"command": "bash \"$CLAUDE_PROJECT_DIR/.claude/hooks/implement-detector.sh\""
},
{
"type": "command",
"command": "bash \"$CLAUDE_PROJECT_DIR/.claude/hooks/skill-chain-detector.sh\""
}
]
},
{
"matcher": "Edit|Write",
"hooks": [
{
"type": "command",
"command": "bash \"$CLAUDE_PROJECT_DIR/.claude/hooks/implement-guard.sh\""
}
]
}
]
}
} Skills (6)
Hooks (5)
| event | matcher | runs |
|---|---|---|
| PreToolUse | Skill | bash "$CLAUDE_PROJECT_DIR/.claude/hooks/implement-detector.sh" |
| PreToolUse | Skill | bash "$CLAUDE_PROJECT_DIR/.claude/hooks/skill-chain-detector.sh" |
| PreToolUse | Edit|Write | bash "$CLAUDE_PROJECT_DIR/.claude/hooks/implement-guard.sh" |
| UserPromptSubmit | * | bash "$CLAUDE_PROJECT_DIR/.claude/hooks/clarify-first.sh" |
| UserPromptSubmit | * | bash "$CLAUDE_PROJECT_DIR/.claude/hooks/skill-chain-enforcer.sh" |
Similar rigs
Dcastroro/sdd-starter
Local-first Spec-Driven Development template and Claude Code plugin: traceable requirements, scoped implementation workflows and deterministic validation.
Pragmatist 591 tok · · Q3
OleksandrMrn/velspek
Spec-driven development kit for AI coding agents: rules, approval gates, skills and templates for Claude Code and Codex
Pragmatist 5.3k tok · · Q10
nicolinx/flutter-ai-workflow
Claude Code plugin with skills for working on Flutter apps: explore, plan, verify, review.
Pragmatist 3.6k tok · · Q8
OleksandrMrn/spec-driven-dev-kit
Spec-driven development kit for AI coding agents: rules, approval gates, skills and templates for Claude Code and Codex
Pragmatist 5.1k tok · · Q41