本文へ移動
cccskills
無料GitHub で公開

risk-matrix

The risk-based testing (RBT) umbrella: risk matrix and risk register authoring, likelihood x impact scoring, risk storming, calibration, and risk-to-test coverage mapping. Produces the per-feature / per-release matrix artifact (structured intake: feature, category, impact 1-5 by likelihood 1-5, score; heatmap; mitigations with owners and due dates), supporting lightweight and heavyweight (FMEA / Cost of Exposure) methods per RBT canon, plus a risk coverage mapping workflow that proves which tests, cases, or monitors back each registered risk. references/ carries the product-risk and project-risk register variants, the risk-storming facilitation guide, matrix calibration against observed defect data, and a register review checklist. Use for any risk-based-testing artifact: building a matrix or register, running a risk-storming session, calibrating ratings against defects, or mapping risks onto test coverage.

日本語の概要は準備中です。原文の説明を表示しています。

testland/qaスター 13(GitHub 13 + cccskills 0)
連携ツールStripe

実行スコア 未検証

インストール方法を見る

含まれるファイル(18)

  • SKILL.md16.4 KB
  • .tessl-plugin/plugin.json1.0 KB
  • evals/accept-the-risk-and-move-on-after-the-outage/criteria.json7.6 KB
  • evals/accept-the-risk-and-move-on-after-the-outage/task.md13.2 KB
  • evals/fmea-requested-for-a-two-engineer-payroll-tool/criteria.json5.5 KB
  • evals/fmea-requested-for-a-two-engineer-payroll-tool/task.md5.9 KB
  • evals/release-sign-off-with-a-staffing-row-in-the-register/criteria.json5.9 KB
  • evals/release-sign-off-with-a-staffing-row-in-the-register/task.md9.6 KB
  • evals/workshop-list-from-a-room-with-no-engineers/criteria.json6.0 KB
  • evals/workshop-list-from-a-room-with-no-engineers/task.md5.1 KB
  • evals/zero-defect-quarter-used-to-cut-test-time/criteria.json6.5 KB
  • evals/zero-defect-quarter-used-to-cut-test-time/task.md9.1 KB
  • references/calibration.md24.9 KB
  • references/heavyweight-risk-scoring.md2.5 KB
  • references/product-risk-register.md7.4 KB
  • references/project-risk-register.md8.1 KB
  • references/risk-review-checklist.md6.7 KB
  • references/risk-storming.md9.6 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

risk-matrix

Overview

Per rbt-wiki:

"Risk-based testing (RBT) is 'a type of software testing that functions as an organizational principle used to prioritize the tests of features and functions in software, based on the risk of failure.'"

The risk matrix is the artifact that drives RBT decisions. Without it, prioritization is gut-feel; with it, the team has a defensible record of "why we tested this and not that."

When to use

  • A new feature is in planning; the team needs to scope test effort.
  • A release scope is set; the team needs to allocate manual + auto test time.
  • Quarterly: the team wants to know which areas have the highest unmitigated risk.
  • Audit / compliance: the team must show a documented risk assessment.

How to use

  1. Pick the methodology (Step 1) - lightweight impact-by-likelihood for most teams; heavyweight FMEA / Cost of Exposure only when regulation demands it.
  2. Intake each risk (Step 2) - one row per risk with feature, category, impact 1-5, likelihood 1-5, and the resulting score.
  3. Plot the heatmap and tier the verdict (Step 2) - block / mitigate-this-sprint / accept, using the team's block threshold (typically score 15+).
  4. Tag categories (Step 3) - business, technical, regulatory, UX, security, performance, integration - so patterns surface over time.
  5. Read the test plan off the matrix (Step 4) - map each top risk to its recommended test types.
  6. Set the cadence and store it in git (Steps 6-7) - the matrix is a living document reviewed per feature, per release, and quarterly.
  7. Map risks to coverage (Step 8) - before sign-off, show which tests, cases, or monitors back each risk and which risks are orphans.

The worked example below runs a checkout release through the full flow. For the adjacent risk artifacts and workflows, see the routing table at the end.

Step 1 - Pick the methodology

Per rbt-wiki, two approaches:

ApproachMethodWhen
LightweightImpact × Likelihood, simple high/medium/lowDefault; most teams.
HeavyweightFMEA / Cost of Exposure / QFD / FTARegulated industries; safety-critical; insurance.

Most teams should start lightweight - heavyweight methods need specialized expertise.

Step 2 - Lightweight matrix structure

# Risk matrix - `<feature/release>`

**Date:** YYYY-MM-DD   **Owner:** _______________   **Reviewers:** _______________

## Risks

| ID  | Risk                                          | Category   | Impact (1-5) | Likelihood (1-5) | Score | Mitigation                          | Owner | Due |
|-----|-----------------------------------------------|------------|-------------:|-----------------:|------:|-------------------------------------|-------|-----|
| R-1 | Promo discount math wrong (off-by-cent)        | Business   |      5       |       3          |  15   | Add property-based tests on rounding | Alice | 2026-05-15 |
| R-2 | Stripe webhook delivery failure not retried    | Technical  |      4       |       4          |  16   | Add retry + DLQ; add chaos test     | Bob   | 2026-05-12 |
| R-3 | EU tax calculation incorrect                    | Regulatory |      5       |       2          |  10   | UAT with finance team               | Carol | 2026-05-20 |
| R-4 | Cart loses state on app restart                 | UX         |      3       |       3          |   9   | Persistent cart in localStorage     | Dave  | 2026-05-10 |

## Heatmap

| Likelihood ↓ \ Impact → | 1 (low) | 2 | 3 | 4 | 5 (high) |
|--------------------------|---------|---|---|---|----------|
| 5 (very likely)           |         |   |   |   |          |
| 4                          |         |   |   | R-2 |        |
| 3                          |         |   | R-4 |   | R-1     |
| 2                          |         |   |   |   | R-3     |
| 1                          |         |   |   |   |          |

## Verdict

- **Critical (score >=15):** R-1 (15), R-2 (16). Block release until mitigated.
- **High (score 9-14):** R-3 (10), R-4 (9). Mitigate this sprint.
- **Medium (score 5-8):** (none).
- **Low (score 1-4):** (none).

The 5×5 matrix yields scores 1-25; the team picks the threshold for "block release" (typically 15+).

Step 3 - Risk categories

Per rbt-wiki, risks span:

  • Business/operational: System criticality and usage frequency
  • Technical: Team distribution and complexity
  • External: Regulatory requirements and stakeholder preferences
  • E-business specific: Security vulnerabilities, performance failures, and integration defects

Tag every risk with one category. Patterns emerge over time - "all our top risks are integration" suggests an architectural review, not just more testing.

Step 4 - Map risks to test types

A populated matrix drives the test plan:

Risk classRecommended test types
Business logicUnit + property-based + UAT
TechnicalIntegration + chaos + load
RegulatoryUAT with stakeholder + compliance review
UXManual exploratory + visual regression
SecurityThreat model + SAST + DAST + pen test
PerformanceLoad + perf budget + canary
IntegrationContract testing + integration tests + canary

The test plan reads off the matrix: top-N risks → test types per risk → estimated effort.

Worked example - checkout redesign release

Input: the checkout-redesign release scope, lightweight methodology (Step 1).

Intake and score (Steps 2-3). Four risks surface, each tagged with a category and scored impact × likelihood:

IDRiskCategoryImpactLikelihoodScore
R-1Promo discount math wrong (off-by-cent)Business5315
R-2Stripe webhook delivery failure not retriedTechnical4416
R-3EU tax calculation incorrectRegulatory5210
R-4Cart loses state on app restartUX339

Tier the verdict (Step 2). With a block threshold of 15: R-2 (16) and R-1 (15) block the release until mitigated; R-3 (10) and R-4 (9) are high and get mitigated this sprint.

Read the test plan off the matrix (Step 4). Each risk's category selects its test types:

  • R-1 (business logic) -> unit + property-based tests on rounding, plus UAT on the promo path.
  • R-2 (technical / integration) -> retry + DLQ, a chaos test on webhook delivery, and contract tests against Stripe.
  • R-3 (regulatory) -> UAT with the finance team plus a compliance review of the EU tax rules.
  • R-4 (UX) -> manual exploratory plus visual-regression coverage of the persisted cart.

Outcome. The two blocking risks (R-1, R-2) get owners and due dates before sign-off; the matrix is committed to docs/risk-matrices/2026-Q2-checkout-redesign.md and re-reviewed at the next cadence point (Step 6).

Step 5 - Heavyweight methods (FMEA, Cost of Exposure)

For regulated or safety-critical products where lightweight scoring is insufficient, risk-based testing offers quantitative methods - FMEA (Risk Priority Number = severity × occurrence × detectability) and Cost of Exposure (annual financial risk vs mitigation cost) - per rbt-wiki. Both need specialized expertise; use them only when regulation or financial justification requires it. Full row structure, worked FMEA and Cost-of-Exposure tables, and a when-to-use guide are in references/heavyweight-risk-scoring.md.

Step 6 - Cadence

CadenceTrigger
Per-featureBefore development starts
Per-releasePre-release sign-off
QuarterlyStrategic risk review
Post-incidentUpdate the matrix with the surfaced risk

The matrix is a living document - risks change as features ship, mitigations land, and incidents reveal new failure modes.

Step 7 - Format + storage

docs/risk-matrices/
├── 2026-Q2-checkout-redesign.md
├── 2026-Q2-stripe-integration.md
├── 2026-Q1-summary.md       ← rollup
└── README.md

Markdown files version-controlled in git. Reviews via PR; updates tracked over time.

Step 8 - Risk coverage mapping

A risk-coverage matrix proves every meaningful risk has a mitigation that traces to a test or monitor - the risk-side complement to the requirements traceability matrix (traceability-matrix-builder, in the qa-test-management plugin). Per ISTQB CTAL-TM ch. 5 on risk-based test prioritisation and ISO/IEC/IEEE 29119-3:2021 §6.3 on traceability (cite by stable ID). Run it before a release sign-off or compliance audit, at sprint retrospectives to find coverage debt, and in CI per PR.

8a - Ingest the risk register

Pull risks from the release matrix (this skill) and the product register (references/product-risk-register.md); project risks (schedule, staffing) are typically excluded - only product / release risks map to test coverage. Filter to score >= 5 (Medium+).

8b - Inventory coverage from three sources

Tag tests with a risk:<ID> marker in name / docstring / front-matter, then:

grep -r "risk:R-001\|risk:PR-001" tests/ --include="*.py" \
  --include="*.js" --include="*.ts" --include="*.java" -l
Coverage sourceHow to collect
Automated testsRepo scan for risk:<ID> tags (above)
Manual test casesQuery the TCM for cases whose refs field contains the risk ID
Production monitoringA risk-coverage.yaml map of risk ID -> monitor IDs (e.g., datadog-monitor://stripe-webhook-failure-rate)

8c - Compute depth and find orphans

Per risk, coverage depth = linked automated tests + manual cases + monitors:

DepthVerdict
0Orphan risk - no coverage. Critical if risk score ≥ 10.
1Minimal. Acceptable for low-score risks; insufficient for critical.
2-4Reasonable. Multiple angles (unit + integration + monitor).
5+Possibly over-tested. Audit for redundancy.

Also run the reverse pass: tests whose risk:<ID> tag points at a retired / non-existent risk are orphan tests - written for risks that no longer exist. Audit for deletion.

8d - Emit the matrix + executive summary

Emit a Markdown document ordered by score descending: a header (total risks, covered count and %, orphan count split critical vs low, average depth), one row per risk (ID, title, score, automated tests, manual cases, monitors, depth - bold any orphan), an "orphan risks (critical action)" section with a recommended action + owner + estimate per orphan, an "over-covered (audit)" list, and a coverage-debt trend table (orphan count and average depth over recent months). Keep both artifacts version-controlled next to the matrix so the trend is real history.

8e - CI gate

Re-build the matrix on every PR; fail if a critical-score risk becomes uncovered:

- name: Risk coverage check
  run: |
    python scripts/build-risk-coverage.py \
      --risks risks.yaml \
      --output risk-coverage.md \
      --fail-on-orphan-score 15

Caveats: tag discipline is the ceiling (untagged tests under-report coverage); depth measures count, not test quality; a monitor existing does not prove it would catch the risk; treat depth 1 as "covered" only for low-score risks.

Going deeper (referenced guides)

TaskGuide
Long-lived product-quality risks (persist across releases, ISO 25010 walk)references/product-risk-register.md
Project-execution risks (schedule, staffing, vendor; Avoid / Mitigate / Transfer / Accept)references/project-risk-register.md
Facilitating the risk-storming session that fills the matrixreferences/risk-storming.md
Calibrating an aged matrix against observed defects, escapes, and churnreferences/calibration.md
Auditing a register's assessment quality before release planningreferences/risk-review-checklist.md
FMEA / Cost-of-Exposure worked tablesreferences/heavyweight-risk-scoring.md

Anti-patterns

Anti-patternWhy it failsFix
Risk matrix authored once, never updatedBecomes irrelevant; team stops trusting.Per-feature + quarterly cadence (Step 6).
Subjective scoring without examplesDifferent reviewers score differently; matrix unreliable.Document score rubric (e.g., "5 = customer money loss").
All-business-category matrixMisses technical / regulatory risks; gaps invisible.Tag every risk with a category (Step 3).
Matrix without owner per row"Mitigated" never happens.Owner column required (Step 2).
Heavyweight FMEA on a small productOver-engineering; team disables.Lightweight default; FMEA only when regulation requires (Step 1).
Risk matrix in slides, not version-controlledHistory lost; rollup impossible.Markdown + git (Step 7).

Limitations

  • Subjective scoring. Even with a rubric, team members weigh risks differently. Multiple-reviewer consensus helps.
  • Doesn't predict unknown unknowns. RBT addresses identified risks; new failure modes emerge from incidents (and update the matrix).
  • Heavyweight methods need expertise. FMEA is well-defined; QFD / FTA require specialized training.

References

  • rbt - Risk-based testing definition, lightweight vs heavyweight methods (FMEA, Cost of Exposure, QFD, FTA), risk categories (business / technical / external / e-business).
  • ISTQB Advanced Test Manager (CTAL-TM) syllabus, ch. 5 - risk-based testing + risk-coverage measurement (Step 8).
  • ISTQB Glossary - glossary.istqb.org - "coverage item", "test condition".
  • ISO/IEC/IEEE 29119-3:2021 §6.3 - traceability (cite by stable ID).
  • test-strategy-author - test strategy doc that references the matrix.
  • traceability-matrix-builder (qa-test-management) - the requirements-side complement of the Step 8 coverage matrix.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

Builds a CI gate that fails the build on **new** WCAG / a11y violations introduced by a PR while grandfathering pre-existing violations on a per-rule / per-page baseline. Aggregates verdicts from axe-core / pa11y / Lighthouse a11y / WAVE / IBM Equal Access scans. Use when a project has accumulated a11y debt and a strict "zero violations" gate would block every PR - the ratchet pattern lets the team ship while preventing regressions.

日本語の概要は準備中です。原文の説明を表示しています。

testland/qa132026年10月20日 更新

Workflow skill that builds an A/B-test validity checklist from an experiment proposal, walking the canonical design-correctness gates - pre-registered OEC/power/guardrails, randomization unit + SRM check, assignment integrity, telemetry, peeking discipline, novelty/primacy, post-experiment SRM re-check - into a per-experiment checklist + sign-off form. Use when launching, auditing, or governing an experiment. For pitfall mechanics (guardrails, peeking) see experiment-results-interpreter's references; to read an already-valid result use experiment-results-interpreter; for per-SDK harness tests use experiment-sdk-testing - this gates DESIGN, not SDK code.

日本語の概要は準備中です。原文の説明を表示しています。

testland/qa132026年10月20日 更新

The single install-flow skill: the reference contract for the PWA install flow (installability gate fields, `beforeinstallprompt` handshake, per-platform paths - Android WebAPK / iOS Share menu / Firefox no-op - and the `display-mode` post-install signal, in references/install-flow-reference.md) plus the build-an-X workflow that emits the Add-to-Home-Screen suite. Walks the four-stage timeline, emitting one test per gate cell per [web.dev/articles/install-criteria][install-criteria], the deferred-prompt → `prompt()` → `userChoice` chain per [web.dev/articles/customize-install][customize-install], the iOS Safari manual-metadata branch (`apple-touch-icon`) per [web.dev/learn/pwa/installation][learn-pwa], and the post-install `(display-mode: standalone)` MQ assertion. Output: a Playwright spec with per-stage cells plus a coverage matrix. Use when a PWA's manifest, icons, or install handler change, when install conversion drops at an unknown stage, or when triaging a flaky install assertion.

日本語の概要は準備中です。原文の説明を表示しています。

testland/qa132026年10月20日 更新

Build-an-X workflow that uses an LLM to map existing tests to spec sections - given a spec doc + the test suite, the LLM identifies which tests cover which sections, surfaces uncovered sections (gap), and recommends specific tests to add. Output is a coverage matrix per spec ID. Scope is mapping tests that already exist and naming the gaps, not authoring tests for new acceptance criteria. Use when a spec doc and a test suite both exist but nobody can say which requirements are actually covered - before a release sign-off, an audit, or a decision about where to spend the next round of test effort.

日本語の概要は準備中です。原文の説明を表示しています。

testland/qa132026年10月20日 更新

Generates tests from natural-language specs (acceptance criteria, user stories, requirements) using an LLM, with confidence scoring per test case (LLM self-assessment plus heuristics: assertion quality, naming, completeness), batching uncertain cases for human review, and integration with the team's existing test framework. Use when the user asks to generate unit tests from acceptance criteria, convert user stories to test cases, automate test creation from requirements, or augment a spec-driven test suite with AI-generated stubs that are then curated before merge.

日本語の概要は準備中です。原文の説明を表示しています。

testland/qa132026年10月20日 更新

Configures Allure Report (test-runner adapter install, `allure-results` directory wiring, `categories.json` for failure classification, `history-trend.json` retention via the copy-history-between-runs pattern), runs the Allure CLI to convert `allure-results` to a static HTML site, and uploads the report as a CI artifact. Use when the team needs richer test reporting than JUnit XML - step-level attachments, per-test history, retry tracking, and severity / epic / feature labeling across framework-agnostic adapters (pytest, Jest, JUnit, TestNG, NUnit, Mocha). As a rich static HTML report generator, it is the open-source alternative to the sunset ExtentReports (JVM/.NET per-test HTML narrative); for hosted cross-run flakiness analytics rather than a static per-run report use currents-integration.

日本語の概要は準備中です。原文の説明を表示しています。

testland/qa132026年10月20日 更新

testland のスキルをすべて見る

このスキルの問題を報告する