From shipshitdev-library
Designs regression tests targeting AI blind spots like sandbox/production path drift, response-shape mismatches, and untested bug fixes. Use after AI code changes, API edits, or feature-flag updates.
How this skill is triggered — by the user, by Claude, or both
Slash command
/shipshitdev-library:ai-regression-testingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Add tests that catch the failures AI agents commonly miss when the same model
Add tests that catch the failures AI agents commonly miss when the same model writes code and reviews its own assumptions.
Inputs:
Outputs:
Creates/Modifies:
External Side Effects:
Confirmation Required:
Delegates To:
testing-expert for general testing strategyreact-testing-library for React component testsplaywright-e2e-init or e2e-testing for browser workflowsdebug when the root cause is still unknownTest the contract that failed, not the implementation the agent wrote. Assume the reviewing model shares the same blind spot as the writing model.
Common AI blind spots:
SELECT, serializer, DTO, fixture, and frontend type drift apartState the behavior as a user or caller contract:
Create a required-field or required-state list when useful.
Trace every path that should satisfy the contract:
The first test should fail on the unfixed bug or on a representative broken fixture. If the bug is already fixed, make the test specific enough that the previous bug would have failed.
Prefer deterministic checks:
For API and data contracts, compare path shapes:
production fields == sandbox fields == mock fixture fields
frontend type accepts exactly the returned shape
empty/error states still include documented envelope fields
Use fixtures with realistic nulls, missing optional values, and date formats.
Run the narrow test first, then the relevant suite:
bun test path/to/regression.test.ts
bun test
bun run typecheck
Use the repo's actual package manager and test commands. Do not invent new tooling when the project already has a pattern.
200 OK?Regression target: `GET /api/profile` must include `notification_settings` in production and sandbox responses.
Tests added:
- `tests/api/profile.test.ts`: response-shape contract
- `tests/api/profile.test.ts`: sandbox/production field parity
Verification:
- `bun test tests/api/profile.test.ts` passed
- `bun run typecheck` passed
Residual risk:
- No E2E coverage for the settings page rendering this field.
npx claudepluginhub shipshitdev/skillsTests AI-assisted code changes for regressions using sandbox-mode API testing without databases. Catches blind spots where the same model writes and reviews code.
Provides regression testing for AI-assisted code changes using DB-free sandbox-mode API tests, automated bug-checks, and patterns to catch AI self-review blind spots. Activate after AI modifies APIs or fixes bugs.
Runs before/after regression checks to prove existing behavior still works after a change. Pulls in neighboring tests and writes missing assertions.