/tkm:test-evolvefrom tkm
Dev-only test harness for the evolution AskUserQuestion flow. Backs up state, seeds a scenario, then auto-verifies and auto-restores after the user completes the evolution prompt manually.
Ships in tkm. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Dev-only test harness for the evolution AskUserQuestion flow. No tmux, no spawning — the user triggers the evolution prompt manually in this live session. Verify and restore run automatically once the evolution cycle completes; the user only has to pick the scenario and click through the AskUserQuestion UI.
P="${CLAUDE_PLUGIN_ROOT:-$(ls -d ~/.claude/plugins/marketplaces/tkm 2>/dev/null || ls -d ~/.claude/plugins/cache/tkm/tkm/*/ 2>/dev/null | sort -V | tail -1)}"
--list → "$P/bin/tsx-resolve.sh" "$P/src/cli/test-evolve.ts" --list, show output, stop.--restore → same, --restore. Emergency cleanup when an earlier cycle did not auto-restore (e.g. the session was killed mid-test).--help → same, --help.--verify is present in the CLI but should not be invoked directly by users; it is called automatically as part of the lifecycle below.$ARGUMENTS is a scenario name)Run: "$P/bin/tsx-resolve.sh" "$P/src/cli/test-evolve.ts" --setup ${ARGUMENTS}
Show the setup output verbatim.
Tell the user, verbatim:
Party seeded for ${ARGUMENTS}. Send any short message to trigger the Stop-hook evolution prompt. After you click an option (or
Refuse), I'll auto-verify and auto-restore.
Stop the turn here. Do not pre-run verify or restore.
When the user sends any message after setup, the Stop hook emits {"decision":"block", "reason": ...} and Claude Code feeds the block's reason field back as the next turn's instruction. Within that same turn you MUST complete the entire cycle below without stopping early — do not wait for another user turn between steps, do not acknowledge and stop before the cycle finishes.
In order, without pausing:
AskUserQuestion exactly as the block reason directs (one subquestion per pokemon; question text copied verbatim; up to 4 buttons with the 3-eligible-plus-Refuse rule; remaining targets listed inline)."$P/bin/tsx-resolve.sh" "$P/src/cli/tokenmon.ts" evolve <pokemon> <target> in a single Bash call.Refuse button or Other containing refuse/no/cancel/거부 → skip the evolve call.All evolution targets list; if it matches, run evolve with the resolved target; if it does not match, reply with a short "I didn't recognize that" and re-invoke the same AskUserQuestion (max two re-prompts, then treat as Refuse)."$P/bin/tsx-resolve.sh" "$P/src/cli/test-evolve.ts" --verify"$P/bin/tsx-resolve.sh" "$P/src/cli/test-evolve.ts" --restoreCritical: --restore must run even when --verify reports FAIL. The user's real state/config/hooks.json only become safe again after the restore completes.
| Command | Behavior |
|---|---|
/tkm:test-evolve branch-eevee | Setup → user triggers → auto verify + auto restore |
/tkm:test-evolve --list | List all 6 scenarios |
/tkm:test-evolve --restore | Emergency restore (only needed if auto-restore was skipped) |
src/test-scenarios/*.json)branch-eevee — full 8-way branch, 3 eligible via stones + 2 via friendship; exercises the overflow rulesingle-charmander — single-chain, expect Charmeleonmulti-3 — 3 pokemon ready, batch in one AskUserQuestionoverflow-5 — 5 pokemon ready, first 4 this turn, 5th deferredrefuse-persist — user refuses, verify evolution_prompt_shown is setaccept-clear-reprompt — accept → flag cleared on the new pokemon keyWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
13 skills in this plugin
/callCall Your PokémonCall a Pokémon by name and it reacts based on bond (EV). Korean: 불러, 불러줘, 야, 이리와, 포켓몬 이름, 반응, 파이숭이야, 불꽃숭이야/doctorTokenmon DoctorTokenmon install diagnostics. Verify dependencies, StatusLine, CLI, data, assets, sprite rendering, multi-gen migration. Korean: doctor, 진단, 설치 확인, 안 돼요/friendly-battleExecuteTokenmon friendly battle. Real PvP turn loop against another player on the same network. Korean: 친선전, 친선 배틀, 배틀, 대전, friendly battlenpx claudepluginhub thunderconch/tkm --plugin tkmOther plugins' skills for the same job