/engineering-practices:testing-best-practicesfrom engineering-practices
Use when choosing a verifier, running a feature on its closest-to-live surface, capturing UI evidence, deciding whether a check becomes a permanent test, diagnosing an unreliable test, or designing nontrivial regression coverage; routine execution of an established check needs no extra workflow.
Ships in engineering-practices. 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.
Start with the requested behavior and the important ways it could fail. Use existing test commands and the smallest boundary that can expose those failures. For an assembled-behavior bug, try the public path early; for isolated logic, a focused example or property test may be sufficient. Record reproduction limits rather than claiming an unobserved failure.
design).Once the change is verified, decide what outlives it. Probes, one-off scripts, screenshots, traces, and exploratory runs are evidence: record what they showed (command and result) with the change — its review, task, or PR — and discard them. Every permanent test is loaded, run, and maintained by each later change, so it earns that cost by guarding one of:
A change detector grades the implementation rather than the outcome: it asserts calls on a collaborator you own when the call is not the promised behavior, renders under stubbed UI to read props, compares constants or fixtures to themselves, or grades a third-party library's behavior instead of yours. It reddens on behavior-preserving change and passes real defects. Do not write one. When your change must edit one or reddens one, delete it; replace it only if what it stood in for meets the bar above, and say in the change record what is left unproven.
Give concurrent runs their own state. Control clocks, randomness, environment, and dependency versions where they affect repeatability. Wait for observable conditions with deadlines; never use elapsed sleep as proof of success. Avoid runtime test backdoors; explicit dependency injection is legitimate.
If a check fails, locate the cause before attributing it to the environment or a flake. When the public path is the verifier, its environment is part of it: a stale server or broken fixture yields a verdict about the environment, not the change. Repair it or report the check blocked; a narrower test that cannot reach the failure is no substitute. Reproduce claimed pre-existing failures at the baseline. A retry is a diagnostic probe, not evidence of correctness; stop repeated structural failure and report the block. Inspect progress before killing a slow run. A harness may kill a long background command at a fixed limit (Claude Code: 2 hours) without running its teardown; split longer gate chains into separate commands, and after such a kill attribute leftover fixtures before stopping them.
Record which inputs a result covered: reuse it while they are unchanged, and not after they change. A new commit id, message, or squash alone does not invalidate it. After changes, rerun only the affected checks. A green result stands until its inputs change: do not rerun it, retry a flake outside the change with the whole suite, or wait on gate jobs the change cannot affect. A required check that cannot execute remains blocked, never replaced by static confidence.
A replayed pass covers only what the check declares it reads, so a check that opens a file or reads a variable at run time declares it. Take gate evidence from a clean tree at a commit, and edit nothing in that worktree while the gate runs. A gate that selects nothing for a change has passed; record that it selected nothing.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alleneubank/agent-profile --plugin engineering-practices28 skills in this plugin
/agent-browserUse when driving a browser the agent owns through the agent-browser CLI — opening pages, clicking and filling by snapshot refs, screenshots, testing a web app, or extracting data from a rendered page./agent-deviceUse when driving an iOS, Android, macOS, or TV app through the agent-device CLI — opening an app on a simulator, emulator, or device, tapping and filling by snapshot refs, capturing screenshots, logs, or recordings, or replaying a scripted flow./agent-operabilityUse when designing or changing a CLI, API, control plane, or automation surface that an agent must inspect, operate, and verify safely.