/dxd-skills:test-auditfrom dxd-skills
Simplify test suites around focused end-to-end journeys and API/database contracts, pruning redundant unit and component tests. Use when writing substantive tests or reviewing, simplifying, or pruning an existing suite.
Ships in dxd-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.
Prefer a small suite of focused E2Es that proves the product works. Optimize for confidence and maintenance burden across the whole suite, not the number of individually defensible tests. Keep the scope tied to the user's task; an ordinary edit is not a repository-wide audit.
Do not recreate every deleted unit case as an E2E. Choose representative journeys and place consequential edge cases at the cheapest boundary that proves the real contract. Multiple test layers must earn their maintenance cost with distinct, material regression protection; merely exercising a different layer is insufficient. External service stubs can make E2Es deterministic, but identify what they leave unproven. Never mock the application behavior the test claims to verify.
Identify:
Prefer extending an existing owner test over creating another suite. Skip tests for trivial, reversible changes unless they protect a demonstrated regression or a consequential contract. Do not add exports, flags, injection hooks, or wrappers solely to make private implementation details testable.
A test's existence, speed, or ability to fail is not enough reason to retain it. When several tests defend the same outcome, choose a surviving owner and consolidate. When a test protects no meaningful contract, remove it without inventing a replacement. For a bug regression, demonstrate the intended pre-fix failure when practical.
Prioritize:
An exact byte, path, provider field, or migration can be a real contract. Preserve necessary security, accounting, data-integrity, and platform coverage at an appropriate boundary. Those labels do not automatically justify duplicate tests at every layer.
Work through broad audits in reviewable batches. Judge success by a simpler suite with clear ownership, not a deletion quota or exhaustive coverage of every variation. Treat a failing retained test as a possible product defect, not a deletion opportunity.
Report the maintenance reduced, tests retained/repaired/consolidated/removed (with path, test name, credible failure, and surviving owner for changed items), surviving E2E or integration owners, and why remaining unit tests warrant isolation. Include any production seam simplified, checks actually run, and unresolved risks. Distinguish pre-existing failures from audit-introduced failures.
Adapted from OpenClaw's Test Audit skill (GitHub repository openclaw/openclaw, file .agents/skills/test-audit/SKILL.md),
copyright © 2026 OpenClaw Foundation, under the MIT License. See LICENSE.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub designxdevelop/agent-skills --plugin dxd-skills19 skills in this plugin
/adversarial-reviewSend a diff to Opus 5.5, GPT-6.1 Sol, and Gemini 4 Carbon (all at medium effort) for an adversarial bug review, then triage every finding. Use when the user asks for an adversarial review, a second model, or a cross-lab bug hunt./ci-verify-setupSet up one reliable project verification command and run it in CI. Use when local checks are scattered or missing, CI is absent or broken, or agents cannot consistently verify their changes./company-profileResearch and write a reusable company profile with accurate descriptions, bios, and page copy. Use when a user needs to explain what a company does across an About page, website sections, social profiles, directories, press materials, or partner listings./data-oriented-designRedesign performance-critical data structures around how they are accessed: flat arrays with index handles instead of hash maps and pointers, struct-of-arrays layouts, bit-packed indices, inline-capacity lists, and bitsets, instead of adding caches. Use when asked to apply data-oriented design, or to make a profiled hot loop or data structure faster in systems code./derive-clientDerive a small HTTP client or CLI from browser network traffic. Use when a website lacks a suitable API client, or the user asks to capture a HAR and turn an observed browser flow into reusable direct requests./dxd-code-reviewReview branch changes with a strict focus on maintainability, abstraction boundaries, file size, and branching complexity. Use when the user requests a DXD code review or an unusually deep structural critique.