Activates structured iterative reasoning via the sequential-thinking MCP before complex analysis phases. Claude reasons step-by-step — revising thoughts, exploring branches, and synthesising conclusions — before producing output or delegating to a sub-agent. Automatically skipped for light/small/low complexity tasks.
From fwnpx claudepluginhub gmedali/flywheel-plugin --plugin fwThis skill uses the workspace's default tool permissions.
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.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
Give Claude structured, iterative reasoning during analysis-heavy phases. Rather than jumping to conclusions, Claude builds a chain of connected thoughts — revising earlier ones when new evidence emerges, branching when multiple paths exist — before writing output or spawning a sub-agent.
This improves the quality of:
/fw:debug/fw:design and /fw:implement/fw:hardenfw-architect personaPrerequisite: The sequential-thinking MCP server must be installed. Run /fw:setup for detection and installation guidance.
This skill activates automatically based on the complexity tier already detected in Step 0 of each command. No new detection logic is needed.
| Tier | Signal words / conditions | Activation |
|---|---|---|
light / small / low | config, style, typo, rename, simple addition | ❌ Skip — fast path, no overhead |
standard / medium | new feature, integration, refactor, runtime error | ✅ Activate |
deep / large / critical | architecture, migration, crash, security, system redesign | ✅ Always activate |
For /fw:harden (which uses scope rather than severity): skip for file scope; activate for module, project, and branch scope.
Invoke the tool in a reasoning loop:
mcp__sequential-thinking__sequentialthinking({
thought: "<current reasoning step — one focused idea>",
thoughtNumber: <N, starting at 1>,
totalThoughts: <estimated count, adjustable as reasoning progresses>,
nextThoughtNeeded: <true to continue, false when done>
})
Optional — revise an earlier thought when new evidence invalidates a prior conclusion:
isRevision: true,
revisesThought: <thought number being corrected>
Optional — branch when two paths warrant parallel exploration:
branchFromThought: <thought number to branch from>,
branchId: "<descriptive branch name>"
thoughtNumber: 1 — frame the core question or constrainttotalThoughts freely as understanding growsnextThoughtNeeded: false on the final thought| Context | Thought 1 starter |
|---|---|
/fw:debug Phase 2 | "What is the core failure, and at which layer of the call chain does it occur?" |
/fw:design Phase 3 | "What are the fundamental design constraints and trade-offs for this goal?" |
/fw:implement Phase 2 | "What are the key integration risks and dependencies for this feature?" |
/fw:harden Phase 1 | "What are the primary attack surfaces and trust boundaries in this scope?" |
fw-architect ADR | "What existing patterns in this codebase should govern this architecture decision?" |
Sequential thinking runs before spawning sub-agents or writing structured output. It is a Claude-native MCP call — it cannot be used inside dispatch.sh sub-agents.
Command Phase (standard/medium/deep/large/critical)
│
├─ [Sequential thinking skill]
│ ├─ thought 1: frame the problem
│ ├─ thought 2–N: explore, revise, branch as needed
│ └─ nextThoughtNeeded: false → reasoning complete
│
├─ Sequential Analysis Summary (2-4 sentences)
│ └─ Injected into sub-agent context as SEQUENTIAL ANALYSIS:
│
└─ Spawn sub-agent / write output
└─ Richer output built on structured prior reasoning
After the loop ends, synthesise the reasoning into a Sequential Analysis Summary — 2-4 sentences capturing:
Include this summary in the sub-agent task prompt under the heading SEQUENTIAL ANALYSIS:.
Every failure is non-blocking. This skill is purely additive.
| Failure | Behaviour |
|---|---|
mcp__sequential-thinking__sequentialthinking unavailable | Skip the entire block silently; proceed to sub-agent or output |
| Tool returns error mid-loop | Stop loop; synthesise from thoughts completed so far |
| Hard cap of 8 thoughts reached | Treat as complete; synthesise immediately |
| Reasoning becomes circular | Detect repeated content → set nextThoughtNeeded: false |
When skipped entirely, no note is added to output. The phase proceeds as if the skill does not exist.
The sequential-thinking MCP server must be installed. Run /fw:setup — it will detect availability and print the install command if missing:
claude mcp add sequential-thinking npx @modelcontextprotocol/server-sequential-thinking