Add installation instructions and one-click install script
- Add README.md with manual installation guide - Add install.sh for automated installation - Support both manual and automated workflows Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
45
install.sh
Executable file
45
install.sh
Executable file
@@ -0,0 +1,45 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Claude Code Skills 安装脚本
|
||||
# 用法: bash <(curl -s https://git.let5see.xyz/let5see/skills/raw/main/install.sh)
|
||||
|
||||
set -e
|
||||
|
||||
REPO_URL="https://git.let5see.xyz/let5see/skills.git"
|
||||
TEMP_DIR="/tmp/skills-install-$$"
|
||||
SKILLS_DIR="$HOME/.claude/skills"
|
||||
|
||||
echo "🚀 正在安装 Claude Code Skills..."
|
||||
echo ""
|
||||
|
||||
# 创建临时目录
|
||||
echo "📦 下载 skills..."
|
||||
git clone "$REPO_URL" "$TEMP_DIR" --depth 1
|
||||
|
||||
# 确保 skills 目录存在
|
||||
mkdir -p "$SKILLS_DIR"
|
||||
|
||||
# 复制所有 skills
|
||||
echo "📋 安装 skills..."
|
||||
for skill_dir in "$TEMP_DIR"/*/; do
|
||||
if [ -d "$skill_dir" ]; then
|
||||
skill_name=$(basename "$skill_dir")
|
||||
if [ -f "$skill_dir/SKILL.md" ]; then
|
||||
echo " ✓ 安装 $skill_name"
|
||||
cp -r "$skill_dir" "$SKILLS_DIR/"
|
||||
else
|
||||
echo " ⚠ 跳过 $skill_name (缺少 SKILL.md)"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
# 清理临时文件
|
||||
rm -rf "$TEMP_DIR"
|
||||
|
||||
echo ""
|
||||
echo "✅ 安装完成!"
|
||||
echo ""
|
||||
echo "已安装的 skills:"
|
||||
ls -1 "$SKILLS_DIR" | sed 's/^/ - /'
|
||||
echo ""
|
||||
echo "提示: 重启 Claude Code 以加载新的 skills"
|
||||
Reference in New Issue
Block a user