From leyline
Classifies agent tasks into 4 risk tiers using heuristic file-pattern matching for GREEN/YELLOW and escalation to war-room-checkpoint for RED/CRITICAL reversibility scoring.
How this skill is triggered — by the user, by Claude, or both
Slash command
/leyline:risk-classificationThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- [Overview](#overview)
Provides inline risk classification for agent tasks using a 4-tier model (GREEN/YELLOW/RED/CRITICAL). Uses fast heuristic file-pattern matching for low-risk tiers and delegates to Skill(attune:war-room-checkpoint) for high-risk tiers requiring full reversibility scoring.
Skill(attune:war-room) instead)| Tier | Color | Scope | Example | Verification |
|---|---|---|---|---|
| GREEN | Safe | Single file, trivial revert | Test files, docs, utils | None required |
| YELLOW | Caution | Module-level, user-visible | Components, routes, views | Conflict check + test pass |
| RED | Danger | Cross-module, security/data | Migrations, auth, database schema | War-room RS + full test + review |
| CRITICAL | Stop | Irreversible, regulated | Data deletion, production deploy | War-room RS + human approval |
Task received
|
v
Heuristic classifier (file patterns)
|
├── GREEN/YELLOW → Apply tier, continue
|
└── RED/CRITICAL → Invoke Skill(attune:war-room-checkpoint)
for reversibility scoring (RS)
|
└── RS confirms or adjusts tier
Why hybrid: GREEN/YELLOW classification is fast and deterministic (file pattern matching). RED/CRITICAL tasks warrant the overhead of full reversibility analysis because the cost of getting them wrong is high.
Add risk tier to task metadata for downstream consumption:
{
"id": "5",
"subject": "Add user authentication",
"metadata": {
"risk_tier": "YELLOW",
"risk_reason": "Modifies src/components/LoginForm.tsx (user-visible component)",
"classified_at": "2026-02-07T22:00:00Z"
}
}
Tasks without risk_tier metadata default to GREEN (backward compatible).
The 4-tier Readiness Levels system provides clear risk classification with required controls per tier:
| Level | Name | When | Required Controls |
|---|---|---|---|
| 0 | Routine | Low blast radius, easy rollback | Basic validation, rollback step |
| 1 | Watch | User-visible changes | Review, negative test, rollback note |
| 2 | Elevated | Security/compliance/data | Adversarial review, risk checklist |
| 3 | Critical | Irreversible, regulated | Human confirmation, two-step verification |
See modules/readiness-levels.md for full level definitions,
selection decision tree, and integration guidance.
# In your skill's frontmatter
dependencies: [leyline:risk-classification]
Append [R:TIER] marker to task format:
- [ ] T012 [P] [US1] [R:YELLOW] Create LoginForm component in src/components/LoginForm.tsx
Check risk tier before task assignment:
if task.risk_tier in ["RED", "CRITICAL"]:
invoke Skill(attune:war-room-checkpoint) for RS scoring
if CRITICAL: require human approval before proceeding
npx claudepluginhub athola/claude-night-market --plugin leylineManages continuous risk identification, assessment, tracking, and retirement throughout SDLC, covering technical, project, and external risks.
Scans for upstream epistemic deficits in AI operations, materializes intent into tasks, classifies execution risks, delegates low-risk tasks to executor, and surfaces high-risk findings for user judgment.
Orchestrates a pre-task multi-agent briefing that classifies task complexity, runs parallel analysis, estimates time, maps risks, and produces an execution plan with contingencies. Use before tackling complex or critical work to reduce rework.