mk-sequential-thinking
Structured step-by-step reasoning before acting, to avoid guessing. For complex debugging, multi-step analysis, hypothesis checks. NOT for being stuck on approach (mk:problem-solving).
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 16
- Forks
- 3
01 前言 Front Matter
- name
- mk-sequential-thinking
- description
- Structured step-by-step reasoning before acting, to avoid guessing. For complex debugging, multi-step analysis, hypothesis checks. NOT for being stuck on approach (mk:problem-solving).
02 资源文件 14
- 参考文档references/advanced-strategies.md1.5 KB
- 参考文档references/advanced-techniques.md2.3 KB
- 参考文档references/core-patterns.md1.6 KB
- 参考文档references/examples-api.md2.2 KB
- 参考文档references/examples-architecture.md2.6 KB
- 参考文档references/examples-debug.md2.4 KB
- 参考文档references/five-whys-plus.md4.7 KB
- 参考文档references/gotchas.md921 B
- 参考文档references/hypothesis-testing.md2.5 KB
- 参考文档references/kepner-tregoe.md7.4 KB
- 参考文档references/scientific-method.md3.7 KB
- 脚本scripts/format-thought.js4.6 KB
- 脚本scripts/process-thought.js6.1 KB
- 脚本scripts/test-scripts.sh3.2 KB
03 SKILL.md 正文
Sequential Thinking
Structured step-by-step reasoning with hypothesis generation, elimination, and revision capability.
When to Use
- Complex problem requiring multi-step reasoning
- Debugging where root cause isn't obvious
- When mk:fix invokes diagnosis (Phase 3)
- Architecture decisions with multiple trade-offs
- Any situation where "I think it's X" needs evidence before acting
Do NOT use for: trivial fixes (typo, lint), single-file changes with obvious cause.
Process
- State the problem — what is observed vs expected
- Generate hypotheses — from evidence, NOT guessing. Each hypothesis needs: what evidence would confirm it, what would refute it
- Test hypotheses — use Grep/Read/Bash to find evidence for/against each
- Eliminate — mark each CONFIRMED, REFUTED, or INCONCLUSIVE with evidence
- Conclude — state root cause with confidence level + evidence chain
- Scope the fix — what must change to address root cause (not symptoms)
Adjust dynamically: expand if more complex than expected, contract if simpler.
Output Format
Use references/hypothesis-testing.md template. Key sections:
## Sequential Analysis: [problem]
### Hypotheses
| # | Hypothesis | Evidence for | Evidence against | Status |
| --- | ---------- | ------------ | ---------------- | ------ |
### Root Cause
Confirmed: [root cause]
Confidence: [high/medium/low]
Evidence: [what confirms this]
### Fix Scope
[what must change — files, functions, logic]
Revision & Branching
When new evidence invalidates a previous conclusion:
- Mark revision explicitly:
[REVISION of Hypothesis N]: [correction + why] - When 2+ approaches viable: branch, evaluate each, converge with decision
Load references/core-patterns.md for revision/branching patterns.
For advanced techniques (spiral refinement, multi-branch convergence): references/advanced-techniques.md
For uncertainty + revision cascades: references/advanced-strategies.md
For concrete examples: references/examples-debug.md, examples-api.md, examples-architecture.md
Diagnostic Frameworks
Load when a specific methodology fits the investigation:
references/five-whys-plus.md— enhanced 5-Whys with bias guards + stopping criteria. Use for post-mortems, recurring problems, human-error investigations.references/scientific-method.md— hypothesis → falsifiable prediction → experiment → revise. Use for A/B tests, performance investigations, production incidents.references/kepner-tregoe.md— SA/PA/DA/PPA + IS/IS-NOT matrix. Use for multi-system bugs, contested root causes, high-stakes decisions.
Scripts
Track and format thoughts deterministically:
scripts/process-thought.js— validate, track history, branches, revisions. Max 20 thoughts.node scripts/process-thought.js --thought "..." --number N --total M --next truenode scripts/process-thought.js --summary(context-efficient handoff to mk:fix)scripts/format-thought.js— format as box/simple/markdown/jsonnode scripts/format-thought.js --thought "..." --number N --total M --format json
Gotchas
- Premature conclusion: confirming first hypothesis without testing alternatives → test at least 2 hypotheses before concluding
- Evidence-free hypotheses: "I think it's X" without evidence → every hypothesis needs at least one piece of evidence
- Revision avoidance: refusing to revise when new evidence contradicts → revise explicitly, don't force-fit
Full list: references/gotchas.md
Workflow Integration
Called by mk:fix during diagnosis (Step 2). Receives input from mk:investigate or direct observation. Output feeds into fix implementation.
mk:investigate → symptoms + traces → mk:sequential-thinking → root cause → mk:fix
04 同仓库更多 Skills
mk:fixture-valid
A valid fixture used to verify the skill structure validator.
invalid
暂无简介
mk:sample-skill
Sample skill for fixture purposes — small enough to land below noise floor.
mk-worktree
Manages git worktrees for parallel agent isolation: creates parallel/{name}-{timestamp} branches, merges with conflict detection. NOT for user feature branches (use git worktree directly).
mk-workflow-orchestrator
Auto-invoked 7-phase workflow for complex-feature intent; fasttrack mode for pre-approved specs. NOT for explicit single tasks (mk:cook), green-field builds (mk:autobuild), or simple fixes (mk:fix).
mk-web-to-markdown
Fetch a URL and return clean markdown, for arbitrary external pages (blog, RFC, GitHub issue, vendor doc) not covered by mk:docs-finder. Static-only by default; opt-in JS rendering available.