agentleFS
mphaxisemphaxise/gstack-port-for-codex/skills/investigate/SKILL.md

investigate

Skill4 starsChanged 4 months agoMITView on GitHub

Root-cause-first debugging for Codex. Use when the user reports a bug, unexpected behavior, or an error and wants investigation before speculative fixes.

74 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 64 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when the user is debugging and the right move is to understand the failure before making code changes.

    line 8
  2. Distinctive:

    No blind fixes without a root-cause theory.

    line 14
  3. Distinctive:

    Only then implement the smallest fix that addresses that cause.

    line 26
  4. Distinctive:

    Do not stack multiple speculative fixes into one attempt.

    line 31
  5. Distinctive:

    Do not edit code before you can name a concrete root-cause theory, unless the user explicitly asks for a quick experiment.

    line 32
  6. Distinctive:

    If the bug cannot be reproduced, report the missing evidence and the next best diagnostic step.

    line 33
  7. Distinctive:

    Prefer timeline and data-flow reasoning over guesswork.

    line 34

“Common” is measured: kept by at least 6 in 10 of the 64 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Investigate

Use this skill when the user is debugging and the right move is to understand the failure before making code changes.

This port is adapted from garrytan/gstack at commit 4d2c8d94d00cc4f4f3d4c26316a4f939ceedc045.

Core Rule

No blind fixes without a root-cause theory.

Workflow

  1. Reproduce or inspect the failure surface:
    • error text
    • logs
    • changed files
    • runtime conditions
  2. Gather evidence before editing code.
  3. State the most likely hypotheses and what would confirm or falsify them.
  4. Identify the most plausible root cause.
  5. Only then implement the smallest fix that addresses that cause.
  6. Re-run the relevant verification and confirm the symptom is gone for the right reason.

Guardrails

  • Do not stack multiple speculative fixes into one attempt.
  • Do not edit code before you can name a concrete root-cause theory, unless the user explicitly asks for a quick experiment.
  • If the bug cannot be reproduced, report the missing evidence and the next best diagnostic step.
  • Prefer timeline and data-flow reasoning over guesswork.

Outputs

Always include:

  • observed symptom
  • evidence gathered
  • hypotheses considered
  • most likely root cause
  • fix plan or fix applied
  • verification result
  • remaining uncertainty, if any

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.