Doctor
Tokenmon install diagnostics. Verify dependencies, StatusLine, CLI, data, assets, sprite rendering, multi-gen migration. Korean: doctor, 진단, 설치 확인, 안 돼요
от ThunderConch★ 26 звёзд на GitHub
Установить Doctor в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Tokenmon Doctor
Diagnose the tokenmon plugin installation and find any issues. Auto-fix when possible.
Test Flow
Run each step in order using the Bash tool. Record PASS/FAIL for each step.
Step 1: Plugin Cache
MKT_ROOT=$(ls -d ~/.claude/plugins/marketplaces/tkm/ 2>/dev/null | head -1)
CACHE_ROOT=$(ls -d ~/.claude/plugins/cache/tkm/tkm/*/ 2>/dev/null | sort -V | tail -1)
PLUGIN_ROOT="${MKT_ROOT:-$CACHE_ROOT}"
if [ -z "$PLUGIN_ROOT" ]; then
echo "FAIL: plugin cache not found. Run '/plugin install tkm@tkm' first."
exit 1
fi
echo "Plugin root: $PLUGIN_ROOT"
cat "$PLUGIN_ROOT/package.json" | node -e "const d=JSON.parse(require('fs').readFileSync(0,'utf-8')); console.log('Version:', d.version)"
echo "PASS: plugin cache exists"
Step 2: npm install
MKT_ROOT=$(ls -d ~/.claude/plugins/marketplaces/tkm/ 2>/dev/null | head -1)
CACHE_ROOT=$(ls -d ~/.claude/plugins/cache/tkm/tkm/*/ 2>/dev/null | sort -V | tail -1)
PLUGIN_ROOT="${MKT_ROOT:-$CACHE_ROOT}"
cd "$PLUGIN_ROOT" && npm install 2>&1 | tail -3
echo "---"
[ -d "$PLUGIN_ROOT/node_modules/.bin" ] && "$PLUGIN_ROOT/bin/tsx-resolve.sh" --version > /dev/null 2>&1 && echo "PASS: npm install + tsx" || echo "FAIL: tsx not found — run: npm install --prefix $PLUGIN_ROOT"
If FAIL: auto-fix by running cd "$PLUGIN_ROOT" && npm install.
Step 3: Multi-Generation Migration
MKT_ROOT=$(ls -d ~/.claude/plugins/marketplaces/tkm/ 2>/dev/null | head -1)
CACHE_ROOT=$(ls -d ~/.claude/plugins/cache/tkm/tkm/*/ 2>/dev/null | sort -V | tail -1)
PLUGIN_ROOT="${MKT_ROOT:-$CACHE_ROOT}"
node -e "
const fs = require('fs');
const home = process.env.HOME || require('os').homedir();
const dataDir = (process.env.CLAUDE_CONFIG_DIR || home + '/.claude') + '/tokenmon';
const results = [];
// 3a: global-config.json
const globalCfg = dataDir + '/global-config.json';
if (fs.existsSync(globalCfg)) {
const gc = JSON.parse(fs.readFileSync(globalCfg, 'utf-8'));
results.push('PASS: global-config.json (active: ' + gc.active_generation + ', lang: ' + gc.language + ')');
} else {
results.push('FAIL: global-config.json missing');
}
// 3b: per-gen directories
const gen4State = dataDir + '/gen4/state.json';
const gen4Config = dataDir + '/gen4/config.json';
const rootState = dataDir + '/state.json';
const rootConfig = dataDir + '/config.json';
if (fs.existsSync(gen4State) || fs.existsSync(gen4Config)) {
results.push('PASS: gen4/ data directory exists');
} else if (fs.existsSync(rootState) || fs.existsSync(rootConfig)) {
results.push('FAIL: legacy root files need migration to gen4/');
} else {
results.push('INFO: no save data yet (fresh install)');
}
// 3c: party size cap
if (fs.existsSync(gen4Config)) {
const cfg = JSON.parse(fs.readFileSync(gen4Config, 'utf-8'));
if (cfg.max_party_size > 6) {
results.push('FAIL: max_party_size=' + cfg.max_party_size + ' exceeds cap of 6');
} else {
results.push('PASS: max_party_size=' + (cfg.max_party_size || 'default'));
}
if (cfg.party && cfg.party.length > (cfg.max_party_size || 6)) {
results.push('FAIL: party has ' + cfg.party.length + ' members but max is ' + (cfg.max_party_size || 6));
}
} else if (fs.existsSync(rootConfig)) {
const cfg = JSON.parse(fs.readFileSync(rootConfig, 'utf-8'));
if (cfg.max_party_size > 6) {
results.push('FAIL: max_party_size=' + cfg.max_party_size + ' exceeds cap of 6');
}
}
// 3d: gen data directories in plugin
const genJson = '$PLUGIN_ROOT' + '/data/generations.json';
if (fs.existsSync(genJson)) {
const gens = JSON.parse(fs.readFileSync(genJson, 'utf-8'));
const genIds = Object.keys(gens.generations);
results.push('PASS: generations.json (' + genIds.join(', ') + ')');
for (const gid of genIds) {
const genDir = '$PLUGIN_ROOT' + '/data/' + gid;
if (fs.existsSync(genDir + '/pokemon.json')) {
const pdb = JSON.parse(fs.readFileSync(genDir + '/pokemon.json', 'utf-8'));
results.push('PASS: ' + gid + '/pokemon.json (' + Object.keys(pdb.pokemon).length + ' species)');
} else {
results.push('FAIL: ' + gid + '/pokemon.json missing');
}
}
} else {
results.push('FAIL: generations.json missing');
}
results.forEach(r => console.log(r));
"
If any FAIL found in migration checks, auto-fix by running postinstall:
"$PLUGIN_ROOT/bin/tsx-resolve.sh" "$PLUGIN_ROOT/src/setup/postinstall.ts"
Step 4: StatusLine Integration
MKT_ROOT=$(ls -d ~/.claude/plugins/marketplaces/tkm/ 2>/dev/null | head -1)
CACHE_ROOT=$(ls -d ~/.claude/plugins/cache/tkm/tkm/*/ 2>/dev/null | sort -V | tail -1)
PLUGIN_ROOT="${MKT_ROOT:-$CACHE_ROOT}"
"$PLUGIN_ROOT/bin/tsx-resolve.sh" "$PLUGIN_ROOT/src/setup/setup-statusline.ts" 2>&1
echo "---"
node -e "
const d = JSON.parse(require('fs').readFileSync(process.env.HOME + '/.claude/settings.json', 'utf-8'));
console.log(d.statusLine ? 'PASS: statusLine configured' : 'FAIL: statusLine missing');
"
Step 5: CLI Command Verification
MKT_ROOT=$(ls -d ~/.claude/
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Doctor?
Tokenmon install diagnostics. Verify dependencies, StatusLine, CLI, data, assets, sprite rendering, multi-gen migration. Korean: doctor, 진단, 설치 확인, 안 돼요
Как установить скилл Doctor?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Doctor запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…