Project analysis hypothesis driven

From event4u-app/agent-config · View interactive version

Project analysis hypothesis driven is an AI agent skill from the GitHub repository event4u-app/agent-config. Use when a bug has multiple plausible causes across layers — competing hypotheses, validation loops, evidence-based conclusions — even when the user just says 'why is this happening?'.

How to use this skill

Skill file

project-analysis-hypothesis-driven

When to use

Use this skill when:

Do NOT use when:

Core principles

Procedure

1. Define the observed problem

State clearly: what happens, where it happens, when it happens, what was expected instead.

Use concrete evidence: errors, stack traces, behavior differences, failing tests, logs.

2. Build the hypothesis tree

Generate multiple competing explanations.

Typical categories:

Do not stop at one explanation.

3. Prioritize hypotheses

Rank by: likelihood, impact, testability.

Start with the most testable high-value explanation.

4. Validate each hypothesis

For each hypothesis:

Mark: ✅ confirmed, ❌ rejected, ❓ uncertain.

5. Check system interactions

Look for cross-system causes:

| System A | ↔ | System B | What can go wrong |

|---|---|---|---|

| Framework | ↔ | Package | Version mismatch, wrong lifecycle hook, config conflict |

| Sync code | ↔ | Async code | Lost context, stale data, race conditions |

| Config | ↔ | Runtime | Cached config doesn't match env |

| Cache | ↔ | Database | Stale reads, inconsistent state after write |

| Auth | ↔ | Middleware | Order-dependent behavior, missing guards |

| Events | ↔ | Jobs | Events fire during seeding, serialization issues |

| Transaction | ↔ | External calls | Side effects can't be rolled back |

6. Perform reality check

Ask:

If anything major remains unexplained: continue analysis, do not present a final conclusion yet.

7. Validate conclusion quality

Check:

Output format

  1. Problem statement
  2. Hypothesis tree
  3. Confirmed findings
  4. Rejected hypotheses
  5. Remaining uncertainties
  6. Root-cause conclusion
  7. Confidence level
  8. Recommended next steps

Gotcha

Do NOT

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.