Skip to content
troubleshooting-regression logo

Troubleshooting Regression

troubleshooting-regression

Regression troubleshooting workflow for hook/router/memory/search failures with enforced evidence and fix validation

oimiragieo/agent-studio0installs43stars

SKILL.md

Full skill instructions

Troubleshooting Regression

Use this skill when the framework appears stale, stuck, or regressed and you need deterministic diagnosis plus fix verification.

When to Use

  • Claude debug sessions stall after spawning agents.
  • Hooks block expected actions unexpectedly.
  • Memory/​search/​token-saver enforcement appears inconsistent.
  • A regression needs a repeatable reproduction and validation run.

Iron Law

Do not declare a regression fixed without:

  1. reproducible trigger prompt,
  2. trace evidence from pnpm trace:query,
  3. hook/​tool evidence from debug logs,
  4. targeted test pass for touched scope.

Workflow

  1. Identify session and log source.
  2. Run trace query first (pnpm trace:query --trace-id <traceId> --compact --since <ISO-8601> --limit 200).
  3. Extract high-signal errors (excluding known MCP auth/​startup noise).
  4. Map each error to owning hook/​module.
  5. Patch minimal code path and add/​update regression test.
  6. Run targeted checks (tests + lint/​format on changed files).
  7. Re-run debug prompt and verify error class no longer reproduces.
  8. Record learnings/​issues in memory.

Evidence Model

  • Source of truth: C:\\Users\\<user>\\.claude\\debug\\*.txt
  • Trace source of truth: pnpm trace:query output for the same incident window
  • Filter: ignore external MCP transport/​auth noise; keep framework/​runtime errors
  • Error classes:
    • routing/​task lifecycle
    • memory/​search/​token-saver guardrails
    • hook contract/​schema violations
    • workflow phase/​idempotency failures

Command Surface

Primary wrapper:

node .claude/​skills/​troubleshooting-regression/​scripts/​main.cjs --prompt "search the codebase for any issues or bugs"
pnpm trace:query --trace-id <traceId> --compact --since <ISO-8601> --limit 200

Optional direct log analysis:

node .claude/​skills/​troubleshooting-regression/​scripts/​main.cjs --log-path "C:\\Users\\<user>\\.claude\\debug\\<session>.txt"

Output Contract

  • ok: boolean
  • logPath: analyzed log path
  • findings[]: normalized findings with severity and owner file hints
  • nextActions[]: concrete fix/​validation actions

Related Artifacts

  • Workflow: .claude/​workflows/​troubleshooting-regression-skill-workflow.md
  • Tool: .claude/​tools/​troubleshooting-regression/​troubleshooting-regression.cjs
  • Command: .claude/​commands/​troubleshooting-regression.md

Examples

# Analyze latest log
node .claude/​skills/​troubleshooting-regression/​scripts/​main.cjs --mode quick

# Analyze specific log and fail when critical findings exist
node .claude/​skills/​troubleshooting-regression/​scripts/​main.cjs --log-path "<path>" --strict

Iron Laws

  1. ALWAYS collect evidence (logs, trace IDs, error messages) before making any configuration changes
  2. NEVER modify hook or routing configuration without first reproducing the failure deterministically
  3. ALWAYS validate the fix by running the full regression test suite after each change
  4. NEVER mark a regression resolved until the exact failure scenario passes end-to-end
  5. ALWAYS document the root cause, fix, and validation evidence in issues.md for future reference

Anti-Patterns

Anti-PatternWhy It FailsCorrect Approach
Making changes without reproducing failureCan't verify the change fixed the right thingReproduce deterministically first, then fix
Fixing symptoms without root cause analysisProblem recurs under different conditionsUse 5 Whys to trace to the root cause
Skipping regression suite after fixFix may break other functionalityRun full test suite after every change
Undocumented fixesSame regression returns in future sessionsRecord root cause, fix, and validation in issues.md
Resolving without end-to-end validationIntegration issues are missedValidate the exact failure path end-to-end

Memory Protocol

Before starting:

cat .claude/​context/​memory/​learnings.md

After completing:

  • Regression pattern -> .claude/​context/​memory/​learnings.md
  • Open defect or risk -> .claude/​context/​memory/​issues.md
  • New enforcement decision -> .claude/​context/​memory/​decisions.md

ASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.

More skills from oimiragieo

cloud-devops-expert logo
oimiragieo/agent-studio

cloud-devops-expert

Cloud and DevOps expert including AWS, GCP, Azure, and Terraform

43 0
View
xlsx logo
oimiragieo/agent-studio

xlsx

Spreadsheet toolkit (.xlsx/.csv). Create/edit with formulas/formatting, analyze data, visualization, recalculate formulas, for spreadsheet processing and analysis.

43 0
View
project-analyzer logo
oimiragieo/agent-studio

project-analyzer

Automated brownfield codebase analysis with weighted keyword scoring, three-stream analysis, and design pattern recognition. Detects project type, frameworks, dependencies, architecture patterns, and generates comprehensive project profile.

43 0
View
readme logo
oimiragieo/agent-studio

readme

Use when creating, updating, or generating README and documentation files for projects and libraries

43 0
View
scientific-writing logo
oimiragieo/agent-studio

scientific-writing

Core skill for the deep research and writing tool. Write scientific manuscripts in full paragraphs (never bullet points). Use two-stage process with (1) section outlines with key points using research-lookup then (2) convert to flowing prose. IMRAD structure, citations (APA/AMA/Vancouver), figure...

43 0
View
android-expert logo
oimiragieo/agent-studio

android-expert

Comprehensive Android development expert covering Jetpack Compose, Kotlin coroutines/Flow, Architecture Components, Hilt DI, Navigation, testing, performance, Material Design 3, and modern Android patterns (MVI, Clean Architecture).

43 0
View
biorxiv-database logo
oimiragieo/agent-studio

biorxiv-database

Efficient database search tool for bioRxiv preprint server. Use this skill when searching for life sciences preprints by keywords, authors, date ranges, or categories, retrieving paper metadata, downloading PDFs, or conducting literature reviews.

43 0
View
omega-gemini-cli logo
oimiragieo/agent-studio

omega-gemini-cli

Use when the user wants to use Google Gemini for analysis, large files or codebases, sandbox execution, or brainstorming. Uses headless Gemini CLI scripts (no MCP). Triggers on "use Gemini", "analyze with Gemini", "large file", "sandbox", "brainstorm with Gemini".

43 0
View
gtars logo
oimiragieo/agent-studio

gtars

High-performance toolkit for genomic interval analysis in Rust with Python bindings. Use when working with genomic regions, BED files, coverage tracks, overlap detection, tokenization for ML models, or fragment analysis in computational genomics and machine learning applications.

43 0
View
service-class-conventions logo
oimiragieo/agent-studio

service-class-conventions

Defines the structure and implementation of service classes, enforcing the use of interfaces, ServiceImpl classes, DTOs for data transfer, and transactional management.

43 0
View
diffdock logo
oimiragieo/agent-studio

diffdock

Diffusion-based molecular docking. Predict protein-ligand binding poses from PDB/SMILES, confidence scores, virtual screening, for structure-based drug design. Not for affinity prediction.

43 0
View
skill-discovery logo
oimiragieo/agent-studio

skill-discovery

How agents discover and use skills. Use to understand skill invocation protocol.

43 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View