ima-claude 2.18.0 → 2.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/README.md +55 -9
  2. package/dist/cli.js +5 -1
  3. package/package.json +1 -1
  4. package/plugins/ima-claude/.claude-plugin/plugin.json +2 -2
  5. package/plugins/ima-claude/agents/explorer.md +29 -15
  6. package/plugins/ima-claude/agents/implementer.md +58 -13
  7. package/plugins/ima-claude/agents/memory.md +19 -19
  8. package/plugins/ima-claude/agents/reviewer.md +56 -34
  9. package/plugins/ima-claude/agents/tester.md +59 -16
  10. package/plugins/ima-claude/agents/wp-developer.md +66 -21
  11. package/plugins/ima-claude/hooks/bootstrap.sh +42 -44
  12. package/plugins/ima-claude/hooks/prompt_coach_digest.md +14 -17
  13. package/plugins/ima-claude/hooks/prompt_coach_system.md +10 -12
  14. package/plugins/ima-claude/personalities/README.md +17 -6
  15. package/plugins/ima-claude/personalities/enable-efficient.md +61 -0
  16. package/plugins/ima-claude/personalities/enable-terse.md +71 -0
  17. package/plugins/ima-claude/skills/agentic-workflows/SKILL.md +97 -0
  18. package/plugins/ima-claude/skills/agentic-workflows/references/phases/deliver.md +181 -0
  19. package/plugins/ima-claude/skills/agentic-workflows/references/phases/draft.md +99 -0
  20. package/plugins/ima-claude/skills/agentic-workflows/references/phases/gather.md +130 -0
  21. package/plugins/ima-claude/skills/agentic-workflows/references/phases/outline.md +106 -0
  22. package/plugins/ima-claude/skills/agentic-workflows/references/phases/review.md +137 -0
  23. package/plugins/ima-claude/skills/agentic-workflows/references/standards/draft-format.md +159 -0
  24. package/plugins/ima-claude/skills/agentic-workflows/references/standards/editorial-standards.md +160 -0
  25. package/plugins/ima-claude/skills/agentic-workflows/references/standards/outline-format.md +110 -0
  26. package/plugins/ima-claude/skills/agentic-workflows/references/templates/avada-construction-guide.md +263 -0
  27. package/plugins/ima-claude/skills/agentic-workflows/references/templates/avada-webinar-example.txt +275 -0
  28. package/plugins/ima-claude/skills/agentic-workflows/references/templates/cta-block-catalog.md +169 -0
  29. package/plugins/ima-claude/skills/agentic-workflows/references/templates/espo-email-preparation.md +241 -0
  30. package/plugins/ima-claude/skills/agentic-workflows/references/templates/webinar-recap-email-espo.html +339 -0
  31. package/plugins/ima-claude/skills/agentic-workflows/references/templates/webinar-reminder-email-espo.html +458 -0
  32. package/plugins/ima-claude/skills/agentic-workflows/references/workflows/editorial/webinar-summary.md +81 -0
  33. package/plugins/ima-claude/skills/architect/SKILL.md +54 -168
  34. package/plugins/ima-claude/skills/compound-bridge/SKILL.md +41 -94
  35. package/plugins/ima-claude/skills/design-to-code/SKILL.md +91 -0
  36. package/plugins/ima-claude/skills/design-to-code/references/guardrails.md +46 -0
  37. package/plugins/ima-claude/skills/design-to-code/references/phase-a-design-to-prompt.md +141 -0
  38. package/plugins/ima-claude/skills/design-to-code/references/phase-b-prompt-to-code.md +155 -0
  39. package/plugins/ima-claude/skills/design-to-code/references/prompt-template.md +95 -0
  40. package/plugins/ima-claude/skills/discourse/SKILL.md +79 -194
  41. package/plugins/ima-claude/skills/discourse-admin/SKILL.md +41 -103
  42. package/plugins/ima-claude/skills/docs-organize/SKILL.md +63 -203
  43. package/plugins/ima-claude/skills/ember-discourse/SKILL.md +90 -200
  44. package/plugins/ima-claude/skills/espocrm/SKILL.md +14 -23
  45. package/plugins/ima-claude/skills/espocrm-api/SKILL.md +79 -192
  46. package/plugins/ima-claude/skills/functional-programmer/SKILL.md +33 -237
  47. package/plugins/ima-claude/skills/gh-cli/SKILL.md +26 -65
  48. package/plugins/ima-claude/skills/ima-bootstrap/SKILL.md +71 -104
  49. package/plugins/ima-claude/skills/ima-bootstrap/references/ima-brand.md +32 -22
  50. package/plugins/ima-claude/skills/ima-brand/SKILL.md +18 -23
  51. package/plugins/ima-claude/skills/ima-copywriting/SKILL.md +68 -179
  52. package/plugins/ima-claude/skills/ima-doc2pdf/SKILL.md +32 -102
  53. package/plugins/ima-claude/skills/ima-editorial-scorecard/SKILL.md +38 -63
  54. package/plugins/ima-claude/skills/ima-editorial-workflow/SKILL.md +69 -114
  55. package/plugins/ima-claude/skills/ima-email-creator/SKILL.md +16 -22
  56. package/plugins/ima-claude/skills/ima-forms-expert/SKILL.md +21 -37
  57. package/plugins/ima-claude/skills/jira-checkpoint/SKILL.md +39 -120
  58. package/plugins/ima-claude/skills/jquery/SKILL.md +107 -233
  59. package/plugins/ima-claude/skills/js-fp/SKILL.md +75 -296
  60. package/plugins/ima-claude/skills/js-fp-api/SKILL.md +52 -162
  61. package/plugins/ima-claude/skills/js-fp-react/SKILL.md +47 -270
  62. package/plugins/ima-claude/skills/js-fp-vue/SKILL.md +55 -209
  63. package/plugins/ima-claude/skills/js-fp-wordpress/SKILL.md +59 -204
  64. package/plugins/ima-claude/skills/livecanvas/SKILL.md +19 -32
  65. package/plugins/ima-claude/skills/mcp-atlassian/SKILL.md +146 -136
  66. package/plugins/ima-claude/skills/mcp-atlassian/references/direct-api-attachments.md +115 -0
  67. package/plugins/ima-claude/skills/mcp-atlassian/references/direct-api-auth.md +103 -0
  68. package/plugins/ima-claude/skills/mcp-atlassian/references/direct-api-bulk.md +149 -0
  69. package/plugins/ima-claude/skills/mcp-atlassian/references/direct-api-misc.md +195 -0
  70. package/plugins/ima-claude/skills/mcp-atlassian/references/direct-api-sprints.md +158 -0
  71. package/plugins/ima-claude/skills/mcp-context7/SKILL.md +32 -64
  72. package/plugins/ima-claude/skills/mcp-gitea/SKILL.md +98 -188
  73. package/plugins/ima-claude/skills/mcp-github/SKILL.md +60 -124
  74. package/plugins/ima-claude/skills/mcp-memory/SKILL.md +1 -177
  75. package/plugins/ima-claude/skills/mcp-qdrant/SKILL.md +58 -115
  76. package/plugins/ima-claude/skills/mcp-sequential/SKILL.md +32 -87
  77. package/plugins/ima-claude/skills/mcp-serena/SKILL.md +54 -80
  78. package/plugins/ima-claude/skills/mcp-tavily/SKILL.md +40 -63
  79. package/plugins/ima-claude/skills/mcp-vestige/SKILL.md +75 -116
  80. package/plugins/ima-claude/skills/php-authnet/SKILL.md +32 -65
  81. package/plugins/ima-claude/skills/php-fp/SKILL.md +50 -129
  82. package/plugins/ima-claude/skills/php-fp-wordpress/SKILL.md +25 -73
  83. package/plugins/ima-claude/skills/phpunit-wp/SKILL.md +103 -463
  84. package/plugins/ima-claude/skills/playwright/SKILL.md +69 -220
  85. package/plugins/ima-claude/skills/prompt-starter/SKILL.md +35 -82
  86. package/plugins/ima-claude/skills/prompt-starter/references/code-review.md +38 -0
  87. package/plugins/ima-claude/skills/py-fp/SKILL.md +78 -384
  88. package/plugins/ima-claude/skills/quasar-fp/SKILL.md +54 -255
  89. package/plugins/ima-claude/skills/quickstart/SKILL.md +7 -11
  90. package/plugins/ima-claude/skills/rails/SKILL.md +63 -184
  91. package/plugins/ima-claude/skills/resume-session/SKILL.md +14 -35
  92. package/plugins/ima-claude/skills/rg/SKILL.md +61 -146
  93. package/plugins/ima-claude/skills/ruby-fp/SKILL.md +66 -163
  94. package/plugins/ima-claude/skills/save-session/SKILL.md +10 -39
  95. package/plugins/ima-claude/skills/scorecard/SKILL.md +24 -38
  96. package/plugins/ima-claude/skills/skill-analyzer/SKILL.md +42 -71
  97. package/plugins/ima-claude/skills/skill-creator/SKILL.md +79 -250
  98. package/plugins/ima-claude/skills/task-master/SKILL.md +11 -31
  99. package/plugins/ima-claude/skills/task-planner/SKILL.md +44 -153
  100. package/plugins/ima-claude/skills/task-runner/SKILL.md +61 -143
  101. package/plugins/ima-claude/skills/unit-testing/SKILL.md +59 -134
  102. package/plugins/ima-claude/skills/wp-ddev/SKILL.md +38 -120
  103. package/plugins/ima-claude/skills/wp-local/SKILL.md +26 -108
