/alamops-skills:write-planfrom alamops-skills
Writes a decomposition-ready implementation plan to docs/plans/<slug>.md with file:line anchors, work breakdown, test tasks, execution waves, and blast radius. Builds on investigate/grill output. Read-only; no code changes.
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.
None: SKILL.md is the whole skill.
Your job is to turn a change that's understood into a plan that can be executed by parallel agents without them colliding, and to save it as a durable artifact under docs/plans/. The plan is not a summary of intentions; it's the contract each implementation and test agent works from, which is why it has to say exactly which files each task owns.
This is Phase 3 of the implement delivery loop, packaged to run on its own. It reads an investigate brief and a grill decision record when they exist; its output is what execute-plan (coding waves) and implement (the whole loop) execute.
Read-only on the repo. The only files you write are the plan and, when the source spec lives outside the repo, a copy of it under docs/specs/ (see §1). No code changes happen until someone approves the plan.
Look for, and read, whatever already exists for this feature:
docs/plans/<slug>-investigation.md — findings, spike verdicts, completeness inventory, runnability.docs/plans/<slug>-grill.md — the owner's decisions, dispositions, and open assumptions. It's kept out of git because owners answer it candidly. Carry its decisions into the plan as requirements citing owner (grill), and leave out the owner's notes, reasons, names and uploads.If there's no investigation, do a proportionate read-only grounding pass before writing: the files the change touches, sibling code paths to mirror, every caller of what's changing (including re-exports, barrels, and scripts or jobs outside the main source tree), how the app and its tests run. On Claude Code, a couple of parallel Explore agents cover this; on a small change, read inline. A plan without file:line anchors is guessing at the file ownership it's supposed to guarantee.
Whether or not an investigation exists, make sure the plan stands on these four things:
docs/specs/ next to the plan. Outside the repo means a file on someone's machine, a chat or artifact link, or a ticket. Then cite it by repo-relative path, and say in your hand-off that it should be committed before the code. If the owner doesn't want it committed, quote the load-bearing sections into §2. Never cite an absolute local path, or a line number in a file only you can open. A reviewer has to be able to check the code against the contract, and they can't if the contract only exists on your machine.gh api …, a cloud CLI's describe or list, or git ls-remote. Check that an environment, branch, workflow or secret path the plan names actually exists.If load-bearing questions are still open and nobody grilled the owner, ask them in one structured pass before writing — the few whose answer would change the plan's shape, not a full interrogation. (For a large or ambiguous change, suggest grill instead.) If the owner says "just write it", proceed and log each assumption in §8. Never plan silently over an unasked question: a plan built on an assumption nobody sees is how the wrong thing gets built efficiently. A skipped one-way-door question is different: trust boundaries, auth, destructive data changes, public contracts, money. Don't answer it on the owner's behalf. Plan the narrowest safe option, mark it unratified at the top of §8, and say in the hand-off that it belongs in the PR body for a reviewer to ratify.
Before breaking down any work, list every candidate follow-up — every caller still on the old path, every place a shape propagates, the existing rows a migration must backfill, the reachable states with no handling, the docs that will describe the old behavior, the code the change orphans, and the wiring that connects each new unit to a production entry point (registration, config reads, the loop that calls it). Then disposition each:
--no-follow-ups or --auto.A row that just says "deferred" with no owner behind it isn't a disposition — it's a task you forgot to write.
Do this before the breakdown and let it feed the breakdown: a remainder you notice while writing tasks tends to get written down as a note; a remainder you enumerate first gets a task. The ledger is also the honest scope estimate — it's where the owner sees how much finishing the job properly adds, before a line of code is written.
The line between in and out: would a reviewer call the shipped change unfinished without it, or call it a different ticket? Adjacent features, drive-by refactors, and dependency upgrades stay out.
Split the change into tasks such that, within a wave, no two tasks own the same file, and order the waves so every task's dependencies land in an earlier wave. This is what makes parallel execution safe: agents that edit the same file concurrently corrupt each other's work, and no amount of good briefing fixes that after the fact.
For each task:
consent on × permission undetermined × can ask again → explainer shown). "Cover the full matrix" isn't acceptance: the agent picks the convenient rows, and those are rarely the ones where a rule order goes wrong.trust (untrusted input, authz, approvals, secrets, paths, grants), data (transactions, queries, schema reads), external (outbound calls, retries), concurrency (background loops, timers, multiple instances), state (lifecycles, transitions, cleanup), platform (OS or browser APIs, app lifecycle, permissions, background or headless work, deep links), migration, infra, tests, or none. The tags pick the build rules each coding agent gets, and decide which waves are reviewed before the next one builds on them.main), or the ID of the task that wires it in. If you can't fill this in, nothing in production will ever call the code. You've planned a module that will be written, tested, reported done, and never run, which is the most expensive remainder a plan can produce.Watch the hot spots that make a partition quietly invalid — files that many tasks "just need one line in": route or DI registries, barrel index files, schema definitions, migration sequence numbers, lockfiles and package manifests, generated clients, i18n catalogs, shared fixtures and snapshots. Either give that file to exactly one task (often a small wiring task in a later wave) or sequence the tasks that touch it.
Make the wiring a named task. Most features need a small composition step: register the route, the job, the handler or the plugin, read the new config keys, start the loop. Give that step to one task in a late wave. When the wiring is spread across "everyone adds their own line", it collides. When nobody owns it, it doesn't happen.
Trace every success criterion to the code that produces it. For each item in §1, name the production path that creates the output, and the task that builds each hop. If the objective is "produce X", some task has to own the line that creates X. A renderer for X, a type for X, or a test fixture for X doesn't count. A criterion with no producing task is the feature missing from its own plan.
Plan inside the structure the repo already has.
Name each invariant and its single enforcement point. For the rules every path must obey, record the one function or module that enforces each in §7. Examples: who may trigger a privileged action, what an approval binds to, one writer per state, idempotency of external writes. UI state counts: when several screens use a shared hook or gate, the invariant is that each screen calls the gate's actions and keeps no copy of its state. A task that adds a new path to a guarded action has acceptance "goes through <gate>". The batch version, the retry, the follow-up job, the fallback and the second screen are where a rule enforced in several places stops being enforced.
Pin the least privilege. Agents copy pinned SQL, policies and permission lists exactly, and reviewers read them as approved. So when the plan pins grants, grant each function, scope or IAM action only to the roles that call it directly. An inner helper called from a SECURITY DEFINER function needs no client grant.
Keep every barrier green. Each wave ends in a checkpoint commit that later work resumes from, so at every barrier the tree should build and the suite should pass — a plan whose checkpoints are knowingly red makes "resume from the last green wave" meaningless. Tasks in the same wave can code against an interface the plan pins down (a signature, a type, a column name), so a breaking change and the callers and tests it breaks usually belong in the same wave as separate tasks, not in consecutive ones. Where a red barrier is genuinely unavoidable, say so in §6 and name exactly which tests are expected to fail and which task turns them green.
Keep the fleet proportionate: group trivially small edits into one task rather than one task per file, and don't force parallelism onto work that shares context and ordering — two sequential waves beat one colliding wave. Coding parallelizes worse than research.
Plan the delivery, not just the waves. If the change will be too big to review as one diff, plan it as a stack of PRs in dependency order and record the slices in §6. Roughly, that's more than 1,500 changed lines, or several subsystems. Each slice must be wired, green, and reviewable on its own, and must delete anything it doesn't wire. A reviewer can work through a stack. One PR of tens of thousands of lines gets skimmed, or returned unreviewed. When the change depends on work in another repo, list each dependency and its state (merged, open, not pushed) in §7, with the merge and apply order.
Validate before you finish. Cross-check the owned-files lists of every wave; if any path appears twice in one wave, the wave is invalid — re-partition it. Then check every task has a wired by, and every §1 criterion has a producing task.
Then check the plan against itself. Pinned code, pseudo-code and rule orders are what agents implement exactly, so a mistake there ships faithfully and the tests written from the same plan agree with it. Take every §8 assumption, every §1 criterion, and every acceptance or QA item, one at a time, and trace it through the pinned interfaces and rule orders. In a first-match list, check that each case reaches the rule meant for it, rather than returning early on a rule above it. Each contradiction you find is a plan bug: fix the order, or take the assumption back to the owner.
List test tasks by layer (unit / integration / e2e), which implementation task each covers, and their owned test files — partitioned the same way, by module under test.
Beyond each task's own acceptance, plan these:
Decide e2e applicability explicitly. It applies when the change has a user-visible flow or crosses a process boundary (UI → API → DB, service → service, CLI → filesystem) and the app can run locally. It doesn't apply to a pure library or helper change fully exercised by unit tests — and then the plan says so. "Not applicable" is a recorded decision, never a silent omission. When it applies, record the run recipe: the e2e command, how the app and its services start, seed data, credentials and environment prerequisites. If the repo has no e2e harness, don't quietly plan heavyweight infrastructure — propose the minimal ecosystem-standard harness scoped to this feature's flows as a decision for the owner.
Under --no-e2e, record e2e as skipped by flag and plan unit/integration only.
Save to docs/plans/<slug>.md — reuse the slug from an existing investigation or grill record; create the folder if missing; suffix -YYYY-MM-DD if an unrelated plan already has that name. Use this template (it matches the one implement writes, so either skill can execute it):
# Plan — <Feature Name>
| Field | Value |
| --- | --- |
| Date | <YYYY-MM-DD> |
| Source | <task / repo path of the spec or PRD / investigation + grill records / conversation> |
| Flags | <e.g. --no-e2e --no-follow-ups, or "none"> |
| Gates | <"grilled + approved by owner", "approved by owner (no grill)", "owner skipped the grill: N unratified decisions (§8)", or "self-resolved under --auto"> |
| Status | <planned / wave N of M landed / review / tests green — kept current during execution> |
| Branch | TBD — set when execution starts |
| Base SHA | TBD — set when execution starts |
## 1. Objective & success criteria (each criterion names the production path that
produces it — entry point → … → new code — and the test that drives that path)
## 2. Context & constraints (grounded findings with file:line anchors; the spec by
repo-relative path; repo standards that apply — lessons, checklists, ADRs, sibling
layout — each with its path; spike verdicts with what was measured and under which
versions; live facts checked, with the command)
## 3. Approach & key decisions (alternatives considered and why this one; mark which
decisions rest on evidence vs. reasoning)
## 4. Work breakdown — implementation tasks
| ID | Goal | Owned files | Depends on | Acceptance (scenarios) | Risk | Wired by |
Review-response plans add the finding map:
| Finding (ID + title) | Task | Regression test | Status |
## 5. Work breakdown — test tasks
| ID | Layer | Covers | Owned files | Acceptance |
E2e: applies to <flows> / not applicable because <reason> / skipped via --no-e2e.
Run recipe: <command, app + services startup, seed data, credentials>
## 6. Execution waves (which tasks run in parallel; the barrier between waves;
owner checkpoints between waves (screenshots, a device check) and what happens
to each under --auto: recorded as skipped, never passed; delivery slices — the
stack of PRs — when the change is too big for one review)
## 7. Invariants, runtime shape & risks
Invariants: <rule> — enforced at <one place> — every path routes through it.
Runtime shape: instances, rolling deploys, crash between steps, dependency outage,
kill switch and which setting wins.
Blast radius: callers, sibling paths, migrations, rollback, feature flags.
Cross-repo dependencies: <repo / PR / branch, state> and the merge/apply order.
## 8. Open questions / assumptions (unratified one-way decisions first; then what the
owner left open and what you're proceeding on; under --auto, the self-answered Q&A —
question / answer / source / confidence — plus any one-way decision scoped out for a
human. Not a bin for remainder: that's §9)
## 9. Completeness ledger
| Item | Disposition | Task ID / reason / who deferred |
When the input is a review of existing work, the plan's core is the finding map in §4. Every finding gets a row with its ID and title, the task that fixes it, and the regression test that proves it. Before you map a finding, check it against the code at the head the review read. One you can't reproduce goes in §8 as a question for the reviewer, not into a task.
Plan three things that fix rounds otherwise get wrong:
The plan's last task refreshes every claim at the final head: the PR description, any generated report, test counts, and this plan's Status.
Give the owner a short read of the plan rather than the whole file: the objective, the approach and the key decision behind it, the waves at a glance (how many tasks, how parallel), how big the ledger made the job, the top risks, and every open assumption — unratified one-way decisions first. Then ask for approval or changes. This is the last cheap moment to change direction — once code is written against a plan, changing the plan costs a rewrite.
If the ledger turned up remainder an order of magnitude larger than the original ask (the migration touches 200 call sites across three services), say so plainly and let the owner choose scope — don't let the size hide inside §9.
Under --auto, don't wait: write the plan, mark it self-approved in Gates, and put the §8 decisions the owner should check first at the top of your summary.
Once it's approved, suggest the next step: execute-plan to run the coding waves, or implement to take the plan through code, review and tests to green. If you saved a spec under docs/specs/, say it should be committed first and unamended, as its own docs commit, so any later change to it shows up as a diff a human can approve.
What SKILL.md sets; muted values are Claude Code's defaults
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