compose-agents-md
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCompose AGENTS.md Skill
Compose AGENTS.md 技能
Help the user create an for their project.
AGENTS.md帮助用户为其项目创建文件。
AGENTS.mdStep 1 — Understand the Project
步骤1 — 了解项目
Ask (if not already known):
- What language(s) does the project use?
- What architectural pattern (hexagonal, microservices, BFF, monolith)?
- What is the primary purpose of the project?
- Which AI vendors are used on this project?
询问(若尚未了解):
- 项目使用什么编程语言?
- 采用何种架构模式(六边形架构、微服务、BFF、单体架构)?
- 项目的主要用途是什么?
- 项目使用了哪些AI供应商?
Step 2 — Recommend a Profile
步骤2 — 推荐配置文件(Profile)
Check to show available profiles.
just list-profilesMatch the user's answers to an existing profile. If a match exists:
bash
just compose {profile-name} {/path/to/target-project}If no profile matches closely enough, offer to:
a) Compose from individual fragments (guided selection)
b) Create a new profile for this project type
执行查看可用的配置文件。
just list-profiles将用户的回答与现有配置文件匹配。若找到匹配项:
bash
just compose {profile-name} {/path/to/target-project}若没有足够匹配的配置文件,提供以下选项:
a) 从独立片段组合生成(引导式选择)
b) 为此项目类型创建新的配置文件
Step 3 — Fragment Selection (if no profile matches)
步骤3 — 片段选择(无匹配配置文件时)
Guide the user through selecting fragments:
Base fragments (always recommended):
- — always include
git-conventions - — always include
security - — include if team does code reviews
code-review - — include if testing standards matter
testing-philosophy - — include if docs standards matter
documentation
Language: pick from
Architecture: pick from
Practices: pick from
Domain: pick from if a match exists
agents/languages/agents/architecture/agents/practices/agents/domains/引导用户选择片段:
基础片段(建议始终包含):
- — 始终包含
git-conventions - — 始终包含
security - — 若团队进行代码评审则包含
code-review - — 若重视测试标准则包含
testing-philosophy - — 若重视文档标准则包含
documentation
语言:从中选择
架构:从中选择
实践:从中选择
领域:若有匹配项,从中选择
agents/languages/agents/architecture/agents/practices/agents/domains/Step 4 — Compose and Deploy
步骤4 — 组合生成与部署
Run the compose and vendor-gen commands:
bash
just compose {profile-or-custom} {target-path}
just vendor-gen {target-path}执行compose和vendor-gen命令:
bash
just compose {profile-or-custom} {target-path}
just vendor-gen {target-path}Step 5 — Verify
步骤5 — 验证
Open with the user and confirm:
{target-path}/AGENTS.md- The content accurately represents the project's standards
- Build/test/lint commands are correct
- No placeholder tokens () remain unfilled
{{TOKEN}}
与用户一同打开并确认:
{target-path}/AGENTS.md- 内容准确反映项目的标准
- 构建/测试/代码检查命令正确无误
- 无未填充的占位符标记()
{{TOKEN}}