@@ -3,58 +3,48 @@ name: mcp-qdrant
3
3
  description: "Qdrant MCP — the permanent library. Unlike Vestige (neural memory that fades), nothing stored here is ever forgotten. Use for all reference material: wiki articles, coding standards, architecture docs, code samples, PRDs, plans, meeting notes, research findings. Triggers on: 'store this', 'what do we know about', 'search knowledge', 'add to library', 'find in docs'. Triggers proactively when reference material is created, discussed, or finalized — feed the library without being asked. Search the library before starting any new work."
4
4
  ---
5
5
 
6
- # Qdrant MCP - The Permanent Library
6
+ # Qdrant MCP Permanent Library
7
7
 
8
- Our permanent reference library. Unlike Vestige (neural memory that fades if unused), nothing stored here is ever forgotten. This is where we feed our entire universe — wiki articles, coding standards, architecture docs, code samples, PRDs, plans, and research findings.
8
+ | System | Role | Lifecycle |
9
+ |--------|------|-----------|
10
+ | **Qdrant** | Permanent library — standards, PRDs, architecture, code samples | Persistent forever |
11
+ | **Vestige** | Neural memory — decisions, preferences, learnings | Fades if unused (FSRS-6) |
12
+ | **Serena Memory** | Project workbench — session state, task progress | Project-scoped |
9
13
 
