Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

backend-testing

БесплатноБез исполняемых скриптовНе проверен

Turn backend test ambiguity into one practical backend test packet. Use when the user needs API/service/repository/auth-flow coverage design, fixture or…

akillnessот akillness★ 63 звезды на GitHub

Об этом скилле

Backend Testing

Use this skill as a packet-first backend testing router.

The job is not to dump boilerplate for every framework. The job is to:

  1. classify the request into the right backend test packet,
  2. pick the smallest credible mix of test layers,
  3. make dependency realism and data control explicit,
  4. split local vs PR vs slower lanes honestly,
  5. route policy, contract-shape, and auth-implementation work away when they are the real task.

Read these when needed:

  • references/intake-packets-and-route-outs.md
  • references/test-layer-matrix.md
  • references/stability-checklist.md

When to use this skill

  • Add or repair backend coverage for APIs, services, repositories, workers, integrations, or auth flows
  • Decide whether a backend change needs unit, integration, contract/API, or narrow smoke coverage
  • Design fixture, factory, seed/reset, auth bootstrap, or environment-control strategy
  • Decide when to use mocks, fakes, containers, or real dependencies
  • Stabilize flaky backend suites, especially CI-only failures and local-vs-CI drift
  • Review whether a backend suite is too broad, too slow, too mock-heavy, or missing a key layer

When not to use this skill

  • The main task is org-wide test policy, gate design, release evidence, or company-wide QA philosophy → use testing-strategies
  • The main task is API contract shape, versioning, or schema design before tests can be scoped honestly → use api-design
  • The main task is implementing auth/session/provider behavior rather than testing it → use authentication-setup
  • The main task is frontend/browser testing or UI workflow coverage
  • There is no concrete backend behavior or regression target yet; in that case define the missing behavior packet first instead of pretending the test plan is settled

Instructions

Step 1: Classify the request into one packet

Choose the single best entry packet before giving advice.

Packets

  • coverage-plan — which layers to add for a concrete backend change
  • fixture-and-reset-plan — how to seed, isolate, reset, or bootstrap data/auth state
  • contract-and-api-checks — how to protect response/event/schema compatibility once the interface already exists
  • flake-stabilization — how to stabilize CI-only or intermittent backend failures
  • execution-lane-split — how to divide local-fast, PR, nightly, and release-only backend checks

If the request mixes several concerns, name the primary packet and one secondary concern.

Step 2: Frame the backend surface and risk

Capture the smallest useful context:

  • surface: endpoint, service, repository, worker, queue consumer, auth flow, integration, or migration
  • highest-risk behaviors: validation, permissions, persistence, retries, idempotency, ordering, serialization, side effects, compatibility
  • existing coverage already present
  • external dependencies involved: DB, cache, queue, email, payment, third-party API, identity provider, filesystem
  • runtime/language stack
  • where the evidence must hold: local loop, PR CI, scheduled CI, release smoke

If the request is vague, choose the smallest regression slice worth protecting first.

Step 3: Choose the right test layers

Use the packet and risk to select the lightest credible layer mix.

Unit / service

Prefer when the main risk is branching logic, validation, orchestration, or pure-ish business rules.

Integration

Prefer when database behavior, framework wiring, middleware, transactions, queues, caches, or serialization matter.

Contract / API

Prefer when clients depend on response shapes, status codes, schemas, or events and the interface already exists.

Smoke / selective end-to-end

Prefer only when a narrow release-critical journey crosses several backend boundaries and lower layers would miss the core risk.

State what is in scope, what is out of scope, and why.

Step 4: Decide dependency realism on purpose

For each dependency, choose one of:

  • mock / stub — expensive, unstable, or irrelevant to the behavior under test
  • fake / simulator — behavior matters, but a lightweight substitute is enough
  • containerized real dependency — queries, migrations, message semantics, or wire behavior matter enough that drift would hurt
  • shared external environment — only when unavoidable; call out the fragility cost explicitly

Good defaults:

  • prefer real DB behavior when repository, migration, transaction, or serialization behavior is central
  • prefer mocks for outbound third-party APIs unless the integration contract itself is under test
  • prefer a narrow containerized slice over a giant all-dependencies-in-PR setup
  • do not claim fake and real dependencies are equivalent when production parity is the whole risk

Step 5: Define fixture, data, auth, and environment control

A backend suite becomes untrustworthy when state is vague.

Specify:

  • fixture/factory strategy
  • seed/reset/rollback plan
  • auth/bootstrap helpers for users, roles, tenants, toke
Полный SKILL.md на GitHub

Установить backend-testing в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash
Read
Write
Edit
Glob
Grep

Вложенные файлы

SKILL.toonevals/evals.jsonreferences/intake-packets-and-route-outs.mdreferences/stability-checklist.mdreferences/test-layer-matrix.md

FAQ

Что делает скилл backend-testing?

Turn backend test ambiguity into one practical backend test packet. Use when the user needs API/service/repository/auth-flow coverage design, fixture or seed/reset strategy, container-vs-mock dependency choices, contract/API compatibility checks, or flaky backend-suite stabilization across local and CI.

Как установить скилл backend-testing?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл backend-testing запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить backend-testing с