跳到正文
Skillpedia
智能体40k · #7438

structured-autonomy-generate

它能做什么

这个 AI 代理会为编程项目中的新功能创建详细的实现指南。它会阅读计划、研究现有代码,并生成分步说明和可直接使用的代码。

适用场景

  • ✓当你已经有了新功能的计划,需要一份实现指南时。
  • ✓当你需要为每个开发步骤提供清晰、可直接复制粘贴的文档时。
  • ✓当你想确保生成的代码遵循项目的约定和模式时。

技能链接

https://github.com/github/awesome-copilot/blob/main/skills/structured-autonomy-generate/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/github/awesome-copilot/blob/main/skills/structured-autonomy-generate/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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:

  1. Accept a complete PR plan (plan.md in plans/{feature-name}/)
  2. Extract all implementation steps from the plan
  3. Generate comprehensive step documentation with complete code
  4. 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

  1. 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
  2. Run comprehensive research ONE TIME using <research_task>. Use runSubagent to execute. Do NOT pause.
  3. 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
</workflow> <research_task> For the entire project described in the master plan, research and gather:
  1. 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
  2. Code Patterns Library:

    • Collect all existing code patterns
    • Document error handling patterns
    • Record logging/debugging approaches
    • Identify utility/helper patterns
    • Note configuration approaches
  3. Architecture Documentation:

    • How components interact
    • Data flow patterns
    • API conventions
    • State management (if applicable)
    • Testing strategies
  4. 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)?

这样你可以在每一步测试并保存修改,确保一切运行正常后再继续。

详情

作者的原始描述

Structured Autonomy Implementation Generator Prompt

repo: github/awesome-copilot

热度

GitHub 星标
40k
排名
#7438
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能