backend-testing
Review backend tests for behavior, contracts, migrations, retries, concurrency, and regression risk. Use when adding or changing unit, integration, contract, migration, load, or worker tests.
- License 许可
- MIT
- 最近更新
- 2026-07-24
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- backend-testing
- description
- Review backend tests for behavior, contracts, migrations, retries, concurrency, and regression risk. Use when adding or changing unit, integration, contract, migration, load, or worker tests.
03 SKILL.md 正文
When to Use
- Backend behavior changes need test review.
- A PR adds or changes test strategy.
- Test scaffolds or skipped cases need review.
- Regression, migration, or worker tests are missing.
When NOT to Use
- Frontend visual testing.
- Pure documentation changes without behavior impact.
- Test framework migration without backend behavior.
Workflow
- Identify the behavior and failure modes under test.
- Map tests to backend layers and user-visible outcomes.
- Check positive, negative, boundary, and retry cases.
- Verify tests are deterministic and useful in CI.
- Report missing test evidence.
Review Steps
- Confirm tests fail for the behavior they cover.
- Check database, queue, cache, and external API boundaries.
- Verify contract tests for public API changes.
- Check migration and rollback tests for schema changes.
- Flag brittle sleeps and real network calls.
- Flag order-dependent tests.
- Confirm skipped tests are intentional and tracked.
Constraints
- Do not require exhaustive tests for low-risk changes.
- Do not accept failing tests in normal review CI.
- Prefer focused tests over broad snapshots.
- Keep advice aligned with the target toolchain.
Expected Outputs
- Test coverage summary by risk.
- Missing test cases.
- Flaky or non-deterministic test risks.
- CI impact and required follow-up.
04 同仓库更多 Skills
skill-name
Describe what this skill reviews and when to use it.
retry-safe-worker
Review backend workers, queues, schedulers, and async jobs for retry safety, deduplication, cancellation, poison message handling, rollback, and operational recovery.
observability-review
Review backend logging, metrics, tracing, audit events, error context, alert quality, and safe diagnostic detail for production operations.
idempotency-review
Review payment APIs, retry-safe handlers, duplicate request prevention, replay responses, idempotency keys, and backend idempotency design for production retry safety.
github-actions-review
Review GitHub Actions workflows for backend CI, secret exposure, permissions, dependency install, cache safety, pinned actions, and release or deployment risk.
docker-devex
Review Docker, Compose, local dependencies, bootstrap scripts, developer ergonomics, reproducibility, security defaults, and backend local environment reliability.