SuperAPI AI 工具集

skill-factory

数据与分析

查看项目

更新于 10-16 05:07

技能介绍

Skill Factory 用于把 GitHub 仓库一键转换为标准化的 Claude Skill,适合用户提供 GitHub URL 并希望“打包”“封装”或“创建 Skill”的场景。触发方式包括 /skill-factory <github_url>、“将这个仓库打包成 Skill”“从 GitHub 创建 Skill”“封装这个工具”等。

主要能力:通过 git ls-remote 获取 commit hash,通过 HTTP 获取 README;创建标准化目录结构(SKILL.md、scripts/、references/、assets/);自动填充 source_url、source_hash、version、created_at、updated_at、evolution_enabled 等扩展元数据;生成 wrapper.py 占位脚本。

工作流程:先运行 python scripts/fetch_github_info.py <github_url> 获取仓库 JSON 元数据;再由 Agent 分析 README 理解功能、安装使用方法、CLI 参数或 API 接口及依赖;然后运行 python scripts/create_skill.py <json_file_or_string> <output_dir> 生成目录;随后完善 SKILL.md 与 wrapper.py、添加参考文档;最后验证 frontmatter、source_hash、description 触发条件及 wrapper.py 可执行性。

推荐使用 import_github_skill.py 高效导入:python scripts/import_github_skill.py <github_url> <output_dir>,支持 --name 自定义名称、--no-source 不保留源信息;该脚本用 GitHub API 单次获取目录结构、10 线程并行下载,限流时自动切换 git clone。

最佳实践要求渐进式披露(只含必要封装代码)、依赖隔离、利用 source_hash 做幂等更新检查、description 须包含“做什么”和“何时使用”。可与 skill-manager、skill-evolution、skill-creator 协作。资料未提供收费、价格及平台支持等具体信息。