severity
Skill13 starsChanged 2 months agoMITView on GitHub
Rates how severe a finding or bug is if it is real — the blast-radius axis, complementary to confidence's is-it-real axis. Emits a lowercase tier (critical / high / medium / low) from a fixed axis rubric, then applies one deterministic, executable path floor (auth / billing / migration / infra / secrets paths) plus heuristic escalators (data-loss, security, concurrency shapes) — both scoped to reachable production code, never test / fixture / generated paths. Callers own how they gate on the tier and map it to their own blocking rules; the skill stays policy-free. Use to triage a review finding or a bug. Triggers on "how severe", "rate severity", "severity check", "triage this finding", "how bad is this", "/severity".
2 other projects use a version of this.
Adopted by
Most recently taken up by
- lklimek/claudiustheir own version, first seen Sep 23, 2026
- 0x-Shashi/WEB3-AUDIT-SKILLStheir own version, first seen Feb 26, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- 0x-Shashi/WEB3-AUDIT-SKILLS★ 61same name
- lklimek/claudius★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository53 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- skills/workflow/autonomous-workflow/CLAUDE.mdCLAUDE.md
- holistic-analysisSkill
- ideateSkill
- interviewSkill
- playwright-trace-analyzerSkill
- profile-optimizerSkill
- rum-trackingSkill
- screen-recorderSkill
- video-analyserSkill
- create-skillSkill
- docsSkill
- handoffSkill
- optimize-claude-mdSkill
- persistent-memorySkill
- changelogSkill
- ci-auto-fixSkill
- create-prSkill
- github-actions-authorSkill
- resolve-conflictsSkill
- animations-nativeSkill
- animationsSkill
- behavioral-designSkill
- chartingSkill
- storybookSkill
- uxSkill
- visual-designSkill
- ai-engineeringSkill
- code-qualitySkill
- confidenceSkill
- criticalSkill
- dxSkill
- eval-iterateSkill
- jev-assertSkill
- measurableSkill
- observe-runSkill
- optimize-approachSkill
- polishSkill
- pr-reviewSkill
- review-branchSkill
- review-loopSkill
- tddSkill
- test-provenance-guardSkill
- verify-behaviorSkill
- e2e-pr-stabilizerSkill
- e2e-testing-mobileSkill
- e2e-testingSkill
- ui-verifySkill
- autonomous-workflowSkill
- aw-create-planSkill
- aw-create-walkthroughSkill
- fix-bugSkill
- implement-suggestionSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 63
Check the arguments: $ARGUMENTS
- Very specific: line 70
If no argument is provided, default to finding.
- Distinctive: line 121
Exclusion gate (run first): If the finding's path matches any exclusion, skip both the floor and the escalators — the tier stays whatever …
- Very specific: line 132
Deterministic path floor (executable): If not excluded, this case sets a minimum tier purely from the path — no model judgment:
- Distinctive: line 144
Heuristic escalators (LLM-judged — NOT deterministic): Read the changed code and apply a minimum tier only when the shape is concretely …
- Very specific: line 228
One exception — a floor-only tier is not blocking: If a finding is high or critical
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Severity Assessment
Rate how severe a finding or bug is if it is real, and emit one tier the caller acts on.
Severity is not confidence.
confidenceanswers is this real / correct.severityanswers how bad is it if it is. The two are orthogonal — a caller composes them (surface when severity clears the caller's bar for its tier AND confidence clears that bar). Never fold them into one number.
What is actually deterministic here. One thing: the path floor in Step 2 is an executable glob against the file path (a real
casematch), so it never depends on model judgment. The escalators (data-loss / security / concurrency shapes) are heuristic — an LLM reads the code shape. This is the honest split; do not call the escalators deterministic. It mirrorsconfidence's executable rule checks only for the path floor.
Contents
- Mode Detection
- Severity rubric
- Step 1 — Base tier from axes
- Step 2 — Path floor and escalators
- Step 3 — Combined tier
- Output Format
- Mapping to a reviewer's blocking flag
- How Callers Consume the Tier
- Evals
Mode Detection
Check the arguments: $ARGUMENTS
| Argument | Default | Rates the severity of | Typical caller |
finding | yes | A single code-review finding | A reviewer, to route and gate one finding |
bug | A bug, defect, or incident | fix-bug / ci-auto-fix triage |
If no argument is provided, default to finding. The rubric is shared; the mode
only changes what "impact" refers to (a finding's failure vs. a bug's user harm).
A change / whole-diff mode is deliberately out of scope: blast-radius of a whole
change is already critical's and optimize-approach's job. Add it only when a
consumer needs it.
Severity rubric
This section is self-contained: it is the exact rubric the eval extracts, and it is everything needed to produce a tier.
The four tiers, worst-case first:
| Tier | Criteria (a finding is this tier if ANY line holds, on a reachable path) |
| critical | Irreversible data loss, a security breach (authz bypass, secret exposure, RCE / injection), or an all-tenant outage. |
| high | Data loss or corruption on an edge path; a security-relevant weakness (SSRF, fork / PR trust in a privileged context, removed integrity pin); or broken core behavior on a common path. |
| medium | A functional bug with a workaround — single surface, recoverable. The default for a real, contained defect. |
| low | Cosmetic, style, docs, parity, or nice-to-have. No functional impact. |
Severity aggregates by worst plausible case, not average — one catastrophic axis sets the tier.
Step 1 — Base tier from axes
Rate each axis, then pick the highest tier whose criteria above are met. The axes are the evidence; the table is the mapping.
| Axis | Levels (low → high) |
| Impact | cosmetic → functional → data-or-security → catastrophic (outage / breach) |
| Blast radius | one call site → one user → one tenant → all tenants / stored data / money |
| Likelihood | rare / theoretical → edge case → common path → always |
| Reversibility | self-heals → manual fix → irreversible (lost data, sent money, leaked secret) |
Reachability caps the base tier. A catastrophic-impact bug on a code path that is
never reached (dead code, an unregistered handler, a theoretical likelihood) is not
critical or high — rate it down to what its reachability supports, the same way
confidence refuses to inflate on weak evidence. This is the one place judgment
overrides the impact axis, and it also gates whether Step 2 applies at all.
Step 2 — Path floor and escalators
Both run only on reachable production code. Neither applies to test, fixture, mock, generated, example, or reverse-migration paths — those are where destructive shapes live harmlessly and where a floor would manufacture the exact nitpick noise this skill exists to avoid.
Exclusion gate (run first). If the finding's path matches any exclusion, skip both the floor and the escalators — the tier stays whatever Step 1 produced:
case "$path" in
*_test.*|*.test.*|*.spec.*|*/test/*|*/tests/*|*/__mocks__/*|*/__fixtures__/*|\
*.gen.*|*.generated.*|*/generated/*|*/fixtures/*|*/examples/*|*.down.sql|*.down.ts)
floor=none ;; # non-production path — Step 2 does not apply
esacDeterministic path floor (executable). If not excluded, this case sets a minimum
tier purely from the path — no model judgment:
case "$path" in
*/auth/*|*/authn/*|*/authz/*|*/billing/*|*/payments/*|\
*migrations/*|*/infra/*|*/deploy/*|*secret*|*credential*)
floor=high ;;
*) floor=none ;;
esacHeuristic escalators (LLM-judged — NOT deterministic). Read the changed code and apply a minimum tier only when the shape is concretely present, citing the line:
| Shape | Minimum |
Data loss: offset / ack committed before the durable write; silently swallowed error; unguarded destructive migration (DROP / DELETE / TRUNCATE on a populated table) | high |
| Security breach: authz bypass, secret / token exposure, RCE, SQL / command injection | critical |
| Security weakness: SSRF, trusting a fork / PR ref in a privileged or CI context, a removed integrity pin | high |
| Concurrency on shared mutable state, money, or a counter: race, missing lock, double-dispatch, unbounded fan-out | high |
The blanket "untrusted input" is intentionally absent — every endpoint reads untrusted input, so it is not a floor. Only the concrete breach shapes above escalate.
Step 3 — Combined tier
severity = max(base_tier, path_floor, escalator_minimums)over the order low < medium < high < critical, with none contributing nothing. A
matched floor or escalator raises the tier; it never lowers it. Step 1's reachability
cap has already run, so a floor can only apply to code that is actually reached.
Output Format
You MUST output in this exact format. The tier token is always lowercase — it is
the machine-readable value; a caller parses the token after ## Severity: .
## Severity: <critical|high|medium|low>
### Axes
| Axis | Level | Notes |
|---------------|------------------|-------|
| Impact | <level> | ... |
| Blast radius | <level> | ... |
| Likelihood | <level> | ... |
| Reversibility | <level> | ... |
### Floor and escalators
| Signal | Match | Minimum |
|-------------------------------|--------------------------------|----------|
| exclusion (test/gen/fixture) | <✓ path… | ✗> | n/a |
| path floor | <✓ path… | ✗> | high | — |
| data-loss shape | <✓ file:line | ✗> | high | — |
| security shape | <✓ file:line | ✗> | critical/high | — |
| concurrency shape | <✓ file:line | ✗> | high | — |
### Result
- Base tier (Step 1): <tier>
- Floor / escalator applied: <tier or none> (<matched signal>)
- **Severity: <tier>**Be honest — do not inflate or deflate. A low with clear reasoning beats a reflexive
high. A matched floor is non-negotiable on a production path; an exclusion match is
equally non-negotiable — do not floor test or generated code.
Mapping to a reviewer's blocking flag
A reviewer already has a binary (blocking) decoration
(agents/shared/rules/conventional-comments.md), a cap-exemption that always posts a
(blocking) finding inline (rubric-composition.md § Placement), and an orthogonal
materiality dimension. This skill does not replace them — it feeds the (blocking)
decision. The crosswalk (note: a tier is orthogonal to the issue/suggestion/nitpick
category, which rubric-composition.md § Severity mapping still assigns separately):
| Tier | Reviewer treatment |
| critical | (blocking) — cap-exempt, always inline. |
| high | (blocking) — cap-exempt, always inline. |
| medium | Non-blocking, material — inline subject to the caps, else deferred. |
| low | Non-blocking, cosmetic / nice-to-have — materiality gate + relevance-memory may suppress. |
The tier is the source; the reviewer decorates (blocking) from it per the crosswalk
above. Do not encode a second, divergent blocking rule in the consumer.
One exception — a floor-only tier is not blocking. If a finding is high or critical
only because the Step 2 path floor raised it (its Step 1 base tier was medium/low), do
not mark it (blocking): a cosmetic nitpick on a billing/ or migrations/ path is still a
nitpick. The floor raises the confidence bar so the finding surfaces on a sensitive path; it does
not convert a non-blocking finding into a blocker. (blocking) follows the base-tier impact
(broken behaviour, security, data loss, misimplemented intent), not the floor.
How Callers Consume the Tier
This skill emits a value and stops. It never posts, applies, blocks, or gates on its own
— it is advisory, like confidence, and it is policy-free: the numeric bars a
consumer uses live in the consumer, not here.
- A reviewer gates each finding on a severity-aware confidence bar by default:
mediumanchors the profile's historical bar,critical/highget a lower bar (surface a probable serious bug even at moderate confidence),lowa higher bar (advisory or suppressed). The numbers live inreview-config.md, not in this skill — it emits only the tier. fix-bugorders triage by tier.ci-auto-fixescalates acritical/highregression and defers alowone.
Cost. Assess severity in the same pass as the finding's confidence rating, or batch all findings into one call. Do not spawn a separate per-finding invocation — on a 20-finding PR that doubles the per-finding LLM round-trips for no benefit.
The reviewer shows the emitted tier as a <prefix> (<tier>): label on each finding
(agents/shared/rules/conventional-comments.md § Severity decoration) and records it per
outcome: scripts/record-comment-relevance.mjs reads the tier into the
reviewer-comment-relevance record's severity field — so per-tier precision is
measurable over time, the same way a reviewer tracks whether its findings were acted on.
Evals
The rubric above is regression-tested. scripts/eval/golden/severity-tiering.jsonl
holds labelled findings spanning all four tiers plus the tricky cases this skill is
built for: a destructive statement on a test path (excluded → low), a one-line change
on a billing/ path (path floor → high), and a catastrophic bug on a dead path
(reachability cap → low). The severity-tiering suite in scripts/eval/l2.mjs
extracts the Severity rubric section verbatim and exact-matches the
model's tier. When a floor or escalator changes, add a golden case so the change is
locked.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

