# Detailed procedure Use the input contract in SKILL.md; resolve its required information before dependent actions. Input: the resolved request: unit/behavior, acceptance criteria and relevant code. Not for proving real database/network integration or capacity. Read `.claude/framework/testing.md`, STATE.md, applicable project decisions and actual manifests/test configuration. Use the existing runner and installed versions; unfamiliar APIs/flags need installed-source or official-document verification. No automatic package/tool installation, credentials, global changes, paid services or destructive operations. Reuse existing authorization for ordinary local work. Load only relevant profiles and test references; never all testing skills for every change. 1. Inspect the smallest public behavior and its callers. Clarify only missing material expected behavior; preserve established architecture and validation choices. Identify deterministic inputs, outputs, errors, invariants and test seams. 2. Use `.claude/framework/templates/unit-test-plan.md` when a plan is useful. Select cases for supported happy paths, boundaries, invalid inputs, state transitions and prior regressions. Avoid implementation-mirroring assertions, coverage-only tests and changing behavior just to satisfy an invented expectation. 3. Implement scoped tests in the existing suite. Isolate time/randomness/external I/O through existing seams; prefer meaningful fakes at external boundaries and do not mock away the behavior under test. Keep fixtures local, independent, minimal and secret-free. Do not silently add validation when the confirmed design omitted it. 4. For a regression, reproduce the observed failure where practical before the fix, then rerun the targeted tests and relevant suite. Record actual argv, exit, discovered/passed/failed/skipped counts and source revision; zero tests or skipped coverage is not success. Preserve failures rather than weakening assertions or retrying until green. 5. Report covered behavior, gaps and next action under docs/project/testing/ when warranted. Use actual reviewed commands in existing local gates; no fabricated runner flags. Significant code changes use iteration-review; existing two-round review/one-reasoned-retry bounds apply. Passing isolated tests does not establish integration, end-to-end behavior, security coverage or performance.