Add sync-skills.sh script

This commit is contained in:
lyn
2026-03-21 14:48:02 +00:00
parent ac457349af
commit 95d22aa42d

19
sync-skills.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
# Sync all skill folders from ClawSkills to ~/.openclaw/skills
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
SKILLS_DIR="$HOME/.openclaw/skills"
mkdir -p "$SKILLS_DIR"
for folder in "$SCRIPT_DIR"/*/; do
folder_name=$(basename "$folder")
# Skip this script itself
if [[ "$folder_name" == "sync-skills.sh" ]]; then
continue
fi
echo "Copying $folder_name to $SKILLS_DIR..."
cp -rf "$folder" "$SKILLS_DIR/"
done
echo "Done!"