debug-flow
Skill0 starsChanged 22 days agoMITView on GitHub
Systematic debugging workflow. Reproduce the issue, isolate root cause, write a failing test, fix, verify. Use when diagnosing bugs or unexpected behavior.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- OwnOptic/power-automate-mcptheir own version, first seen Nov 4, 2026
- microsoft/power-platform-skillstheir own version, first seen Oct 13, 2026
- ravid7000/skillstheir own version, first seen Aug 1, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- microsoft/power-platform-skills★ 1.1ksame name
- ravid7000/skills★ 1same name
- OwnOptic/power-automate-mcp★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository32 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- api-designSkill
- arch-constraint-guardSkill
- backend-patternsSkill
- clean-architectureSkill
- codebase-mappingSkill
- context-budgetSkill
- cqrsSkill
- ddd-architectureSkill
- dependency-auditSkill
- django-patternsSkill
- django-tddSkill
- event-driven-architectureSkill
- fd-codenavSkill
- fd-mapSkill
- frontend-patternSkill
- git-releaseSkill
- git-workflowSkill
- golang-patternsSkill
- hexagonal-architectureSkill
- java-patternsSkill
- layered-architectureSkill
- performance-profilingSkill
- postgres-patternsSkill
- python-patternsSkill
- refactor-guideSkill
- research-firstSkill
- rust-patternsSkill
- saga-architectureSkill
- security-scanSkill
- tdd-workflowSkill
- test-gap-detectorSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
3
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
- Distinctive: line 21
Read stack traces completely — never skip to the middle
- Distinctive: line 23
Check recent changes first — git log --oneline -20
- Distinctive: line 54
When something worked before but is broken now:
“Common” is measured: kept by at least 6 in 10 of the 3 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.
Files
Debug Flow Skill
Finds root causes through systematic investigation. Does not guess. Does not fix symptoms.
When to Activate
Activate when:
- A bug has been reported
- Code is producing unexpected output
- Tests are failing intermittently
- An error is occurring in production
Core Principles
- Read stack traces completely — never skip to the middle
- Fix root causes, not symptoms
- Check recent changes first —
git log --oneline -20 - Reproduce before fixing — if you can't reproduce it, you don't understand it
Workflow
- Reproduce — confirm you can make the bug happen reliably
- Read the full stack trace — start from the top (error), trace to the origin
- Check recent changes —
git log --oneline -20to find what changed - Trace execution backward — what called the failing function? What state did it receive?
- Identify root cause — the earliest point where invariants are violated
- Write a failing test — one test that fails with the bug present
- Fix — change the minimum code to make the test pass
- Verify — run the full test suite
Common Root Causes
| Symptom | Likely Cause | Investigation |
Cannot read property of undefined | Missing null check upstream | Trace where undefined enters |
| Wrong calculation result | Type coercion ("5" + 3 = "53") | Check input types |
| Race condition / intermittent | Missing await | Find async functions called without await |
| Auth bypass | Missing middleware | Check route definition vs working routes |
| Infinite loop | Wrong termination condition | Log loop counter, check exit logic |
| Memory leak | Event listener not cleaned up | Check useEffect returns, removeListener calls |
| Promise rejection unhandled | Missing .catch() or try/catch | Check all async call sites |
| Type error at runtime | as any hiding real type | Find where the cast was added |
| Stale data in UI | Cache not invalidated | Check cache keys and invalidation logic |
| Import error | Circular dependency or missing export | npx madge --circular src/ |
Bisect for Regressions
When something worked before but is broken now:
git bisect start
git bisect bad # current is broken
git bisect good [last-good-sha] # last known working commit
npm test # run after each checkout
git bisect good # or: git bisect bad
git bisect reset # when doneOutput Format
## Debug Report
**Root Cause**: [one sentence]
**Evidence**: `path/to/file.ts:42` — [what the code does wrong]
**Call Path**: request → controller → service → ❌ null dereference at line 42
**Fix**: [specific change to make]
**Test**: [name of the failing test that reproduces the bug]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
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.

