dojo Skill
基于 ax 图谱的富余配额训练循环——代理用剩余的 5h/7d 计划配额窗口进行自我改进:锁定待定裁定、填写简报、回测路由类别、铸造提案、运行 worktree 实验,并起草上游 issue 报告。当用户说 \"/dojo\"、\"enter the dojo\"、\"dojo time\"、\"train overnight\"、\"burn my surplus quota\"、\"dream mode\"(旧名)或调用 /loop /dojo 时触发。要求 PATH 上有 ax(axctl)。ax 使用内嵌 DuckDB,无需数据库 daemon。不要在无关工作或用户提及别的内容时自动触发。
安装方式:把技能目录放入 ~/.claude/skills/(Claude Code)或在 claude.ai 设置中启用;也可复制右侧安装命令一键添加。
技能指令原文(SKILL.md)
ax:dojo - overnight training loop
You are entering a budget-bounded self-improvement loop. The brain is
ax dojo agenda --json; you are the thin driver. Spec:
docs/superpowers/specs/2026-06-13-ax-dojo-design.md (in the Necmttn/ax repo).
Entry
- Run
ax dojo agenda --json. If it fails with a connection error, tell the user
to run ax doctor and STOP.
- If
budget.has_surplusis false: report the envelope and STOP unless the
user re-invokes with --force (then pass --force on every lap).
- On Claude Code: enter loop mode now - invoke the
/loopskill with
/dojo as the recurring prompt (dynamic mode, self-paced). Each wakeup
re-runs this skill from the top; that is expected and correct.
On Codex (no /loop): run as ONE long turn - do not end the turn until a
stop condition below is met.
The lap
ax dojo agenda --json-> agenda.- STOP conditions (write the report, then stop):
budget.has_surplusis false- now >=
budget.deadline itemsis empty
- Otherwise: take
items[0], follow its playbook below, then go to 1.
Completed work self-clears: the item vanishes from the next agenda
because the underlying system recorded it (verdict locked, brief
consumed, proposal created). If the same item survives 2 laps untouched,
skip it and note why in the report.
Playbooks by kind
- verdict_pending -
ax improve verdictto see the suggested
verdict + checkpoint evidence; confirm with --set only when
the evidence supports it. Distinguish "pattern resolved" from "artifact
never fired" before locking no_longer_needed.
- brief_unfilled - open the
.ax/tasks/*.mdbrief, do what it says in
the target files, then run the reconciler it names (ax skills lint /
ax improve lint).
- routing_backtest - judgment-flagged routing classes: backtest the
pattern against dispatch history (ax dispatches --candidates), check
false-positive risk, then ax routing tune --apply= --days=
or reject with a written rationale in the report.
- proposal_mint -
ax improve recommend; accept the grounded ones
(ax improve accept ) so briefs exist for the next lap.
- experiment - heavy item. Work ONLY in a fresh worktree
(git worktree add .claude/worktrees/dojo- -b dojo/).
Reproduce the churn pattern, attempt the fix/hook/skill, capture evidence.
If it will not finish inside this budget: package it as a goal file
(objective + checkpoint index + gates) under docs/superpowers/goals/ so
the NEXT dojo session resumes it. Output = an improve proposal; merging
the proposal is what activates anything. NEVER merge, never touch main.
- New hooks specifically - author via @ax/hooks-sdk, then run BOTH
validators and embed their output in the proposal:
ax hooks backtest --json→ cases caught (benefit side): would-block/
would-warn rates, false-positive count, cases with evidence.
ax hooks bench --json→ per-fire p50/p95 from real bun spawns,
est fires/day from tool_call history, installed-chain budget vs --budget-ms
default 250 (cost side).
Reject the hook when daily cost (fires/day × p95) or an installed-chain budget
overrun outweighs the benefit shown by backtest. Both ledgers must appear in
the proposal; neither alone is sufficient.
- spar - only present when invoked with --spar and spendable >= 30%.
One task, one delta, scored. Concrete flow:
- Pick a landed task:
ax sessions here --days=30- note its commit sha fromax sessions nearorgit log. ax dojo spar-plan- captures the baseline (prompt + cost/turns/churn) and writes~/.ax/dojo/spar/.md; the command prints the exactgit worktree addcommand to run next.- Read the brief at
~/.ax/dojo/spar/.md; run the printedgit worktree add .claude/worktrees/dojo-spar- -b dojo/spar-command to pin the worktree at the parent SHA. - Apply exactly ONE delta in the delta section (skill on/off, hook on/off, prompt change, thinking level, or model override) - no compound changes.
- Do the task in that worktree; let it finish naturally.
ax dojo spar-score- auto-discovers the variant session from the worktree cwd; or pass--variant-session=if there are multiple sessions. Writes the receipt to~/.ax/dojo/spar/-report.md.- Append the receipt to the dojo report. Track multi-run campaigns as goal files under docs/superpowers/goals/ so the next session can resume.
- explore - free investigation, retro-meta style: follow a hunch
through ax recall / ax sessions churn, and convert anything real
into a proposal or outbox draft.
- Upstream findings (any lap) - an ax bug or improvement found while
training (items of kind upstream_draft are handled by this same rule):
run ax dojo draft --title=