10
- ## Architecture: How This Fits
11
-
12
- | System | Role | Lifecycle | Example |
13
- |--------|------|-----------|---------|
14
- | **Qdrant** | Permanent library — reference material, standards, PRDs, architecture docs, code samples | Persistent forever | "Our payment system uses Accept.js with ARB" |
15
- | **Vestige** | Neural memory — decisions, preferences, patterns, bugs, learnings | Fades if unused (FSRS-6 decay) | "We chose JWT over sessions because..." |
16
- | **Serena Memory** | Project workbench — session state, task progress | Project-scoped, survives git ops | "Currently on task 3/5" |
17
-
18
- **Will it fade if we stop referencing it?** If no → Qdrant (permanent). If yes → Vestige (neural decay).
14
+ **Decision rule**: Will it fade if unused? No → Qdrant. Yes → Vestige.
19
15
 
20
16
  ## Embedding Stack
21
17
 
22
- Two embedding providers are supported. Ollama is the default; fastembed is a CPU-only alternative for machines where Ollama has performance issues.
23
-
24
18
  | Component | Ollama (default) | fastembed |
25
- |---|---|---|
26
- | MCP server | `qdrant-mcp` (custom, at `~/dev/qdrant-mcp-server`) | same |
19
+ |-----------|-----------------|-----------|
27
20
  | Embedding model | `nomic-embed-text` | `BAAI/bge-small-en-v1.5` |
28
21
  | Vector dimensions | 768 | 384 |
29
22
  | Distance metric | Cosine | Cosine |
