/cc-skills-analysis:behavefrom cc-skills-analysis
Structured behavioral analysis for LLM performance debugging — hypothesis testing for session patterns (loops, context degradation, decision inefficiency, cognitive overload, attention drift)
Ships in cc-skills-analysis. 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.
None: SKILL.md is the whole skill.
Structured hypothesis-testing analysis for LLM performance debugging in chat sessions.
Analyze session history to detect and diagnose behavioral patterns that indicate performance issues:
Required: Bullet structure with explicit hypothesis labels (H₁, H₂, H₃), NOT tables or narrative conclusions.
For each observed symptom, generate 3-5 competing root cause hypotheses. No filtering — list all candidates.
Format:
H₁: [specific mechanism]
H₂: [alternative mechanism]
H₃: [third mechanism]
H₄: [fourth mechanism]
H₅: [fifth mechanism]
Rule: Do NOT suppress or pre-judge any hypothesis.
For each hypothesis, specify:
TEST METHOD: How to distinguish this from alternatives
DATA NEEDED: What evidence would falsify this
COST: Execution cost (log search, code trace, re-run, etc.)
Order tests from cheapest to most expensive.
| Cost Level | Examples |
|---|---|
| Cheap | Log search, grep, Read existing files |
| Medium | Add diagnostic print, verify data exists, swap tool |
| Expensive | Re-run in fresh context, cross-environment test |
State which hypotheses remain unfalsified based on available evidence.
Rule: DO NOT converge to single hypothesis until alternatives are ruled out.
Format:
Unfalsified after available evidence: H₁, H₂, H₃ (H₄ ruled out by [evidence])
Self-rated confidence is unreliable without calibration against evidence tiers.
Calibrate each hypothesis using this table:
| Evidence Source | Confidence Ceiling |
|---|---|
| Execution artifacts, logs, test output | 95% |
| Official docs, specs, verified specs | 85% |
| Static analysis, code inspection | 75% |
| Memory entries, unverified claims | ≤50% |
Calibration rules:
| Remaining Candidates | Confidence Level |
|---|---|
| 1 hypothesis | HIGH (H rejected) |
| 2-3 hypotheses | MODERATE (list candidates) |
| 4+ hypotheses | LOW (cannot converge without more data) |
Only after Steps 1-4: Produce structured output with confidence qualifier and explicit evidence tier.
Finding: [brief description of observed symptom]
Hypotheses:
H₁: [specific mechanism]
H₂: [alternative mechanism]
H₃: [third mechanism]
H₄: [fourth mechanism]
Test sequence:
[Cheapest] [test description] → [expected distinguishing evidence]
[Medium] [test description] → [expected distinguishing evidence]
[Expensive] [test description] → [expected distinguishing evidence]
Unfalsified after available evidence: H₁, H₂, ...
Confidence: [HIGH/MODERATE/LOW] ([reason])
Finding: [restated with appropriate confidence qualifier]
Symptoms:
Hypotheses for loops:
Symptoms:
Hypotheses for context degradation:
Symptoms:
Hypotheses for decision inefficiency:
Symptoms:
Hypotheses for cognitive overload:
Symptoms:
Hypotheses for attention drift:
Finding: Lines 41-54 empty Python output
Hypotheses:
H₁: Query succeeded but returned no matching data
H₂: Code path not reached (wrong conditional)
H₃: Stdout capture failed (environment issue)
H₄: Silent failure in code execution
Test sequence:
[Cheapest] Add print("REACHED") before query → check logs for execution confirmation
[Medium] Verify target data exists before querying → ls/Read confirmation
[Medium] Swap diagnostic tool → test with grep/glob alternative
[Expensive] Re-run in fresh terminal context → cross-environment comparison
Unfalsified after available evidence: H₁, H₂, H₃ (H₄ ruled out by RC:0 exit)
Confidence: MODERATE (3 candidates remain; cannot converge without re-execution)
Finding: Model ran empty diagnostic without confirming prerequisites
do_not:
GATE 1 (STOP after Step 1): Before moving to Step 2, verify:
If gate fails: regenerate missing hypotheses before proceeding.
GATE 2 (STOP after Step 2): Before moving to Step 3, verify:
If gate fails: reorder tests before proceeding.
GATE 3 (STOP after Step 3): Before moving to Step 4, verify:
If gate fails: note which hypotheses remain and proceed with MODERATE confidence.
STOP between generation (Steps 1-2) and validation (Steps 3-4):
/diagnose — Structured diagnostic protocol for code bugs/trace — Manual trace-through verification/debrief gaps — Gap/Task/Opportunity analysisVersion: 1.0.0
Before claiming code is absent, unchanged, or non-existent — search the codebase and verify with tools first. Claims of absence are only valid after confirmed Read/Grep/git failures.
Do NOT answer without reading relevant source files first. Do not ask the user for information you can obtain yourself via Read, Grep, Bash, git, or available MCP tools.
Prohibited:
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-analysis) — no native marketplace selected
npx claudepluginhub p/enduser123-cc-skills-analysis14 skills in this plugin
/claude-auditAudit and optimize Claude Code configuration (CLAUDE.md, .claude/rules/, skills, hooks, agents, MCP, plugins, MEMORY.md) for over-engineering, token waste, and rule-shape — whether each rule lives in the right mechanism. Consolidates claudit + config-audit. Self-contained; no external subagent fleet./debriefUnified analysis hub — mines transcripts for unfinished work + origin-anchored tasks. Modes: default (transcript → root-cause tasks), chain (multi-session retrospective: /recap→gaps→/friction→/red-team→/rns + SCORES), gaps (deterministic gap detectors + mandatory haiku gap reviewer + RNS + artifact contract), top (6-source problem scan → ranked tasks). Trigger phrases: 'debrief this transcript', 'mine the chat history', 'victim log', 'why is this broken', 'run a retro', 'top problems', 'what gaps remain'. Absorbs /retro and /top-problems; gap detection is debrief-owned./doc-compilerCompile skills, plugins, projects, and workflows into interactive, verified HTML documentation with Mermaid diagrams, TOC, proof metadata, and browser validation./epistemic-checkValidate any Q&A response against the 4-section epistemic contract. Runs 3-phase audit (format → causal → comparative), reports violations and minimal repairs./frictionDetect interaction friction and workflow automation opportunities from chat history and session evidence./recapGenerate a handoff-ready session recap across the full session chain, with an optional evidence-scoped pre-handoff check