大模型应用
用专业 AI 代理人格提升编码工具输出质量(Claude…
当你想让 AI 编码助手以特定领域专家(前端、后端、安全、UX、增长等)的身份和流程工作时,安装并激活对应的代理人格文件。
🧪 尚未被验证(还没有小呱复用过的记录,不代表不好)
GDI C 49/100
进化评分(GDI)
综合排序依据 —— 四个维度的加权结果,让你看出「为什么这条排在前面」
内在质量 85/100 ×0.35
使用度 0/100 ×0.30
口碑 50/100 ×0.20
新鲜度 60/100 ×0.15
适用场景
用专业 AI 代理人格提升编码工具输出质通用
解决思路
- 克隆仓库:git clone https://github.com/msitarzewski/agency-agents.git 并 cd agency-agents
- Claude Code 安装:cp -r agency-agents/* ~/.claude/agents/,或用软链接 ln -s /path/to/agency-agents ~/.claude/agents/agency 以便自动更新
- 其他工具用交互式安装器:先运行 ./scripts/convert.sh 生成各工具集成文件,再运行 ./scripts/install.sh 自动检测并安装;也可指定工具,如 ./scripts/install.sh --tool cursor / --tool copilot / --tool aider / --tool windsurf
- 手动安装路径:Claude Code 用 ~/.claude/agents/;Cursor 用项目根目录 .cursor/rules/;Copilot 用 .github/copilot-instructions.md;Aider 用 .aider.conf.yml 或通过 --system-prompt 传入;Windsurf 用项目根目录 .windsurf/rules/
- 在 Claude Code 中激活单个代理:在对话中明确说「Activate the Backend Architect agent and help me design a REST API...」
- 按顺序使用多个代理:先激活 Software Architect 做设计,再激活 Senior Developer 实现,最后激活 Code Reviewer 审查
- 直接引用代理文件作为系统提示:claude --system-prompt "$(cat ~/.claude/agents/engineering-frontend-developer.md)" "你的任务"
- 在 Cursor 中:安装后用 @engineering-frontend-developer 引用,或在 .cursor/rules/default.mdc 中设置 alwaysApply: true 并指向具体代理文件
- 在 Aider 中:aider --system-prompt "$(cat agency-agents/engineering/engineering-security-engineer.md)",或把 system-prompt 写入 .aider.conf.yml
- 在 Windsurf 中:运行 ./scripts/install.sh --tool windsurf 后,在对话中说「Use the UX Architect agent rules from .windsurf/rules/ to audit my CSS architecture」
- 全栈功能多代理工作流:把需求写入 task.md,依次用 Software Architect、Backend Architect、Frontend Developer、Security Engineer 的 system-prompt 调用 claude 完成架构、后端、前端、安全审查
- 代码审查工作流:git diff main..feature/xxx | claude --system-prompt "$(cat ~/.claude/agents/engineering-code-reviewer.md)" "Review this PR diff..."
- 数据库优化:把慢查询日志通过 heredoc 传给 Database Optimizer 代理的 system-prompt,并附上表大小和索引信息
- 事故响应:把 SEV 级别、错误率、影响范围、最近部署等信息通过 heredoc 传给 Incident Response Commander 代理
- 创建自定义代理:按统一 markdown 结构编写(Identity、Core Mission、Personality & Communication Style、Workflows、Deliverables、Success Metrics),保存到 agency-agents/custom/ 后重新运行 ./scripts/convert.sh
- 贡献新代理:fork 并克隆仓库,在对应 division 下复制现有代理文件改名,编辑后用 claude --system-prompt 测试,再 git checkout -b agent/your-specialty、git add、git commit -m "feat: add Your Specialty agent"、git push 并提交 PR
- 排障:Claude Code 找不到代理时检查 ls ~/.claude/agents/ 并重新 cp;convert.sh 权限错误时 chmod +x scripts/convert.sh scripts/install.sh;Cursor 未生效时确认规则在项目根 .cursor/rules/ 并重跑安装器
- 代理未激活时:明确说「Activate the XXX agent」,或直接把代理文件内容粘贴进 system prompt;Claude Code 可用 claude config get agentsDir 确认目录
- 多代理冲突时:每个会话只激活一个代理,多代理流程用独立会话或 Claude Code 的 subagent 功能,并显式排序 architect → implement → review
适用边界 · 注意事项
- 需要真实 API 密钥或付费云服务的场景——这些代理只是提示词文件,不提供服务能力
- 同一会话中同时激活多个代理,容易产生人格冲突,应改用独立会话或 subagent
- 工具不支持自定义 system prompt 时无法使用