30
23
  | Dependency | Ollama running locally | `pip install qdrant-mcp[fastembed]` |
31
24
  | Default collection | `ima-knowledge` | `ima-knowledge` |
32
25
 
33
- **Warning**: Collections can't be shared across providers (different vector dimensions). Switching providers requires a collection rebuild.
26
+ Collections can't be shared across providers (different vector dimensions). Switching providers requires collection rebuild.
34
27
 
35
28
  ## Per-Project Collection
36
29
 
37
- Projects can specify their Qdrant collection via a `.qdrant` file in the project root (YAML format, like `.serena`):
30
+ Add `.qdrant` to project root (YAML):
38
31
 
39
32
  ```yaml
40
- # .qdrant — project-level config
41
33
  collection: my-project-knowledge
42
34
  ```
43
35
 
44
- **At session start**, check for a `.qdrant` file in the working directory. If found, read its `collection` value and pass it as `collection_name` on every `qdrant_store` and `qdrant_find` call for that session.
45
-
46
- If no `.qdrant` file is found, omit `collection_name` — the server defaults to `ima-knowledge` (from the `COLLECTION_NAME` env var).
36
+ At session start, check for `.qdrant`. If found, pass `collection_name` on every `qdrant_store` and `qdrant_find` call. If absent, omit `collection_name` — server defaults to `ima-knowledge`.
47
37
 
48
38
  ## MCP Tools
49
39
 
50
- MCP server name: `qdrant-memory`. Tool prefix: `mcp__qdrant-memory__`.
40
+ Server: `qdrant-memory`. Prefix: `mcp__qdrant-memory__`.
51
41
 
52
42
  | Tool | Purpose | Parameters |
53
43
  |------|---------|------------|
54
44
  | `qdrant_store` | Store text with auto-embedding | `information` (required), `collection_name`, `metadata` |
55
- | `qdrant_find` | Semantic search across stored knowledge | `query` (required), `collection_name`, `limit` |
45
+ | `qdrant_find` | Semantic search | `query` (required), `collection_name`, `limit` |
56
46
 
57
- ## Storing Knowledge
47
+ ## Storing
58
48
 
59
49
  ```
60
50
  mcp__qdrant-memory__qdrant_store
@@ -63,112 +53,81 @@ mcp__qdrant-memory__qdrant_store
63
53
  metadata: {"source": "donation-system-prd", "type": "architecture", "date": "2026-02-21"}
64
54
  ```
65
55
 
66
- To target a specific collection explicitly:
67
-
68
- ```
69
- mcp__qdrant-memory__qdrant_store
70
- collection_name: "other-project-knowledge"
71
- information: "..."
72
- ```
73
-
74
56
  ### What to Store
75
57
 
76
- Anything that should never be forgotten — reference material for our permanent library.
77
-
78
- | Content Type | Metadata `type` |
58
+ | Content Type | `type` metadata |
79
59
  |---|---|
80
60
  | PRDs / Feature Specs | `prd` |
81
- | Architecture decisions & diagrams | `architecture` |
61
+ | Architecture decisions | `architecture` |
82
62
  | Integration guides | `integration` |
83
63
  | Domain knowledge | `domain` |
84
64
  | Requirements / meeting notes | `requirements` |
85
- | Coding standards & conventions | `standard` |
86
- | Useful code samples | `sample` |
65
+ | Coding standards | `standard` |
66
+ | Code samples | `sample` |
87
67
 
88
- ### Chunking Large Documents
68
+ ### Chunking (docs >2000 words)
89
69
 
90
- For documents over ~2000 words, store by section:
70
+ Store by section; include document title in each chunk:
91
71
 
92
72
  ```
93
73
  Store: "Donation System PRD - Overview: [content]"
94
74
  metadata: {"source": "donation-prd", "type": "prd", "section": "overview"}
95
-
96
- Store: "Donation System PRD - Payment Flow: [content]"
97
- metadata: {"source": "donation-prd", "type": "prd", "section": "payment-flow"}
98
75
  ```
99
76
 
100
- Include the document title in each chunk so search results have context.
101
-
102
- ## Searching Knowledge
77
+ ## Searching
103
78
 
