deriving-a-quality-contract
БесплатноБез исполняемых скриптовНе проверенDerives a project-specific quality contract from three axes - risk profile, team maturity, and product surface - labelling each testing practice MUST, SHOULD…
от jaktestowac★ 124 звезды на GitHubОб этом скилле
Deriving a Quality Contract
Use this skill when a team needs to know which testing practices are mandatory for this project, which are expected, which are optional, and which of them are actually in place today.
"We should test more" is not a strategy. A quality contract is: a named list of practices, each labelled MUST, SHOULD, or COULD for this specific project, each with an exit criterion, an owner, and a current state. The label is derived from three axes, not from taste - which is what makes the contract survive an argument.
When to Use
- a project has no written testing strategy, or has one nobody follows
- a team disagrees about whether a practice (mutation testing, contract tests, load tests) is required
- a legacy or inherited repo needs an honest quality baseline
- a strategy document is due and the alternative is inventing one
- a quality gate is being designed and the list of things to gate on is unclear
- a client or auditor asks what quality practices this project commits to
Operating Principles
- Derive, do not prescribe. The same practice is MUST for a payment service and COULD for an internal prototype. State the axes, then read the label off them.
- Three states are a lie; four are honest. PRESENT, PARTIAL, MISSING, WAIVED. PARTIAL is the state every audit omits and every repo is full of.
- Configured is not verified. A jest config proves unit testing is set up. It proves nothing about the change that shipped yesterday. Say which of the two you measured.
- Drop what does not apply. A library with no HTTP surface cannot be DAST-scanned. Removing an irrelevant practice from the contract is a feature, not a shortcut.
- A practice with no exit criterion is a slogan. Every row needs a testable finish line.
- Skipping is allowed; silent skipping is not. Anything not being done is either COULD, or WAIVED with a reason, an owner, and a date.
- Maturity gates ambition. A team that has no unit tests should not be handed mutation testing. Sequence the plan; do not dump it.
Workflow
Phase 0: Establish the three axes
Read the repo and ask what the repo cannot tell you.
Stack and tooling - from package.json, lockfiles, tsconfig.json, test config, CI workflows. Record the test runner, assertion style, and CI provider.
Product surface - what the thing actually exposes, because it decides which practices are even applicable:
| Surface | Evidence to look for |
|---|---|
web-ui |
React/Vue/Svelte/Angular deps, public/index.html, route components |
http-api |
Express/Fastify/Nest/Hono deps, routes/, controllers/, handler files |
wire-schema |
openapi.*, swagger.*, *.proto, *.graphql, tRPC routers |
ai-llm |
openai, @anthropic-ai/sdk, ai, langchain, llamaindex, prompts/, *.prompt.* |
data-store |
migration folders, ORM schema files, seed scripts |
library |
package exports/main with no server entry point, published to a registry |
cli |
bin field, commander/yargs/clipanion |
A repo has several surfaces. Record all of them with the evidence, and record what is confidently absent - absence is what lets you drop rows.
Profile - the risk class. Ask, do not guess:
- who is harmed if this breaks, and how badly
- is there regulatory, contractual, or financial exposure
- is money, personal data, or safety involved
- can a bad release be rolled back in minutes, or not at all
Map the answers onto a profile from ./resources/profiles.md (critical-regulated, standard, prototype-internal) and write down the one sentence that justifies it.
Maturity - where the team is now, from ./resources/maturity-model.md (crawl, walk, run). Read it from the repo, not from ambition: no test script at all is crawl, however senior the team.
Write the triple down and confirm it with a human before continuing. Everything downstream is derived from it, so a wrong triple produces a confidently wrong contract.
Phase 1: Resolve the contract
Walk ./resources/approach-catalog.md. For each practice:
- Skip it if
requires-surfacenames a surface this repo confidently lacks. Record it asN/Awith the reason - do not silently omit it. - Skip it if its
introduced-atmaturity is above the team's current level. Record it asdeferred to <level>, because it is the next contract, not this one. - Otherwise take the level for the resolved profile: MUST, SHOULD, or COULD.
- Copy the exit criterion and pick the tool from the catalog's tool column.
The output is a table of practices with levels and exit criteria. That is the contract.
Phase 2: Detect what is present
For each contracted practice, look for the evidence listed in ./resources/detection-signals.md and assign one of four states:
| State | Meaning |
|---|---|
| PRESENT | Configured and wired into CI, with evidence for both |
| PARTIAL | Configured but not enforced, e |
Установить deriving-a-quality-contract в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл deriving-a-quality-contract?
Derives a project-specific quality contract from three axes - risk profile, team maturity, and product surface - labelling each testing practice MUST, SHOULD, or COULD, then produces a PRESENT/PARTIAL/MISSING/WAIVED gap matrix with an ordered remediation plan. Use when a project has no agreed testing strategy, when a team argues about which practices are mandatory, when onboarding a legacy or inherited repository, when a quality strategy document has to be derived from evidence instead of opinion, or when someone asks "what testing should we actually be doing here".
Как установить скилл deriving-a-quality-contract?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл deriving-a-quality-contract запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic