con un clic
pwrl-work-execute
Execute tasks with quality gates (inline, serial, or parallel modes)
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Execute tasks with quality gates (inline, serial, or parallel modes)
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Extract, classify, deduplicate, structure, and save learnings from code, commits, tasks, and documentation
Create structured implementation plans with three tiers (Fast/Standard/Deep). Pure skill pipeline orchestrator—no agent routing.
Review code changes through 4-phase micro-skill pipeline (scope, prepare, analyze, report)
Execute implementation work efficiently through 4-phase micro-skill pipeline
Verify repository state and confirm session completion before committing.
Create a clear session commit with state and next steps. Orchestrates checkpoint and commit micro-skills, optionally chains to pwrl-learnings.
| name | pwrl-work-execute |
| description | Execute tasks with quality gates (inline, serial, or parallel modes) |
| argument-hint | [Task list context from pwrl-work-prepare, execution mode] |
ask_user_question, ask_user, ask_user_input, vscode/askQuestions or any available extension/tool for user interaction for all decisionsPurpose: Core execution engine that coordinates task implementation across three modes (inline, serial, parallel), enforces quality gates, manages task status progression, and integrates GitHub status syncing.
Accepts prepared context from pwrl-work-prepare:
taskList:
source: plan | task | prompt
taskCount: 5
tasks:
- unit-id: S1
file: docs/tasks/in-progress/2026-06-05-s1-task.md
dependencies: []
status: in-progress
executionMode: inline | serial | parallel
executionModeReasoning: "..."
githubIntegration:
enabled: true | false
tasksLinked: 3
readyForSync: true | false
mode: serial
taskCount: 5
tasksCompleted: 5
tasksFailed: 0
testsPassed: true
commitHash: abc1234
results:
- unit-id: S1
taskFile: docs/tasks/for-review/2026-06-05-s1-task.md
status: for-review
testsPassed: true
summary: "Implemented feature X"
Direct execution without subagents, suitable for small work.
When used: 1-2 tasks, user interaction expected, small scope.
Per-task flow:
Read context:
files fieldMark in-progress:
status: in-progressto-do/ → in-progress/Implement test-first (TDD):
Run quality gates:
Mark for-review on success:
status: for-reviewdocs/tasks/in-progress/ → docs/tasks/for-review/
in-progress/ folderstatus: in-progress → status: for-reviewdocs/tasks/for-review/ with same filenamein-progress/Task ready for review: docs/tasks/in-progress/[file] → docs/tasks/for-review/[file]docs/tasks/INDEX.mdStatus Transition:
in-progress/ (status: in-progress) → for-review/ (status: for-review)
mode: inline
taskCount: 1
tasksCompleted: 1
tasksFailed: 0
testsPassed: true
results:
- unit-id: U1
status: for-review
testsPassed: true
summary: "Implemented email validation"
Sequential execution for tasks with dependencies.
When used: 3+ tasks, dependencies exist between tasks, or file conflicts detected.
Flow:
Determine execution order:
For each task (sequentially):
a) Execute task:
for-reviewb) Collect results:
for-review or blockedc) Check progress:
[N/M] Task [unitId] completed: [status] ✓After all tasks complete:
a) Run full targeted test suite:
b) Stage and commit:
Return aggregated result:
mode: serial
taskCount: 5
tasksCompleted: 5
tasksFailed: 0
testsPassed: true
commitHash: abc1234
results:
- unit-id: S1, status: for-review, testsPassed: true
- unit-id: S2, status: for-review, testsPassed: true
- ...
Concurrent execution for independent tasks.
When used: 3+ tasks, no dependencies, no file conflicts (verified by prepare phase).
Safety constraints (MUST verify before proceeding):
files listFlow:
Verify safety (pre-execution):
Execute all tasks in parallel:
Runtime conflict detection (during execution):
Collect results:
parallelTasksStarted: 4
parallelTasksCompleted: 4
parallelTasksFailed: 0
tasks:
- unit-id: U1, status: for-review, testsPassed: true, duration: "5m"
- unit-id: U2, status: for-review, testsPassed: true, duration: "3m"
- ...
Run full targeted test suite:
Stage and commit:
Return result:
When used: Multiple plans with cross-plan dependencies; parallelization groups generated by pwrl-work-prepare.
Coordination Protocol:
Per Group Cycle (repeat for each parallelization group):
Pre-execution validation:
Execute all tasks in group in parallel:
Wait for group completion:
Sync point validation:
Atomic commit (sync point):
[GROUP-N] U1, U2, U3: <summary>✓ Sync point N completed: 3 tasks, 12 files changedSignal dependent tasks:
blockedBy status (dependencies now met)If group fails:
Cross-group atomicity guarantee:
Output per cross-plan execution:
executionMode: parallel-cross-plan
parallelGroups: 3
groupResults:
- groupId: 0
tasksCompleted: 3
tasksFailed: 0
syncPointId: 0
commitHash: abc1234
filesChanged: 12
testsPassed: true
- groupId: 1
tasksCompleted: 2
tasksFailed: 0
syncPointId: 1
commitHash: def5678
filesChanged: 8
testsPassed: true
- groupId: 2
tasksCompleted: 1
tasksFailed: 0
syncPointId: 2
commitHash: ghi9012
filesChanged: 3
testsPassed: true
totalTasksCompleted: 6
totalCommits: 3
finalCommitHash: ghi9012
$data, $result)For each task, verify:
Callbacks/middleware/observers/events:
Test coverage depth:
Failure paths:
Consistency:
| Gate Failure | Action |
|---|---|
| Test fails | Mark task blocked, show test output, offer retry/skip |
| Pattern deviation | Warn, ask user: accept or revise |
| System check fails | Mark task blocked, log details, offer retry |
| Subagent timeout (parallel) | Kill subagent, mark task failed, other tasks unaffected |
| Integration test fails (post-execution) | Mark offending task blocked, revert if needed |
State machine for each task:
to-do
↓ (execution starts)
in-progress
├→ (all gates pass)
│ ↓
│ for-review ← Ready for review phase (S6)
└→ (gate failure)
↓
blocked ← User must resolve, then retry
Actions at each transition:
| Transition | File Ops | Index Update | GitHub Sync |
|---|---|---|---|
to-do → in-progress | Move to in-progress/ | Update status | Add in-progress label, post comment |
in-progress → for-review | Move to for-review/ | Update status | Add for-review label, post comment |
in-progress → blocked | Stay in in-progress/ + note | Update status | Add blocked label, post reason |
blocked → in-progress (retry) | Keep in in-progress/ | Update status | Add in-progress, remove blocked |
Subagents MUST NOT:
docs/tasks/INDEX.md directly (orchestrator aggregates)Subagents CAN:
Enforcement:
--no-full-suite, --no-commit| Scenario | Handling | Recovery |
|---|---|---|
| Task execution crashes | Catch error, mark blocked, log stack trace | Retry task after fix |
| Test failure | Mark blocked, show failing test output | Fix tests or implementation, retry |
| Quality gate fails | Mark blocked, show gate reason | Address issue, retry |
| Subagent timeout (parallel) | Kill subagent, mark failed | Re-run as serial or fix |
| Git error during commit | Log error, show git state | Fix git state, retry commit |
| Parallel safety violation | Downgrade to serial, warn | Continue safely in serial |
User prompts for blocked tasks:
Inline:
[1/2] Executing task U1: Add email validation
→ Reading target files...
→ Writing test first... ✓ FAIL (expected)
→ Implementing feature...
→ Running tests... ✓ PASS
→ Task complete: for-review
Serial:
[1/5] Spawning subagent for task U1...
[2/5] Subagent U1 completed: for-review ✓
[3/5] Spawning subagent for task U2 (depends on U1)...
[4/5] Subagent U2 completed: for-review ✓
[5/5] Running full test suite...
[✓] All tests pass
[✓] Creating commit: "Implement U1, U2: Add user validation"
Parallel:
[1/4] Spawning 4 parallel subagents...
[U1] Starting... [U2] Starting... [U3] Starting... [U4] Starting...
[✓] All subagents complete
[✓] Aggregating results: 4 completed, 0 failed
[✓] Running full integration test suite...
[✓] All tests pass
[✓] Creating commit: "Implement U1, U2, U3, U4"
docs/analysis/2026-06-05-pwrl-work-structure-analysis.mdpwrl-work-prepare/SKILL.mdpwrl-work-sync-status/SKILL.mdpwrl-work skill (Phase 2: Execute, lines 122-172)pwrl-work-review (S6)