Skip to content

The design language that makes your AI harness better at design.

JavaScript

fix(cli): pass --copy to npx skills add to avoid symlinking provider dirs (#148)

Abdul Wahab1e8356fa2591
diff --git a/cli/bin/commands/skills.mjs b/cli/bin/commands/skills.mjs
index e1e5782bc..4df17e98d 100644
--- a/cli/bin/commands/skills.mjs
+++ b/cli/bin/commands/skills.mjs
@@ -336,7 +336,12 @@ async function install(flags) {
console.log('Installing impeccable skills via npx skills...\n');
try {
- execSync(`npx skills add pbakaus/impeccable${yes ? ' -y' : ''}`, { stdio: 'inherit' });
+ // --copy forces npx skills to install each provider's variant separately
+ // instead of symlinking .claude/skills/ to .agents/skills/. The two
+ // directories have meaningfully different per-provider content (frontmatter,
+ // command prefix, paths), and the default symlink also fails silently when
+ // .claude/ doesn't exist yet or on Windows without elevated privileges (#140).
+ execSync(`npx skills add pbakaus/impeccable --copy${yes ? ' -y' : ''}`, { stdio: 'inherit' });
} catch (e) {
process.exit(e.status ?? 1);
}