claude-code-plugin-ref…
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops;…
Classifies agent tasks into 4 risk tiers (GREEN/YELLOW/RED/CRITICAL). Use when assessing action reversibility before committing to an approach.
Claude Code
$ npx -y skills add athola/claude-night-market --skill risk-classification --agent claude-code
Codex
$ npx skills add athola/claude-night-market --skill risk-classification -a codex -y
Cursor
$ npx skills add athola/claude-night-market --skill risk-classification -a cursor -y
Gemini CLI
$ npx skills add athola/claude-night-market --skill risk-classification -a gemini-cli -y
GitHub Copilot
$ npx skills add athola/claude-night-market --skill risk-classification -a github-copilot -y
OpenCode
$ npx skills add athola/claude-night-market --skill risk-classification -a opencode -y
Windsurf
$ npx skills add athola/claude-night-market --skill risk-classification -a windsurf -y
name: risk-classification description: Classifies agent tasks into 4 risk tiers (GREEN/YELLOW/RED/CRITICAL). Use when assessing action reversibility before committing to an approach. alwaysApply: false category: infrastructure tags: - risk - classification - safety - verification - gates dependencies: - error-patterns provides: infrastructure: - risk-tier-classification - verification-gates - heuristic-classifier patterns: - risk-aware-coordination - tier-based-verification usage_patterns: - task-risk-assessment - verification-gate-routing - parallel-safety-validation complexity: intermediate estimated_tokens: 500 progressive_loading: true modules: - modules/tier-definitions.md - modules/heuristic-classifier.md - modules/verification-gates.md - modules/readiness-levels.md - modules/automation-tiers.md role: library
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.
| 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 and test pass | | **RED** | Danger | Cross-module, security/data | Migrations, auth, database schema | War-room RS, full test, and review | | **CRITICAL** | Stop | Irreversible, regulated | Data deletion, production deploy | War-room RS and 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.
Risk classification sets how carefully a change is verified. Automation tiers set how autonomously the agent acts and when it must hand control back. Each risk tier carries a default automation tier (GREEN to A3 autonomous, CRITICAL to A0 manual), and a pre-licensed downgrade trigger drops the agent one tier on repeated failure, confidence loss, a stakes spike, or repo-state mismatch rather than re-prompting at the same level. See `modules/automation-tiers.md` for the tier table and the downgrade trigger, and `imbue:assisted-mastery` for the explain/produce mode selection that reads from it.
# 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 proceedingwith a reason when a trigger fires
A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops;…
States load-bearing decisions, invariants, and weak points. Use when judging a design change. Do not use for gating; use…
Rebuild the dev environment: uv, Python tiers, pins, traps. Use when onboarding or toolchain breaks. Do not use for daily…
Classify, gate, and review changes. Use when landing a PR, releasing, or amending rules. Do not use for failure triage; use…
Search and record project memory (Discussions, journal, ADRs). Use before re-investigating anything. Do not use for settled…
Bind loop 'done' to unfakeable gates. Use to harden egregore/herald loops or promote completion_integrity. Not for QA gates; use…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.