fix: clarify configure-ecc skill copy roots

This commit is contained in:
Affaan Mustafa
2026-04-30 02:33:42 -04:00
committed by Affaan Mustafa
parent e1d6d853f7
commit 803abe52a5
4 changed files with 101 additions and 6 deletions

View File

@@ -195,9 +195,20 @@ For each selected category, print the full list of skills below and ask the user
### 2d: Execute Installation
For each selected skill, copy the entire skill directory:
For each selected skill, copy the entire skill directory from the correct source root:
```bash
cp -r $ECC_ROOT/skills/<skill-name> $TARGET/skills/
# Core skills selected from Step 2a live under .agents/skills/
cp -R "$ECC_ROOT/.agents/skills/<skill-name>" "$TARGET/skills/"
# Niche skills selected from Step 2b/2c live under skills/
cp -R "$ECC_ROOT/skills/<skill-name>" "$TARGET/skills/"
```
When iterating over globbed source directories, never pass a trailing-slash source directly to `cp`. Use the directory path as the destination name explicitly:
```bash
cp -R "${src%/}" "$TARGET/skills/$(basename "${src%/}")"
```
Note: `continuous-learning` and `continuous-learning-v2` have extra files (config.json, hooks, scripts) — ensure the entire directory is copied, not just SKILL.md.