104
79
  ```
105
80
  mcp__qdrant-memory__qdrant_find
106
81
  query: "how does guest recurring donation work"
107
82
  ```
108
83
 
109
- **Broad**: `"payment processing"` — discover what's available
110
- **Specific**: `"Authorize.net ARB guest checkout"` — find exact knowledge
111
- **Problem-oriented**: `"SSO authentication between WordPress and Discourse"` — find solutions
84
+ - Broad: `"payment processing"` — discover available knowledge
85
+ - Specific: `"Authorize.net ARB guest checkout"` — targeted lookup
86
+ - Problem-oriented: `"SSO between WordPress and Discourse"` — find solutions
112
87
 
113
88
  ## Proactive Behavior
114
89
 
115
- ### Feed the Library When:
116
-
117
- - A wiki article, PRD, or spec is created or discussed → store it
118
- - Architecture is documented or diagrammed → store it
119
- - A coding standard or convention is established → store it
120
- - A useful code sample is written → store it
121
- - Research is completed on a topic → store the findings
122
- - A Compound Engineering solution is finalized → store it
123
- - Integration is documented store it
124
- - Meeting notes capture decisions or context → store them
125
- - User says "add this to knowledge base" or "store this"
126
-
127
- ### Search the Library When:
128
-
129
- - Starting implementation of any feature check if prior art exists
130
- - Debugging an integration → search for architecture context
131
- - User asks "how does X work" → check library before guessing
132
- - Planning new work → search for related PRDs or standards
133
- - Before making architectural decisions → search for existing conventions
134
-
135
- ## Ingestion: Claude Web → Qdrant
136
-
137
- When user shares content from Claude Web Projects:
138
-
139
- 1. User pastes document content
140
- 2. For short docs (<2000 words): store as single entry
141
- 3. For long docs: chunk by section with shared `source` metadata
142
- 4. Confirm: "Stored [title] in knowledge base ([N] chunks)"
90
+ **Feed library when:**
91
+ - Wiki article, PRD, or spec created/discussed
92
+ - Architecture documented or diagrammed
93
+ - Coding standard established
94
+ - Useful code sample written
95
+ - Research completed
96
+ - Integration documented
97
+ - Meeting notes capture decisions
98
+ - User says "store this" or "add to knowledge base"
99
+
100
+ **Search library when:**
101
+ - Starting any feature implementation
102
+ - Debugging an integration
103
+ - User asks "how does X work"
104
+ - Planning new work or making architectural decisions
143
105
 
144
106
  ## Decision Logic
145
107
 
146
- **Will it fade if we stop referencing it?** If no → store here. Qdrant is the permanent library.
147
-
148
108
  ```
149
109
  IF reference material that should never be forgotten
150
- (wiki, standards, PRDs, architecture docs, code samples, plans):
151
- Qdrant qdrant_store (permanent library)
152
- ELSE IF knowledge that should strengthen with use, fade if unused
153
- (preferences, decisions, patterns, bugs):
154
- → Vestige smart_ingest (neural memory)
110
+ (wiki, standards, PRDs, architecture, code samples):
111
+ → qdrant_store (permanent)
112
+ ELSE IF knowledge that strengthens with use, fades if unused:
113
+ Vestige smart_ingest
155
114
  ELSE IF session state or project progress:
156
- → Serena write_memory (project workbench)
115
+ → Serena write_memory
157
116
 
158
117
  Searching:
159
118
  IF need reference docs, architecture context, prior art:
160
- Qdrant qdrant_find
161
- IF need user preferences or past decisions:
119
+ → qdrant_find
120
+ IF need preferences or past decisions:
162
121
  → Vestige search
163
- IF starting any new work:
164
- → Search BOTH Qdrant and Vestige
122
+ IF starting new work:
123
+ → Search BOTH
165
124
  ```
166
125
 
167
126
  ## Metadata Conventions
168
127
 
169
128
  | Key | Values | Purpose |
170
129
  |-----|--------|---------|
171
- | `source` | Document name (kebab-case) | Group chunks from same doc |
130
+ | `source` | kebab-case document name | Group chunks from same doc |
172
131
  | `type` | `prd`, `architecture`, `integration`, `domain`, `requirements`, `standard`, `sample` | Categorize |
