| name | autoship |
| description | Use when the user wants fully autonomous delivery in this repo from a clear task through implementation, verification, review, and PR follow-through. |
Autoship
Run an end-to-end autonomous ship cycle for dubstack. Do not pause for confirmation unless blocked.
Non-Negotiables
- Operate autonomously and avoid routine follow-up questions; make reasonable assumptions and record them.
- Start from the explicit user request and the current repository state.
- Run two
review-council passes:
- Plan pass:
Architect persona, prefer claude.
- Code pass:
Staff Engineer persona, prefer claude + codex + gemini.
- Run repository quality gates twice (before and after council-driven fixes).
- Require zero failures and zero warnings.
- Run quality checks strictly sequentially (never parallel).
- Use this repository's required quality-gate sequence:
pnpm checks
pnpm typecheck
pnpm test
- If AI metadata or prompt generation changed, also run
pnpm evals.
- Maintain autonomy for git/PR operations: branch, commit, push, submit PR, and update the branch without waiting for extra confirmation.
- Work only in the current checkout (no git worktrees).
- Produce a written summary report for the user.
Workflow
-
Confirm task scope:
- Read the user's request and relevant repository files.
- Capture acceptance criteria from the prompt and codebase context.
- If the task is underspecified in a risky way, ask one concise question before making changes.
-
Build an implementation plan:
- Ensure plan directory exists:
mkdir -p .dispatch.
- Write a plan file at
.dispatch/autoship-implementation-plan.md.
- Include: scope, assumptions, risks, step-by-step tasks, test strategy, and rollback notes.
-
Plan review council (round 1):
- Use the
review-council skill.
- Persona:
Architect.
- Prefer
claude; if unavailable, use the best available reviewer and note the limitation.
- Revise the plan based on feedback and save changes.
-
Implement:
- Execute plan steps in order.
- Maintain existing repo patterns and code standards.
- Add/update tests for changed behavior near the edited code.
- If new follow-up work is discovered, record it clearly in the final report.
-
Quality gates (pass 1):
- Run checks strictly one at a time. Start the next check only after the
current check fully exits.
- Never run multiple quality checks concurrently.
- If a check is slow, keep waiting. Do not interrupt or spawn extra checks.
- Execute this exact verification sequence, one command at a time:
pnpm checks
pnpm typecheck
pnpm test
- If AI metadata or prompt generation changed:
- If repository policy requires wrappers/sub-agents for checks, still run the
same checks in this exact order, sequentially.
- Treat any warning as a failure.
-
Code review council (round 2):
- Use the
review-council skill.
- Persona:
Staff Engineer with strict review tone ("hard-ass staff engineer").
- Prefer council members:
claude, codex, and gemini.
- If one member is unavailable, continue with available reviewers and record the gap.
- Apply all valid fixes and document any rejected feedback with rationale.
-
Quality gates (pass 2):
- Re-run the exact same full verification set from step 5.
- Do not proceed until every check passes with zero warnings.
-
Create stacked PR:
- Use a non-interactive autonomous
dub-flow path for branch + commit + submit (for example: dub flow --ai -a -y).
- Ensure PR description includes scope and test evidence.
- If
dub-flow is unavailable, fall back to direct non-interactive commands (dub create ... + dub ss) and record why.
-
Post-PR CI watch and fix loop:
- Run
gh pr checks --watch and wait for completion.
- If any check fails or reports issues:
- Fix the issues in code.
- Re-run the full local verification set sequentially (same commands as
step 5/7).
- Update the PR branch.
- Run
gh pr checks --watch again.
- Repeat until all PR checks complete successfully.
-
Copilot review comments:
- Ensure a Copilot review exists on the PR.
- After CI is green, review Copilot comments and resolve all valid feedback.
- Use the
review-pr-comments skill in autonomous mode (do not pause for
user confirmation) to process unresolved review threads.
- For rejected comments, provide technical rationale in-thread before
resolving.
- If code changes were made while addressing comments, re-run local quality
checks sequentially and run
gh pr checks --watch again.
- Produce final report:
- Ensure report directory exists:
mkdir -p docs/reports.
- Create
docs/reports/<date>-autoship-report.md using
report-template.md.
- Include: selected task, plan changes from council, implementation summary,
quality gate evidence (both passes), review-council findings + resolutions,
CI watch cycles, Copilot review comment resolutions, PR link, and any
follow-up work.
- Share a concise handoff summary with the user.
Failure Handling
- If blocked by missing credentials, missing CLI tools, or infrastructure failure,
stop and provide a blocker report with exact failing command, error, and next action.
- Do not skip required steps, quality gates, or council rounds.