/alamops-skills:execute-planfrom alamops-skills
Executes an approved implementation plan by fanning out coding tasks to parallel sub-agents wave by wave, ensuring no file collisions. Cuts a branch, records base SHA, holds wave barriers, isolates shared files in worktrees, and commits checkpoints per wave.
Ships in alamops-skills. 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.
Read when SKILL.md points to them; scripts run unread.
Your job is to turn an approved plan's work breakdown into code, fanning tasks out to parallel agents wave by wave, so that the result is the plan — complete, on a branch, in resumable commits — and nobody's work got overwritten along the way.
You're the coordinator. Agents write the code; you own the decisions that keep the fleet safe: whether a wave is valid, what each brief says, when to move to the next wave, what to do with the remainder agents report, and how to recover when a task fails.
This is Phase 4 of the implement delivery loop, packaged to run on its own. It executes a plan from write-plan (or implement's Phase 3, or any breakdown with equivalent structure). It stops when the code is written: code review, tests, and the test/fix loop are separate steps (code-review, write-tests, test-loop) — or use implement to run all of it.
Find the plan — usually docs/plans/<slug>.md. Before anyone writes code, confirm it's executable:
Tasks own files. Every task lists the exact files it creates or edits, and waves say what runs in parallel. If the breakdown lacks file ownership (it's a ticket list or a PRD), derive the partition yourself from the code, show the user the tasks-and-waves table, and get a quick yes before spawning — you just changed the plan, and they should see it.
Open questions. If §8 holds an unresolved question a task depends on, raise it now. A premise that's wrong costs a sentence to fix today and a rewrite after the wave lands.
Wiring. Every task should say what production entry point reaches its code, or which task wires it in. Every success criterion should have a task that produces its output. If the plan has gaps here, say so and add a wiring task before spawning. Show the user, since you changed the plan. Without it, the waves produce modules that are tested, reported done, and never called.
The contract is in the repo. If the plan cites a spec by a path on someone's machine or a chat link, ask for it in the repo before building on it. If docs/specs/ holds a copy that isn't committed yet, commit it first, unamended, as its own docs commit.
Acceptance an agent can check. Each task's acceptance should be concrete enough to verify: scenarios with given, when and then. They include the failure states and the sequences, such as a command after another command, cancelling one of two items, or a cache past its expiry. Each names how it gets proven (a test, a command). "Works correctly" can't be checked, and neither can "the full matrix": write out its rows. Sharpen vague acceptance from the plan's intent before spawning, and show the user what you changed.
The plan agrees with itself. Agents implement pinned code, pseudo-code and rule orders exactly, and tests written from the same plan agree with them, so a contradiction there ships with green tests. Trace each §8 assumption and each acceptance or QA item through the pinned interfaces and rule orders. In a first-match list, check that each case reaches the rule meant for it. A contradiction is a plan problem: raise it with the owner before the wave that builds it. Under --auto, take the reading the assumption states, and record the change as unratified.
Risk tags. Each task should say what it touches: trust, data, external, concurrency, state, platform, migration, infra, tests, or none. The tags pick the build-rules sections its brief carries and decide which tasks get a review before the next wave builds on them. Tag untagged tasks yourself from what they own. A task that calls OS or browser APIs, handles permissions, or runs in the background or a headless context is platform, even if the plan didn't say so.
Owner checkpoints. If the plan asks the owner to approve something between waves (screenshots, a device check, a demo), it's a barrier like any other, so stop for it. When nobody can answer, as in an unattended run, record each skipped checkpoint in the plan's Status and list it at the top of the report. A skipped approval is never reported as passed.
Approval. A plan the user handed you with "execute this" is approved. A plan marked self-approved under --auto is approved for an unattended run.
Your changes to the plan stay marked as yours. You may fill an ordinary gap yourself: an unassigned shared helper, wave siblings that depend on each other, a route the plan didn't name. Record each change in the plan with a one-line reason, under a heading saying the owner hasn't approved it. Change the approval line too, for example "approved by owner; 6 later changes unratified". A one-way door is not yours to decide while the owner is away. That covers:
Ask the owner. If no one can answer, build the narrowest safe default, mark it unratified, and list it first in the report.
If the input is really a feature request with no plan behind it, say so and point to write-plan (or implement) instead of improvising a breakdown on the fly — the plan is where file ownership gets thought through, and skipping it is what makes parallel agents collide.
main/master or no target branch was named, create one from the plan slug (implement/<slug>) and announce it.git rev-parse HEAD as the base SHA and note whether the tree was already dirty (git status --porcelain). Fill the plan's Branch and Base SHA rows — a metadata-only edit, not a scope change. Review and the final diff are measured against exactly this ref, so pre-existing edits aren't mistaken for this build's.For every wave in the plan, in order:
Validate it. Cross-check the owned-files lists of the tasks you're about to launch together. If any path appears in two of them, the wave isn't valid — re-partition or split it before spawning. It's a thirty-second check and the cheapest place a collision will ever be caught.
Brief each task (see below).
Spawn one agent per task in a single message, so they run concurrently — when the tasks are substantial enough for parallel wall-clock to matter. A wave of a few small, single-file tasks is often faster done by one agent carrying them all, or by you directly; each agent costs a full context, so match the fleet to the work rather than to the task count. On Claude Code, use general-purpose agents; leave the model unset so they inherit the session's model unless the user asked for another. If your harness has no sub-agent tool, or the user or a calling pipeline told you not to spawn agents, execute the tasks yourself one at a time in wave order — the partition still keeps each change clean. Every other step below still applies, steps 5 and 6 most of all. Solo, verifying a task means checking your own diff against its acceptance as if someone else wrote it, and fixing what fails before you move on.
Hold the barrier. Wait for every agent in the wave before starting the next; later waves depend on earlier ones. If an agent says it's waiting on its own background command, message it to finish that in the foreground and report. Some harnesses treat an agent that has ended its turn as done, and if you end your turn when no agent is running, your own run can be cut short.
Verify every task, and send back what isn't right. A summary describes what the agent meant to do; the diff is what it did. You're the last line before the wave is committed and other work builds on it, so don't skim this step. See Verifying a task below.
Review the risky tasks before anything builds on them. Spawn one read-only reviewer for this wave when it holds a task tagged trust, data, external, concurrency, state, platform or migration, or when the wave added more than about 500 lines. On Claude Code, use a general-purpose agent briefed read-only, with the code-review skill if it's installed. Otherwise give it the matching sections of references/build-rules.md as the checklist. Scope it to this wave's diff (git diff since the last checkpoint, plus untracked files), and give it the tasks' acceptance and the plan's §7 invariants. Send must-fix findings back to the owning task's agent, then re-verify. A mistake caught here costs one task. Caught after three more waves have copied the pattern, it costs a rewrite. If the user said they'll review the code themselves, skip this step, and say in the report which waves went unreviewed.
Without sub-agents, the review still happens. When you can't spawn a reviewer, because there's no tool or the run forbids it, you review the wave yourself before committing it, as a separate pass after the code is written. Re-read the wave's diff from disk, not from memory. Run the code-review skill on it read-only if it's installed. Otherwise, for every risk tag in the wave, walk that build-rules section rule by rule against the diff and write one line of evidence per rule. A solo run is the one most likely to skip this, since nobody else will notice, and it's the run that needs it most, because nobody else read the code. A wave committed without any review goes at the top of the report, with its risk tags.
Checkpoint. Run a quick sanity pass if it's cheap: build, typecheck, lint on changed files, and python3 scripts/quality_gates.py hygiene --worktree and wiring --worktree. Check that each export this wave added either has a production caller already, or is named in a later task's wired by. Then commit the wave as wave N: <summary>, writing the summary from git diff --stat rather than from the plan. A commit message has to describe what the commit actually contains, and unrelated concerns go in separate commits. Update the plan's Status row. These commits are resume points: if a later wave fails, you pick up from the last green one instead of starting over.
A checkpoint commit claims its barrier holds. If the plan's barrier for this wave fails (say, "full e2e green"), fix it inside the wave before committing. Don't commit it as "WIP" and start the next wave, and don't fold two waves into one commit. A red checkpoint makes "resume from the last green wave" meaningless. If you can't get it green, stop and report. When the barrier includes the e2e or full suite, run it the way CI does, with CI's worker count and every optional project, because tests that leak into each other only fail in parallel.
An agent can't pause to ask what you meant, so its one instruction must carry everything. Vague briefs are the biggest single cause of overlapping work and rework. Every brief nails:
TODO/FIXME/stub/NotImplementedError standing in for in-scope work. If you find remainder outside your owned files — a caller on the old path, a validator that needs the new enum value — don't reach across the boundary (that collides) and don't leave a marker (that's a silent deferral): report it back.'', [], an always-throwing stub) to make a compile pass.references/build-rules.md, with the sections to read: Always, plus one per risk tag on the task. These are the review's checklists turned into rules for writing, so most of what a reviewer would flag never gets written.quality_gates.py hygiene and wiring with --worktree --paths <owned files>, and fix the real hits.Example: "Objective: add a TransactionHistory class. Owned files: create wallet/history.py — do not edit account.py, the tests, or config. Wiring: T7 registers it in wallet/service.py and calls append() from Account.post(); don't do that here, but list every public method T7 will need to call. Context: mirror the style of wallet/account.py:1-40; read limits from wallet/config.py, don't hard-code them; no new deps. Acceptance: (1) append() of a debit then a credit, then .since(t0), returns both in order; (2) .since(ts) with ts after the last entry returns []; (3) two append()s with the same idempotency key store one entry. Invariants (plan §7): entries are append-only; at least two instances run, so uniqueness is enforced by the database, not in memory. Build rules: read /abs/path/references/build-rules.md — Always, Database and transactions, State and lifecycles. Completeness: no stubs or TODOs; report anything outside history.py that needs changing. Self-check: run the six steps at the end of build-rules.md, with --paths wallet/history.py. Output: files changed, evidence per acceptance item, self-check results, deviations, remainder, exports awaiting a caller, anything you couldn't verify."
For each task in the wave:
Read its diff, not its summary. That's git diff -- <owned files>, plus any new untracked files. Check every file it touched is one it owns.
Check each acceptance scenario against the code. Find where each given/when/then is handled, and check the evidence the agent gave. "Done" with no evidence, or evidence that doesn't match the code, counts as not done.
Check the brief's clauses.
Run the gates yourself: python3 scripts/quality_gates.py hygiene --worktree --paths <owned files> and wiring with the same flags. An agent's own report of a clean self-check is a claim, not evidence.
Send back what isn't right. Send a fix request to the same agent, continued with its context if your harness can (on Claude Code, SendMessage to the agent). Otherwise re-brief a fresh agent with the same owned files. The request lists each problem:
Never fix it silently yourself while the agent reports success, because the next task's agent will repeat the mistake.
Re-verify the fix the same way. Allow two fix rounds per task. After that, do it yourself if it's small, or stop and surface it as a plan problem if it isn't. A task that fails twice is usually a wrong premise or a vague acceptance, not a careless agent.
The wave is committed only when every task passes, and the wave review's must-fix findings (step 6) are fixed and re-verified. Record the outcome per task: passed first time, passed after N fix rounds, or escalated. The record shows whether the briefs, or the plan, need to get sharper.
If two tasks genuinely must edit one central file (a registry, a routes table), prefer, in order:
isolation: "worktree"), then you merge each worktree branch into the working branch one at a time and resolve conflicts yourself. Merging is the step most likely to strand or clobber work, so it's the last resort, not the default.Agents following the completeness clause will report remainder they weren't allowed to touch — that's the clause working, not a failure. For each item:
What it never becomes is a TODO in the code or a "later" line in your report. Before you finish, grep the diff against the base for added TODO|FIXME|XXX|HACK and placeholder throws — it catches the obvious half in seconds.
Sweep a rule found mid-build. Sometimes a task finds a rule the code must follow everywhere, for example "call ensureRealtimeAuth before every channel join" or "every request carries the tenant header". Grep every site, including code ported from elsewhere and earlier waves. Fix the sites in this wave and schedule the rest. Add the rule to the plan's §7, so later briefs carry it. A rule fixed only where it was discovered stays broken at the sites nobody re-read.
Then run the wiring audit, the other half:
python3 scripts/quality_gates.py wiring --base <base-sha> and hygiene --base <base-sha> (scripts/ sits next to this file; Python 3.9+, standard library only.). wiring lists new exports that nothing in production reaches, and config keys parsed but never read. hygiene lists deferral markers, placeholder throws, focused or skipped tests, env reads outside config, hard-coded copies of config defaults, and the other patterns that keep turning up in reviews.Anything this turns up goes into a final sweep wave, or to the owner as a plan change. Code that's tested but unreachable isn't "available for later". It's the most expensive remainder there is, because every report says it's done. Unit tests pass on it, and a reviewer sees a well-tested module.
--auto, record it in §8. Then run it as a wave like any other. An unplanned 10,000-line commit late in a build is how a reviewable change becomes one nobody can review, and how earlier waves get silently rewritten.Write the report from evidence at the final commit: git log <base>..HEAD, the wiring audit and the sanity checks. Earlier agents' summaries describe what they meant to do, so don't build the report from them. If you also update a PR body, the plan's ledger or Status, or any summary doc, derive each claim from the same evidence.
code-review on the diff since the base SHA, write-tests for the plan's §5 test tasks, then test-loop to run the suite to green — or implement next time to run the whole loop.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub alamops/skills --plugin alamops-skills15 skills in this plugin
/appstore-review(alamops) Use whenever the user wants their iOS app checked against Apple's App Store Review Guidelines and submission requirements, or asks if Apple will reject something. Triggers — "will Apple reject this?", pre-submission audit, App Store readiness, pre-flight before TestFlight or App Store Connect upload, ITMS upload errors, rule compliance (3.1.1, 4.8, 5.1.1, 2.5.19…), iPhone Duo / foldable readiness, Xcode/SDK minimums and deadlines, or whether a change is allowed (subs moved off IAP to Stripe or a web link, tracking SDKs, sending user data to an AI API, remote feature flags, social login, permissions, privacy manifest, ATT, account deletion, age rating). Native Swift, React Native, Expo, Flutter, Capacitor, Unity. Fetches the live guidelines and Apple Developer News as exact text, then returns findings keyed by guideline number with severity, file:line evidence and fixes, plus upcoming deadlines. Read-only. Not for general code review, implementing features, or store-listing ASO (use appstore-seo)./appstore-seo(alamops) App Store Optimization (ASO) for the iOS App Store and Google Play — audit, write and rewrite store listings to rank and convert. Triggers — "/appstore-seo", app store SEO/ASO, "improve my app store ranking", "nobody finds my app", keyword research, writing app name / subtitle / keyword field / short & full description / promotional text / release notes / screenshot captions, auditing a listing from an App Store ID or store link, competitor teardowns, localizing a listing, store A/B tests (PPO, Play experiments), custom product pages and their keywords, creative briefs for screenshots, iPhone Duo sets and the new product page header / search result assets, pre-launch metadata, and **Apple Ads keyword and campaign planning** (Brand/Generic/Competitor/Discovery, negatives, Search Terms). Pulls live listings and competitors from Apple's public endpoints, then emits character-validated fields saved under `docs/appstore/`. Not for App Review compliance (use `appstore-review`) and not for website SEO./break-fix(alamops) Adversarial end-to-end bug hunt on a running app. Drives the real app like a hostile, confused, or impatient user — junk and boundary input, double-submits, out-of-order steps, back-button and refresh mid-flow, expired sessions, two tabs on one record, flaky network, tampered URL params — to make it throw, corrupt state, lose data, or strand the UI. Watches console, network and server logs, not just the viewport. Then reproduces each finding deterministically, traces the root cause in code, writes a *failing* e2e regression test, fixes the defect, and proves the suite goes green. Use whenever the user says break my app, try to break it, bug hunt, bug bash, QA sweep, exploratory / adversarial / chaos / monkey / fuzz testing, "find bugs by actually using it", "click around and see what explodes", or asks for an e2e test so a bug can't come back. Runs only against local/dev/staging targets the user controls. Not for reviewing a diff (code-review), building a feature (implement), or triaging production errors from Sentry./business-review(alamops) Analyzes a product/business from its public-facing materials (landing, pricing, onboarding, docs, app/UI, screenshots), separates real value from claimed value, generates 5–8 concrete buyer personas, ranks them across abundance / pain / urgency / WTP / retention / strategic leverage, recommends a primary ICP plus secondary and weak-fit segments, pressure-tests positioning and pricing against alternatives, and proposes messaging, landing-page, onboarding, demo, and product-experience improvements. Saves Markdown artifacts under `docs/` (personas, ICP analysis, positioning, product-experience). Read-only on source; prefers strategic clarity over flattery. Use when asked to analyze a business/product, generate personas, find or rank an ICP, pressure-test positioning or pricing, review a landing page or onboarding, or get a buyer-side strategic critique./code-review(alamops) Performs a thorough, read-only code review of any change source — a pull request, a git diff, uncommitted edits, recent commits, or code just produced in the conversation — and re-reviews a fix round, scoring each earlier finding fixed / partial / not fixed. Flags bugs; security and trust-boundary gaps (tenant isolation, authz, approvals bound to the wrong version, untrusted input driving privileged state, atomicity, retry safety, RLS self-recursion); reliability under the real deployment (two instances, crashes mid-step, network calls inside transactions, unbounded retries); code that is written and tested but never wired into production; PR-body and doc claims the code doesn't back; tests that cannot fail; performance, config and schema drift; and blast-radius gaps — checked against the repo's own rules and specs. Returns findings with severity, file:line, a failure scenario and a fix; never edits code. Use for any code review, PR review, re-review, diff review, or critique of recent changes./create-tasks(alamops) Senior Technical PM that turns a PRD, brief, ticket, or conversation into a small set of deep, end-to-end dev/QA tasks. Performs mandatory deep repo-context analysis (entry points, data models, utilities, API patterns, sibling code paths) before drafting, asks one structured pass of clarifying questions, then writes each task with problem, business rules, technical goals, dependencies, file paths, related existing code, data model, API specs, non-functional requirements, implementation guide, error handling, blast radius, testing, acceptance criteria, QA steps, and design specs. Layer-prefixed titles (`[Full-Stack]`, `[Backend+DB+Tests]`, `[Frontend+Backend+Tests]`, `[DevOps]`). No time, effort, or staffing estimates. Saves an INDEX plus one task file under `docs/tasks/<feature-slug>/`; read-only on source code. Use when asked to create, draft, scaffold, or break down dev/QA tasks, engineering tickets, sprint tasks, or implementation tickets from a PRD, spec, or feature description.Other plugins' skills for the same job