skills/deepthink/SKILL.md
Use when a problem resists quick answers, debugging stalls, analysis feels shallow, confidence is low, hypotheses are competing, reasoning loops repeat, or a hard problem needs evidence tracking.
npx skillsauth add cofin/flow deepthinkInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Structured extended reasoning with hypothesis tracking and confidence progression. Prevents circular thinking by explicitly tracking what's been explored, what evidence exists, and what confidence level has been reached.
References perspectives for multi-angle evaluation when confidence is stuck and a fresh frame is needed.
State what you're trying to understand or decide, specifically. Vague framing produces vague investigation.
Your best guess based on available information. One sentence. Confidence: exploring.
Don't skip this step — even a weak hypothesis focuses investigation better than no hypothesis.
Read code, check docs, run tests, trace execution. Record what you find at each step. Every piece of evidence should be evaluated against the current hypothesis.
Note: Sequential-thinking or similar extended reasoning tools can complement complex sub-steps within this workflow — particularly during evidence gathering (step 3) or when evaluating a hypothesis with many interdependencies. Use them to decompose a stuck sub-step without abandoning the overall hypothesis tracking structure.
Does the evidence support, contradict, or require revision?
Based on evidence quality and coverage, update the confidence level:
| Level | Meaning | Action |
| ----- | ------- | ------ |
| exploring | Just started, no hypothesis yet | Gather initial evidence, form hypothesis |
| low | Have a hypothesis but weak evidence | Seek confirming/disconfirming evidence |
| medium | Evidence supports hypothesis but gaps remain | Fill specific gaps, check edge cases |
| high | Strong evidence, minor uncertainties | Verify the uncertainties aren't critical |
| certain | Conclusive evidence, ready to act | Synthesize findings and present |
Escalation rule: If confidence has not increased after 3 investigation steps, stop and reassess. Either the hypothesis is too broad, you're looking in the wrong place, or you need a different tool (flow:tracer, flow:perspectives).
high or certain, synthesize findings and presentInvestigation is complete when: confidence is high/certain, all evidence-against items are explained, the hypothesis is a specific actionable conclusion, and unexplored areas are evaluated or ruled out as non-critical.
exploring after 5+ checks without narrowing. Formulate a hypothesis and commit to testing it.Before presenting the conclusion, verify:
Debugging: "Tests pass locally but fail in CI."
exploring)low)DATABASE_URL uses different host. Test creates real DB connection. → confidence: medium.medium)high.development
Use when tracing execution paths, mapping dependencies, understanding unfamiliar code, following data flow, investigating end-to-end behavior, debugging call chains, or deciding which files to read next.
development
Use when reviewing authentication, authorization, user input, secrets, API keys, database queries, file uploads, session management, external API calls, OWASP risks, or data handling attack surface.
testing
Use when analyzing tradeoffs, comparing approaches, weighing options, assessing risks, stress-testing conclusions, identifying blind spots, or applying multiple viewpoints to a decision.
development
Use when reviewing hot paths, slow code, database queries, N+1 risks, memory usage, loops, I/O, caching strategy, concurrency, latency-sensitive paths, or resource efficiency.