/alamops-skills:write-testsfrom alamops-skills
Writes unit, integration, and e2e tests for code changes. Works from a plan's test breakdown, branch diff, or named module/flow. Supports jest, vitest, pytest, Playwright, Cypress. Proves each test runs and can fail.
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 add tests that would catch this change breaking: its acceptance criteria, the negative paths, and — when the change spans layers — the assembled flow end to end. You coordinate; agents write the test files in parallel, partitioned so they never edit the same file.
This is Phase 6 of the implement delivery loop, packaged to run on its own. It usually follows execute-plan (or any finished change) and is followed by test-loop, which runs the full suite and drives it to green. This skill runs only the tests it writes — once, to prove they execute.
Find the target, in order of preference:
docs/plans/<slug>.md §5 lists test tasks, their layer, which implementation task each covers, and the e2e run recipe. Use it as the partition.git diff <base>...HEAD plus uncommitted changes. Default <base> to the plan's Base SHA if there is one, else the merge-base with origin/main (or main/master).billing/proration.ts", "add e2e for checkout".Then gather what the change is supposed to do — the plan's objective and acceptance criteria, a grill record, the PR description, the ticket. Tests encode intent; tests written only from the diff encode whatever the code happens to do, bugs included.
Finally, map the existing test setup before writing anything: the test runner and command per layer, where test files live and how they're named, fixtures, factories, and helpers, how state is reset between tests, and how the app is started for integration/e2e (an investigate brief's Runnability section has this if one exists). New tests should look like the tests already there; a second, parallel harness is a maintenance cost nobody asked for.
Unit and integration tests validate pieces in isolation. A class of bugs only shows up in the assembled system — broken wiring between layers, auth and session behavior, a migration meeting real data, a UI flow that dies on its second step — and for those an e2e test is often the only automated way to catch it before a user does.
--no-e2e (or "skip e2e"), write no e2e tests and set up no harness — unit and integration coverage is unchanged.Partition test tasks by the module or file under test, so each agent owns its own test files. Shared test infrastructure — a fixtures module, a factory file, a global setup, snapshot directories — is the hot spot: give each shared file to exactly one task, or sequence the tasks that need it.
Keep the fleet proportionate: a small change is one agent or none (write the tests yourself); a feature spanning several modules might be 2–4. Spawn a wave's agents in a single message so they run concurrently. On Claude Code, use general-purpose agents and 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, write the tasks yourself one at a time.
Each brief carries:
file:line), the fixtures and helpers to reuse, the command to run just these tests.sleep to wait for something — wait for the condition (a readiness endpoint, an element, a response). A flaky test gets skipped within a month, and a skipped test guards nothing.kind or message type, each member passes through the code that renders or handles it in at least one test. An untested variant is where a malformed request or a wrong endpoint ships.close() isn't a crash. For "survives a restart", actually restart. For a dependency outage, inject the outage. A gentler stand-in passes against the real bug.returns when DATABASE_URL or a service is missing turns every test behind it into a 0 ms pass. Skip loudly instead (it.skipIf, ctx.skip(), pytest.skip), and make CI fail when a required service is unreachable, for example with a global setup.Every new test gets run at least once before you report, with the narrowest command that runs it. A test file nobody has executed might not even load.
test-loop's job — or the user's call.Then run python3 scripts/quality_gates.py hygiene --worktree (scripts/ sits next to this file; Python 3.9+, standard library only.) and fix every hit in the files you wrote: focused or skipped tests, sleeps, and silent early-return guards. If you produced a report from the run, also run quality_gates.py suite <report> --scan-tests <test-dir>, so new tests that "passed" in 0 ms get a second look.
A full-suite run is out of scope here; if the new tests needed app startup, tear down whatever you started.
test-loop to run the whole suite and drive it to green.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
15 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.npx claudepluginhub alamops/skills --plugin alamops-skillsOther plugins' skills for the same job