bobo-ai-cli 3.0.4 → 3.0.5

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 (238) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +259 -259
  3. package/bundled-skills/CORE_SKILLS.txt +18 -18
  4. package/bundled-skills/backend-expert/SKILL.md +97 -97
  5. package/bundled-skills/code-review/SKILL.md +280 -280
  6. package/bundled-skills/code-review-expert/SKILL.md +85 -85
  7. package/bundled-skills/context-budget-analyzer/SKILL.md +76 -76
  8. package/bundled-skills/context-compressor/SKILL.md +75 -75
  9. package/bundled-skills/context-optimization-suite/SKILL.md +162 -162
  10. package/bundled-skills/frontend-expert/SKILL.md +93 -93
  11. package/bundled-skills/github/SKILL.md +12 -12
  12. package/bundled-skills/high-agency/SKILL.md +473 -473
  13. package/bundled-skills/high-agency/references/builder-patterns.md +126 -126
  14. package/bundled-skills/high-agency/references/recovery-playbook.md +298 -298
  15. package/bundled-skills/memory-manager/SKILL.md +214 -214
  16. package/bundled-skills/memory-manager/references/advanced-config.md +65 -65
  17. package/bundled-skills/orchestrator/SKILL.md +681 -681
  18. package/bundled-skills/planning-with-files/SKILL.md +193 -193
  19. package/bundled-skills/skill-creator/SKILL.md +220 -220
  20. package/bundled-skills/testing-expert/SKILL.md +99 -99
  21. package/bundled-skills/verify/SKILL.md +15 -15
  22. package/dist/agent.d.ts +5 -0
  23. package/dist/agent.js +11 -1
  24. package/dist/agent.js.map +1 -1
  25. package/dist/agents/catalog.d.ts +47 -0
  26. package/dist/agents/catalog.js +63 -5
  27. package/dist/agents/catalog.js.map +1 -1
  28. package/dist/agents/router.d.ts +12 -1
  29. package/dist/agents/router.js +43 -3
  30. package/dist/agents/router.js.map +1 -1
  31. package/dist/agents/spawn.js +36 -18
  32. package/dist/agents/spawn.js.map +1 -1
  33. package/dist/autonomous.js +5 -5
  34. package/dist/cli.js +23 -21
  35. package/dist/cli.js.map +1 -1
  36. package/dist/compactor.js +39 -39
  37. package/dist/dream.js +29 -29
  38. package/dist/image-input.d.ts +44 -0
  39. package/dist/image-input.js +161 -0
  40. package/dist/image-input.js.map +1 -0
  41. package/dist/memory.js +13 -13
  42. package/dist/project.js +15 -15
  43. package/dist/repl.js +88 -0
  44. package/dist/repl.js.map +1 -1
  45. package/dist/skills.js +54 -54
  46. package/dist/sub-agents.js +65 -65
  47. package/dist/tools/browser.js +21 -21
  48. package/dist/tools/claude-code.js +10 -10
  49. package/dist/web.js +7 -7
  50. package/dist/wiki-commands.d.ts +2 -0
  51. package/dist/wiki-commands.js +249 -0
  52. package/dist/wiki-commands.js.map +1 -0
  53. package/dist/wiki.d.ts +90 -0
  54. package/dist/wiki.js +614 -0
  55. package/dist/wiki.js.map +1 -0
  56. package/knowledge/advanced-patterns.md +70 -70
  57. package/knowledge/agent-directives.md +74 -74
  58. package/knowledge/api-integration-patterns.md +102 -0
  59. package/knowledge/code-review-protocol.md +69 -0
  60. package/knowledge/dream.md +36 -36
  61. package/knowledge/engineering.md +52 -46
  62. package/knowledge/error-catalog.md +38 -33
  63. package/knowledge/event-driven-architecture.md +43 -0
  64. package/knowledge/external-alignment.md +47 -0
  65. package/knowledge/high-agency.md +73 -0
  66. package/knowledge/image-generation.md +48 -0
  67. package/knowledge/index.json +194 -169
  68. package/knowledge/llm-wiki-pattern.md +71 -0
  69. package/knowledge/long-task-management.md +79 -0
  70. package/knowledge/memory/cache-optimization-and-skill-integration.md +102 -102
  71. package/knowledge/memory/engineering-patterns.md +134 -134
  72. package/knowledge/memory/feedback_root_structure.md +15 -15
  73. package/knowledge/memory/project-contexts.md +69 -69
  74. package/knowledge/memory/tools-and-services.md +85 -85
  75. package/knowledge/memory-management.md +72 -0
  76. package/knowledge/rules/advisor-strategy.md +204 -0
  77. package/knowledge/rules/agents.md +62 -62
  78. package/knowledge/rules/blocking-rules.md +323 -323
  79. package/knowledge/rules/cache-management.md +379 -379
  80. package/knowledge/rules/capability-evolution.md +132 -132
  81. package/knowledge/rules/coding.md +126 -126
  82. package/knowledge/rules/engineering-workflows.md +225 -225
  83. package/knowledge/rules/evomap-content-guidelines.md +354 -354
  84. package/knowledge/rules/evomap-guide.md +224 -224
  85. package/knowledge/rules/external-alignment.md +22 -0
  86. package/knowledge/rules/git.md +31 -31
  87. package/knowledge/rules/hooks.md +106 -106
  88. package/knowledge/rules/performance.md +101 -101
  89. package/knowledge/rules/remotion-auto-production.md +1120 -1120
  90. package/knowledge/rules/security.md +46 -46
  91. package/knowledge/rules/testing.md +32 -32
  92. package/knowledge/rules/work-mode.md +208 -208
  93. package/knowledge/rules.md +62 -62
  94. package/knowledge/self-evolution.md +78 -0
  95. package/knowledge/self-rationalization-guard.md +52 -0
  96. package/knowledge/skills/Skill_Seekers.md +1722 -1722
  97. package/knowledge/skills/ab-test-setup.md +557 -557
  98. package/knowledge/skills/agent-sdk-dev.md +238 -238
  99. package/knowledge/skills/agent-tools.md +136 -136
  100. package/knowledge/skills/analytics-tracking.md +597 -597
  101. package/knowledge/skills/artifacts-builder.md +89 -89
  102. package/knowledge/skills/asana.md +12 -12
  103. package/knowledge/skills/backend-expert.md +97 -97
  104. package/knowledge/skills/brand-voice.md +481 -481
  105. package/knowledge/skills/browser-use.md +419 -419
  106. package/knowledge/skills/cache-optimization-skill.md +179 -179
  107. package/knowledge/skills/canvas-design.md +147 -147
  108. package/knowledge/skills/citation-validator.md +203 -203
  109. package/knowledge/skills/clangd-lsp.md +52 -52
  110. package/knowledge/skills/code-review-expert.md +85 -85
  111. package/knowledge/skills/code-review.md +280 -280
  112. package/knowledge/skills/code-simplifier.md +12 -12
  113. package/knowledge/skills/commit-commands.md +258 -258
  114. package/knowledge/skills/competitor-alternatives.md +795 -795
  115. package/knowledge/skills/content-atomizer.md +910 -910
  116. package/knowledge/skills/content-research-writer.md +605 -605
  117. package/knowledge/skills/context-optimization-suite.md +162 -162
  118. package/knowledge/skills/context7.md +12 -12
  119. package/knowledge/skills/copy-editing.md +494 -494
  120. package/knowledge/skills/copywriting.md +510 -510
  121. package/knowledge/skills/csharp-lsp.md +40 -40
  122. package/knowledge/skills/decision-making-framework.md +154 -154
  123. package/knowledge/skills/developer-growth-analysis.md +335 -335
  124. package/knowledge/skills/direct-response-copy.md +2336 -2336
  125. package/knowledge/skills/docker-expert.md +229 -229
  126. package/knowledge/skills/document-skills.md +12 -12
  127. package/knowledge/skills/documentation-expert.md +126 -126
  128. package/knowledge/skills/email-sequence.md +1061 -1061
  129. package/knowledge/skills/email-sequences.md +910 -910
  130. package/knowledge/skills/example-plugin.md +72 -72
  131. package/knowledge/skills/explanatory-output-style.md +82 -82
  132. package/knowledge/skills/feature-dev.md +458 -458
  133. package/knowledge/skills/file-organizer.md +466 -466
  134. package/knowledge/skills/firebase.disabled.md +12 -12
  135. package/knowledge/skills/form-cro.md +488 -488
  136. package/knowledge/skills/free-tool-strategy.md +636 -636
  137. package/knowledge/skills/frontend-design-offical.md +55 -55
  138. package/knowledge/skills/frontend-design.md +41 -41
  139. package/knowledge/skills/frontend-expert.md +93 -93
  140. package/knowledge/skills/github.md +12 -12
  141. package/knowledge/skills/gitlab.md +12 -12
  142. package/knowledge/skills/gopls-lsp.md +32 -32
  143. package/knowledge/skills/got-controller.md +218 -218
  144. package/knowledge/skills/greptile.md +72 -72
  145. package/knowledge/skills/hookify.md +376 -376
  146. package/knowledge/skills/image-editor.md +189 -189
  147. package/knowledge/skills/image-enhancer.md +109 -109
  148. package/knowledge/skills/jdtls-lsp.md +49 -49
  149. package/knowledge/skills/json-canvas.md +654 -654
  150. package/knowledge/skills/keyword-research.md +559 -559
  151. package/knowledge/skills/kotlin-lsp.md +28 -28
  152. package/knowledge/skills/laravel-boost.md +12 -12
  153. package/knowledge/skills/launch-strategy.md +394 -394
  154. package/knowledge/skills/lead-magnet.md +393 -393
  155. package/knowledge/skills/learning-output-style.md +106 -106
  156. package/knowledge/skills/linear.md +12 -12
  157. package/knowledge/skills/lua-lsp.md +47 -47
  158. package/knowledge/skills/marketing-ideas.md +720 -720
  159. package/knowledge/skills/marketing-psychology.md +534 -534
  160. package/knowledge/skills/mcp-builder.md +369 -369
  161. package/knowledge/skills/meeting-insights-analyzer.md +347 -347
  162. package/knowledge/skills/memory-evolution-system.md +172 -172
  163. package/knowledge/skills/multi-lens-thinking.md +407 -407
  164. package/knowledge/skills/nano-banana-pro.md +116 -116
  165. package/knowledge/skills/newsletter.md +736 -736
  166. package/knowledge/skills/notebooklm.md +296 -296
  167. package/knowledge/skills/obsidian-bases.md +634 -634
  168. package/knowledge/skills/obsidian-markdown.md +651 -651
  169. package/knowledge/skills/onboarding-cro.md +494 -494
  170. package/knowledge/skills/orchestrator.md +681 -681
  171. package/knowledge/skills/page-cro.md +379 -379
  172. package/knowledge/skills/paid-ads.md +624 -624
  173. package/knowledge/skills/paywall-upgrade-cro.md +651 -651
  174. package/knowledge/skills/php-lsp.md +36 -36
  175. package/knowledge/skills/planning-with-files.md +193 -193
  176. package/knowledge/skills/playwright.md +12 -12
  177. package/knowledge/skills/plugin-dev.md +434 -434
  178. package/knowledge/skills/popup-cro.md +520 -520
  179. package/knowledge/skills/positioning-angles.md +330 -330
  180. package/knowledge/skills/pr-review-toolkit.md +359 -359
  181. package/knowledge/skills/pricing-strategy.md +777 -777
  182. package/knowledge/skills/programmatic-seo.md +714 -714
  183. package/knowledge/skills/pyright-lsp.md +43 -43
  184. package/knowledge/skills/quality-assurance-framework.md +168 -168
  185. package/knowledge/skills/question-refiner.md +160 -160
  186. package/knowledge/skills/ralph-loop.md +205 -205
  187. package/knowledge/skills/refactoring-expert.md +103 -103
  188. package/knowledge/skills/referral-program.md +668 -668
  189. package/knowledge/skills/research-executor.md +164 -164
  190. package/knowledge/skills/review-with-security.md +12 -12
  191. package/knowledge/skills/rust-analyzer-lsp.md +50 -50
  192. package/knowledge/skills/schema-markup.md +647 -647
  193. package/knowledge/skills/security-audit-expert.md +124 -124
  194. package/knowledge/skills/security-expert.md +140 -140
  195. package/knowledge/skills/security-guidance.md +12 -12
  196. package/knowledge/skills/seedance-prompt.md +139 -139
  197. package/knowledge/skills/self-evolution.md +1160 -1160
  198. package/knowledge/skills/seo-audit.md +432 -432
  199. package/knowledge/skills/seo-content.md +787 -787
  200. package/knowledge/skills/serena.md +12 -12
  201. package/knowledge/skills/signup-flow-cro.md +409 -409
  202. package/knowledge/skills/skill-creator.md +220 -220
  203. package/knowledge/skills/skill-manager.md +226 -226
  204. package/knowledge/skills/skill-share.md +98 -98
  205. package/knowledge/skills/slack.md +12 -12
  206. package/knowledge/skills/social-content.md +878 -878
  207. package/knowledge/skills/spec-flow-skill.md +124 -124
  208. package/knowledge/skills/stripe.md +12 -12
  209. package/knowledge/skills/supabase.md +12 -12
  210. package/knowledge/skills/swift-lsp.md +40 -40
  211. package/knowledge/skills/synthesizer.md +236 -236
  212. package/knowledge/skills/template-skill.md +16 -16
  213. package/knowledge/skills/testing-expert.md +99 -99
  214. package/knowledge/skills/theme-factory.md +72 -72
  215. package/knowledge/skills/tiktok-research.md +208 -208
  216. package/knowledge/skills/typescript-lsp.md +36 -36
  217. package/knowledge/skills/ui-ux-pro-max.md +247 -247
  218. package/knowledge/skills/verify.md +15 -15
  219. package/knowledge/skills/visual-prompt-engineer.md +102 -102
  220. package/knowledge/skills/webapp-testing.md +111 -111
  221. package/knowledge/skills/wide-research.md +191 -191
  222. package/knowledge/system.md +93 -93
  223. package/knowledge/task-router.md +46 -37
  224. package/knowledge/verification.md +38 -38
  225. package/knowledge/worker-prompt-craft.md +66 -0
  226. package/knowledge/workflows/3d-viz.md +47 -47
  227. package/knowledge/workflows/data-pipeline.md +47 -47
  228. package/knowledge/workflows/db-migration.md +51 -51
  229. package/knowledge/workflows/feature-dev.md +41 -41
  230. package/knowledge/workflows/tdd-flow.md +52 -52
  231. package/knowledge/workflows/ui-verify.md +51 -51
  232. package/package.json +74 -74
  233. package/dist/claude-bridge.d.ts +0 -18
  234. package/dist/claude-bridge.js +0 -91
  235. package/dist/claude-bridge.js.map +0 -1
  236. package/dist/tools/claude-bridge-tool.d.ts +0 -4
  237. package/dist/tools/claude-bridge-tool.js +0 -44
  238. package/dist/tools/claude-bridge-tool.js.map +0 -1
