Skip to content

Instantly share code, notes, and snippets.

@halu0915
Created April 12, 2026 10:51
Show Gist options
  • Select an option

  • Save halu0915/32df2ba3f93be30d0c9692bbd268f2a7 to your computer and use it in GitHub Desktop.

Select an option

Save halu0915/32df2ba3f93be30d0c9692bbd268f2a7 to your computer and use it in GitHub Desktop.
通用技能包一鍵安裝腳本
#!/bin/bash
echo "📦 下載並安裝通用技能包..."
cd /tmp
# Download from gist
curl -fsSL "https://gist.githubusercontent.com/halu0915/a6de6e39dfaa16dcd4caaca6fbb50c94/raw/kuanyu-skills-pack.b64" -o skills.b64
base64 -d -i skills.b64 -o kuanyu-skills-pack.tar.gz
tar xzf kuanyu-skills-pack.tar.gz
cd kuanyu-skills-pack
# Install Hermes skills
echo ""
echo "1️⃣ 安裝 Hermes 技能..."
HERMES_SKILLS="$HOME/.hermes/skills/productivity"
mkdir -p "$HERMES_SKILLS"
cp hermes-skills/company-lookup.sh "$HERMES_SKILLS/" && echo " ✅ 公司情報查詢"
cp hermes-skills/waste-permit-lookup.sh "$HERMES_SKILLS/" && echo " ✅ 環保署廢棄物查詢"
cp hermes-skills/dwg-reader.js "$HERMES_SKILLS/" && echo " ✅ DWG 圖說解析"
cp hermes-skills/generate-pdf.sh "$HERMES_SKILLS/" && echo " ✅ PDF 報告生成"
cp hermes-skills/generate-presentation.sh "$HERMES_SKILLS/" && echo " ✅ 簡報生成"
cp -r hermes-skills/templates "$HERMES_SKILLS/" && echo " ✅ 報告模板"
chmod +x "$HERMES_SKILLS/"*.sh 2>/dev/null
# Install Claude Code skills
echo ""
echo "2️⃣ 安裝 Claude Code 技能..."
CLAUDE_SKILLS="$HOME/.claude/skills"
mkdir -p "$CLAUDE_SKILLS"
cp -r claude-skills/* "$CLAUDE_SKILLS/" 2>/dev/null && echo " ✅ defuddle / taiwan-legal-agent / tender-parser"
# Install dependencies
echo ""
echo "3️⃣ 安裝依賴..."
pip3 install ezdxf openpyxl edge-tts 2>&1 | tail -2
npm install -g @mlightcad/libredwg-web 2>&1 | tail -2
# Cleanup
cd /tmp && rm -rf kuanyu-skills-pack kuanyu-skills-pack.tar.gz skills.b64
echo ""
echo "✅ 全部安裝完成!"
echo ""
echo "可用技能:"
echo " 📊 公司情報查詢:bash ~/.hermes/skills/productivity/company-lookup.sh -t 統一編號"
echo " 🏭 廢棄物查詢:bash ~/.hermes/skills/productivity/waste-permit-lookup.sh -a 公司名"
echo " 📐 DWG 解析:node ~/.hermes/skills/productivity/dwg-reader.js 檔案.dwg --summary"
echo " 📄 PDF 報告:bash ~/.hermes/skills/productivity/generate-pdf.sh input.md output.pdf"
echo " 🎨 簡報生成:bash ~/.hermes/skills/productivity/generate-presentation.sh input.md output.pdf"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment