anarefin/ai-agent-skills

GitHub: anarefin/ai-agent-skills

一套面向 Claude Code 和 Cursor 的 AI 代理技能集合,专注于遗留代码逆向工程、需求规范提取与架构重构。

Stars: 0 | Forks: 0

# AI Agent Skills 这是一个个人且不断增长的 [Claude Code](https://docs.anthropic.com/en/docs/claude-code) 和 [Cursor](https://cursor.com) agent skills 集合。这些 skills 会随着时间的推移不断添加和完善——这个仓库是一个活跃的工作区,而不是一个已完成的目录。 **仓库:** [github.com/anarefin/ai-agent-skills](https://github.com/anarefin/ai-agent-skills) ## 目前包含的内容 | Skill | 触发 / 用法 | 目的 | |-------|-----------------|---------| | [`graphify`](graphify/) | `/graphify` | 将代码、文档、论文、图像或视频转换为可查询的知识图谱 | | [`springboot-to-ears`](springboot-to-ears/) | `/springboot-to-ears` | 将 Spring Boot 代码库逆向工程为独立的 EARS 规范 | | [`grails-to-ears`](grails-to-ears/) | `/grails-to-ears` | 将 Grails 2.5.x 代码库逆向工程为独立的 EARS 规范 | | [`resolve-open-questions`](resolve-open-questions/) | `/resolve-open-questions ` | 针对 Spring Boot EARS spec 中 `[NEEDS REVIEW]` 项的第二轮解析器 | | [`ears-gap-fix`](ears-gap-fix/) | `/ears-gap-fix ` | 针对 Spring Boot EARS specs 的第三轮查漏补缺(缺失的规则和数据模型) | | [`fix-dev-reviews`](fix-dev-reviews/) | `/fix-dev-reviews ` | 针对 Spring Boot EARS specs 中开发者审查部分的第四轮修复工具 | | [`grails-ears-gap-fix`](grails-ears-gap-fix/) | `/ears-gap-fix ` | 针对 Grails EARS specs 的第三轮查漏补缺 | | [`grails-fix-dev-reviews`](grails-fix-dev-reviews/) | `/fix-dev-reviews ` | 针对 Grails EARS specs 中开发者审查部分的第四轮修复工具 | | [`ears-to-ddd`](ears-to-ddd/) | `/ears-to-ddd ` | 将分层架构的 EARS spec 转换为 DDD/CQRS/Event Sourcing | | [`prompt-master`](prompt-master/) | (在 prompt 请求时自动触发) | 为 LLMs、编码 agent 和图像/视频工具生成优化的 prompt | 随着更多 skills 的编写或改编,它们将被陆续添加到此处。 ## EARS pipeline 对于遗留代码库,这些 skills 旨在按顺序运行: ``` springboot-to-ears or grails-to-ears ↓ resolve-open-questions (optional — first pass often auto-resolves many items) ↓ ears-gap-fix (third pass — code gaps) ↓ fix-dev-reviews (fourth pass — human review sections) ↓ ears-to-ddd (optional — architectural rewrite) ``` 每个 skill 文件夹都包含一个 `SKILL.md`,其中包含完整的调用细节、规则和输出格式。 ## 安装说明 ### Claude Code 将 skill 文件夹克隆或复制到你的 Claude skills 目录中: ``` git clone https://github.com/anarefin/ai-agent-skills.git ~/.claude/skills-repo # Symlink 单个 skills(随着你的采用添加更多) ln -s ~/.claude/skills-repo/graphify ~/.claude/skills/graphify ln -s ~/.claude/skills-repo/springboot-to-ears ~/.claude/skills/springboot-to-ears ``` 或者只复制你需要的 skills: ``` cp -R graphify springboot-to-ears ~/.claude/skills/ ``` ### Cursor 将 skill 文件夹复制或软链接到 Cursor 的 skills 路径中: ``` cp -R graphify ~/.cursor/skills-cursor/graphify ``` Cursor 会从 `~/.cursor/skills-cursor/` 和项目级别的 `.cursor/skills/` 中发现 skills。 ## 添加新的 skill 1. 创建一个包含 `SKILL.md` 文件的文件夹(YAML frontmatter + 指令)。 2. 将该文件夹添加到此仓库中,并更新此 README 中的表格。 3. 将其软链接或复制到 `~/.claude/skills/` 或 `~/.cursor/skills-cursor/` 中。 有关 `SKILL.md` 的格式,请参阅 [Anthropic 的 skill 编写指南](https://docs.anthropic.com/en/docs/claude-code/skills) 或 Cursor 的 skill 文档。 ## 仅限本地的设置(不在此仓库中) 我机器上的一些 skills 是指向 `~/.agents/skills/` 的**软链接**(例如 `caveman` 系列)。这些是本地机器专属的,并通过 `.gitignore` 排除。它们不属于此仓库的一部分。 ## 第三方 skills - **prompt-master** — 来源于 [nidhinjs/prompt-master](https://github.com/nidhinjs/prompt-master)。请参阅 [`prompt-master/README.md`](prompt-master/README.md) 获取上游文档和许可证。 ## 生成的产物 运行某些 skills 会生成应排除在版本控制之外的输出: | 产物 | 生成者 | |----------|-------------| | `graphify-out/` | `/graphify` | | `raw/` | `/graphify add` | | `*.original.md` | caveman-compress (本地) | | `docs/ears/*.md` | EARS 提取 skills (写入目标项目中) | 这些路径已列在 [`.gitignore`](.gitignore) 中。 ## License 此仓库中的 skills 可能附带其各自的许可证(请参阅各个文件夹中的 `LICENSE` 文件,如果有的话)。该集合作为一个整体,是为了个人使用和逐步分享而维护的。
标签:AI智能体, 云资产清单, 提示词工程, 策略决策点, 逆向工程, 领域驱动设计