risk-based-testing

risk-based-testing is a skill for Claude Code, Codex from petrkindlmann/qa-skills. It costs 156 tokens per session (4,867 once invoked), scanned A, original, MIT.

A method for ranking software risks by business impact and likelihood, then analyzing the most important failure modes and matching tests to those risks.

In plain words
What is it for?
Use it before creating a test strategy or plan, after an incident, when assessing an AI feature, or when refreshing a risk matrix for changed features.
Why use it?
It focuses testing effort on failures that would hurt the business most instead of treating every feature as equally important.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it before creating a test strategy or plan, after an incident, when assessing an AI feature, or when refreshing a risk matrix for changed features.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/petrkindlmann/qa-skills/risk-based-testing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add petrkindlmann/qa-skills --skill risk-based-testing
Clone the repo
git clone --depth 1 https://github.com/petrkindlmann/qa-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for risk-based-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/petrkindlmann/qa-skills/risk-based-testing/github.svg)](https://agentmods.dev/skills/petrkindlmann/qa-skills/risk-based-testing)
Your own site
<a href="https://agentmods.dev/skills/petrkindlmann/qa-skills/risk-based-testing"><img src="https://agentmods.dev/badge/skills/petrkindlmann/qa-skills/risk-based-testing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for risk-based-testing

Your own site · 80×15
<a href="https://agentmods.dev/skills/petrkindlmann/qa-skills/risk-based-testing"><img src="https://agentmods.dev/badge/skills/petrkindlmann/qa-skills/risk-based-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 156 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,867 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 14 Sept 2026
  • Snyk pass 14 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00156 $0.04867
Opus 5.5 $0.00062 $0.01947
Sonnet 5.5 $0.00031 $0.00973
Haiku 4.5 $0.00016 $0.00487

Measured 3mo ago against content hash d39f564e2389, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

risk-based-testing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/risk-based-testing/SKILL.md · 338 lines

How it starts

The opening of the file, as written. The whole thing — 338 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Quick Route

Situation Start at
New product, no risk model yet Phase 1 (Identification) → run the full 6 phases
Post-incident reassessment Phase 6 (Reassessment triggers), then re-score the affected items in Phase 2
AI/LLM feature to assess Phase 3 (AI/LLM failure classes), score each class in Phase 2
Sprint refresh of an existing matrix Phases 4–5 (Heatmap + Coverage alignment) on changed features
Verify an old heatmap is still true Phase 6 signals + Anti-Pattern "Risk Theater"

Discovery Questions

Check .agents/qa-project-context.md first — if it exists, use it as the foundation and skip questions already answered there. Gather the rest from stakeholders across engineering, product, and operations.

Revenue-Critical Flows

  • Which user flows directly generate revenue? (checkout, subscription, billing, upgrades)
  • What is the revenue impact per hour of downtime for each flow?
  • Are there time-sensitive flows? (flash sales, market-hours trading, payroll deadlines)
  • Which flows have contractual SLAs with financial penalties?

Recent Failures

  • What broke in the last 3 releases? What escaped to production?
  • What were the root causes? (code defect, config error, third-party failure, data migration)
  • What was the blast radius of each incident? (users affected, revenue lost, reputation impact)
  • Were there near-misses caught late in testing that could have escaped?

Fragile Areas

  • Which parts of the codebase change most frequently? (high churn = high risk)
  • Which modules have the lowest test coverage today?
  • Which areas have the most complex business logic or the most conditional branches?
  • Which code was written by engineers who have since left the team?

Read the full file on GitHub · 338 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 338 lines · 156 tokens per session scan A d39f564e2389

Subscribe to this mod's changes

risk-based-testing is a skill published in the GitHub repository petrkindlmann/qa-skills (318 stars, last pushed 16d ago), licensed MIT. It adds 156 tokens to every session and 4,867 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

risk-based-testing compared with skills from other repositories

risk-based-testing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
risk-based-testingpetrkindlmann/qa-skillsSkill31816d agoMITA156Claude Code, Codex
platform-engineeringmagnus919/agent-skillsSkill203yesterdayMITA105Claude Code, Codex
woodpecker-cimagnus919/agent-skillsSkill203yesterdayMITA87Claude Code, Codex
github-runnermagnus919/agent-skillsSkill203yesterdayMITA76Claude Code, Codex
CI Pipeline OptimizerPramodDutta/qaskillsSkill25329d agoMITA29Claude Code, Codex
Flaky Test QuarantinePramodDutta/qaskillsSkill25329d agoMITA32Claude Code, Codex
CI/CD Pipeline AdvancedPramodDutta/qaskillsSkill25329d agoMITA45Claude Code, Codex