Night Market Skill — ported from claude-night-market/leyline. For the full experience with agents, hooks, and commands, install the Claude Code plugin.
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)TierColorScopeExampleVerificationGREENSafeSingle file, trivial revertTest files, docs, utilsNone requiredYELLOWCautionModule-level, user-visibleComponents, routes, viewsConflict check and test passREDDangerCross-module, security/dataMigrations, auth, database schemaWar-room RS, full test, and reviewCRITICALStopIrreversible, regulatedData deletion, production deployWar-room RS and human approval
text
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:
json
{
"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:
LevelNameWhenRequired Controls0RoutineLow blast radius, easy rollbackBasic validation, rollback step1WatchUser-visible changesReview, negative test, rollback note2ElevatedSecurity/compliance/dataAdversarial review, risk checklist3CriticalIrreversible, regulatedHuman confirmation, two-step verification
See modules/readiness-levels.md for full level definitions,
selection decision tree, and integration guidance.
yaml
# In your skill's frontmatter
dependencies: [leyline:risk-classification]
Append [R:TIER] marker to task format:
markdown
- [ ] T012 [P] [US1] [R:YELLOW] Create LoginForm component in src/components/LoginForm.tsx
Check risk tier before task assignment:
text
if task.risk_tier in ["RED", "CRITICAL"]:
invoke Skill(attune:war-room-checkpoint) for RS scoring
if CRITICAL: require human approval before proceeding