From e65b4f35e6b1623f6fdb098efc0060e4fec829b6 Mon Sep 17 00:00:00 2001 From: Codeman maintainer Date: Tue, 13 Oct 2026 17:44:07 +0200 Subject: [PATCH] fix(cli): skill uninstall --case skips a symlinked skills dir instead of exiting 1 (#613 merge-time fix) A shared-skills layout (`.agents/skills -> ../.claude/skills`) made `codeman skill uninstall --case` report the symlink refusal as a failure and exit 1 on every run, even with nothing left to remove. The refusal itself is kept (nothing is written through the link); it is now reported as a skipped directory. Co-Authored-By: Claude Opus 5.5 (1M context) --- src/cli.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/cli.ts b/src/cli.ts index 4bf96f4e..a640e401 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -298,6 +298,12 @@ skillCmd const target = resolveSkillTarget({ case: options.case, skillDir }); const result = await removeAgentSkillFrom(target); if (result === 'absent') continue; + if (result === 'symlink') { + // A shared-skills layout (`.agents/skills -> ../.claude/skills`) is deliberate: + // skip it rather than fail the whole sweep. + console.log(palette.warn(`- Skipped ${target}: it (or its parent) is a symlink, so it was not touched`)); + continue; + } removedAny = true; const message = describeSkillResult(result, target); if (message.ok) console.log(palette.ok(`✓ ${message.text}`));