173
132
  | `date` | `YYYY-MM-DD` | When stored |
174
133
 
@@ -179,15 +138,15 @@ IF starting any new work:
179
138
  | No results | Broaden query terms |
180
139
  | Irrelevant results | Use more specific key terms |
181
140
  | Qdrant not responding | `docker ps \| grep qdrant` — restart if needed |
182
- | Ollama not responding | `ollama list` — ensure it's running with `nomic-embed-text` |
141
+ | Ollama not responding | `ollama list` — ensure running with `nomic-embed-text` |
183
142
  | fastembed not installed | `pip install qdrant-mcp[fastembed]` |
184
- | Switched providers, bad results | Different vector dimensions — rebuild the collection |
143
+ | Switched providers, bad results | Different vector dimensions — rebuild collection |
185
144
  | Duplicate content | Search before storing to verify novelty |
186
145
 
187
146
  ## When NOT to Use
188
147
 
189
- - Knowledge that should fade if unused (preferences, decisions, patterns) → Vestige (neural memory)
190
- - Session state or task progress → Serena memory (project workbench)
148
+ - Fading knowledge (preferences, decisions) → Vestige
149
+ - Session state / task progress → Serena memory
191
150
  - Code symbol search → Serena or Grep
192
151
  - Current web info → Tavily
193
152
  - Library API docs → Context7
@@ -195,26 +154,25 @@ IF starting any new work:
195
154
  ## Setup
196
155
 
197
156
  ```bash
198
- # 1. Start Qdrant with persistent storage
157
+ # 1. Start Qdrant
199
158
  docker run -d --name qdrant \
200
159
  -p 6333:6333 \
201
160
  -v qdrant_storage:/qdrant/storage \
202
161
  qdrant/qdrant:latest
203
162
 
204
- # 2a. Option A: Ollama (default)
163
+ # 2a. Ollama (default)
205
164
  ollama pull nomic-embed-text
206
165
 
207
- # 2b. Option B: fastembed (CPU-only, no Ollama needed)
166
+ # 2b. fastembed (CPU-only)
208
167
  # pip install qdrant-mcp[fastembed]
209
168
 
210
- # 3. Install custom MCP server
169
+ # 3. Install MCP server
211
170
  cd ~/dev/qdrant-mcp-server && pip install -e .
212
171
 
213
- # 4. Add to Claude Code (in ~/.claude.json mcpServers)
172
+ # 4. Add to ~/.claude.json mcpServers:
214
173
  # "qdrant-memory": {
215
174
  # "type": "stdio",
216
175
  # "command": "qdrant-mcp",
217
- # "args": [],
218
176
  # "env": {
219
177
  # "QDRANT_URL": "http://localhost:6333",
220
178
  # "COLLECTION_NAME": "ima-knowledge",
@@ -223,22 +181,7 @@ cd ~/dev/qdrant-mcp-server && pip install -e .
223
181
  # "EMBEDDING_MODEL": "nomic-embed-text"
224
182
  # }
225
183
  # }
226
- # For fastembed, set EMBEDDING_PROVIDER=fastembed (OLLAMA_URL not needed)
227
184
 
228
185
  # 5. Verify
229
186
  curl http://localhost:6333/health
230
187
  ```
231
-
232
- **Persistence**: `-v qdrant_storage:/qdrant/storage` preserves data across restarts.
233
- **Embeddings**: Ollama with `nomic-embed-text` (768d) or fastembed with `bge-small-en-v1.5` (384d). All data stays on your machine.
234
-
235
- ### Per-Project Setup
236
-
237
- Add a `.qdrant` file to any project root to use a project-specific collection:
238
-
239
- ```yaml
240
- # .qdrant
241
- collection: my-project-knowledge
242
- ```
243
-
244
- This keeps project knowledge isolated from the global `ima-knowledge` collection. The collection is created automatically on first store.
@@ -5,70 +5,53 @@ description: "Sequential Thinking MCP — use for debugging, root cause analysis
5
5
 
6
6
  # Sequential Thinking MCP - Structured Reasoning
7
7
 
8
- Use Sequential Thinking for complex problems that benefit from structured, revisable analysis.
8
+ Use for: debugging, root cause analysis, trade-off evaluation, architectural decisions, multi-step problems requiring mid-stream revision.
9
9
 