@@ -1,458 +1,458 @@
1
- ---
2
- id: "feature-dev"
3
- title: "Feature Development Plugin"
4
- category: "dev-tools"
5
- tags: ["feature development plugin", "overview", "philosophy", "the 7-phase workflow", "agents", "usage patterns", "best practices", "when to use this plugin", "requirements"]
6
- triggers: []
7
- dependencies: []
8
- source: "E:/Bobo's Coding cache/.claude/skills/feature-dev"
9
- ---
10
-
11
- # Feature Development Plugin
12
-
13
- A comprehensive, structured workflow for feature development with specialized agents for codebase exploration, architecture design, and quality review.
14
-
15
- ## Overview
16
-
17
- The Feature Development Plugin provides a systematic 7-phase approach to building new features. Instead of jumping straight into code, it guides you through understanding the codebase, asking clarifying questions, designing architecture, and ensuring quality—resulting in better-designed features that integrate seamlessly with your existing code.
18
-
19
- ## Philosophy
20
-
21
- Building features requires more than just writing code. You need to:
22
-
23
- - **Understand the codebase** before making changes
24
- - **Ask questions** to clarify ambiguous requirements
25
- - **Design thoughtfully** before implementing
26
- - **Review for quality** after building
27
-
28
- This plugin embeds these practices into a structured workflow that runs automatically when you use the `/feature-dev` command.
29
-
30
- ## Command: `/feature-dev`
31
-
32
- Launches a guided feature development workflow with 7 distinct phases.
33
-
34
- **Usage:**
35
-
36
- ```bash
37
- /feature-dev Add user authentication with OAuth
38
- ```
39
-
40
- Or simply:
41
-
42
- ```bash
43
- /feature-dev
44
- ```
45
-
46
- The command will guide you through the entire process interactively.
47
-
48
- ## The 7-Phase Workflow
49
-
50
- ### Phase 1: Discovery
51
-
52
- **Goal**: Understand what needs to be built
53
-
54
- **What happens:**
55
-
56
- - Clarifies the feature request if it's unclear
57
- - Asks what problem you're solving
58
- - Identifies constraints and requirements
59
- - Summarizes understanding and confirms with you
60
-
61
- **Example:**
62
-
63
- ```
64
- You: /feature-dev Add caching
65
- Claude: Let me understand what you need...
66
- - What should be cached? (API responses, computed values, etc.)
67
- - What are your performance requirements?
68
- - Do you have a preferred caching solution?
69
- ```
70
-
71
- ### Phase 2: Codebase Exploration
72
-
73
- **Goal**: Understand relevant existing code and patterns
74
-
75
- **What happens:**
76
-
77
- - Launches 2-3 `code-explorer` agents in parallel
78
- - Each agent explores different aspects (similar features, architecture, UI patterns)
79
- - Agents return comprehensive analyses with key files to read
80
- - Claude reads all identified files to build deep understanding
81
- - Presents comprehensive summary of findings
82
-
83
- **Agents launched:**
84
-
85
- - "Find features similar to [feature] and trace implementation"
86
- - "Map the architecture and abstractions for [area]"
87
- - "Analyze current implementation of [related feature]"
88
-
89
- **Example output:**
90
-
91
- ```
92
- Found similar features:
93
- - User authentication (src/auth/): Uses JWT tokens, middleware pattern
94
- - Session management (src/session/): Redis-backed, 24hr expiry
95
- - API security (src/api/middleware/): Rate limiting, CORS
96
-
97
- Key files to understand:
98
- - src/auth/AuthService.ts:45 - Core authentication logic
99
- - src/middleware/authMiddleware.ts:12 - Request authentication
100
- - src/config/security.ts:8 - Security configuration
101
- ```
102
-
103
- ### Phase 3: Clarifying Questions
104
-
105
- **Goal**: Fill in gaps and resolve all ambiguities
106
-
107
- **What happens:**
108
-
109
- - Reviews codebase findings and feature request
110
- - Identifies underspecified aspects:
111
- - Edge cases
112
- - Error handling
113
- - Integration points
114
- - Backward compatibility
115
- - Performance needs
116
- - Presents all questions in an organized list
117
- - **Waits for your answers before proceeding**
118
-
119
- **Example:**
120
-
121
- ```
122
- Before designing the architecture, I need to clarify:
123
-
124
- 1. OAuth provider: Which OAuth providers? (Google, GitHub, custom?)
125
- 2. User data: Store OAuth tokens or just user profile?
126
- 3. Existing auth: Replace current auth or add alongside?
127
- 4. Sessions: Integrate with existing session management?
128
- 5. Error handling: How to handle OAuth failures?
129
- ```
130
-
131
- **Critical**: This phase ensures nothing is ambiguous before design begins.
132
-
133
- ### Phase 4: Architecture Design
134
-
135
- **Goal**: Design multiple implementation approaches
136
-
137
- **What happens:**
138
-
139
- - Launches 2-3 `code-architect` agents with different focuses:
140
- - **Minimal changes**: Smallest change, maximum reuse
141
- - **Clean architecture**: Maintainability, elegant abstractions
142
- - **Pragmatic balance**: Speed + quality
143
- - Reviews all approaches
144
- - Forms opinion on which fits best for this task
145
- - Presents comparison with trade-offs and recommendation
146
- - **Asks which approach you prefer**
147
-
148
- **Example output:**
149
-
150
- ```
151
- I've designed 3 approaches:
152
-
153
- Approach 1: Minimal Changes
154
- - Extend existing AuthService with OAuth methods
155
- - Add new OAuth routes to existing auth router
156
- - Minimal refactoring required
157
- Pros: Fast, low risk
158
- Cons: Couples OAuth to existing auth, harder to test
159
-
160
- Approach 2: Clean Architecture
161
- - New OAuthService with dedicated interface
162
- - Separate OAuth router and middleware
163
- - Refactor AuthService to use common interface
164
- Pros: Clean separation, testable, maintainable
165
- Cons: More files, more refactoring
166
-
167
- Approach 3: Pragmatic Balance
168
- - New OAuthProvider abstraction
169
- - Integrate into existing AuthService
170
- - Minimal refactoring, good boundaries
171
- Pros: Balanced complexity and cleanliness
172
- Cons: Some coupling remains
173
-
174
- Recommendation: Approach 3 - gives you clean boundaries without
175
- excessive refactoring, and fits your existing architecture well.
176
-
177
- Which approach would you like to use?
178
- ```
179
-
180
- ### Phase 5: Implementation
181
-
182
- **Goal**: Build the feature
183
-
184
- **What happens:**
185
-
186
- - **Waits for explicit approval** before starting
187
- - Reads all relevant files identified in previous phases
188
- - Implements following chosen architecture
189
- - Follows codebase conventions strictly
190
- - Writes clean, well-documented code
191
- - Updates todos as progress is made
192
-
193
- **Notes:**
194
-
195
- - Implementation only starts after you approve
196
- - Follows patterns discovered in Phase 2
197
- - Uses architecture designed in Phase 4
198
- - Continuously tracks progress
199
-
200
- ### Phase 6: Quality Review
201
-
202
- **Goal**: Ensure code is simple, DRY, elegant, and functionally correct
203
-
204
- **What happens:**
205
-
206
- - Launches 3 `code-reviewer` agents in parallel with different focuses:
207
- - **Simplicity/DRY/Elegance**: Code quality and maintainability
208
- - **Bugs/Correctness**: Functional correctness and logic errors
209
- - **Conventions/Abstractions**: Project standards and patterns
210
- - Consolidates findings
211
- - Identifies highest severity issues
212
- - **Presents findings and asks what you want to do**:
213
- - Fix now
214
- - Fix later
215
- - Proceed as-is
216
- - Addresses issues based on your decision
217
-
218
- **Example output:**
219
-
220
- ```
221
- Code Review Results:
222
-
223
- High Priority Issues:
224
- 1. Missing error handling in OAuth callback (src/auth/oauth.ts:67)
225
- 2. Memory leak: OAuth state not cleaned up (src/auth/oauth.ts:89)
226
-
227
- Medium Priority:
228
- 1. Could simplify token refresh logic (src/auth/oauth.ts:120)
229
- 2. Consider extracting OAuth config validation
230
-
231
- All tests pass. Code follows project conventions.
232
-
233
- What would you like to do?
234
- ```
235
-
236
- ### Phase 7: Summary
237
-
238
- **Goal**: Document what was accomplished
239
-
240
- **What happens:**
241
-
242
- - Marks all todos complete
243
- - Summarizes:
244
- - What was built
245
- - Key decisions made
246
- - Files modified
247
- - Suggested next steps
248
-
249
- **Example:**
250
-
251
- ```
252
- Feature Complete: OAuth Authentication
253
-
254
- What was built:
255
- - OAuth provider abstraction supporting Google and GitHub
256
- - OAuth routes and middleware integrated with existing auth
257
- - Token refresh and session integration
258
- - Error handling for all OAuth flows
259
-
260
- Key decisions:
261
- - Used pragmatic approach with OAuthProvider abstraction
262
- - Integrated with existing session management
263
- - Added OAuth state to prevent CSRF
264
-
265
- Files modified:
266
- - src/auth/OAuthProvider.ts (new)
267
- - src/auth/AuthService.ts
268
- - src/routes/auth.ts
269
- - src/middleware/authMiddleware.ts
270
-
271
- Suggested next steps:
272
- - Add tests for OAuth flows
273
- - Add more OAuth providers (Microsoft, Apple)
274
- - Update documentation
275
- ```
276
-
277
- ## Agents
278
-
279
- ### `code-explorer`
280
-
281
- **Purpose**: Deeply analyzes existing codebase features by tracing execution paths
282
-
283
- **Focus areas:**
284
-
285
- - Entry points and call chains
286
- - Data flow and transformations
287
- - Architecture layers and patterns
288
- - Dependencies and integrations
289
- - Implementation details
290
-
291
- **When triggered:**
292
-
293
- - Automatically in Phase 2
294
- - Can be invoked manually when exploring code
295
-
296
- **Output:**
297
-
298
- - Entry points with file:line references
299
- - Step-by-step execution flow
300
- - Key components and responsibilities
301
- - Architecture insights
302
- - List of essential files to read
303
-
304
- ### `code-architect`
305
-
306
- **Purpose**: Designs feature architectures and implementation blueprints
307
-
308
- **Focus areas:**
309
-
310
- - Codebase pattern analysis
311
- - Architecture decisions
312
- - Component design
313
- - Implementation roadmap
314
- - Data flow and build sequence
315
-
316
- **When triggered:**
317
-
318
- - Automatically in Phase 4
319
- - Can be invoked manually for architecture design
320
-
321
- **Output:**
322
-
323
- - Patterns and conventions found
324
- - Architecture decision with rationale
325
- - Complete component design
326
- - Implementation map with specific files
327
- - Build sequence with phases
328
-
329
- ### `code-reviewer`
330
-
331
- **Purpose**: Reviews code for bugs, quality issues, and project conventions
332
-
333
- **Focus areas:**
334
-
335
- - Project guideline compliance (CLAUDE.md)
336
- - Bug detection
337
- - Code quality issues
338
- - Confidence-based filtering (only reports high-confidence issues ≥80)
339
-
340
- **When triggered:**
341
-
342
- - Automatically in Phase 6
343
- - Can be invoked manually after writing code
344
-
345
- **Output:**
346
-
347
- - Critical issues (confidence 75-100)
348
- - Important issues (confidence 50-74)
349
- - Specific fixes with file:line references
350
- - Project guideline references
351
-
352
- ## Usage Patterns
353
-
354
- ### Full workflow (recommended for new features):
355
-
356
- ```bash
357
- /feature-dev Add rate limiting to API endpoints
358
- ```
359
-
360
- Let the workflow guide you through all 7 phases.
361
-
362
- ### Manual agent invocation:
363
-
364
- **Explore a feature:**
365
-
366
- ```
367
- "Launch code-explorer to trace how authentication works"
368
- ```
369
-
370
- **Design architecture:**
371
-
372
- ```
373
- "Launch code-architect to design the caching layer"
374
- ```
375
-
376
- **Review code:**
377
-
378
- ```
379
- "Launch code-reviewer to check my recent changes"
380
- ```
381
-
382
- ## Best Practices
383
-
384
- 1. **Use the full workflow for complex features**: The 7 phases ensure thorough planning
385
- 2. **Answer clarifying questions thoughtfully**: Phase 3 prevents future confusion
386
- 3. **Choose architecture deliberately**: Phase 4 gives you options for a reason
387
- 4. **Don't skip code review**: Phase 6 catches issues before they reach production
388
- 5. **Read the suggested files**: Phase 2 identifies key files—read them to understand context
389
-
390
- ## When to Use This Plugin
391
-
392
- **Use for:**
393
-
394
- - New features that touch multiple files
395
- - Features requiring architectural decisions
396
- - Complex integrations with existing code
397
- - Features where requirements are somewhat unclear
398
-
399
- **Don't use for:**
400
-
401
- - Single-line bug fixes
402
- - Trivial changes
403
- - Well-defined, simple tasks
404
- - Urgent hotfixes
405
-
406
- ## Requirements
407
-
408
- - Claude Code installed
409
- - Git repository (for code review)
410
- - Project with existing codebase (workflow assumes existing code to learn from)
411
-
412
- ## Troubleshooting
413
-
414
- ### Agents take too long
415
-
416
- **Issue**: Code exploration or architecture agents are slow
417
-
418
- **Solution**:
419
-
420
- - This is normal for large codebases
421
- - Agents run in parallel when possible
422
- - The thoroughness pays off in better understanding
423
-
424
- ### Too many clarifying questions
425
-
426
- **Issue**: Phase 3 asks too many questions
427
-
428
- **Solution**:
429
-
430
- - Be more specific in your initial feature request
431
- - Provide context about constraints upfront
432
- - Say "whatever you think is best" if truly no preference
433
-
434
- ### Architecture options overwhelming
435
-
436
- **Issue**: Too many architecture options in Phase 4
437
-
438
- **Solution**:
439
-
440
- - Trust the recommendation—it's based on codebase analysis
441
- - If still unsure, ask for more explanation
442
- - Pick the pragmatic option when in doubt
443
-
444
- ## Tips
445
-
446
- - **Be specific in your feature request**: More detail = fewer clarifying questions
447
- - **Trust the process**: Each phase builds on the previous one
448
- - **Review agent outputs**: Agents provide valuable insights about your codebase
449
- - **Don't skip phases**: Each phase serves a purpose
450
- - **Use for learning**: The exploration phase teaches you about your own codebase
451
-
452
- ## Author
453
-
454
- Sid Bidasaria (sbidasaria@anthropic.com)
455
-
456
- ## Version
457
-
458
- 1.0.0
1
+ ---
2
+ id: "feature-dev"
3
+ title: "Feature Development Plugin"
4
+ category: "dev-tools"
5
+ tags: ["feature development plugin", "overview", "philosophy", "the 7-phase workflow", "agents", "usage patterns", "best practices", "when to use this plugin", "requirements"]
6
+ triggers: []
7
+ dependencies: []
8
+ source: "E:/Bobo's Coding cache/.claude/skills/feature-dev"
9
+ ---
10
+
11
+ # Feature Development Plugin
12
+
13
+ A comprehensive, structured workflow for feature development with specialized agents for codebase exploration, architecture design, and quality review.
14
+
15
+ ## Overview
16
+
17
+ The Feature Development Plugin provides a systematic 7-phase approach to building new features. Instead of jumping straight into code, it guides you through understanding the codebase, asking clarifying questions, designing architecture, and ensuring quality—resulting in better-designed features that integrate seamlessly with your existing code.
18
+
19
+ ## Philosophy
20
+
21
+ Building features requires more than just writing code. You need to:
22
+
23
+ - **Understand the codebase** before making changes
24
+ - **Ask questions** to clarify ambiguous requirements
25
+ - **Design thoughtfully** before implementing
26
+ - **Review for quality** after building
27
+
28
+ This plugin embeds these practices into a structured workflow that runs automatically when you use the `/feature-dev` command.
29
+
30
+ ## Command: `/feature-dev`
31
+
32
+ Launches a guided feature development workflow with 7 distinct phases.
33
+
34
+ **Usage:**
35
+
36
+ ```bash
37
+ /feature-dev Add user authentication with OAuth
38
+ ```
39
+
40
+ Or simply:
41
+
42
+ ```bash
43
+ /feature-dev
44
+ ```
45
+
46
+ The command will guide you through the entire process interactively.
47
+
48
+ ## The 7-Phase Workflow
49
+
50
+ ### Phase 1: Discovery
51
+
52
+ **Goal**: Understand what needs to be built
53
+
54
+ **What happens:**
55
+
56
+ - Clarifies the feature request if it's unclear
57
+ - Asks what problem you're solving
58
+ - Identifies constraints and requirements
59
+ - Summarizes understanding and confirms with you
60
+
61
+ **Example:**
62
+
63
+ ```
64
+ You: /feature-dev Add caching
65
+ Claude: Let me understand what you need...
66
+ - What should be cached? (API responses, computed values, etc.)
67
+ - What are your performance requirements?
68
+ - Do you have a preferred caching solution?
69
+ ```
70
+
71
+ ### Phase 2: Codebase Exploration
72
+
73
+ **Goal**: Understand relevant existing code and patterns
74
+
75
+ **What happens:**
76
+
77
+ - Launches 2-3 `code-explorer` agents in parallel
78
+ - Each agent explores different aspects (similar features, architecture, UI patterns)
79
+ - Agents return comprehensive analyses with key files to read
80
+ - Claude reads all identified files to build deep understanding
81
+ - Presents comprehensive summary of findings
82
+
83
+ **Agents launched:**
84
+
85
+ - "Find features similar to [feature] and trace implementation"
86
+ - "Map the architecture and abstractions for [area]"
87
+ - "Analyze current implementation of [related feature]"
88
+
89
+ **Example output:**
90
+
91
+ ```
92
+ Found similar features:
93
+ - User authentication (src/auth/): Uses JWT tokens, middleware pattern
94
+ - Session management (src/session/): Redis-backed, 24hr expiry
95
+ - API security (src/api/middleware/): Rate limiting, CORS
96
+
97
+ Key files to understand:
98
+ - src/auth/AuthService.ts:45 - Core authentication logic
99
+ - src/middleware/authMiddleware.ts:12 - Request authentication
100
+ - src/config/security.ts:8 - Security configuration
101
+ ```
102
+
103
+ ### Phase 3: Clarifying Questions
104
+
105
+ **Goal**: Fill in gaps and resolve all ambiguities
106
+
107
+ **What happens:**
108
+
109
+ - Reviews codebase findings and feature request
110
+ - Identifies underspecified aspects:
111
+ - Edge cases
112
+ - Error handling
113
+ - Integration points
114
+ - Backward compatibility
115
+ - Performance needs
116
+ - Presents all questions in an organized list
117
+ - **Waits for your answers before proceeding**
118
+
119
+ **Example:**
120
+
121
+ ```
122
+ Before designing the architecture, I need to clarify:
123
+
124
+ 1. OAuth provider: Which OAuth providers? (Google, GitHub, custom?)
125
+ 2. User data: Store OAuth tokens or just user profile?
126
+ 3. Existing auth: Replace current auth or add alongside?
127
+ 4. Sessions: Integrate with existing session management?
128
+ 5. Error handling: How to handle OAuth failures?
129
+ ```
130
+
131
+ **Critical**: This phase ensures nothing is ambiguous before design begins.
132
+
133
+ ### Phase 4: Architecture Design
134
+
135
+ **Goal**: Design multiple implementation approaches
136
+
137
+ **What happens:**
138
+
139
+ - Launches 2-3 `code-architect` agents with different focuses:
140
+ - **Minimal changes**: Smallest change, maximum reuse
141
+ - **Clean architecture**: Maintainability, elegant abstractions
142
+ - **Pragmatic balance**: Speed + quality
143
+ - Reviews all approaches
144
+ - Forms opinion on which fits best for this task
145
+ - Presents comparison with trade-offs and recommendation
146
+ - **Asks which approach you prefer**
147
+
148
+ **Example output:**
149
+
150
+ ```
151
+ I've designed 3 approaches:
152
+
153
+ Approach 1: Minimal Changes
154
+ - Extend existing AuthService with OAuth methods
155
+ - Add new OAuth routes to existing auth router
156
+ - Minimal refactoring required
157
+ Pros: Fast, low risk
158
+ Cons: Couples OAuth to existing auth, harder to test
159
+
160
+ Approach 2: Clean Architecture
161
+ - New OAuthService with dedicated interface
162
+ - Separate OAuth router and middleware
163
+ - Refactor AuthService to use common interface
164
+ Pros: Clean separation, testable, maintainable
165
+ Cons: More files, more refactoring
166
+
167
+ Approach 3: Pragmatic Balance
168
+ - New OAuthProvider abstraction
169
+ - Integrate into existing AuthService
170
+ - Minimal refactoring, good boundaries
171
+ Pros: Balanced complexity and cleanliness
172
+ Cons: Some coupling remains
173
+
174
+ Recommendation: Approach 3 - gives you clean boundaries without
175
+ excessive refactoring, and fits your existing architecture well.
176
+
177
+ Which approach would you like to use?
178
+ ```
179
+
180
+ ### Phase 5: Implementation
181
+
182
+ **Goal**: Build the feature
183
+
184
+ **What happens:**
185
+
186
+ - **Waits for explicit approval** before starting
187
+ - Reads all relevant files identified in previous phases
188
+ - Implements following chosen architecture
189
+ - Follows codebase conventions strictly
190
+ - Writes clean, well-documented code
191
+ - Updates todos as progress is made
192
+
193
+ **Notes:**
194
+
195
+ - Implementation only starts after you approve
196
+ - Follows patterns discovered in Phase 2
197
+ - Uses architecture designed in Phase 4
198
+ - Continuously tracks progress
199
+
200
+ ### Phase 6: Quality Review
201
+
202
+ **Goal**: Ensure code is simple, DRY, elegant, and functionally correct
203
+
204
+ **What happens:**
205
+
206
+ - Launches 3 `code-reviewer` agents in parallel with different focuses:
207
+ - **Simplicity/DRY/Elegance**: Code quality and maintainability
208
+ - **Bugs/Correctness**: Functional correctness and logic errors
209
+ - **Conventions/Abstractions**: Project standards and patterns
210
+ - Consolidates findings
211
+ - Identifies highest severity issues
212
+ - **Presents findings and asks what you want to do**:
213
+ - Fix now
214
+ - Fix later
215
+ - Proceed as-is
216
+ - Addresses issues based on your decision
217
+
218
+ **Example output:**
219
+
220
+ ```
221
+ Code Review Results:
222
+
223
+ High Priority Issues:
224
+ 1. Missing error handling in OAuth callback (src/auth/oauth.ts:67)
225
+ 2. Memory leak: OAuth state not cleaned up (src/auth/oauth.ts:89)
226
+
227
+ Medium Priority:
228
+ 1. Could simplify token refresh logic (src/auth/oauth.ts:120)
229
+ 2. Consider extracting OAuth config validation
230
+
231
+ All tests pass. Code follows project conventions.
232
+
233
+ What would you like to do?
234
+ ```
235
+
236
+ ### Phase 7: Summary
237
+
238
+ **Goal**: Document what was accomplished
239
+
240
+ **What happens:**
241
+
242
+ - Marks all todos complete
243
+ - Summarizes:
244
+ - What was built
245
+ - Key decisions made
246
+ - Files modified
247
+ - Suggested next steps
248
+
249
+ **Example:**
250
+
251
+ ```
252
+ Feature Complete: OAuth Authentication
253
+
254
+ What was built:
255
+ - OAuth provider abstraction supporting Google and GitHub
256
+ - OAuth routes and middleware integrated with existing auth
257
+ - Token refresh and session integration
258
+ - Error handling for all OAuth flows
259
+
260
+ Key decisions:
261
+ - Used pragmatic approach with OAuthProvider abstraction
262
+ - Integrated with existing session management
263
+ - Added OAuth state to prevent CSRF
264
+
265
+ Files modified:
266
+ - src/auth/OAuthProvider.ts (new)
267
+ - src/auth/AuthService.ts
268
+ - src/routes/auth.ts
269
+ - src/middleware/authMiddleware.ts
270
+
271
+ Suggested next steps:
272
+ - Add tests for OAuth flows
273
+ - Add more OAuth providers (Microsoft, Apple)
274
+ - Update documentation
275
+ ```
276
+
277
+ ## Agents
278
+
279
+ ### `code-explorer`
280
+
281
+ **Purpose**: Deeply analyzes existing codebase features by tracing execution paths
282
+
283
+ **Focus areas:**
284
+
285
+ - Entry points and call chains
286
+ - Data flow and transformations
287
+ - Architecture layers and patterns
288
+ - Dependencies and integrations
289
+ - Implementation details
290
+
291
+ **When triggered:**
292
+
293
+ - Automatically in Phase 2
294
+ - Can be invoked manually when exploring code
295
+
296
+ **Output:**
297
+
298
+ - Entry points with file:line references
299
+ - Step-by-step execution flow
300
+ - Key components and responsibilities
301
+ - Architecture insights
302
+ - List of essential files to read
303
+
304
+ ### `code-architect`
305
+
306
+ **Purpose**: Designs feature architectures and implementation blueprints
307
+
308
+ **Focus areas:**
309
+
310
+ - Codebase pattern analysis
311
+ - Architecture decisions
312
+ - Component design
313
+ - Implementation roadmap
314
+ - Data flow and build sequence
315
+
316
+ **When triggered:**
317
+
318
+ - Automatically in Phase 4
319
+ - Can be invoked manually for architecture design
320
+
321
+ **Output:**
322
+
323
+ - Patterns and conventions found
324
+ - Architecture decision with rationale
325
+ - Complete component design
326
+ - Implementation map with specific files
327
+ - Build sequence with phases
328
+
329
+ ### `code-reviewer`
330
+
331
+ **Purpose**: Reviews code for bugs, quality issues, and project conventions
332
+
333
+ **Focus areas:**
334
+
335
+ - Project guideline compliance (CLAUDE.md)
336
+ - Bug detection
337
+ - Code quality issues
338
+ - Confidence-based filtering (only reports high-confidence issues ≥80)
339
+
340
+ **When triggered:**
341
+
342
+ - Automatically in Phase 6
343
+ - Can be invoked manually after writing code
344
+
345
+ **Output:**
346
+
347
+ - Critical issues (confidence 75-100)
348
+ - Important issues (confidence 50-74)
349
+ - Specific fixes with file:line references
350
+ - Project guideline references
351
+
352
+ ## Usage Patterns
353
+
354
+ ### Full workflow (recommended for new features):
355
+
356
+ ```bash
357
+ /feature-dev Add rate limiting to API endpoints
358
+ ```
359
+
360
+ Let the workflow guide you through all 7 phases.
361
+
362
+ ### Manual agent invocation:
363
+
364
+ **Explore a feature:**
365
+
366
+ ```
367
+ "Launch code-explorer to trace how authentication works"
368
+ ```
369
+
370
+ **Design architecture:**
371
+
372
+ ```
373
+ "Launch code-architect to design the caching layer"
374
+ ```
375
+
376
+ **Review code:**
377
+
378
+ ```
379
+ "Launch code-reviewer to check my recent changes"
380
+ ```
381
+
382
+ ## Best Practices
383
+
384
+ 1. **Use the full workflow for complex features**: The 7 phases ensure thorough planning
385
+ 2. **Answer clarifying questions thoughtfully**: Phase 3 prevents future confusion
386
+ 3. **Choose architecture deliberately**: Phase 4 gives you options for a reason
387
+ 4. **Don't skip code review**: Phase 6 catches issues before they reach production
388
+ 5. **Read the suggested files**: Phase 2 identifies key files—read them to understand context
389
+
390
+ ## When to Use This Plugin
391
+
392
+ **Use for:**
393
+
394
+ - New features that touch multiple files
395
+ - Features requiring architectural decisions
396
+ - Complex integrations with existing code
397
+ - Features where requirements are somewhat unclear
398
+
399
+ **Don't use for:**
400
+
401
+ - Single-line bug fixes
402
+ - Trivial changes
403
+ - Well-defined, simple tasks
404
+ - Urgent hotfixes
405
+
406
+ ## Requirements
407
+
408
+ - Claude Code installed
409
+ - Git repository (for code review)
410
+ - Project with existing codebase (workflow assumes existing code to learn from)
411
+
412
+ ## Troubleshooting
413
+
414
+ ### Agents take too long
415
+
416
+ **Issue**: Code exploration or architecture agents are slow
417
+
418
+ **Solution**:
419
+
420
+ - This is normal for large codebases
421
+ - Agents run in parallel when possible
422
+ - The thoroughness pays off in better understanding
423
+
424
+ ### Too many clarifying questions
425
+
426
+ **Issue**: Phase 3 asks too many questions
427
+
428
+ **Solution**:
429
+
430
+ - Be more specific in your initial feature request
431
+ - Provide context about constraints upfront
432
+ - Say "whatever you think is best" if truly no preference
433
+
434
+ ### Architecture options overwhelming
435
+
436
+ **Issue**: Too many architecture options in Phase 4
437
+
438
+ **Solution**:
439
+
440
+ - Trust the recommendation—it's based on codebase analysis
441
+ - If still unsure, ask for more explanation
442
+ - Pick the pragmatic option when in doubt
443
+
444
+ ## Tips
445
+
446
+ - **Be specific in your feature request**: More detail = fewer clarifying questions
447
+ - **Trust the process**: Each phase builds on the previous one
448
+ - **Review agent outputs**: Agents provide valuable insights about your codebase
449
+ - **Don't skip phases**: Each phase serves a purpose
450
+ - **Use for learning**: The exploration phase teaches you about your own codebase
451
+
452
+ ## Author
453
+
454
+ Sid Bidasaria (sbidasaria@anthropic.com)
455
+
456
+ ## Version
457
+
458
+ 1.0.0