This commit is contained in:
Fuxing Loh 2026-03-19 12:37:09 +00:00
parent bc8f45a627
commit 6a9257715b
1 changed files with 3 additions and 5 deletions

View File

@ -6,12 +6,10 @@ SKILL_DIR="$HOME/.claude/skills"
mkdir -p "$SKILL_DIR" mkdir -p "$SKILL_DIR"
project_name="$(basename "$REPO_ROOT")" target="$SKILL_DIR"
target="$SKILL_DIR/$project_name"
# Ensure target exists, then copy repo contents over it without deleting extras. # Copy repo contents into ~/.claude/skills without deleting existing files.
mkdir -p "$target"
cp -a "$REPO_ROOT"/. "$target"/ cp -a "$REPO_ROOT"/. "$target"/
echo "Skill directory: $SKILL_DIR" echo "Skill directory: $SKILL_DIR"
echo "Copied project: $project_name -> $target" echo "Copied project root into: $target"