10
- ## Available Tool
10
+ Skip for: simple tasks, obvious answers, single-step operations.
11
+
12
+ ## Tool
11
13
 
12
14
  | Tool | Purpose |
13
15
  |------|---------|
14
- | `mcp__sequential-thinking__sequentialThinking` | Execute a thought in a reasoning chain |
15
-
16
- ## When to Use
17
-
18
- **Use Sequential Thinking for:**
19
- - Breaking down complex problems into steps
20
- - Debugging issues where the cause isn't obvious
21
- - Architectural/design decisions with trade-offs
22
- - Problems where you might need to revise your approach
23
- - Multi-step analysis that needs context maintained
24
- - Filtering irrelevant information from complex scenarios
25
- - Hypothesis generation and verification
16
+ | `mcp__sequential-thinking__sequentialThinking` | Execute one thought in a reasoning chain |
26
17
 
27
- **Don't use for:**
28
- - Simple, straightforward tasks
29
- - Questions with obvious answers
30
- - Tasks that don't require multi-step reasoning
18
+ ## Parameters
31
19
 
32
- ## Basic Usage
20
+ | Parameter | Required | Description |
21
+ |-----------|----------|-------------|
22
+ | `thought` | Yes | Current thinking step |
23
+ | `nextThoughtNeeded` | Yes | `true` to continue, `false` when done |
24
+ | `thoughtNumber` | Yes | Current step (1, 2, 3...) |
25
+ | `totalThoughts` | Yes | Estimated total — adjust freely |
26
+ | `isRevision` | No | `true` if revising a previous thought |
27
+ | `revisesThought` | No | Which thought number being revised |
28
+ | `branchFromThought` | No | Branch point thought number |
29
+ | `branchId` | No | Branch identifier |
33
30
 
34
- Each call represents one thought in your reasoning chain.
31
+ ## Usage Patterns
35
32
 
33
+ ### Start chain
36
34
  ```
37
35
  mcp__sequential-thinking__sequentialThinking
38
- thought: "First, let me understand the problem. We have X happening when Y..."
36
+ thought: "The bug report says form submits but data isn't saved. Failure points: frontend validation, AJAX request, backend handler, DB write."
39
37
  nextThoughtNeeded: true
40
38
  thoughtNumber: 1
41
39
  totalThoughts: 5
42
40
  ```
43
41
 
44
- ## Parameters
45
-
46
- | Parameter | Required | Description |
47
- |-----------|----------|-------------|
48
- | `thought` | Yes | Current thinking step content |
49
- | `nextThoughtNeeded` | Yes | `true` to continue, `false` when done |
50
- | `thoughtNumber` | Yes | Current step number (1, 2, 3...) |
51
- | `totalThoughts` | Yes | Estimated total (can adjust up/down) |
52
- | `isRevision` | No | `true` if revising previous thought |
53
- | `revisesThought` | No | Which thought number being revised |
54
- | `branchFromThought` | No | Thought number to branch from |
55
- | `branchId` | No | Identifier for the branch |
56
-
57
- ## Continue Chain
58
-
42
+ ### Continue
59
43
  ```
60
44
  mcp__sequential-thinking__sequentialThinking
61
- thought: "Based on step 1, the likely cause is Z because..."
45
+ thought: "Based on step 1, checking AJAX request first..."
62
46
  nextThoughtNeeded: true
63
47
  thoughtNumber: 2
64
48
  totalThoughts: 5
65
49
  ```
66
50
 
67
- ## Revise if Needed
68
-
51
+ ### Revise
69
52
  ```
70
53
  mcp__sequential-thinking__sequentialThinking
71
- thought: "Actually, my assumption in thought 2 was wrong. Let me reconsider..."
54
+ thought: "My assumption in thought 2 was wrong. Reconsidering..."
72
55
  nextThoughtNeeded: true
73
56
  thoughtNumber: 3
74
57
  totalThoughts: 6
@@ -76,11 +59,10 @@ mcp__sequential-thinking__sequentialThinking
76
59
  revisesThought: 2
77
60
  ```
78
61
 
