baton-doctor

baton-doctor is a skill for Claude Code, Codex from kakadeka/Baton. It costs 65 tokens per session (1,046 once invoked), scanned A, original, Apache-2.0.

A read-only health check for Baton installations, covering versions, file consistency, required project files, Git state, and workspace ownership.

In plain words
What is it for?
Use it to diagnose Baton setup problems, compare skill copies with their canonical versions, check the project skeleton and manifest, and inspect local Git and lock status.
Why use it?
It helps explain why Baton commands may not respond and finds missing, changed, or outdated files without repairing them.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Good fit Use it to diagnose Baton setup problems, compare skill copies with their canonical versions, check the project skeleton and manifest, and inspect local Git and lock status.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kakadeka/baton/baton-doctor
Install

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.

Any agent
npx skills add kakadeka/Baton --skill baton-doctor
Clone the repo
git clone --depth 1 https://github.com/kakadeka/Baton

Made for: Claude Code, Codex.

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 baton-doctor

README.md
[![agentmods](https://agentmods.dev/badge/skills/kakadeka/baton/baton-doctor/github.svg)](https://agentmods.dev/skills/kakadeka/baton/baton-doctor)
Your own site
<a href="https://agentmods.dev/skills/kakadeka/baton/baton-doctor"><img src="https://agentmods.dev/badge/skills/kakadeka/baton/baton-doctor/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 baton-doctor

Your own site · 80×15
<a href="https://agentmods.dev/skills/kakadeka/baton/baton-doctor"><img src="https://agentmods.dev/badge/skills/kakadeka/baton/baton-doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,046 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.
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.00065 $0.01046
Opus 5 $0.00032 $0.00523
Sonnet 5 $0.00013 $0.00209
Haiku 4.5 $0.00006 $0.00105

Measured 6d ago against content hash a101a179766f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

baton-doctor 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 6d 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.

skills/baton-doctor/SKILL.md · 40 lines

How it starts

The opening of the file, as written. The whole thing — 40 lines — stays where its author put it; the contents beside it link to each section on GitHub.

baton-doctor(只读健康诊断)

检查清单

  1. 版本事实分层:先判断当前目录是否为 Baton 框架源码仓库(package.json.name=@kakadeka/baton)。若是,源码版本只取本地 package.json.version + 本地 HEAD;框架仓库的 skills/ 是 canonical 源目录,不把其中的 baton-lean-review / baton-debt 当业务项目残留。npm latest 与公开库 SHA/tag 只列为发布面证据,不得与私有源码 HEAD 混称新旧。普通业务项目看已跟踪的 .baton/config.json.baton/manifest.json、项目 Skill 与 docs/ai_memory/;不再把缺失 .baton/version.json 当故障。
  2. Skill 漂移:canonical skills/baton/SKILL.md 与三端镜像逐字节一致?项目内可用 node scripts/check-drift.mjs(有脚本时)。默认安装只有 baton + baton-doctorbaton-lean-review / baton-debt 仅框架仓保留。
  3. 项目 manifest(仅普通业务项目):.baton/manifest.json 必须存在、是可解析 JSON,且 managed 至少包含当前默认九项:.cursor/rules/baton.mdc.baton/runtime/baton-closeout.mjs.baton/runtime/baton-public-update.mjs,以及 .agents/.claude/.cursor/skills/{baton,baton-doctor}/SKILL.md 六个项目镜像。逐项读取并用 SHA256 与 manifest 比对;缺失、不可解析、缺项、文件缺失或 hash 不一致都只报告 FAIL,不删除、不修复。项目中的 baton-lean-review / baton-debt 若存在且未被 manifest 管理,报告为旧默认残留;框架源码的 canonical skills/ 目录不适用此条。
  4. 骨架完整docs/ai_memory/ 关键文件存在且含【归档分卷索引】+【修订记录】;.baton/config.json 可解析;.cursor/rules/baton.mdc 与三端 Skill 镜像存在且受 manifest 管理。核对主 Skill 含自动语义分卷与即时自动记忆规则。
  5. Git 状态:分支/HEAD/工作区干净/远端同步(git fetch 只读检查 ahead/behind;不做任何写入)。
  6. 单写入者锁git show-ref refs/baton/ownership-lock 是否存在、state.ownership 状态。
  7. 发布面(框架仓库场景):公开库 CI 最近 run、npm latest 与 tag 对齐。
  8. 凭据红线自检:最近 diff 与待提交文件扫描——报告命中清单,绝不显示命中正文
  9. Codex Windows ACL 兼容:仅当 .agents Owner 命中 CodexSandboxOffline/CodexSandbox 或关键 ACE 异常时报告 FAIL。Doctor 不改 Owner/ACE。

输出格式

## Baton doctor 报告 <时间>
- 版本:源码 vX @ <本地HEAD> / npm vZ / 公开 tag+SHA(分别报告,禁止混称)
- Skill:四份一致 / 漂移点名;默认安装=baton+doctor
- 骨架:完整 / 缺失清单
- Git:分支 / HEAD / 干净 / ahead/behind
- 锁:holding(<owner 前 8 位>) / released / 无 ref
- 发布面:CI 最近 <成功/失败> / tag 对齐
- 凭据:命中 N 处(只列文件名)/ 零命中
- Codex Windows ACL:正常 / FAIL
- 建议:<唯一下一步>

边界

  • 只读:不修改、不 commit、不 push、不抢锁。
  • 诊断结论标注证据来源(命令 → 结果);无法验证的写「未验证」,不得 PASS。
  • 修复必须回到 Baton 正常口令(更新 Baton / init);doctor 不越权执行。

Read the full file on GitHub · 40 lines

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. 6d ago Changed a101a179766f
  2. 10d ago First seen · 40 lines · 65 tokens per session scan A 741ebb814a1c

Subscribe to this mod's changes

baton-doctor is a skill published in the GitHub repository kakadeka/Baton (4 stars, last pushed 10d ago), licensed Apache-2.0. It adds 65 tokens to every session and 1,046 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

context

CONTEXT: Cognitive Order Normalized in Transformer EXtract Truncated. Cross-model context handoff via Progressive Density Layering, MLDoE expert compression, Japanese semantic density, and Negentropic Coherence Lattice validation. Creates portable carry-packets that transfer cognitive state between AI sessions. Use…

ktg-one/context · 99 tokens

diagnose

A step-by-step debugging guide for investigating bugs, regressions, and unexpected behavior in software.

Avalon-27reg/smyslokod-starter · 54 tokens

gsd-debug

Systematic debugging with persistent state across context resets.

open-gsd/gsd-core · 13 tokens

spark-engineer

Use when writing Spark jobs, debugging performance issues, or configuring cluster settings for Apache Spark applications, distributed data processing pipelines, or big data workloads. Invoke to write DataFrame transformations, optimize Spark SQL queries, implement RDD pipelines, tune shuffle operations, configure…

Jeffallan/claude-skills · 75 tokens

debugging-wizard

Parses error messages, traces execution flow through stack traces, correlates log entries to identify failure points, and applies systematic hypothesis-driven methodology to isolate and resolve bugs. Use when investigating errors, analyzing stack traces, finding root causes of unexpected behavior, troubleshooting…

Jeffallan/claude-skills · 70 tokens

gsd-ns-review

Route to the appropriate quality / review skill based on the user's intent. gsd-code-review-fix was absorbed by gsd-code-review --fix in #2790.

open-gsd/gsd-core · 16 tokens