Files
myagents/.claude/skills/sync-global.sh
T
Zhengshou Lai b98d35c387 feat: add mybot CLI with update, chat, and Claude project config
- Click entrypoint: mybot update (make install / pip -e), mybot chat (claude in repo)
- Optional --dangerously-skip-permissions for Claude Code
- Makefile install; hatchling package layout
- .gitignore: venv, build artifacts, workspace (local symlinks)

Made-with: Cursor
2026-04-06 13:11:10 +08:00

20 lines
442 B
Bash

#!/bin/bash
# 同步 npx global skills 到 Claude Code
SOURCE="$HOME/.agents/skills"
TARGET="$HOME/.claude/skills"
mkdir -p "$TARGET"
for skill in "$SOURCE"/*; do
name=$(basename "$skill")
if [ -d "$skill" ] && [ -f "$skill/SKILL.md" ]; then
if [ ! -L "$TARGET/$name" ]; then
ln -sf "$skill" "$TARGET/$name"
echo "Linked: $name"
fi
fi
done
echo "Sync complete. Run /skills to see all."