/cc-skills-analysis:tracefrom cc-skills-analysis
Manual trace-through verification for code, skills, workflows, and documents - catch logic errors that automated testing misses
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.
Read when SKILL.md points to them; scripts run unread.
Manual trace-through verification to catch logic errors that automated testing misses. Based on industry best practices:
When to use:
/trace code:<file>/trace code:<file>/trace operates in 4 domain modes:
| Mode | Description | When to Use |
|---|---|---|
| code | Resource management, exception paths, race conditions | File I/O, locking, concurrency |
| skill | Intent detection, tool selection, fallback logic | Skill development, /av analysis |
| workflow | Step dependencies, error handling, rollback | Flow verification, orchestration review |
| document | Consistency, completeness, cross-references | Doc review, CLAUDE.md verification |
TRACE reports include automatic visualization generation: Mermaid flowcharts, call graph recommendations (pyan), program slicing recommendations, and pre-built templates.
See references/visualization-features.md for full details on all 4 visualization types and usage instructions.
TRACE integrates with debugRCA for enhanced root cause analysis: evidence saturation detection, red flag detection, ACH scenario generation, timeline visualization, call graph hypothesis generation, CKS findings persistence, and differential TRACE.
See references/debugrca-integration.md for all 7 integration features with code examples and benefits table.
Extract domain and target from invocation:
/trace code:src/handoff.py -> domain=code, target=src/handoff.py
/trace skill:skill-development -> domain=skill, target=skill-development
/trace workflow:flows/feature.md -> domain=workflow, target=flows/feature.md
/trace document:CLAUDE.md -> domain=document, target=CLAUDE.md
Default invocation (no domain specified):
.py file -> code domainSKILL.md -> skill domainflows/ -> workflow domaindocument domainADAPTERS = {
'code': CodeTracer,
'skill': SkillTracer, # Future: Extension point
'workflow': WorkflowTracer, # Future: Extension point
'document': DocumentTracer, # Future: Extension point
}
CRITICAL: Read the target file before creating trace tables.
For each target, define 3 scenarios:
| Step | Operation | State/Variables | Resources | Notes |
|------|-----------|-----------------|-----------|-------|
| 1 | Initial state | var1=None, var2=[] | fd=None | Setup |
| 2 | Open file | var1=<fileobj> | fd=3 | File opened |
| 3 | Process data | var1=<data>, var2=[1,2,3] | fd=3 | Data processed |
| 4 | Close file | var1=None | fd=None | Cleanup |
Step through the code/content line-by-line:
See references/workflow-and-report-format.md for the full TRACE report template with executive summary, findings format, and results structure.
For /trace requests, execute this workflow:
cd P://.claude/skills/trace && python __main__.py "domain:target"
# Examples
python __main__.py "code:src/handoff.py"
python __main__.py "skill:skill-development"
python __main__.py "workflow:flows/feature.md"
python __main__.py "document:CLAUDE.md"
Each domain has specific focus areas, trace table columns, checklists, and example invocations.
See references/domain-adapters.md for detailed checklists and trace table formats for all 4 domains (code, skill, workflow, document).
The /code skill Phase 3.5 (TRACE) delegates to /trace code:<file>. The delegation pattern and references to TRACE methodology, templates, and checklists are documented in references/integrations-and-usage.md.
# Code TRACE (fully implemented)
/trace code:src/handoff.py # Manual code trace-through
/trace code:src/handoff.py --template 2 # Use specific template
/trace code:src/handoff.py --no-tot # Disable ToT enhancement
# Skill / Workflow / Document TRACE (extension points - future)
/trace skill:skill-development # Intent detection review
/trace workflow:flows/feature.md # Dependency verification
/trace document:CLAUDE.md # Consistency check
# Auto-detect domain (default behavior)
/trace src/handoff.py # Detects: code
/trace SKILL.md # Detects: skill
/trace flows/feature.md # Detects: workflow
SKILL.md - Skill definition (this file)__main__.py - Entry point with CLI argument parsingscripts/scripts/core/tracer.py - Core TRACE methodologyscripts/core/state_table.py - State table creationadapters/code_tracer.py - Code TRACE adapter (implemented)adapters/skill_tracer.py - Skill TRACE adapter (extension point)adapters/workflow_tracer.py - Workflow TRACE adapter (extension point)adapters/document_tracer.py - Document TRACE adapter (extension point)templates/TRACE_METHODOLOGY.md - Domain-agnostic TRACE guidetemplates/code/TRACE_TEMPLATES.md - Code TRACE templates (5 templates)templates/code/TRACE_CHECKLIST.md - Code TRACE checklist (100+ checks)templates/code/TRACE_CASE_STUDIES.md - Real-world bug examples| File | Contents |
|---|---|
references/visualization-features.md | Mermaid flowcharts, call graphs, program slicing, templates |
references/debugrca-integration.md | 7 debugRCA integration features with code examples |
references/domain-adapters.md | Domain-specific checklists and trace table formats |
references/workflow-and-report-format.md | Workflow steps, state tables, TRACE report template |
references/integrations-and-usage.md | /code integration, CLI examples, version history |
GATE 1 (STOP after Step 3: Load Target File): Before moving to Step 4 (Define Scenarios), verify:
If gate fails: re-read the file completely before creating trace tables.
GATE 2 (STOP after Step 4: Define Scenarios): Before moving to Step 5 (Create State Table), verify:
If gate fails: define all three scenarios before proceeding.
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:
GATE 3 (STOP after Step 6: Trace Each Scenario): Before moving to Step 7 (Document Findings), verify:
If gate fails: complete trace through all scenarios before documenting.
STOP between generation (Steps 1-3) and validation (Steps 4-6):
TRACE_IMPROVEMENTS_SUMMARY.md (opens in a new tab)TRACE_report_skill_s.md (opens in a new tab)__main__.py (opens in a new tab)adapters/__init__.py (opens in a new tab)adapters/code_tracer.py (opens in a new tab)adapters/skill_tracer.md (opens in a new tab)adapters/skill_tracer.py (opens in a new tab)adapters/workflow_tracer.md (opens in a new tab)references/debugrca-integration.md (opens in a new tab)references/domain-adapters.md (opens in a new tab)references/integrations-and-usage.md (opens in a new tab)references/visualization-features.md (opens in a new tab)references/workflow-and-report-format.md (opens in a new tab)scripts/core/__init__.py (opens in a new tab)scripts/core/tracer.py (opens in a new tab)scripts/core/tracer_enhanced.py (opens in a new tab)templates/TRACE_METHODOLOGY.md (opens in a new tab)templates/TRACE_VISUALIZATION_TEMPLATES.md (opens in a new tab)templates/code/TRACE_CASE_STUDIES.md (opens in a new tab)templates/code/TRACE_CHECKLIST.md (opens in a new tab)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
/behaveStructured behavioral analysis for LLM performance debugging — hypothesis testing for session patterns (loops, context degradation, decision inefficiency, cognitive overload, attention drift)/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.