/maverick:do-epic epic issue number (e.g., 123)from maverick
Orchestrates multi-story GitHub epics by building a dependency DAG, scheduling waves, running stories in parallel via git worktrees, and ejecting PRs that fail agent code review.
Ships in maverick. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Work on epic issue $ARGUMENTS end-to-end. Builds a dependency DAG
from the epic's child stories, schedules them into waves, runs each wave
in parallel via per-story worktrees, and drives every story through agent
code review with binary PASS/FAIL verdicts.
Run this first. If it exits non-zero, halt and report the stderr output to the user verbatim. Do not claim, do not branch, do not start any worktree.
uv run maverick preflight do-epic
The check verifies: the project is initialised, the Maverick GitHub
App is configured (maverick gh-app status reports configured: true),
git worktrees are usable, and required tools (gh, git, uv) are on
PATH. PR code review runs locally inside each story's worktree as the
agent-code-reviewer subagent (delegated from
do-issue-solo Phase 9). For epics that fan out across
many parallel workers, consider opting into the CI-side re-run
described in mav-bp-remote-code-review so the merge is
gated by an independent check even if a worker's local review fails to
fire — that workflow is optional and not enforced by preflight.
$ARGUMENTS must be the GitHub issue number of a Maverick epic
— an issue whose body contains a task table of child stories. If it is
a single story, dispatch do-issue-solo instead.
gh repo view --json nameWithOwner.mav-durability-on-gh:
maverick-dag marker on the epic.maverick-state marker.maverick-bprop marker — if present, resume block
propagation first before continuing.uv run maverick coord claim <repo> $ARGUMENTS --scope <csv-of-issues>.
On ClaimRejected, abort and report per
mav-multi-instance-coordination.coord heartbeat-status:
for issue in <epic> <story1> <story2> …; do
uv run maverick coord heartbeat-loop <repo> $issue --daemonize
done
Never background the foreground loop with & — a process backgrounded
from a tool shell dies with the shell or leaks unobservably.coord release-all, releasing every claim this instance recorded —
the matching heartbeat-loop processes detect the cleared labels and
exit on their own; lease expiry covers machine death. Your only
explicit releases are the per-story ones at workflow boundaries
(merged / ejected). Do not attempt trap-on-exit wrappers — each Bash
call is a fresh shell, so a trap cannot survive to session end.If the epic does not yet have a solution design:
agent-issue-analyst with the epic issue.agent-github-issue-planner — the planner will
create child stories as sub-issues (per the ≥ 5-tasks threshold in
mav-create-tasks).uv run maverick coord claim <repo> <child-issue> for each.If the epic already has stories, skip to Phase 2.
Build a machine-readable DAG of child stories.
docs/conventions/github-markers.md:
{
"epic": $ARGUMENTS,
"stories": {
"140": {"deps": [], "files": ["app/src/boot.ts"]},
"142": {"deps": ["140"], "files": ["app/src/admin/guard.ts"]}
}
}
/tmp path — concurrent runs share
it, #159):
uv run maverick gh-state write <repo> $ARGUMENTS maverick-dag --payload-file - <<'EOF'
<DAG payload JSON>
EOF
uv run maverick dag waves <repo> $ARGUMENTS
The output is a list of lists — each inner list is a set of stories with no un-satisfied deps on later waves. Record the waves in the epic's human-readable task-table comment as well, so a human skimming the epic can see execution order.
maverick-state with initial status:
pending if not yet startedmerged if already merged (detected by reading PR state)in_flight only if another instance's heartbeat is live for ituv run maverick state set <repo> $ARGUMENTS <story> <status>
Each call mirrors the local cache to the maverick-state marker on
the epic.Repeat until every story is terminal (merged or ejected) or every remaining wave is fully blocked.
uv run maverick dag waves <repo> $ARGUMENTS.uv run maverick state show <repo> $ARGUMENTS.blocked-by:#N — re-read the labels at
selection time so human-resolved ejections automatically unblock.maverick-state.Resolve the story base branch from config:
STORY_BASE=$(uv run maverick git-workflow story-base)
For each unblocked story in the wave, decide its base branch:
mav-stacked-prs.$STORY_BASE.Create the worktree:
uv run maverick worktree create <branch> [--base <sibling-branch>]
Decide based on:
MAX_CONCURRENT_WORKTREES=4 active at once.If parallel: dispatch one subagent per worktree, running
do-issue-solo for that story inside that worktree. Track
the subagents and aggregate results. Every story prompt must:
maverick-issue: <story>, andcd into its worktree first and to put
maverick-issue: <story> in every agent it dispatches and every inner
skill it invokes.This session holds the epic's claim plus one per in-flight story, so the plugin hooks can only attribute a dispatch to the right story's report through that marker (or the story branch checked out in the working directory). Without it, story reports show no dispatches.
If serial: iterate worktrees one at a time, running
do-issue-solo in each.
For each story being worked on (whether as subagent or serially):
uv run maverick coord heartbeat <repo> <story>
— if the story now carries blocked-by:#N, abort without pushing.do-issue-solo's per-story phases
(Phase 4 onward — branch is already created).MAVERICK_VERDICT: FAIL marker parsed in do-issue-solo
Phase 9; a missing or ambiguous marker counts as FAIL:
ejected in epic state:
uv run maverick state set <repo> $ARGUMENTS <story> ejected.mav-block-propagation:
maverick-bprop marker on the epic.blocked-by:#<story> to each.maverick-bprop marker when the walk completes.merged in epic state.Draft until the story's agent reports done. Every story PR is
opened as a draft (do-issue-solo Phase 8), and only that
story's own run marks it ready, at its Phase 10 step 3 or on eject.
The coordinator treats a draft story PR as unfinished, and never marks
one ready or merges it on a story's behalf. If the coordinator itself
changes a story branch — a conflict resolution, a base merge, a
regenerated migration — it first runs
uv run maverick pr ready <repo> <pr> --undo, and the story goes back
through do-issue-solo Phase 8 step 5 onward. A project
that merges story PRs through its own queue instead of auto-merge runs
uv run maverick pr ready <repo> <pr> --expect-head <sha> immediately
before gh pr merge, so a head that moved since the gates ran is never
merged.
When every story in the wave is terminal (merged or ejected):
git fetch origin "$STORY_BASE" and fast-forward it) so the
audit sees every merged story.Mode: full-audit, the epic's title and goal as the spec, and the
line maverick-issue: $ARGUMENTS.critical or high finding, look for an open issue that
already covers it
(gh issue list --label security-audit --state open --search "<file path>").
If none does, open one with the Maverick GitHub App identity,
labelled security-audit (plus needs-human for critical),
with the finding's location, description and recommendation and a
Found by the epic #$ARGUMENTS audit. line. Create the label
first if it doesn't exist.security-audit, so they get added to checks.commands.gh pr diff <pr> for each merged PR).update mode
with that diff, the docs the epic and its stories cite, and the
line maverick-issue: $ARGUMENTS. Instruct it to report
only (it is running on the base branch, where nothing may be
committed directly): return each stale doc with what is stale.uv run maverick docs owners <path> ...)
and open one follow-up issue per group, labelled with the owner's
label (default docs-drift) and naming the owner. If an owner
has an agent, say so in the issue so whoever picks it up
dispatches that agent.maverick-state one last time.uv run maverick coord release <repo> $ARGUMENTS (the default
reason; don't pass the bare word as an argument — worktree-isolated
agents have it refused, #160).heartbeat-loop background processes self-terminate within one
--interval window once their claims are released — wait for them
if you backgrounded them with PIDs, or just let the parent shell exit.do-issue-solo Phase 10, but the epic
itself spans multiple branches/PRs, so the simple close-on-merge
CLI doesn't fit — query the policy and decide:
policy=$(uv run maverick issue policy)
if [ "$policy" != "manual" ] && [ "$ejected_count" -eq 0 ]; then
gh issue close $ARGUMENTS \
--comment "Epic complete: $merged_count stories merged."
fi
If any stories were ejected, leave the epic open for the human to
resolve them and close manually. If the policy is manual, leave
the epic open regardless — the team's promotion workflow handles
final close.At any entry, if another instance was mid-flight:
maverick-bprop marker means a block walk was in progress — resume it
per mav-block-propagation.maverick-claim on some stories with a stale lease means an instance
died — decide takeover per mav-multi-instance-coordination.maverick-state with stories marked in_flight but no live claim
means those stories are orphaned — reclaim and resume, or mark back to
pending if the worktree was destroyed.The workflow is idempotent on every entry — you can re-run do-epic on
the same epic any number of times and it will converge to the same final
state.
maverick gh-app status does not report configured: true.agent-code-reviewer. No fix loop.What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (thermiteau/maverick) — no native marketplace selected
npx claudepluginhub p/thermiteau-maverick41 skills in this plugin
/do-adoptScan a project for missing best-practice areas and implement the top recommendation for each gap (linting, unit testing) — installs tools, writes configs, verifies, and commits. Pass 'recommend' to stop after writing recommendations without implementing (replaces the old do-recommend skill)./do-codeImplement a focused code change. Use this skill as the wrapper for any implementation work so the Maverick workflow report captures what was done and so the agent applies the project's coding standards before editing. Intended to be invoked once per task from inside a do-issue-* or do-epic phase, not standalone./do-cybersecurity-reviewAudit a codebase for security risks in one of two modes. In full-audit mode it scans the entire codebase and writes a findings report to docs/security-audit.md (run as part of do-init or on demand). In update mode it hands a diff to the independent agent-security-reviewer, which reviews the diff plus the code it could impact in a fresh context and returns PASS, FINDINGS or BLOCKING. Applies the project's own security checklist from docs/maverick/skills/ and its invariant checks. Covers secrets exposure, dependency vulnerabilities, authentication and authorisation patterns, input validation, transport security, and common OWASP risks./do-docsCreate, restructure, or update technical documentation. Handles greenfield projects, refactoring non-compliant docs, and incremental updates after code changes./do-initInitialise a project for use with Maverick — verifies the GitHub App, installs the CLI if needed, writes the project config with integration tracking, scaffolds docs, generates project skills, runs an initial cybersecurity audit, then commits the changes and opens a PR./do-installInstall the maverick CLI tool system-wide at the version matching this plugin.2 plugins ship this exact skill · first indexed Nov 14, 2026
Other plugins' skills for the same job