Use when executing or resuming DevFlow implementation, remediation, or the computed whole-work finalize action after PLAN/WORK artifacts exist, including requested ELI5 HTML and Newman verification.
Resources
2Install
npx skillscat add pottq577/devflow/run Install via the SkillsCat registry.
DevFlow Run
Operate as the Executor. Execute the runtime-selected WORK or whole-work delivery finalization.
Runtime
Every devflow command below runs from the repository root:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/devflow.py" <args>If that variable is unset, use this skill's wrapper instead. It resolves the plugin root from its
own location, so the working directory does not matter:
python3 <this-skill-directory>/scripts/invoke.py <args>Workflow
- Run
devflow delivery enable <domain>to adopt the policy on legacy active work, then rundevflow status <domain>.- For
run, follow the single-WORK flow below. - For
finalize, rundevflow render finalize <domain>and follow the whole-work procedure in that packet.
- For
- Run
devflow render run <domain>, or pass the exact reported WORK id with--task <ID>.- Render rejects a different ready item.
- The packet inlines the selected item, the authority rules, the WORK item contract, the risk policy, and the domain's
PITFALLS.md.
- Read the item's
contextandpitfalls, then readPITFALLS.md.- These exist so you do not rediscover what the Architect already paid for.
- Work through
premise_checksagainst current HEAD before editing anything.- Each entry names a fact to confirm.
- If one is false, the premise moved: stop, do not adapt the plan yourself.
- For a ready item, run
devflow work start <domain> <ID>.- For an already
in_progressitem, resume it with its existingevidence.start_sha; keep the original source baseline intact.
- For an already
- Establish the failing test or verification criterion first, where the change admits one.
- Implement only the coherent change boundary defined by the WORK item, staying inside
scope.allowed.- Follow repository rules and existing patterns.
- Add or retain accurate comments explaining important intent, invariants or constraints in changed executable source.
- Record a relevant source anchor and reason under
evidence.comments. - Pure docs/config/deletion work uses an explained
comments_note. - Comment usefulness receives independent review.
- Execute the item's verification commands plus repository-required checks.
- For version 2, confirm the executed set covers every acceptance ID.
- Verify API and end-to-end criteria at an observable contract layer; static source search alone is not runtime behavior evidence.
- If a stop condition is reached, run
devflow work block <domain> <ID> --reason "..."and stop.- Record a decision when human or product authority is required.
- Commit the verified source/test changes first.
- Read the actual
docs/PR/templates.md, rundevflow delivery paths <domain>, and generate/update the cumulative PR body and Postman v2.1 collection at those paths against this HEAD. - Preserve the actual branch base, template headings, prior WORK coverage, empty credential variables and honest execution status.
- Follow the full
delivery-artifactsprotocol in the rendered packet. - Fill
evidence.deliveryand comment anchors in WORK. - Keep derived output local/ignored; do not alter the source PR template.
- When acceptance criteria and these deliverables are supported by evidence, run
devflow work done <domain> <ID> --commit <sha> --command '<cmd> -> <result>' .... - It refuses a completion with missing comments, artifacts, source provenance or required command evidence.
- A failed completion preserves STATE/WORK.
- Unevidenced completion is the failure this protocol exists to prevent.
- Keep actual command results in
evidence.commands; version 2coversmetadata does not replace execution evidence. - A completed high/critical item then receives an initial work audit before a dependent can start.
- Read the actual
- If you discovered a trap that outlives this item, add it to
PITFALLS.md. - Run
devflow validate <domain>anddevflow status <domain>.- When the computed action is
finalize, continue as Executor withdevflow render finalize <domain>and the installed ELI5/Newman procedure. - Hand off actual audit actions to the Auditor.
- When the computed action is
Boundaries
- A
runaction handles one WORK item.
Thefinalizeaction aggregates all completed work; its confirmed repairs return to the normal single-WORK flow. - Do not opportunistically fix unrelated findings.
- Do not expand allowed scope to make the implementation easier.
- Evidence remains in the WORK item.
- The prescribed PR body and Postman collection are delivery outputs under the narrow protocol allowance.
- Avoid duplicate narrative completion reports.
- Generate files locally.
- At finalization, execute authorized isolated local/test Newman runs under
core/protocol/finalization.md.delivery newmanowns the JSON argv server process group, HTTP 200..299 readiness, Newman run and bounded SIGTERM/SIGKILL cleanup; never skip the run because the server is unavailable. - Treat startup, readiness, environment, Newman-tool and cleanup failures as blocked. Treat only a completed API/assertion failure as failed, and use code/collection triage only for that completed run.
not_applicablerequires zero Collection HTTP requests and zero declared endpoints with matching evidence. - Postman file generation itself sends no requests.
- At finalization, execute authorized isolated local/test Newman runs under
Peer execution disciplines
Follow core/protocol/skill-composition.md.
The active WORK is the hard execution boundary.
Behavior-changing WORK
When Superpowers test-driven-development is available, use it before production behavior changes:
- establish the required behavior from the WORK contract;
- add or identify a test that fails for the expected reason;
- make the minimum production change;
- verify the targeted test passes;
- run the WORK verification DevFlow requires.
Explicit repository or user instructions already carry sufficient authority for a TDD exception.
Do not halt the run to ask again for permission that repository or user instructions already grant.
This does not weaken TDD in general.
Defect and remediation WORK
When systematic-debugging is available:
- reproduce or verify the defect;
- identify evidence for the root cause;
- avoid speculative fixes;
- add regression coverage when behavior changes;
- implement the minimum confirmed fix;
- execute the WORK verification.
Completion
Before reporting a WORK complete, use verification-before-completion when available.
Fresh verification evidence must support the same behavior the WORK verification criteria require.
Record the actual executed evidence through devflow work done.
Never record peer-skill invocation itself as proof that the WORK passed.
Ponytail
Apply the currently active Ponytail policy when available.
Prefer reuse and the smallest implementation that satisfies the WORK.
Ponytail must not widen or shrink required WORK scope, remove acceptance criteria, weaken security or validation, skip required tests, bypass premise checks, or bypass DevFlow lifecycle gates.
Do not change Ponytail mode automatically.
Lifecycle ownership
One invocation executes exactly one selected ready WORK item.
Do not invoke peer controller workflows that select multiple tasks, dispatch subagents, create worktrees, run a separate final review, or finish branches.
Finish with WORK ID, changed files, comment anchors, PR/Postman paths, structural verification and actual API execution status, deviations/discoveries, status, and the next DevFlow action.