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.
npx agentmods add commands/johnnywuj81/tokenknows/skillgit clone --depth 1 https://github.com/johnnywuj81/tokenknowsWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00037 | $0.00275 |
| Opus 5 | $0.00018 | $0.00138 |
| Sonnet 5 | $0.00007 | $0.00055 |
| Haiku 4.5 | $0.00004 | $0.00028 |
Grade A, and why
skill 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 2d 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.
What it actually says
按 tokenknows:distill skill 的标准流程,把当前 session 蒸馏成 agent_skill:
适用场景:
- session 中 Claude 解决了一个 可重复 的问题 (e.g. "如何修 React Flow MiniMap 白板")
- 用户想把这次的解决过程沉淀成下次自动调用的 skill
蒸馏出来的 SKILL.md 结构:
- frontmatter: description (含 trigger 关键词)
- 适用场景
- 核心原则
- 关键步骤
- 好例子 / 坏例子
- 相关 skill
- session 必须有明确的 "可复用工作流"; 如果只是闲聊 / 一次性问题, 拒绝并建议用 weekly_report
submit_session_eventsdistill_document(document_type="agent_skill")- 展示蒸馏出的 SKILL.md
- 询问用户是否要
cp到~/.claude/skills/<name>/SKILL.md立即生效
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.
- 2d ago First seen · 24 lines · 37 tokens per session scan A 958471e8c222
skill is a command published in the GitHub repository johnnywuj81/tokenknows (4 stars, last pushed 14d ago), licensed MIT. It adds 37 tokens to every session and 275 once invoked, about $0.0002 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-31.
Other commands, from other repositories
setup
Set up Duel Agents routing with your Duel API key.
migrate
Command "migrate" from chohra-med/expo_boilerplate, covering invocation, steps and rule.
harness-gate
Gate the agent setup on corpus-validated rules (gating tier). Fast, no LLM, exits nonzero on any finding. Suitable for CI and pre-commit.
brownfield-map
Run a complete brownfield analysis on the codebase and generate MASTER.md, summaries, risk scores, and all derived analytics.
delegate
Delegate a coding task to the Cursor CLI agent (Composer by default).
heal-skill
Fix incorrect SKILL.md files when a skill has wrong instructions or outdated API references.