ワンクリックで
single-flow-task-execution
// Use when executing implementation plans, handling multiple independent tasks, or doing structured task-by-task development with review gates in Antigravity.
// Use when executing implementation plans, handling multiple independent tasks, or doing structured task-by-task development with review gates in Antigravity.
Use when you have a written implementation plan and need to execute it in Antigravity single-flow mode
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup
Use when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation
Use when completing tasks, implementing major features, or before merging to verify work meets requirements
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification
| name | single-flow-task-execution |
| description | Use when executing implementation plans, handling multiple independent tasks, or doing structured task-by-task development with review gates in Antigravity. |
Execute plans by working through one task at a time with two-stage review after each: spec compliance review first, then code quality review.
Core principle: One task at a time + two-stage review (spec then quality) = high quality, disciplined iteration.
Antigravity does NOT support parallel coding subagents. All work happens in a single execution thread.
Rules:
Task(...).browser_subagent in isolated steps.<project-root>/docs/plans/task.md at each state change (table-only tracker).task_boundary to clearly delineate each unit of work.digraph when_to_use {
"Have implementation plan?" [shape=diamond];
"Tasks mostly independent?" [shape=diamond];
"Multiple problems to solve?" [shape=diamond];
"single-flow-task-execution" [shape=box];
"executing-plans" [shape=box];
"Manual execution or brainstorm first" [shape=box];
"Have implementation plan?" -> "Tasks mostly independent?" [label="yes"];
"Have implementation plan?" -> "Manual execution or brainstorm first" [label="no"];
"Tasks mostly independent?" -> "single-flow-task-execution" [label="yes"];
"Tasks mostly independent?" -> "Manual execution or brainstorm first" [label="no - tightly coupled"];
"Multiple problems to solve?" -> "single-flow-task-execution" [label="yes - work through them sequentially"];
"Multiple problems to solve?" -> "Manual execution or brainstorm first" [label="no - single task"];
}
Use when:
Don't use when:
vs. Executing Plans (worktree-based):
task_boundary per task (clean scope)digraph process {
rankdir=TB;
subgraph cluster_per_task {
label="Per Task";
"Execute implementation (./implementer-prompt.md)" [shape=box];
"Questions about requirements?" [shape=diamond];
"Answer questions, provide context" [shape=box];
"Implement, test, commit, self-review" [shape=box];
"Run spec compliance review (./spec-reviewer-prompt.md)" [shape=box];
"Spec confirms code matches spec?" [shape=diamond];
"Fix spec gaps" [shape=box];
"Run code quality review (./code-quality-reviewer-prompt.md)" [shape=box];
"Code quality approved?" [shape=diamond];
"Fix quality issues" [shape=box];
"Mark task complete in docs/plans/task.md" [shape=box];
}
"Read plan, extract all tasks with full text, note context" [shape=box];
"More tasks remain?" [shape=diamond];
"Run final code review for entire implementation" [shape=box];
"Use finishing-a-development-branch skill" [shape=box style=filled fillcolor=lightgreen];
"Read plan, extract all tasks with full text, note context" -> "Execute implementation (./implementer-prompt.md)";
"Execute implementation (./implementer-prompt.md)" -> "Questions about requirements?";
"Questions about requirements?" -> "Answer questions, provide context" [label="yes"];
"Answer questions, provide context" -> "Execute implementation (./implementer-prompt.md)";
"Questions about requirements?" -> "Implement, test, commit, self-review" [label="no"];
"Implement, test, commit, self-review" -> "Run spec compliance review (./spec-reviewer-prompt.md)";
"Run spec compliance review (./spec-reviewer-prompt.md)" -> "Spec confirms code matches spec?";
"Spec confirms code matches spec?" -> "Fix spec gaps" [label="no"];
"Fix spec gaps" -> "Run spec compliance review (./spec-reviewer-prompt.md)" [label="re-review"];
"Spec confirms code matches spec?" -> "Run code quality review (./code-quality-reviewer-prompt.md)" [label="yes"];
"Run code quality review (./code-quality-reviewer-prompt.md)" -> "Code quality approved?";
"Code quality approved?" -> "Fix quality issues" [label="no"];
"Fix quality issues" -> "Run code quality review (./code-quality-reviewer-prompt.md)" [label="re-review"];
"Code quality approved?" -> "Mark task complete in docs/plans/task.md" [label="yes"];
"Mark task complete in docs/plans/task.md" -> "More tasks remain?";
"More tasks remain?" -> "Execute implementation (./implementer-prompt.md)" [label="yes"];
"More tasks remain?" -> "Run final code review for entire implementation" [label="no"];
"Run final code review for entire implementation" -> "Use finishing-a-development-branch skill";
}
When facing multiple problems (e.g., 5 test failures across 3 files):
Group failures by what's broken:
Each domain is independent — fixing authentication doesn't affect validation tests.
Each task gets:
Work through each task one at a time using the full review cycle.
After all tasks:
For each task, prepare:
task_boundary:
description: "Implement Task N: [task name]"
prompt: |
## Task Description
[FULL TEXT of task from plan — paste it here]
## Context
[Where this fits, dependencies, architectural context]
## Constraints
- Only modify [specific files/directories]
- Follow existing patterns in the codebase
- Write tests for new functionality
## Verification
- Run: [specific test command]
- Expected: [what success looks like]
Key: Provide full task text and context upfront. Don't make the task boundary re-read the plan file.
This skill includes prompt templates for structured reviews:
./implementer-prompt.md — Template for implementation task boundaries./spec-reviewer-prompt.md — Template for spec compliance review (did we build what was requested?)./code-quality-reviewer-prompt.md — Template for code quality review (is it well-built?)Review order matters: Always run spec compliance FIRST, then code quality. There's no point reviewing code quality if the implementation doesn't match the spec.
At logical boundaries (after each task, at major milestones), report:
Update docs/plans/task.md with current status.
Task scoping:
Context:
Constraints:
Output:
Reviews:
You: I'm using single-flow-task-execution to execute this plan.
[Read plan file: docs/plans/feature-plan.md]
[Extract all 5 tasks with full text and context]
[Update docs/plans/task.md with all tasks as 'not_started']
--- Task 1: Hook installation script ---
[Prepare task brief with full text + context]
[Execute implementation following ./implementer-prompt.md structure]
Questions: "Should the hook be installed at user or system level?"
Answer: "User level (~/.config/superpowers/hooks/)"
Implementation:
- Implemented install-hook command
- Added tests, 5/5 passing
- Self-review: Found I missed --force flag, added it
- Committed
[Run spec compliance review following ./spec-reviewer-prompt.md]
Spec review: Spec compliant — all requirements met, nothing extra
[Run code quality review following ./code-quality-reviewer-prompt.md]
Code review: Strengths: Good test coverage, clean. Issues: None. Approved.
[Mark Task 1 complete in docs/plans/task.md]
--- Task 2: Recovery modes ---
[Prepare task brief with full text + context]
[Execute implementation]
Implementation:
- Added verify/repair modes
- 8/8 tests passing
- Self-review: All good
- Committed
[Run spec compliance review]
Spec review: Issues found:
- Missing: Progress reporting (spec says "report every 100 items")
- Extra: Added --json flag (not requested)
[Fix issues: remove --json flag, add progress reporting]
[Run spec compliance review again]
Spec review: Spec compliant now
[Run code quality review]
Code review: Issue (Important): Magic number (100) should be a constant
[Fix: extract PROGRESS_INTERVAL constant]
[Run code quality review again]
Code review: Approved
[Mark Task 2 complete in docs/plans/task.md]
... [Continue through remaining tasks] ...
[After all tasks complete]
[Run final code review on entire implementation]
Final review: All requirements met, ready to merge
[Use finishing-a-development-branch skill]
Done!
Never:
If you have questions about requirements:
If reviewer finds issues:
Before claiming all work is done:
docs/plans/task.md are done or cancelledStructured execution:
Quality gates:
Efficiency:
Required workflow skills:
Should also use:
Alternative workflow: