/cc-skills-meta:dnefrom cc-skills-meta
DUF-NSE - Pre-mortem checks + Next Steps. Past to future analysis.
Ships in cc-skills-meta. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
[!IMPORTANT] You are a supervised agent. A validator script runs after every response.
- Validation is Mandatory: Your outputs are checked for required sections.
- Trust the Error: If you see "VALIDATION ERROR", it is real. Do not argue.
- Fix and Retry: Your job is not done until the validator passes.
Combined workflow: Run DUF checks on recent work, then propose NSE next steps.
Philosophy: "What did I just do?" (DUF) → "Is it safe?" (DUF) → "What's next?" (NSE)
Past-to-future analysis combining DUF cognitive pre-mortem checks with NSE next-step proposals.
git push or /push skill) appear in this conversation?CRITICAL: All action items MUST be filtered against solo-dev constitutional constraints. See references/constitutional-filter.md for prohibited patterns table, Python filter integration, and required filter steps.
/dne # Full analysis: checks + next steps
/dne --minimal # Brief output only
STEP 1: DUF (Past)
↓ Check recent changes
↓ Run cognitive checks (blast radius, rollback, etc.)
↓ Generate action items for any risks found
↓ FILTER: Remove constitutional violations
↓
STEP 2: NSE (Future)
↓ If DUF passes: propose next steps
↓ If DUF finds issues: fix first, then next steps
↓
OUTPUT: Combined assessment + action items
Run these checks on recent changes:
| Check | Purpose |
|---|---|
| Pre-mortem | What breaks next week? |
| Blast Radius | What depends on what changed? |
| Rollback | Can I revert this? |
| Empty Test | Did I test with null/empty/zero? |
| Inversion | What's the easiest way this fails? |
Session scope detection (conversation history only):
conversation_files = all file paths from Read/Edit/Write tool calls in THIS conversation
push_seen = any Bash `git push` or `/push` skill call appears in conversation
Commit state: Auto-commit hooks fire on every Edit/Write. All edits are committed. Never ask or suggest committing.
Push state: Inferred from conversation. No push command seen → not pushed → suggest d - push.
See references/duf-phase.md for the mandatory execution sequence, git avoidance rationale, and anti-patterns.
Based on DUF results:
| DUF Result | NSE Action |
|---|---|
| Safe | Propose next steps (commit, push, next task) |
| Risks found | Add fix actions before proceeding |
| Critical issues | Block progress, fixes required |
Tier × Size × Kind Formula replaces subjective L×I scoring:
risk_score = (tier_weight × 0.5) + (size_weight × 0.3) + (kind_weight × 0.2)
Implementation: scripts/risk_calculator.py
Components:
Tier (50% weight): How central is the code?
Size (30% weight): How much code is changing?
Kind (20% weight): What type of change?
Risk Levels:
Examples:
## DUF-NSE Analysis: [change description]
**Risk Score:** [0.0-1.0] ([CRITICAL/HIGH/MEDIUM/LOW])
**Checks Run:** [list of checks actually performed]
### Push State
[Pushed / Not yet pushed — inferred from conversation]
### Findings
• Pre-mortem: [one sentence failure scenario]
• Inversion: [one sentence obvious risk]
• Second-Order: [one sentence consequence] - SKIP for Trivial changes
• Red Team: [one sentence attack vector] - SKIP for Trivial/Moderate
• Empty Test: [one sentence edge case to check] - SKIP for Trivial
• Blast Radius: [one sentence dependency impact]
• Observability: [one sentence logging concern] - SKIP for Trivial
• Assumptions: [one sentence unverified belief] - SKIP for Trivial
• Rollback: [one sentence revert strategy]
• Value Reveal: [one sentence upside] - SKIP for Trivial
### Action Items
**🔴 Priority (Critical/Fixes)**
**1** - [Highest Priority Fix] - [WHY it matters]
**2** - [Critical Verification] - [WHY it matters]
**🟡 Maintenance (Cleanup/Tech Debt)**
**3** - [Cleanup Task] - [WHY]
**4** - [Tech Debt Item] - [WHY]
**🔵 Suggestions (Optional)**
**5** - /design - [Why architectural review is needed]
**6** - /test - [Why specific testing is needed]
**7** - [optimization/refactor] - [WHY]
**⚪ Git Operations**
**d** - push (include ONLY if no push command was seen in this conversation)
**x** - all (execute all Priority and Maintenance items)
**0** - none (skip action items)
### Assessment
[Overall: Safe to proceed / Needs review / High risk]
[Risk Score: 0.0-1.0] ([CRITICAL/HIGH/MEDIUM/LOW])
[Tier/Size/Kind breakdown if applicable]
CRITICAL: Action items MUST be specific and informative
Each action item MUST state:
Forbidden patterns (vague, uninformative):
Required pattern (specific, informative):
Examples:
| Bad | Good |
|---|---|
| "none (trivial fix)" | "Verify debug print removal doesn't break scheduler diagnostics" |
| "cleanup" | "Confirm removed conditional doesn't skip subtitle downloads" |
| "not needed" | "/design not needed - single-line change within same function" |
Action Items Rules:
After completing /dne, consider running /cks-store to persist key findings:
/cks-store --context "session_summary" --query "..." --confidence 80
This enables future sessions to recall patterns, pitfalls, and decisions from this session.
CHANGELOG.md (opens in a new tab)references/constitutional-filter.md (opens in a new tab)references/output-format.md (opens in a new tab)references/risk-assessment.md (opens in a new tab)scripts/__init__.py (opens in a new tab)scripts/risk_calculator.py (opens in a new tab)tests/conftest.py (opens in a new tab)tests/test_risk_calculator.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Skillpython -c "import sys; sys.exit(0)"10sGenerated from the plugin's indexed repository (enduser123/cc-skills-meta) — no native marketplace selected
npx claudepluginhub p/enduser123-cc-skills-meta51 skills in this plugin
/behaveStructured behavioral analysis for LLM performance debugging — hypothesis testing for session patterns (loops, context degradation, decision inefficiency, cognitive overload, attention drift)/cksConstitutional Knowledge System - unified command for search, add, and session extraction/concept-mapperUnified concept mapping for learning, system architecture, and text analysis. Creates Mermaid diagrams for mind maps, concept maps, system diagrams, and knowledge structures. Use for studying, documentation, architecture visualization, or converting articles/text into visual maps.