Skip to content

armgit / rea

Public Imported from GitHub
0

Reverse engineer anything with agents, from app behavior down to native binaries.

fix(skill): disclose retired skill cleanup

morluto4c69e6120a2c
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(