79
- ## Branch for Alternatives
80
-
62
+ ### Branch for alternatives
81
63
  ```
82
64
  mcp__sequential-thinking__sequentialThinking
83
- thought: "Let me explore an alternative approach from step 2..."
65
+ thought: "Exploring alternative approach from step 2..."
84
66
  nextThoughtNeeded: true
85
67
  thoughtNumber: 4
86
68
  totalThoughts: 7
@@ -88,11 +70,10 @@ mcp__sequential-thinking__sequentialThinking
88
70
  branchId: "alternative-approach"
89
71
  ```
90
72
 
91
- ## Conclude
92
-
73
+ ### Conclude
93
74
  ```
94
75
  mcp__sequential-thinking__sequentialThinking
95
- thought: "Based on my analysis, the solution is X because of Y and Z."
76
+ thought: "Root cause: field name mismatch frontend sends 'user_email', backend expects 'email'."
96
77
  nextThoughtNeeded: false
97
78
  thoughtNumber: 5
98
79
  totalThoughts: 5
@@ -100,50 +81,14 @@ mcp__sequential-thinking__sequentialThinking
100
81
 
101
82
  ## Best Practices
102
83
 
103
- 1. **Start with estimate, adjust as needed** - `totalThoughts` is flexible
104
- 2. **Express uncertainty** - It's OK to say "I'm not sure, but..."
105
- 3. **Revise freely** - Use `isRevision` when your understanding changes
106
- 4. **Branch for alternatives** - Explore multiple approaches
107
- 5. **Verify hypotheses** - Don't just guess, test your reasoning
108
- 6. **Filter noise** - Focus on relevant information per step
109
- 7. **Only conclude when confident** - Keep `nextThoughtNeeded: true` until satisfied
110
-
111
- ## Example: Debugging a Bug
112
-
113
- ```
114
- Thought 1: "The bug report says the form submits but data isn't saved. Let me identify possible failure points: 1) Frontend validation, 2) AJAX request, 3) Backend handler, 4) Database write."
115
-
116
- Thought 2: "Starting with the AJAX request - I should check if the request is being sent and what response comes back."
117
-
118
- Thought 3: "The request is sent but returns 500. So the issue is backend. Let me check the error logs."
119
-
120
- Thought 4: "Error log shows 'undefined index: email'. The frontend is sending 'user_email' but backend expects 'email'. This is a field name mismatch."
121
-
122
- Thought 5 (conclusion): "Root cause: Field name mismatch between frontend ('user_email') and backend ('email'). Solution: Update frontend to use 'email' or backend to accept 'user_email'."
123
- ```
124
-
125
- ## Example: Architecture Decision
126
-
127
- ```
128
- Thought 1: "Need to decide between REST API and GraphQL for this project. Let me list the requirements: multiple clients, varying data needs, team experience."
129
-
130
- Thought 2: "REST pros: Team knows it well, simple caching, established patterns. Cons: Over-fetching for mobile, multiple endpoints."
131
-
132
- Thought 3: "GraphQL pros: Single endpoint, client specifies data needs, good for mobile. Cons: Learning curve, caching complexity."
133
-
134
- Thought 4 (revision): "Wait, I should also consider that we're using WordPress backend. REST is native to WordPress, GraphQL would need WPGraphQL plugin."
135
-
136
- Thought 5 (conclusion): "Recommendation: REST API. Reasons: 1) Native WordPress support, 2) Team expertise, 3) Simpler caching. The over-fetching concern can be mitigated with sparse fieldsets."
137
- ```
84
+ - Adjust `totalThoughts` freely it's an estimate
85
+ - Express uncertainty inline: "I'm not sure, but..."
86
+ - Revise with `isRevision` when understanding changes
87
+ - Keep `nextThoughtNeeded: true` until confident
88
+ - Branch to compare approaches, not just to explore
138
89
 
139
90
  ## Setup
140
91
 
141
- No API key required. Install with:
142
- ```bash
143
- bun run scripts/setup-mcp.ts
144
- ```
145
-
146
- Or manually:
147
92
  ```bash
148
93
  claude mcp add --scope user sequential-thinking -- npx -y @modelcontextprotocol/server-sequential-thinking@latest
149
94
  ```