协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
feature-dev-loop【开发与工程】End-to-end orchestration for non-trivial software feature development. Use this skill whenever the user asks to implement a PR-sized feature, break down a plan, have subagents review a plan, run a plan-review-development-acceptance loop, coordinate multiple review perspectives, produce an acceptance report, or generate an HTML PR summary. Prefer this…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Orchestrate a full software feature loop by composing local development skills instead of rewriting them: requirements baseline, plan breakdown, multi-perspective plan review, safe serial implementation, dynamic acceptance review, and an HTML PR summary.
This is a controller skill. It decides when to move between stages, how feedback is classified, when loops exit, what gets written to disk, and when to involve the user. It should call or follow existing local skills for the lower-level work when they are available, especially:
superpowers:writing-plans for implementation planssuperpowers:subagent-driven-development for task execution with implementer/reviewer agentssuperpowers:test-driven-development for feature and bugfix implementationsuperpowers:requesting-code-review for code review dispatchsuperpowers:verification-before-completion before claiming completiondocs/dev-loop-runs/YYYY-MM-DD-feature-slug/.Before starting a full loop, check whether the local prerequisite skills are available in the active session. This skill depends on Superpowers-style development workflows; it should not silently degrade into an ad-hoc process when those skills are missing.
Check dependencies from the active skill list when it is available. If the active skill list is unavailable, inspect likely local skill/plugin locations such as .agents/skills/superpowers, .codex/superpowers/skills, or the harness plugin list. Do not assume a dependency exists just because this skill mentions it.
These are required for the intended workflow:
superpowers:writing-plans - implementation plan breakdownsuperpowers:subagent-driven-development - serial task execution with implementer/reviewer agentssuperpowers:test-driven-development - red/green/refactor discipline for behavior changessuperpowers:requesting-code-review - structured code review dispatchsuperpowers:verification-before-completion - evidence before completion claimsThese are not always required, but should be used when relevant:
superpowers:brainstorming - when the request is still rough or product/design intent is unclearsuperpowers:systematic-debugging - when implementation or tests expose a bugsuperpowers:receiving-code-review - when applying reviewer feedbacksuperpowers:finishing-a-development-branch - when the user wants merge/PR/branch cleanup guidancesuperpowers:using-git-worktrees - when the user wants isolated branch/worktree executionIf any required skill is missing:
Superpowers in the Coding section, click +, and follow the prompts./plugins, search for superpowers, and select Install Plugin./plugin install superpowers@claude-plugins-official, or register the Superpowers marketplace with /plugin marketplace add obra/superpowers-marketplace and then run /plugin install superpowers@superpowers-marketplace.If installation is not possible in the current harness, offer a reduced inline mode only after making the limitation explicit. Reduced inline mode must still create the run artifacts and record that subagent/Superpowers dependencies were unavailable.
Reference for installation and workflow names: https://github.com/obra/superpowers.
All reviewer comments must use these severities:
BLOCKER: Must be resolved before the loop can exit.IMPORTANT: Should be resolved before exit. The controller may adjudicate and close it only with written rationale.QUESTION: Must be answered or converted into a concrete change before exit.NIT: Non-blocking improvement. Record it, but do not let it block progress.A phase may exit only when there are no unresolved BLOCKER, IMPORTANT, or QUESTION items. Remaining NIT items become follow-ups.
At the start of a run:
git rev-parse --show-toplevel when available.git status -sb.base_sha, current branch, dirty-state summary, user request, and mode.docs/dev-loop-runs/YYYY-MM-DD-feature-slug/
00-requirements.md
01-plan.md
02-plan-review-rounds.md
03-implementation-log.md
04-acceptance-report.md
05-pr-summary.html
artifacts/
screenshots/
test-outputs/
If the working tree is dirty, do not revert anything. Decide whether existing changes are related to the requested task. If ambiguous and risky, ask the user before editing.
Create 00-requirements.md before planning.
Use this structure:
# Requirements Baseline
## Goal
## Non-goals
## User-visible Behavior
## Acceptance Criteria
## Constraints
## Assumptions
## Open Questions
## Source Request
## Repo Context
Ask the user only for open questions that materially affect architecture, data model, security, user experience, compatibility, or test strategy. Infer ordinary implementation details from repo conventions and record them as assumptions.
Do not enter plan breakdown while blocking open questions remain.
Explore the codebase before writing the plan. Prefer rg and existing project docs/tests. Let the repo teach the implementation style.
Create 01-plan.md. When available, follow superpowers:writing-plans.
The plan must include:
00-requirements.mdTasks should be small enough to implement and review independently. If a shared contract is needed, put it before dependent tasks.
Dispatch multiple plan-review subagents from different perspectives when subagents are available and permitted. Give each reviewer precise context: the requirements file, plan file, relevant repo conventions, and the requested output schema. Do not hand them the whole conversation history.
Default reviewer perspectives:
Each reviewer must return:
## Verdict
APPROVED | COMMENTS
## Comments
- id:
severity: BLOCKER | IMPORTANT | QUESTION | NIT
area:
target:
comment:
required_change:
## Approval Conditions
Aggregate all feedback into 02-plan-review-rounds.md.
For each round:
BLOCKER, IMPORTANT, and QUESTION feedback.Plan review exits when all reviewers approve or only NIT items remain.
Unless the user requested auto mode, show a concise plan summary and ask for approval before implementation:
Implement one task at a time in plan order. Use superpowers:subagent-driven-development when the plan is well-specified and worker subagents are appropriate. Use superpowers:test-driven-development for behavior changes.
For each task:
03-implementation-log.md.Default to serial implementation. Parallel implementation is allowed only when:
Do not create checkpoint commits unless the user explicitly requested commits or PR mode.
After implementation, choose reviewers based on the actual change surface.
Always run:
00-requirements.md and 01-plan.mdRun conditionally:
Each acceptance reviewer receives:
base_sha and current HEAD or working-tree diffEach reviewer returns:
## Verdict
PASS | PASS_WITH_NOTES | FAIL
## Scope Checked
## Evidence
## Findings
- id:
severity: BLOCKER | IMPORTANT | MINOR
target:
finding:
suggested_fix:
evidence:
## Residual Risks
Aggregate results into 04-acceptance-report.md:
# Acceptance Report
## Verdict
PASS | PASS_WITH_NOTES | FAIL
## Scope Checked
## Reviewers Run
## Tests Run
## Requirement Coverage
## Findings
## Fixes Applied
## Residual Risks
## Follow-ups
Acceptance exits only when:
BLOCKER remainsIMPORTANT remainsPASS or PASS_WITH_NOTESIf acceptance fails, fix the issues and re-run the relevant reviewers. Stop after 3 rounds and escalate with a blocker report.
Generate 05-pr-summary.html as a self-contained, summary-first HTML report. It should help a PR reviewer understand the change quickly, while preserving expandable audit detail.
The first screen should answer:
Include expandable detail sections for:
Use plain, readable HTML and CSS with no external network dependencies. Link local artifacts with relative paths where possible.
base_sha.git diff and git status.Ask the user only when:
When asking, ask one concrete question at a time and provide a recommended answer.
Before final response:
00-requirements.md exists01-plan.md exists and passed plan review or has documented adjudications03-implementation-log.md records tasks, changed files, and verification evidence04-acceptance-report.md has a clear verdict05-pr-summary.html existsBLOCKER, IMPORTANT, or QUESTION remainsThen summarize the outcome concisely for the user, including the report path and verification status.