Command Palette

Search for a command to run...

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

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от 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:

  1. Skip it if requires-surface names a surface this repo confidently lacks. Record it as N/A with the reason - do not silently omit it.
  2. Skip it if its introduced-at maturity is above the team's current level. Record it as deferred to <level>, because it is the next contract, not this one.
  3. Otherwise take the level for the resolved profile: MUST, SHOULD, or COULD.
  4. 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
Полный SKILL.md на GitHub

Установить deriving-a-quality-contract в Claude Code и Claude Desktop

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

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

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

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

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

Без ограничений — скилл может использовать любой инструмент.

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

resources/approach-catalog.mdresources/contract-template.mdresources/detection-signals.mdresources/maturity-model.mdresources/profiles.md

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), без исполняемых скриптов.

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

Сравнить deriving-a-quality-contract с