investigate

Automates root cause investigation of software bugs and system errors before fixes are applied.

3|14|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/cegit27/moodle-proctor --skill investigate-cegit27
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: investigate
Source: https://github.com/cegit27/moodle-proctor/tree/main/.claude/skills/gstack/investigate
Command: npx skills add https://github.com/cegit27/moodle-proctor --skill investigate-cegit27

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Developers waste hours fixing symptoms of bugs instead of root causes, leading to recurring issues and whack-a-mole debugging that erodes code quality and user trust.

Core Features & Use Cases

  • Four-Phase Systematic Workflow: Investigate, analyze, hypothesize, and implement in strict sequence, enforced by the Iron Law that no fixes happen without root cause confirmation.
  • Proactive Invocation: Automatically triggers when users report errors, 500s, stack traces, unexpected behavior, or "it was working yesterday" scenarios.
  • Context Recovery: Restores recent decisions, checkpoints, and learnings after context window compaction so debugging sessions never lose progress.
  • Scope Safety: Pre-tool hooks validate debug boundaries via freeze checks before any edits or writes are allowed.

Quick Start

Use the investigate skill to find the root cause of the 500 error that occurs when teachers upload exam answer sheets.

Frequently Asked Questions about investigate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find the root cause of a 500 error instead of just fixing the symptom?

To find the root cause of a 500 error, use a systematic four-phase workflow that enforces context recovery and root cause confirmation before any fixes are applied. This prevents recurring issues by validating scope boundaries and logging telemetry.

What is the best way to debug production incidents and unexpected regressions systematically?

The best way to debug production incidents is to follow a strict sequence of investigating, analyzing, hypothesizing, and implementing. This systematic approach restores recent decisions and cross-session learnings to prevent whack-a-mole debugging.

How do I troubleshoot stack traces without losing progress after context window compaction?

To troubleshoot stack traces without losing progress, apply context recovery to restore recent checkpoints and learnings after context window compaction. This ensures your debugging session maintains all accumulated investigation data.

Can I apply fixes immediately when debugging unexpected behavior in web applications?

You cannot apply fixes immediately when debugging unexpected behavior due to the Iron Law, which enforces that no fixes happen without root cause confirmation. Pre-tool hooks validate debug boundaries via freeze checks before any edits are allowed.

Does this systematic debugging approach work for production incidents in web services?

This systematic debugging approach works directly for production incidents in web applications and services. It applies to 500 errors, stack traces, unexpected behavior, and regressions, enforcing scope boundary validation to prevent recurring issues.

Why do I need scope boundary validation before editing code during a bug investigation?

You need scope boundary validation before editing code to prevent uncontrolled changes during bug investigation. Pre-tool hooks enforce freeze checks before any edits or writes are allowed, ensuring fixes target confirmed root causes safely.