/cc-skills-meta:top-problemsfrom cc-skills-meta
Analyze recent session history, premortem evidence, and task data to find the most impactful fixable problems, including systemic contract and stale-data failures
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.
Analyze recent session activity to surface the most impactful, fixable problems. Scans six evidence sources in parallel, deduplicates findings, ranks by impact x fixability, detects dependencies, and persists results for trend tracking.
The analyzer should explicitly cluster systemic workflow failures such as:
| Arg | Default | Description |
|---|---|---|
--days | 3 | How many days of history to scan |
--top | 10 | Number of problems to return |
--source | all | Filter: evidence, tasks, git, all |
--status | open | Filter: open (unfixed only), all |
--ignore | (none) | Comma-separated subsystems to exclude |
--ignore-stale | false | Skip STALE and LEGACY-UNKNOWN critique findings |
--focus | (none) | Deep scan one subsystem: hooks, handoff, session_chain, search, skills |
--since-commit | (none) | Scan since a git SHA instead of time-based window |
--diff | false | Compare with previous run and show trends |
--buckets | false | Group results into P1/P2/P3 priority buckets |
--sensitivity | false | Show how stable each ranking is (fragile-rank detection) |
--policy | balanced | Ranking philosophy: balanced, risk_averse, exploratory |
--json | false | Machine-readable JSON output |
--since-commit <sha>: use git log <sha>..HEAD for commits, git diff <sha>..HEAD --stat for changed files--focus <area>: run focused deep scan (see references/flags.md for per-area methods)--days N time-based windowRun these 6 scans in parallel:
| # | Source | Path/Command | Extract |
|---|---|---|---|
| 1 | Pre-mortems | P:/.claude/.artifacts/{terminal_id}/top-problems/premortem_*.md | OPEN/DEFERRED items, risk scores |
| 2 | Critiques | P:/.claude/.artifacts/{terminal_id}/critique/*/p1_findings.md + staleness gate | CRITICAL/HIGH findings with staleness badge |
| 3 | Tasks | TaskList or git status | pending/in_progress, no owner |
| 4 | Git | git log --since="<date>" --oneline | fix/bug/BLOCKER/revert patterns |
| 5 | Session errors | ~/.claude/projects/P--/*.jsonl (last 500 lines) | "is_error":true |
| 6 | Auto-retries | Same JSONL files | Consecutive identical tool_use (3+ repeats) |
If zero evidence found: double window to N2, then N4, cap at 30 days. Note expansion in output.
Before ingesting any p1_findings.md from a critique session directory:
source_metadata.json from the same session directory if present.git_sha to current HEAD: run git rev-parse HEAD in the project root.
STALE.CURRENT.source_metadata.json absent (legacy sessions created before this gate) → mark findings as LEGACY-UNKNOWN.STALE: {N} critique sessions | LEGACY-UNKNOWN: {N} | CURRENT: {N}.STALE findings receive 0.5x cross_ref_multiplier; LEGACY-UNKNOWN receive 0.3x.--ignore-stale flag skips STALE and LEGACY-UNKNOWN findings entirely.Rationale: Critique findings are snapshots of code state at session creation time. Code changes after the session invalidates severity claims. The
source_metadata.json(written bypre-mortem'ssetup()) captures git SHA at critique-start for this comparison.
Group by root cause: same file:line, same risk ID (P-4, F-007), same task across sources.
Record per problem: title, evidence sources (file:line), cross-ref count, impact, fix scope, status.
Identify blocking, same-file conflicts, and cascade risks between problems.
See references/analysis.md for full dependency detection rules and output format.
Apply --ignore after dedup. Skip problems in excluded subsystems.
Auto-exclude problems meeting any veto condition, regardless of score:
| Veto Condition | Check Method |
|---|---|
| Already fixed in git | git log --grep="<keyword>" --since="<window>" finds merged fix |
| Marked WONTFIX/BYDESIGN | Grep evidence sources for WONTFIX, BYDESIGN, INTENTIONAL |
| Duplicate of in-progress task | TaskList shows same problem with owner in in_progress |
Record vetoed items in output: Vetoed: {N} problems ({reasons}).
When multiple findings point to boundary failures, cluster them into a systemic problem family instead of listing isolated symptoms.
Examples:
After dedup, check for symptom-vs-root-cause patterns:
For each X-Y detection, add to output: "XY-SUSPECT: {file/pattern} — {N} problems may share root cause."
Score: impact(1-5) x fixability(1-5) x cross_ref_multiplier
Multipliers: 1 source=1.0x, 2 sources=1.2x, 3+ sources=1.5x
Each problem gets a confidence badge: [HIGH], [MED], [LOW]
| Factor | HIGH | MEDIUM | LOW |
|---|---|---|---|
| Evidence sources | 3+ distinct sources | 2 sources | 1 source |
| Evidence recency | Last 24h | 2-3 days | >3 days |
| Evidence type | Direct (git errors, JSONL) | Mixed | Analysis only (premortem) |
Low-confidence problems get note: "Limited evidence — consider --focus <subsystem> for deeper scan."
--buckets)After ranking, assign deterministic buckets:
| Bucket | Criteria | Action |
|---|---|---|
| P1 Immediate | Score >= 16 AND fixability >= 4 | Fix this session |
| P2 This Week | Score >= 10 OR impact = 5 | Plan and schedule |
| P3 Backlog | Everything else | Defer |
Output includes: P1: {N} problems | P2: {N} | P3: {N}
| Impact | Fixability |
|---|---|
| 5: Every tool call/session | 5: Single file, <20 lines |
| 4: Core skill (/recap, /gto) | 4: Single file, <50 lines |
| 3: Specific workflow | 3: 2-3 files, clear path |
| 2: Single hook/edge case | 2: Multi-file, needs design |
| 1: Cosmetic only | 1: Research phase |
--diff), Regression Detection, Severity Escalation, Resolution TrackingClassify each problem's proposed fix on the Escalation Ladder:
| Level | Description | Signal |
|---|---|---|
| Band-Aid | Patches the symptom | "This will break again" |
| Local Optimum | Optimizes within current assumptions | "Cleaner but same shape" |
| Reframe | Questions the problem statement | "What if the problem is actually..." |
| Redesign | Changes the system so problem doesn't exist | "With this change, we wouldn't need to..." |
Output adds fix_level column. Problems with 3+ Band-Aid fixes to same file → X-Y SUSPECT.
--policy)Adjust ranking weights by policy:
| Policy | Impact Weight | Fixability Weight | Use When |
|---|---|---|---|
balanced (default) | 1.0x | 1.0x | General purpose |
risk_averse | 2.0x | 0.5x | Prioritize high-impact problems regardless of fix difficulty |
exploratory | 0.5x | 2.0x | Prioritize quick wins and hidden problems |
In risk_averse mode, a problem with impact=5 and fixability=2 scores: (5*2.0) * (2*0.5) * multiplier = 10.0 * multiplier.
See references/flags.md for --diff procedure (including regression detection) and references/analysis.md for escalation thresholds and resolution tracking.
Write to P:/.claude/.artifacts/{terminal_id}/top-problems/top-problems_<YYYYMMDD>.md.
Markdown table (default):
| # | Problem | Score | Impact | Fix | Sources | Confidence | Bucket | Fix Level | Trend | Conflicts | |---|---------|-------|--------|-----|---------|-----------|--------|-------|-----------|
Problem cards: title, score with multiplier, evidence (file:line), impact, fix, confidence, bucket, status, blocks, conflicts.
Heat map: ASCII bar chart by directory. See references/analysis.md.
JSON (--json): Full schema in references/flags.md.
| Problem Type | Suggested Command |
|---|---|
| Fixability >= 4 | Try: /task to create a tracked fix |
| Fixability 2-3 | Try: /planning to design the approach |
| Fixability 1 | Try: /pre-mortem to analyze before fixing |
| Quality concern | Try: /critique for adversarial review |
| Stale (3+ runs) | Try: /reflect to extract lessons |
| CRITICAL-STALE | Try: /pre-mortem specifically for this problem |
| CRITICAL-NEW | Try: /planning to design immediate fix |
| 3+ Band-Aids to same file | XY-SUSPECT — Try: /solution-space for systemic redesign |
| Band-Aid fix level | Consider: Is this treating a symptom? Check for X-Y suspects. |
| Redesign fix level | Try: /planning to design architectural change |
Do NOT execute these commands. Only suggest them.
/top-problems is a prioritizer. It should suggest lower skills based on the owning failure type:
/design for systemic contract/state redesign/planning for multi-step fixes needing explicit task shape/pre-mortem for risky or repeated failures/critique for adversarial review before committing to a fix/verify for cases where the main issue is lack of proof rather than lack of implementation/top-problems must not execute fixes directly.
Quick wins, stale count, escalated, resolved, excluded, vetoed, conflicts, window type. Suggest /task, /planning, /pre-mortem, /top-problems --diff.
/loop 1d /top-problems --days 3 --top 5 --diff
| Source | Path | What to extract |
|---|---|---|
| Pre-mortems | P:/.claude/.artifacts/{terminal_id}/top-problems/premortem_*.md | OPEN/DEFERRED items |
| Critiques | P:/.claude/.artifacts/{terminal_id}/critique/*/p1_findings.md | CRITICAL/HIGH |
| Tasks | TaskList tool | pending/in_progress |
| Git | git log --since or <sha>..HEAD | fix/bug/BLOCKER |
| Sessions | ~/.claude/projects/P--/*.jsonl | "is_error":true (sample) |
| Retries | Same JSONL | Consecutive identical tool_use |
| Previous runs | P:/.claude/.artifacts/{terminal_id}/top-problems/top-problems_*.md | Trend, resolution |
| File | Contents |
|---|---|
references/flags.md | --focus scan methods, --since-commit procedure, --diff matching rules, --json full schema |
references/analysis.md | Dependency graph rules, escalation thresholds, resolution tracking, heat map format |
| Skill | Relationship |
|---|---|
/chs | Search session transcripts for specific errors |
/gto | GTO health analysis identifies code quality gaps |
/pre-mortem | Create premortems for planned changes |
/critique | Run adversarial review on recent changes |
/reflect | Extract lessons from session history |
/planning | Design implementation approach |
/task | Create tracked work items |
/loop | Set up periodic problem scanning |
3.4.0 (2026-04-02) - Added systemic contract/stale-data clustering
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated 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./config-auditAudit Claude Code configuration artifacts (hooks, skills, CLAUDE.md, agents) for over-engineering, redundancy, and token waste. Uses model routing (haiku for research, sonnet for analysis) with decision memory./constitutional-patternsStandards for constitutional compliance and pattern enforcement./constraintsShow active project constraints from CLAUDE.md