把邱懿武 Skill Hub 接入 Claude Code、自建 Agent、或任意 LLM 客户端的完整指南。
$ curl -fsSL https://skill.qiuyiwu.com/install.sh | sh -s innolab
install.sh 会自动:
.skill.tar.gz 或 .skill.zip)~/.claude/skills/<slug>/SKILL.md 存在$ curl -O https://skill.qiuyiwu.com/innolab.skill.tar.gz
$ tar xzf innolab.skill.tar.gz -C ~/.claude/skills/
$ CLAUDE_SKILLS_DIR=/custom/path \
curl -fsSL https://skill.qiuyiwu.com/install.sh | sh -s innolab
triggers 数组里的任意词即激活。把 skill 当成运行时可选能力——根据用户输入动态拉取并加载。
# 1. 拉 manifest
manifest = await fetch('https://skill.qiuyiwu.com/skills.json').then(r => r.json())
# 2. 按 trigger 词匹配
function matchSkill(userInput) {
return manifest.skills.filter(s =>
s.triggers.some(t => userInput.includes(t))
)
}
# 3. 加载对应 SKILL.md 内容到 system prompt
const matched = matchSkill(input)
if (matched.length) {
const skill = matched[0]
const pkg = await fetch(skill.package_url)
await extractTo(pkg, './tmp-skills/')
systemPrompt += readFile(`./tmp-skills/${skill.id}/SKILL.md`)
}
给 LLM 一份 llms.txt,让它自己决定调用哪个 skill。
# System Prompt 注入
guide = await fetch('https://skill.qiuyiwu.com/llms.txt').then(r => r.text())
systemPrompt = `
You have access to the following Skill Hub for invocation context:
${guide}
When the user's request matches a skill's trigger pattern,
mention which skill you'd recommend, and provide its
install command and trigger word.
`
让 agent 自动追新 skill:
# 每天检查 RSS 是否有新条目
feed = await parseRSS('https://skill.qiuyiwu.com/feed.xml')
newSkills = feed.items.filter(item => item.pubDate > lastChecked)
for (const skill of newSkills) {
notify(`新 skill: ${skill.title}`)
}
当前所有 public skill 都无需鉴权、无速率限制,直接 fetch 即可。
Private skill 不会出现在 /skills.json 的 public 视图中。如需访问,请联系作者。