quality-engineering-api-testing
БесплатноБез исполняемых скриптовНе проверенSpecify and execute API correctness testing across smoke, functional, contract, integration, and regression selection. Use when writing API test suites…
от HoangNguyen0403★ 598 звёзд на GitHubОб этом скилле
Quality Engineering: API Testing & Correctness
Priority: P1 (HIGH)
Scope & Purpose
Standardizes API correctness verification across five distinct purposes (lane: api per C1):
- Smoke: Business readiness beyond shallow health endpoints.
- Functional: Business rules, state changes, calculations, and error invariants.
- Contract: Schema conformance and consumer-driven expectations.
- Integration: Multi-service coordination, real vs mocked dependencies, retries, and idempotency.
- Regression Selection: Evidence-based test selection with explicit baseline and uncertainty handling.
Core Rules
- Smoke Readiness (AC-06): A 200 OK on
GET /healthproves process liveness, not business readiness. Smoke suites must exercise at least one end-to-end critical business operation (e.g., authenticated preflight, read core entity). - Functional Oracles (AC-07): Schema-valid payloads with 200 OK do not prove correctness. Every functional test must assert on computed values, database state, business invariants, and specific error payloads.
- Contract Verification (AC-08): Do not equate OpenAPI schema validation with version compatibility or consumer contract testing. Schema checks prove candidate syntax conformance; baseline-to-candidate diffs prove what baseline clients and consumers still get. Record producer versions and the protected consumer version, then verify both directions: baseline-valid requests remain accepted (a schema
defaultnever exempts a newly required property unless the provider's actual omission behavior is demonstrated), and candidate responses stay readable by baseline consumers, including new enum/union values an exhaustive consumer rejects. Consumer-driven contracts (e.g., Pact) verify consumer-needed fields and semantics. Missing baseline or consumer artifacts are BLOCKED, never inferred compatible. - Integration & Idempotency (AC-09): Firing network requests without verifying resulting persistence or side effects is invalid. When testing retries (including post-effect lost-response timeouts), verify final state and assert zero duplicate side effects across both local database records and an independent downstream gateway ledger oracle. Simulated mocks do not replace authorized real-dependency evidence.
- Regression Selection (AC-10): Map code/contract deltas to affected obligations. Always retain the critical smoke baseline. If delta impact is ambiguous, broaden coverage or log a blocker—never claim unverified completeness.
Workflow
- Obligation Mapping: Identify target endpoints, schemas, business invariants, and consumer dependencies.
- Scenario Authoring: Record scenarios using the shared C2 API scenario record (purpose, method/path, principal, inputs/reset, dependency mode, expected state, forbidden effects).
- Execution & Isolation: Execute against isolated synthetic data. Clean up scenario-owned fixtures on success, failure and cancellation; on failure, capture sanitized evidence before teardown destroys state. Reset only what the scenario created, including inserted entities, their lifecycle state and simulated downstream journals.
- Evidence & Provenance Capture (C3/C4): Record source revision/digest, exact executed command, executed environment/target identity, pinned driver version, reviewer, evidence category, and target authorization. Enforce strictly synthetic data, mandatory secret redaction, and no unauthorized package downloads or paid calls. Evidence acceptance requires populated command and environment; missing values block PASS and acceptance. If execution occurred, retain a known outcome (including FAIL), record the provenance gap as a separate retention defect, and block acceptance until values are recovered. Use NOT RUN only when nothing was executed; use BLOCKED for an executed run only when its outcome is genuinely unresolved, with an explicit note. Never fabricate observations or artifacts.
Anti-Patterns
- Health check as smoke: Treating
GET /health200 as deployment or business pass. - Schema validation as functional proof: Skipping business calculation or persistence assertions because the schema parsed.
- Conflating schema with compatibility or consumer contract: Breaking backward compatibility or consumer expectations while passing standalone OpenAPI syntax checks.
- Default-as-compatibility: Treating a schema
defaulton a newly required request property, or an unhandled new response enum value, as non-breaking without evidence of the approved provider/consumer behavior. - Blind call-firing: Firing requests while omitting verification of database state, compensations, or duplicate effects on retry.
- Cleanup only on success: Skipping teardown after failure or cancellation, or resetting only part of the scenario's state so the next run starts from stale rows or gateway entries.
- Evidence-destroying teardown: Destroying the failing state
Установить quality-engineering-api-testing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл quality-engineering-api-testing?
Specify and execute API correctness testing across smoke, functional, contract, integration, and regression selection. Use when writing API test suites, validating API schemas/contracts, asserting business state, or selecting regression tests.
Как установить скилл quality-engineering-api-testing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл quality-engineering-api-testing запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic