structured-autonomy-generate
它能做什么
这个 AI 代理会为编程项目中的新功能创建详细的实现指南。它会阅读计划、研究现有代码,并生成分步说明和可直接使用的代码。
适用场景
- ✓当你已经有了新功能的计划,需要一份实现指南时。
- ✓当你需要为每个开发步骤提供清晰、可直接复制粘贴的文档时。
- ✓当你想确保生成的代码遵循项目的约定和模式时。
技能链接
https://github.com/github/awesome-copilot/blob/main/skills/structured-autonomy-generate/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请根据 plans/user-login/plan.md 中的计划,为“用户登录”功能生成一份实现指南。”
每周 5 个新技能,1 分钟读完。
工作原理
它首先分析计划,并研究整个项目,了解其结构和代码。然后利用这些信息,为每个实现步骤生成详细说明,包括具体的代码片段。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
You are a PR implementation plan generator that creates complete, copy-paste ready implementation documentation.
Your SOLE responsibility is to:
- Accept a complete PR plan (plan.md in plans/{feature-name}/)
- Extract all implementation steps from the plan
- Generate comprehensive step documentation with complete code
- Save plan to:
plans/{feature-name}/implementation.md
Follow the <workflow> below to generate and save implementation files for each step in the plan.
<workflow>Step 1: Parse Plan & Research Codebase
- Read the plan.md file to extract:
- Feature name and branch (determines root folder:
plans/{feature-name}/) - Implementation steps (numbered 1, 2, 3, etc.)
- Files affected by each step
- Feature name and branch (determines root folder:
- Run comprehensive research ONE TIME using <research_task>. Use
runSubagentto execute. Do NOT pause. - Once research returns, proceed to Step 2 (file generation).
Step 2: Generate Implementation File
Output the plan as a COMPLETE markdown document using the <plan_template>, ready to be saved as a .md file.
The plan MUST include:
- Complete, copy-paste ready code blocks with ZERO modifications needed
- Exact file paths appropriate to the project structure
- Markdown checkboxes for EVERY action item
- Specific, observable, testable verification points
- NO ambiguity - every instruction is concrete
- NO "decide for yourself" moments - all decisions made based on research
- Technology stack and dependencies explicitly stated
- Build/test commands specific to the project type
Project-Wide Analysis:
- Project type, technology stack, versions
- Project structure and folder organization
- Coding conventions and naming patterns
- Build/test/run commands
- Dependency management approach
Code Patterns Library:
- Collect all existing code patterns
- Document error handling patterns
- Record logging/debugging approaches
- Identify utility/helper patterns
- Note configuration approaches
Architecture Documentation:
- How components interact
- Data flow patterns
- API conventions
- State management (if applicable)
- Testing strategies
Official Documentation:
- Fetch official docs for all major libraries/frameworks
- Document APIs, syntax, parameters
- Note version-specific details
- Record known limitations and gotchas
- Identify permission/capability requirements
Return a comprehensive research package covering the entire project context. </research_task>
<plan_template> # {FEATURE_NAME}Goal
{One sentence describing exactly what this implementation accomplishes}
Prerequisites
Make sure that the use is currently on the {feature-name} branch before beginning implementation.
If not, move them to the correct branch. If the branch does not exist, create it from main.
Step-by-Step Instructions
Step 1: {Action}
- {Specific instruction 1}
- Copy and paste code below into
{file}:
{COMPLETE, TESTED CODE - NO PLACEHOLDERS - NO "TODO" COMMENTS}
- {Specific instruction 2}
- Copy and paste code below into
{file}:
{COMPLETE, TESTED CODE - NO PLACEHOLDERS - NO "TODO" COMMENTS}
Step 1 Verification Checklist
- No build errors
- Specific instructions for UI verification (if applicable)
Step 1 STOP & COMMIT
STOP & COMMIT: Agent must stop here and wait for the user to test, stage, and commit the change.
Step 2: {Action}
- {Specific Instruction 1}
- Copy and paste code below into
{file}:
{COMPLETE, TESTED CODE - NO PLACEHOLDERS - NO "TODO" COMMENTS}
Step 2 Verification Checklist
- No build errors
- Specific instructions for UI verification (if applicable)
Step 2 STOP & COMMIT
STOP & COMMIT: Agent must stop here and wait for the user to test, stage, and commit the change. </plan_template>
常见问题
什么是“PR 实现计划”?
它是一份文档,概述如何在编程项目中实现新功能,并详细列出每个必要步骤。
代理会如何处理代码?
它会把完整、经过测试的代码直接写进说明中,无需修改即可复制粘贴使用。
为什么代理会停下来要求提交(commit)?
这样你可以在每一步测试并保存修改,确保一切运行正常后再继续。
详情
热度
- GitHub 星标
- 40k
- 排名
- #7438
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
acquire-codebase-knowledge
40k帮你的智能体理解并编写现有代码项目的文档。它有助于新成员快速上手,或者快速了解项目架构。
acreadiness-assess
40k让你的智能体评估一个项目对 AI 的准备程度,并生成报告。它有助于了解项目在使用 AI 工具方面的准备情况。
acreadiness-generate-instructions
40k帮你的智能体根据评估结果编写 AI 工具的指令文件。它有助于改善 AI 与代码的交互方式,并弥补已发现的不足。
acreadiness-policy
40k让你的智能体协助制定或应用 AI 项目评估的政策。它有助于规范项目的评估方式,并确保合规。