Install
$ agentstack add skill-juliusz-cwiakalski-agentic-delivery-os-run-plan ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Run the IMPLEMENTATION PLAN phase-by-phase for a tracked change. Mark each task as completed and perform a Conventional Commit (via /commit) after every finished phase (or per task if directed). Automatically resumes from first incomplete phase on subsequent invocations.
User invocation: /run-plan [plain text directives] Examples: /run-plan PDEV-123 /run-plan GH-456 execute next 3 phases and then ask for review /run-plan PDEV-123 execute all remaining phases /run-plan GH-456 execute phase 5 only /run-plan PDEV-123 execute all remaining phases no review /run-plan GH-456 dry run execute next 2 phases /run-plan PDEV-123 execute phase 3 commit per task
workItemRef='$1' — Tracker reference (e.g., PDEV-123, GH-456). Uppercase prefix + hyphen + digits. directives='$ARGUMENTS' — Full arguments; if same as workItemRef, no directives.
Locate change folder: search doc/changes/**/*----*/ If not found, search for spec file: doc/changes/**/chg--spec.md Plan file: chg--plan.md inside the change folder. Spec file: chg--spec.md for change.type and slug validation. Folder pattern: doc/changes/YYYY-MM/YYYY-MM-DD----/ Never reference doc/changes/current/ in edits or evidence.
//
- If current branch matches pattern → keep. 2. Else attempt checkout existing branch. 3. Else create new branch. 4. Abort if dirty working tree contains unrelated staged changes.
Supported (case-insensitive):
- "execute next N phases" → run current incomplete phase + N−1 subsequent.
- "execute all remaining phases" → run all incomplete phases.
- "execute phase N" → run only phase N (must be incomplete).
- "ask for review" / "and then ask for review" → pause after requested phases (default).
- "no review" / "continue without review" → do not pause.
- "dry run" → simulate; no edits/commits.
- "commit per task" → commit after each task instead of per phase.
Defaults (no directive): phasesToRun=1; askForReview=true; commitMode=per-phase.
Phase header regex: /^### Phase (\d+):/ Tasks: checkboxes under "Tasks:" until blank line or "Acceptance Criteria:" Unchecked: - [ ]; Completed: - [x] Completion: replace token only, append note e.g. (done: added config & tests) Acceptance criteria: lines start with "- Must:" or "- Should:"; append (PASSED: ) or (FAILED: ) Execution Log: header "## Execution Log"; append if missing
Determinism: parsing & updates never reorder tasks or phases. Minimality: edit only necessary lines; avoid broad formatting changes. Traceability: every edit tied to task completion; commits atomic. Autonomy: proceed without prompting unless blocked. Idempotence: re-running resumes cleanly without duplicating evidence.
For each selected phase:
- Identify pending tasks (unchecked). If none but acceptance evidence missing, treat as completion-only phase.
- For each pending task:
a. Form internal contract (goal, inputs, outputs, success checks). b. Discover relevant files in: src/, app/, packages/, modules/, lib/, services/, infra/, config/, scripts/, tests/, static/, doc/. c. Implement minimal edits; avoid unrelated refactors. d. Add/adjust tests when functional behavior changes. e. Run quick validations (typecheck/build/test subset). f. Mark task completed with concise evidence note. g. If commitMode=per-task: stage only task changes + plan update, then /commit.
- After tasks complete:
a. Run full quality gates; capture PASS/FAIL summaries. b. Append evidence to acceptance criteria lines (once only). c. Append Execution Log entry. d. If commitMode=per-phase: /commit.
- Stop after phasesToRun. If askForReview=true, pause with summary.
Use /commit for Conventional Commit generation. Per-phase default; per-task if directive present. Ensure no unrelated changes bleed across commits. Tasks with no code changes: mark completed; commit with other changes.
After 3 fix attempts: mark task as (done: partial; deferred X). Do not mark acceptance criteria PASSED if behaviors deferred. Commit partial progress; pause and request guidance (override for blocking failure).
Auto-detect once per invocation (cache for subsequent phases):
- build: scripts/, package.json ("build" script), Makefile, CI configs.
- test: package.json ("test" script), scripts/test.\*, make test, pytest, go test.
- typecheck: tsc --noEmit if tsconfig; mypy if pyproject; go vet.
If detection fails: record attempts and skip with evidence.
No file edits, no commits. Output structured summary: starting phase, phasesToRun, task counts, detected commands, commit plan, next resume command.
Update plan file with task completion, acceptance evidence, Execution Log (unless dry run). Produce commits per commit_rules. Emit concise summary: phases executed, tasks completed, gates status, deferrals, next phase. On all phases complete: announce completion.
- Parse $ARGUMENTS: first token → workItemRef; remainder → directives.
- Validate workItemRef format (uppercase prefix + hyphen + digits).
- Locate spec & plan via discovery_rules; derive slug & change.type; validate presence.
- Validate plan structure (at least one phase with Tasks section).
- Ensure correct branch per branch_rules.
- Parse directives; decide phasesToRun, commitMode, askForReview, dryRun.
- Identify start phase (earliest with unchecked task or missing acceptance evidence).
- If dryRun: output summary; STOP.
- Detect quality gate commands (cache).
- Loop phases applying phaseexecutionrules & partialfailurepolicy.
- Perform commits per policy.
- Summarize; if askForReview=true and remaining phases exist → pause.
- If all phases complete → final summary.
Modify only: task checkbox lines; acceptance criteria lines; Execution Log section. Keep original line order & spacing (no reflow). Evidence parenthetical ≤ 80 chars; lowercase verbs; avoid redundancy. If Execution Log missing → append canonical section before first update.
Capture stderr snippet (5-10 lines) for gate failures; summarize root cause. Retry up to 3 focused fixes; if persists, log deferral & proceed if non-blocking. Blocking failure → phase abort + partial commit; require review.
Fail fast if:
- Spec or plan missing.
- slug or change.type not derivable.
- Target phase invalid or already complete.
- No tasks and no acceptance criteria in targeted phase.
Produce clear error; no edits/commits.
1) /run-plan PDEV-123 → Executes next incomplete phase; commits once; asks for review. 2) /run-plan GH-456 execute next 3 phases no review → Runs 3 phases without pausing. 3) /run-plan PDEV-123 execute phase 4 commit per task → Jumps to phase 4; commits per task. 4) /run-plan GH-456 dry run execute all remaining phases → Simulates; outputs plan.
Plan produced by /write-plan template structure. /commit handles Conventional Commit formatting automatically.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: juliusz-cwiakalski
- Source: juliusz-cwiakalski/agentic-delivery-os
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.