From 0c2a542d203e89cd65918f8da8701d1ae58d12a1 Mon Sep 17 00:00:00 2001 From: huangpz6 Date: Wed, 4 Nov 2026 21:54:03 +0800 Subject: [PATCH] fix(skills-health): make the one-off checkout fallback explicit (#3865) commands-core copies scripts/lib into the Claude config root, so it does not repair a marketplace plugin installation. Lead with a direct dashboard run from a full checkout and keep commands-core as the non-marketplace reinstall path. Co-Authored-By: TRAE --- scripts/skills-health.js | 3 ++- tests/scripts/skills-health-missing-lib.test.js | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/skills-health.js b/scripts/skills-health.js index a70884d63..aefbe82ee 100644 --- a/scripts/skills-health.js +++ b/scripts/skills-health.js @@ -15,7 +15,8 @@ try { if (error && error.code === 'MODULE_NOT_FOUND' && missing && /skill-evolution/.test(error.message)) { console.error( `skills-health could not load ${missing}; this installation is missing part of scripts/lib/skill-evolution.\n` + - 'Run this from a full ECC checkout: node scripts/install-apply.js --target --modules commands-core' + 'For a one-off report, run from a full ECC checkout: node scripts/skills-health.js --dashboard. ' + + 'For a non-marketplace install, select commands-core: node scripts/install-apply.js --target --modules commands-core.' ); process.exit(1); } diff --git a/tests/scripts/skills-health-missing-lib.test.js b/tests/scripts/skills-health-missing-lib.test.js index bfd20646a..578a190fa 100644 --- a/tests/scripts/skills-health-missing-lib.test.js +++ b/tests/scripts/skills-health-missing-lib.test.js @@ -38,6 +38,7 @@ if ( }); assert.strictEqual(result.status, 1); assert.match(result.stderr, /could not load \.\/lib\/skill-evolution\/health/); + assert.match(result.stderr, /skills-health\.js --dashboard/); assert.match(result.stderr, /--modules commands-core/); assert.match(result.stderr, /full ECC checkout/); assert.doesNotMatch(result.stderr, /Cannot find module/); @@ -67,6 +68,7 @@ if ( }); assert.strictEqual(result.status, 1); assert.match(result.stderr, /could not load \.\.\/utils/); + assert.match(result.stderr, /skills-health\.js --dashboard/); assert.match(result.stderr, /--modules commands-core/); assert.doesNotMatch(result.stderr, /Cannot find module/); })