From 4c69e6120a2c0a630272e845cda2112724c4be7b Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Fri, 17 Jul 2026 00:49:48 +0000 Subject: [PATCH] fix(skill): disclose retired skill cleanup --- scripts/verify-package.mjs | 5 ++++- src/application/SetupPlan.ts | 2 +- tests/setup.test.ts | 4 ++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/scripts/verify-package.mjs b/scripts/verify-package.mjs index 3974c7c05..13869b7a7 100644 --- a/scripts/verify-package.mjs +++ b/scripts/verify-package.mjs @@ -786,7 +786,10 @@ try { plannedExecution.status !== 1 || planned.appliedActions.length !== 0 || !planned.plannedActions.some(({ kind }) => kind === "configure_client") || - !planned.plannedActions.some(({ kind }) => kind === "install_skill") || + !planned.plannedActions.some( + ({ kind, detail }) => + kind === "install_skill" && detail.includes("back up its SKILL.md"), + ) || plannedClaudeConfig !== '{"existing":true}\n' || plannedCodexConfig !== 'model = "gpt-5"\n' || plannedCursorConfig !== '{"existing":true}\n' || diff --git a/src/application/SetupPlan.ts b/src/application/SetupPlan.ts index 7a16ff908..a81aac2c5 100644 --- a/src/application/SetupPlan.ts +++ b/src/application/SetupPlan.ts @@ -45,7 +45,7 @@ export const setupPlan = ( kind: "install_skill" as const, target: `~/.agents/skills/${PRODUCT_IDENTITY.skillName}/SKILL.md`, detail: - "Install or update the bundled REA reverse-engineering skill.", + "Install or update the bundled REA reverse-engineering skill. If the retired rea-analysis skill exists, back up its SKILL.md beside the retired path, then remove that legacy entry.", external: false, }, ] diff --git a/tests/setup.test.ts b/tests/setup.test.ts index d686cfd6c..416138666 100644 --- a/tests/setup.test.ts +++ b/tests/setup.test.ts @@ -152,6 +152,10 @@ describe("setup workflow", () => { "configure_client", "install_skill", ]); + expect( + result.plannedActions.find(({ kind }) => kind === "install_skill") + ?.detail, + ).toContain("back up its SKILL.md"); expect(host.hopperInstalls).toBe(0); expect(host.configurations).toBe(0); expect(result.remediation).toBe(