From flowstate
Use when encountering any bug, test failure, or unexpected behavior. Enforces a disciplined reproduce-isolate-diagnose-fix-verify cycle. No guessing allowed.
npx claudepluginhub c-reichert/flowstate --plugin flowstateThis skill uses the workspace's default tool permissions.
Random fixes waste time and create new bugs. Guessing is not debugging.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Guides TDD-style skill creation: pressure scenarios as tests, baseline agent failures, write docs to enforce compliance, verify with RED-GREEN-REFACTOR.
Random fixes waste time and create new bugs. Guessing is not debugging.
Core principle: Find the root cause before attempting any fix. Symptom fixes are failure.
Use for ANY unexpected behavior: test failures, runtime bugs, performance problems, build failures, integration issues.
Especially when:
Confirm the bug exists. Get exact steps.
If not reproducible: Gather more data. Add logging. Do NOT guess.
Narrow the scope. Find the smallest reproduction.
git diff, new dependencies, config or environment differencesForm hypotheses and test them. One at a time.
Hypothesis confirmed? Proceed to Step 4. Hypothesis rejected? Form a NEW hypothesis. Do not pile fixes.
Write a failing test first. Then fix the root cause.
tdd skill; test must fail for the RIGHT reason (the bug, not a typo)If anything fails, return to Step 3 with new information.
If the bug was non-trivial (multiple attempts, non-obvious, or could recur):
compound skill to capture the learning| Attempt | Approach |
|---|---|
| Strike 1 | Diagnose root cause, implement fix |
| Strike 2 | Alternative diagnosis, different approach |
| Strike 3 | Broader rethink -- question assumptions, architecture, environment |
| After 3 | STOP. Escalate to user. |
After 3 failed fixes, do NOT attempt fix #4. Instead:
Escalate earlier if: each fix reveals a new problem in a different place, fixes require massive refactoring, or each fix creates new symptoms. These indicate an architectural problem, not a bug.
| Anti-Pattern | Why It Fails |
|---|---|
| Guess-and-check | Creates new bugs, masks root cause |
| Fix symptom instead of root cause | Bug returns in different form |
| Skip reproduction | You do not know what you are fixing |
| Multiple changes at once | Cannot isolate what worked |
| "Quick fix now, investigate later" | Later never comes |
| Proposing fixes before tracing data flow | Guessing with extra steps |
If you catch yourself thinking:
All of these mean: STOP. You are guessing. Return to Step 1.
| Step | Key Activity | Done When |
|---|---|---|
| 1. REPRODUCE | Exact steps, expected vs actual | Bug confirmed and repeatable |
| 2. ISOLATE | Binary search, minimal repro | Failure narrowed to specific code |
| 3. DIAGNOSE | Hypothesize, test one at a time | Root cause identified with evidence |
| 4. FIX | Failing test first, then minimal fix | Test passes, root cause addressed |
| 5. VERIFY | Full suite, regressions | Everything green, symptom gone |
| 6. COMPOUND | Capture learning if non-trivial | Knowledge documented for reuse |