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
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
#!/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."
|
||||
Reference in New Issue
Block a user