closed-loop-delivery
它能做什么
这个工具可以帮助 AI 从头到尾完成编码任务。它会确保代码能够正常运行、经过审查并完成测试,并按照明确的规则持续执行,直到所有工作都准备就绪。
适用场景
- ✓当你希望 AI 修复一个 bug 并测试修复结果时。
- ✓当你需要 AI 创建一个新功能,包括测试和部署时。
- ✓当你不想分别让 AI 去测试、审查和部署,而是希望一次性完成时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/closed-loop-delivery/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“修复 bug X,确保测试通过,提交审查,并部署到开发环境。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会先理解需要完成什么任务,以及判断工作是否完成的规则。然后,它会编写代码、在本地进行测试、处理审查意见,最后完成部署,并验证一切是否按预期运行。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Closed-Loop Delivery
Overview
Treat each task as incomplete until acceptance criteria are verified in evidence, not until code is merely changed.
Core rule: deliver against DoD (Definition of Done), not against code diff size.
When to Use
Use this skill when:
- user gives a coding/fix task and expects end-to-end completion
- task spans code + tests + PR comments + dev deploy + runtime checks
- repeated manual prompts like "now test", "now deploy", "now re-check PR" should be avoided
Do not use this skill for:
- pure Q&A/explanations
- prod deploy requests without explicit human approval
- tasks blocked by missing secrets/account access that cannot be inferred
Required Inputs
Before execution, define these once:
- task goal
- acceptance criteria (DoD)
- target environment (
devby default) - review cadence/budget when requested; a default review cadence is not a task-completion limit
If acceptance criteria are missing, request them once. If user does not provide, propose a concrete default and proceed.
Issue Gate Dependency
If the project already uses create-issue-gate, respect its current contract; otherwise derive acceptance criteria from the authorized task without inventing a mandatory issue.
- If issue status is
readyand execution gate isallowed, continue. - A real project-required draft gate can block dependent actions; it does not forbid independent discovery or already-authorized work under a different applicable workflow.
- Use available task context to formulate testable criteria; clarify only when a missing decision materially changes the outcome.
Default Workflow
Define DoD
- Convert request into testable criteria.
- Example: checkout task DoD = "checkout endpoint returns a valid, openable third-party payment URL in dev".
Implement minimal change
- Keep scope tight to task goal.
Verify locally
- Run focused tests first, then broader checks if needed.
Review loop
- Fetch PR comments/reviews.
- Classify valid vs non-actionable.
- Fix valid items, re-run verification.
Dev deploy + runtime verification
- Deploy only to an already-authorized dev target when runtime behavior matters; otherwise prepare and verify the concrete candidate locally.
- Verify via real API/Lambda/log evidence against DoD.
Completion decision
- Only report "done" when all DoD checks pass.
- Otherwise continue loop until pass or stop condition.
PR Comment Polling Policy
Avoid noisy short polling by default. Use batched windows:
- Round 1: wait
3m, collect delta comments/reviews - Round 2: wait
6m, collect delta again - Final round: wait
10m, collect all remaining visible comments/reviews
At each round:
- process all new comments in one batch
- avoid immediate re-poll after each single comment
- after the
10mround, stop waiting and proceed with all comments visible at that point
If CI is still running, align polling to check completion boundaries instead of fixed rapid polling.
Human Gate Rules (Must Ask)
Require missing consequential authorization for the following; do not request it again when the user has already granted the exact scope:
- production/staging deploy beyond agreed scope
- destructive operations (history rewrite, force push, data-destructive ops)
- actions with billing/security posture changes
- secret values not available in repo/runtime
- ambiguous DoD that materially changes outcome
Iteration/Stop Conditions
Stop and escalate with a concise blocker report when:
- The same verified external blocker leaves no meaningful authorized next step; two failed iterations alone are not a reason to stop when useful repair work remains
- external dependency blocks progress (provider outage, missing creds, account permission)
- conflicting review instructions cannot both be satisfied
Escalation report must include:
- what passed
- what failed
- evidence (commands/logs/API result)
- smallest decision needed from user
Output Contract
When claiming completion, always include:
- acceptance criteria checklist with pass/fail
- commands/tests run
- runtime evidence (endpoint/Lambda/log key lines)
- PR status (new actionable comments count)
Do not claim success without evidence.
Example
User request:
Take this bug from reproduction through root-cause proof, implementation, tests, review, and final validation.
Limitations
…
常见问题
什么是“验收标准”?
这是用来定义任务何时算是完全完成、并且能正确运行的规则。例如:“登录按钮应该能够正常使用,不出现报错。”
AI 能部署到生产环境吗?
不能在你没有明确同意的情况下部署。它可以部署到测试环境(开发环境),但如果是生产环境,它会先征求你的许可。
如果 AI 无法完成任务怎么办?
如果遇到阻碍(比如权限不足,或者它自己无法解决的问题),AI 会停下来请你帮忙,并说明哪里出了问题。
详情
作者的原始描述
Use when a coding task must be completed against explicit acceptance criteria with minimal user re-intervention across implementation, review feedback, deployment, and runtime verification.
热度
- GitHub 星标
- 48k
- 排名
- #4159
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。