@relipa/ai-flow-kit 0.0.1

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 (204) hide show
  1. package/AIFLOW.md +432 -0
  2. package/CHANGELOG.md +78 -0
  3. package/CONTRIBUTING.md +351 -0
  4. package/IMPLEMENTATION_SUMMARY.md +348 -0
  5. package/QUICK_START.md +392 -0
  6. package/README.md +323 -0
  7. package/bin/aiflow.js +178 -0
  8. package/custom/mcp-presets/README.md +138 -0
  9. package/custom/mcp-presets/backlog.json +15 -0
  10. package/custom/mcp-presets/figma.json +15 -0
  11. package/custom/mcp-presets/google-sheets.json +14 -0
  12. package/custom/mcp-presets/jira.json +16 -0
  13. package/custom/prompts/bug-fix.md +149 -0
  14. package/custom/prompts/feature.md +190 -0
  15. package/custom/prompts/investigation.md +164 -0
  16. package/custom/rules/code-style.md +7 -0
  17. package/custom/rules/java/code-style.md +11 -0
  18. package/custom/rules/java/naming.md +17 -0
  19. package/custom/rules/java/review-checklist.md +36 -0
  20. package/custom/rules/javascript/code-style.md +12 -0
  21. package/custom/rules/javascript/naming.md +14 -0
  22. package/custom/rules/naming.md +9 -0
  23. package/custom/rules/php/code-style.md +10 -0
  24. package/custom/rules/php/naming.md +15 -0
  25. package/custom/rules/review-checklist.md +9 -0
  26. package/custom/skills/figma-to-component/SKILL.md +207 -0
  27. package/custom/skills/generate-spec/SKILL.md +97 -0
  28. package/custom/skills/impact-analysis/SKILL.md +94 -0
  29. package/custom/skills/investigate-bug/SKILL.md +93 -0
  30. package/custom/skills/report-customer/SKILL.md +95 -0
  31. package/custom/skills/review-plan/SKILL.md +158 -0
  32. package/custom/skills/validate-ticket/SKILL.md +240 -0
  33. package/custom/templates/laravel.md +90 -0
  34. package/custom/templates/nextjs.md +89 -0
  35. package/custom/templates/reactjs.md +567 -0
  36. package/custom/templates/spring-boot.md +598 -0
  37. package/custom/templates/vue-nuxt.md +89 -0
  38. package/docs/architecture.md +395 -0
  39. package/docs/cli-reference.md +438 -0
  40. package/docs/configuration.md +412 -0
  41. package/docs/getting-started.md +248 -0
  42. package/docs/troubleshooting.md +587 -0
  43. package/docs/workflows/bug-fix.md +126 -0
  44. package/docs/workflows/feature.md +123 -0
  45. package/docs/workflows/impact-analysis.md +13 -0
  46. package/docs/workflows/investigation.md +13 -0
  47. package/docs/workflows/refactor.md +13 -0
  48. package/index.js +27 -0
  49. package/package.json +70 -0
  50. package/scripts/config.js +317 -0
  51. package/scripts/context.js +117 -0
  52. package/scripts/detect.js +239 -0
  53. package/scripts/doctor.js +48 -0
  54. package/scripts/guide.js +282 -0
  55. package/scripts/hooks/session-start.js +140 -0
  56. package/scripts/init.js +453 -0
  57. package/scripts/memory.js +247 -0
  58. package/scripts/prompt.js +392 -0
  59. package/scripts/remove.js +170 -0
  60. package/scripts/update.js +111 -0
  61. package/scripts/use.js +570 -0
  62. package/scripts/validate.js +303 -0
  63. package/upstream/.claude-plugin/marketplace.json +20 -0
  64. package/upstream/.claude-plugin/plugin.json +20 -0
  65. package/upstream/.codex/INSTALL.md +67 -0
  66. package/upstream/.cursor-plugin/plugin.json +25 -0
  67. package/upstream/.gitattributes +18 -0
  68. package/upstream/.github/FUNDING.yml +3 -0
  69. package/upstream/.github/ISSUE_TEMPLATE/bug_report.md +52 -0
  70. package/upstream/.github/ISSUE_TEMPLATE/config.yml +5 -0
  71. package/upstream/.github/ISSUE_TEMPLATE/feature_request.md +34 -0
  72. package/upstream/.github/ISSUE_TEMPLATE/platform_support.md +23 -0
  73. package/upstream/.github/PULL_REQUEST_TEMPLATE.md +87 -0
  74. package/upstream/.opencode/INSTALL.md +83 -0
  75. package/upstream/.opencode/plugins/superpowers.js +112 -0
  76. package/upstream/.version-bump.json +19 -0
  77. package/upstream/AGENTS.md +1 -0
  78. package/upstream/CHANGELOG.md +13 -0
  79. package/upstream/CLAUDE.md +85 -0
  80. package/upstream/CODE_OF_CONDUCT.md +128 -0
  81. package/upstream/GEMINI.md +2 -0
  82. package/upstream/LICENSE +21 -0
  83. package/upstream/README.md +190 -0
  84. package/upstream/RELEASE-NOTES.md +1096 -0
  85. package/upstream/agents/code-reviewer.md +48 -0
  86. package/upstream/commands/brainstorm.md +5 -0
  87. package/upstream/commands/execute-plan.md +5 -0
  88. package/upstream/commands/write-plan.md +5 -0
  89. package/upstream/docs/README.codex.md +126 -0
  90. package/upstream/docs/README.opencode.md +130 -0
  91. package/upstream/docs/plans/2025-11-22-opencode-support-design.md +294 -0
  92. package/upstream/docs/plans/2025-11-22-opencode-support-implementation.md +1095 -0
  93. package/upstream/docs/plans/2025-11-28-skills-improvements-from-user-feedback.md +711 -0
  94. package/upstream/docs/plans/2026-01-17-visual-brainstorming.md +571 -0
  95. package/upstream/docs/superpowers/plans/2026-01-22-document-review-system.md +301 -0
  96. package/upstream/docs/superpowers/plans/2026-02-19-visual-brainstorming-refactor.md +523 -0
  97. package/upstream/docs/superpowers/plans/2026-03-11-zero-dep-brainstorm-server.md +479 -0
  98. package/upstream/docs/superpowers/plans/2026-03-23-codex-app-compatibility.md +564 -0
  99. package/upstream/docs/superpowers/specs/2026-01-22-document-review-system-design.md +136 -0
  100. package/upstream/docs/superpowers/specs/2026-02-19-visual-brainstorming-refactor-design.md +162 -0
  101. package/upstream/docs/superpowers/specs/2026-03-11-zero-dep-brainstorm-server-design.md +118 -0
  102. package/upstream/docs/superpowers/specs/2026-03-23-codex-app-compatibility-design.md +244 -0
  103. package/upstream/docs/testing.md +303 -0
  104. package/upstream/docs/windows/polyglot-hooks.md +212 -0
  105. package/upstream/gemini-extension.json +6 -0
  106. package/upstream/hooks/hooks-cursor.json +10 -0
  107. package/upstream/hooks/hooks.json +16 -0
  108. package/upstream/hooks/run-hook.cmd +46 -0
  109. package/upstream/hooks/session-start +57 -0
  110. package/upstream/package.json +6 -0
  111. package/upstream/scripts/bump-version.sh +220 -0
  112. package/upstream/skills/brainstorming/SKILL.md +164 -0
  113. package/upstream/skills/brainstorming/scripts/frame-template.html +214 -0
  114. package/upstream/skills/brainstorming/scripts/helper.js +88 -0
  115. package/upstream/skills/brainstorming/scripts/server.cjs +354 -0
  116. package/upstream/skills/brainstorming/scripts/start-server.sh +148 -0
  117. package/upstream/skills/brainstorming/scripts/stop-server.sh +56 -0
  118. package/upstream/skills/brainstorming/spec-document-reviewer-prompt.md +49 -0
  119. package/upstream/skills/brainstorming/visual-companion.md +287 -0
  120. package/upstream/skills/dispatching-parallel-agents/SKILL.md +182 -0
  121. package/upstream/skills/executing-plans/SKILL.md +70 -0
  122. package/upstream/skills/finishing-a-development-branch/SKILL.md +200 -0
  123. package/upstream/skills/receiving-code-review/SKILL.md +213 -0
  124. package/upstream/skills/requesting-code-review/SKILL.md +105 -0
  125. package/upstream/skills/requesting-code-review/code-reviewer.md +146 -0
  126. package/upstream/skills/subagent-driven-development/SKILL.md +277 -0
  127. package/upstream/skills/subagent-driven-development/code-quality-reviewer-prompt.md +26 -0
  128. package/upstream/skills/subagent-driven-development/implementer-prompt.md +113 -0
  129. package/upstream/skills/subagent-driven-development/spec-reviewer-prompt.md +61 -0
  130. package/upstream/skills/systematic-debugging/CREATION-LOG.md +119 -0
  131. package/upstream/skills/systematic-debugging/SKILL.md +296 -0
  132. package/upstream/skills/systematic-debugging/condition-based-waiting-example.ts +158 -0
  133. package/upstream/skills/systematic-debugging/condition-based-waiting.md +115 -0
  134. package/upstream/skills/systematic-debugging/defense-in-depth.md +122 -0
  135. package/upstream/skills/systematic-debugging/find-polluter.sh +63 -0
  136. package/upstream/skills/systematic-debugging/root-cause-tracing.md +169 -0
  137. package/upstream/skills/systematic-debugging/test-academic.md +14 -0
  138. package/upstream/skills/systematic-debugging/test-pressure-1.md +58 -0
  139. package/upstream/skills/systematic-debugging/test-pressure-2.md +68 -0
  140. package/upstream/skills/systematic-debugging/test-pressure-3.md +69 -0
  141. package/upstream/skills/test-driven-development/SKILL.md +371 -0
  142. package/upstream/skills/test-driven-development/testing-anti-patterns.md +299 -0
  143. package/upstream/skills/using-git-worktrees/SKILL.md +218 -0
  144. package/upstream/skills/using-superpowers/SKILL.md +117 -0
  145. package/upstream/skills/using-superpowers/references/codex-tools.md +100 -0
  146. package/upstream/skills/using-superpowers/references/copilot-tools.md +52 -0
  147. package/upstream/skills/using-superpowers/references/gemini-tools.md +33 -0
  148. package/upstream/skills/verification-before-completion/SKILL.md +139 -0
  149. package/upstream/skills/writing-plans/SKILL.md +152 -0
  150. package/upstream/skills/writing-plans/plan-document-reviewer-prompt.md +49 -0
  151. package/upstream/skills/writing-skills/SKILL.md +655 -0
  152. package/upstream/skills/writing-skills/anthropic-best-practices.md +1150 -0
  153. package/upstream/skills/writing-skills/examples/CLAUDE_MD_TESTING.md +189 -0
  154. package/upstream/skills/writing-skills/graphviz-conventions.dot +172 -0
  155. package/upstream/skills/writing-skills/persuasion-principles.md +187 -0
  156. package/upstream/skills/writing-skills/render-graphs.js +168 -0
  157. package/upstream/skills/writing-skills/testing-skills-with-subagents.md +384 -0
  158. package/upstream/tests/brainstorm-server/package-lock.json +36 -0
  159. package/upstream/tests/brainstorm-server/package.json +10 -0
  160. package/upstream/tests/brainstorm-server/server.test.js +427 -0
  161. package/upstream/tests/brainstorm-server/windows-lifecycle.test.sh +351 -0
  162. package/upstream/tests/brainstorm-server/ws-protocol.test.js +392 -0
  163. package/upstream/tests/claude-code/README.md +158 -0
  164. package/upstream/tests/claude-code/analyze-token-usage.py +168 -0
  165. package/upstream/tests/claude-code/run-skill-tests.sh +187 -0
  166. package/upstream/tests/claude-code/test-document-review-system.sh +177 -0
  167. package/upstream/tests/claude-code/test-helpers.sh +202 -0
  168. package/upstream/tests/claude-code/test-subagent-driven-development-integration.sh +314 -0
  169. package/upstream/tests/claude-code/test-subagent-driven-development.sh +165 -0
  170. package/upstream/tests/explicit-skill-requests/prompts/action-oriented.txt +3 -0
  171. package/upstream/tests/explicit-skill-requests/prompts/after-planning-flow.txt +17 -0
  172. package/upstream/tests/explicit-skill-requests/prompts/claude-suggested-it.txt +11 -0
  173. package/upstream/tests/explicit-skill-requests/prompts/i-know-what-sdd-means.txt +8 -0
  174. package/upstream/tests/explicit-skill-requests/prompts/mid-conversation-execute-plan.txt +3 -0
  175. package/upstream/tests/explicit-skill-requests/prompts/please-use-brainstorming.txt +1 -0
  176. package/upstream/tests/explicit-skill-requests/prompts/skip-formalities.txt +3 -0
  177. package/upstream/tests/explicit-skill-requests/prompts/subagent-driven-development-please.txt +1 -0
  178. package/upstream/tests/explicit-skill-requests/prompts/use-systematic-debugging.txt +1 -0
  179. package/upstream/tests/explicit-skill-requests/run-all.sh +70 -0
  180. package/upstream/tests/explicit-skill-requests/run-claude-describes-sdd.sh +100 -0
  181. package/upstream/tests/explicit-skill-requests/run-extended-multiturn-test.sh +113 -0
  182. package/upstream/tests/explicit-skill-requests/run-haiku-test.sh +144 -0
  183. package/upstream/tests/explicit-skill-requests/run-multiturn-test.sh +143 -0
  184. package/upstream/tests/explicit-skill-requests/run-test.sh +136 -0
  185. package/upstream/tests/opencode/run-tests.sh +163 -0
  186. package/upstream/tests/opencode/setup.sh +88 -0
  187. package/upstream/tests/opencode/test-plugin-loading.sh +82 -0
  188. package/upstream/tests/opencode/test-priority.sh +198 -0
  189. package/upstream/tests/opencode/test-tools.sh +104 -0
  190. package/upstream/tests/skill-triggering/prompts/dispatching-parallel-agents.txt +8 -0
  191. package/upstream/tests/skill-triggering/prompts/executing-plans.txt +1 -0
  192. package/upstream/tests/skill-triggering/prompts/requesting-code-review.txt +3 -0
  193. package/upstream/tests/skill-triggering/prompts/systematic-debugging.txt +11 -0
  194. package/upstream/tests/skill-triggering/prompts/test-driven-development.txt +7 -0
  195. package/upstream/tests/skill-triggering/prompts/writing-plans.txt +10 -0
  196. package/upstream/tests/skill-triggering/run-all.sh +60 -0
  197. package/upstream/tests/skill-triggering/run-test.sh +88 -0
  198. package/upstream/tests/subagent-driven-dev/go-fractals/design.md +81 -0
  199. package/upstream/tests/subagent-driven-dev/go-fractals/plan.md +172 -0
  200. package/upstream/tests/subagent-driven-dev/go-fractals/scaffold.sh +45 -0
  201. package/upstream/tests/subagent-driven-dev/run-test.sh +106 -0
  202. package/upstream/tests/subagent-driven-dev/svelte-todo/design.md +70 -0
  203. package/upstream/tests/subagent-driven-dev/svelte-todo/plan.md +222 -0
  204. package/upstream/tests/subagent-driven-dev/svelte-todo/scaffold.sh +46 -0
@@ -0,0 +1,412 @@
1
+ # Configuration Guide
2
+
3
+ Configure AI Flow Kit for your team's specific needs.
4
+
5
+ ## Configuration Levels
6
+
7
+ ### 1. Global Config (`~/.claude/ai-flow-kit.json`)
8
+
9
+ User-level settings, applied to all projects.
10
+
11
+ ```json
12
+ {
13
+ "defaultModel": "claude-opus-4-6",
14
+ "globalSkills": ["investigate-bug"],
15
+ "cacheContexts": true,
16
+ "contextCachePath": "~/.claude/ai-flow-kit/context-cache"
17
+ }
18
+ ```
19
+
20
+ ### 2. Project Config (`.aiflowrc.json`)
21
+
22
+ Team-level settings, applied to this project. **Recommended to commit to git.**
23
+
24
+ ```json
25
+ {
26
+ "team": "engineering-team",
27
+ "description": "Configuration for engineering team projects",
28
+
29
+ "adapters": ["jira", "google-sheets"],
30
+ "frameworks": ["laravel"],
31
+ "customSkills": ["investigate-bug", "impact-analysis"],
32
+
33
+ "defaultModel": "claude-opus-4-6",
34
+ "autoDetectTasks": true,
35
+ "strictMode": false,
36
+
37
+ "contextTemplate": "standard",
38
+ "prompting": {
39
+ "language": "english",
40
+ "detail": "comprehensive"
41
+ },
42
+
43
+ "mcp": {
44
+ "timeout": 30000,
45
+ "retries": 3,
46
+ "fallback": "manual"
47
+ },
48
+
49
+ "validation": {
50
+ "enabled": true,
51
+ "ruleSet": "default"
52
+ }
53
+ }
54
+ ```
55
+
56
+ ### 3. Local State (`.aiflow/state.json`)
57
+
58
+ Auto-generated, not recommended to edit manually.
59
+
60
+ ```json
61
+ {
62
+ "current_version": "1.0.0",
63
+ "current_context": "JIRA-123",
64
+ "installed_adapters": ["jira"],
65
+ "last_update": "2024-04-03T10:00:00Z"
66
+ }
67
+ ```
68
+
69
+ ## Configuration Options
70
+
71
+ ### Team Settings
72
+
73
+ ```json
74
+ {
75
+ "team": "my-team",
76
+ "description": "Team name and description"
77
+ }
78
+ ```
79
+
80
+ ### Adapter Configuration
81
+
82
+ ```json
83
+ {
84
+ "adapters": ["jira", "backlog", "google-sheets"],
85
+
86
+ "mcp": {
87
+ "timeout": 30000, // MCP call timeout in ms
88
+ "retries": 3, // Retry failed calls
89
+ "fallback": "manual" // Use manual entry if MCP fails
90
+ },
91
+
92
+ "jira": {
93
+ "domain": "your-company", // For auto-construction
94
+ "project": "DEFAULT" // Default project
95
+ },
96
+
97
+ "backlog": {
98
+ "spaceKey": "your-space"
99
+ }
100
+ }
101
+ ```
102
+
103
+ ### Framework Configuration
104
+
105
+ ```json
106
+ {
107
+ "frameworks": ["laravel", "nextjs"],
108
+ "defaultFramework": "laravel",
109
+
110
+ "laravel": {
111
+ "phpVersion": "8.3",
112
+ "testFramework": "pest"
113
+ },
114
+
115
+ "nextjs": {
116
+ "reactVersion": "18",
117
+ "styleFramework": "tailwind"
118
+ }
119
+ }
120
+ ```
121
+
122
+ ### Skills Configuration
123
+
124
+ ```json
125
+ {
126
+ "customSkills": ["investigate-bug", "impact-analysis"],
127
+
128
+ "skillConfig": {
129
+ "investigate-bug": {
130
+ "traceDepth": "full",
131
+ "includeGitBlame": true,
132
+ "suggestSolutions": true
133
+ },
134
+
135
+ "impact-analysis": {
136
+ "analyzeDeepDependencies": true,
137
+ "suggestTests": true
138
+ }
139
+ }
140
+ }
141
+ ```
142
+
143
+ ### AI Model Configuration
144
+
145
+ ```json
146
+ {
147
+ "defaultModel": "claude-opus-4-6",
148
+
149
+ "modelFallback": [
150
+ "claude-opus-4-6",
151
+ "claude-sonnet-4-6",
152
+ "claude-haiku-4-5"
153
+ ],
154
+
155
+ "modelConfig": {
156
+ "temperature": 0.7,
157
+ "maxTokens": 8000,
158
+ "topP": 1.0
159
+ }
160
+ }
161
+ ```
162
+
163
+ ### Task Detection Configuration
164
+
165
+ ```json
166
+ {
167
+ "autoDetectTasks": true,
168
+
169
+ "detection": {
170
+ "confidence_threshold": 0.8, // Minimum confidence to auto-detect
171
+ "fallback": "ask", // "ask" or "generic"
172
+ "debug": false // Log detection reasoning
173
+ },
174
+
175
+ "taskTypes": {
176
+ "bug-fix": {
177
+ "keywords": ["bug", "error", "broken", "crash"],
178
+ "icon": "🐛"
179
+ },
180
+
181
+ "feature": {
182
+ "keywords": ["add", "create", "build", "new"],
183
+ "icon": "✨"
184
+ },
185
+
186
+ "refactor": {
187
+ "keywords": ["improve", "optimize", "refactor"],
188
+ "icon": "♻️"
189
+ },
190
+
191
+ "investigation": {
192
+ "keywords": ["analyze", "investigate", "understand"],
193
+ "icon": "🔍"
194
+ }
195
+ }
196
+ }
197
+ ```
198
+
199
+ ### Context Configuration
200
+
201
+ ```json
202
+ {
203
+ "contextTemplate": "standard", // "standard", "minimal", "comprehensive"
204
+
205
+ "context": {
206
+ "includeGitHistory": true,
207
+ "includeFileTree": true,
208
+ "maxFileSize": 1000000, // 1MB max per file
209
+ "cacheContexts": true,
210
+ "cacheTTL": 86400 // 24 hours
211
+ }
212
+ }
213
+ ```
214
+
215
+ ### Prompting Configuration
216
+
217
+ ```json
218
+ {
219
+ "prompting": {
220
+ "language": "english", // "english", "vietnamese", etc
221
+ "detail": "comprehensive", // "minimal", "standard", "comprehensive"
222
+ "examples": true, // Include code examples
223
+ "bestPractices": true, // Include team best practices
224
+ "warningLevel": "medium" // "low", "medium", "high"
225
+ }
226
+ }
227
+ ```
228
+
229
+ ### Validation Configuration
230
+
231
+ ```json
232
+ {
233
+ "validation": {
234
+ "enabled": true,
235
+ "ruleSet": "default", // or "strict", "custom"
236
+ "autoFix": false,
237
+ "reportLevel": "warning" // "warning" or "error"
238
+ },
239
+
240
+ "validationRules": {
241
+ "codeStyle": true,
242
+ "naming": true,
243
+ "performance": true,
244
+ "security": true,
245
+ "testing": false
246
+ }
247
+ }
248
+ ```
249
+
250
+ ### Memory Configuration
251
+
252
+ ```json
253
+ {
254
+ "memory": {
255
+ "enabled": true,
256
+ "autoLoadRelevant": true,
257
+ "maxMemorySize": 1000000,
258
+ "persistPath": ".aiflow/memory"
259
+ }
260
+ }
261
+ ```
262
+
263
+ ### Strict Mode
264
+
265
+ When `"strictMode": true`, AI Flow Kit will:
266
+ - Require explicit confirmation for risky changes
267
+ - Enforce all validation rules
268
+ - Require full test coverage
269
+ - Enforce strict code standards
270
+
271
+ ```json
272
+ {
273
+ "strictMode": true,
274
+
275
+ "strictModeRules": {
276
+ "requireTests": true,
277
+ "requireDocumentation": true,
278
+ "requireReview": false,
279
+ "autoCommit": false
280
+ }
281
+ }
282
+ ```
283
+
284
+ ## Example Configurations
285
+
286
+ ### Startup Configuration (Minimal)
287
+ ```json
288
+ {
289
+ "team": "startup",
290
+ "adapters": ["google-sheets"],
291
+ "frameworks": ["nextjs"],
292
+ "autoDetectTasks": true,
293
+ "strictMode": false
294
+ }
295
+ ```
296
+
297
+ ### Enterprise Configuration (Strict)
298
+ ```json
299
+ {
300
+ "team": "enterprise-backend",
301
+ "adapters": ["jira", "google-sheets"],
302
+ "frameworks": ["laravel"],
303
+ "customSkills": ["investigate-bug", "impact-analysis", "generate-spec"],
304
+
305
+ "defaultModel": "claude-opus-4-6",
306
+ "autoDetectTasks": true,
307
+ "strictMode": true,
308
+
309
+ "validation": {
310
+ "enabled": true,
311
+ "ruleSet": "strict"
312
+ },
313
+
314
+ "strictModeRules": {
315
+ "requireTests": true,
316
+ "requireDocumentation": true,
317
+ "requireReview": true,
318
+ "autoCommit": false
319
+ }
320
+ }
321
+ ```
322
+
323
+ ### API/Backend Configuration
324
+ ```json
325
+ {
326
+ "team": "api-team",
327
+ "frameworks": ["laravel"],
328
+ "customSkills": ["investigate-bug", "impact-analysis"],
329
+
330
+ "prompting": {
331
+ "detail": "comprehensive"
332
+ },
333
+
334
+ "validationRules": {
335
+ "security": true,
336
+ "performance": true,
337
+ "testing": true
338
+ }
339
+ }
340
+ ```
341
+
342
+ ### Frontend Configuration
343
+ ```json
344
+ {
345
+ "team": "frontend-team",
346
+ "frameworks": ["nextjs"],
347
+
348
+ "prompting": {
349
+ "examples": true
350
+ },
351
+
352
+ "validationRules": {
353
+ "performance": true,
354
+ "accessibility": true,
355
+ "styling": true
356
+ }
357
+ }
358
+ ```
359
+
360
+ ## Overriding Configuration
361
+
362
+ Priority order (highest to lowest):
363
+ 1. **Environment variables** — `AIFLOW_*`
364
+ 2. **Local flags** — `aiflow prompt --model claude-opus-4-6`
365
+ 3. **Project config** — `.aiflowrc.json`
366
+ 4. **Global config** — `~/.claude/ai-flow-kit.json`
367
+ 5. **Defaults** — Built-in defaults
368
+
369
+ ### Environment Variables
370
+
371
+ ```bash
372
+ # Override model
373
+ export AIFLOW_MODEL=claude-opus-4-6
374
+
375
+ # Override adapters
376
+ export AIFLOW_ADAPTERS=jira,google-sheets
377
+
378
+ # Enable debug
379
+ export AIFLOW_DEBUG=true
380
+
381
+ # Custom context path
382
+ export AIFLOW_CONTEXT_PATH=/custom/path
383
+ ```
384
+
385
+ ## Tips
386
+
387
+ 1. **Commit `.aiflowrc.json`** — Makes it easy to onboard new team members
388
+ 2. **Don't commit global config** — It's user-specific
389
+ 3. **Use environment variables for secrets** — MCP credentials should be in env
390
+ 4. **Version your config** — If you make significant changes, increment version
391
+ 5. **Test config** — Run `aiflow doctor` to validate
392
+
393
+ ## Troubleshooting
394
+
395
+ **Q: Changes not taking effect?**
396
+ ```bash
397
+ # Check current config
398
+ aiflow doctor
399
+
400
+ # Reload config
401
+ aiflow update
402
+ ```
403
+
404
+ **Q: Unsure what config to use?**
405
+ ```bash
406
+ # Create recommended config for your stack
407
+ aiflow init --framework laravel --adapter jira
408
+ ```
409
+
410
+ ---
411
+
412
+ See [Architecture Guide](./architecture.md) for how configuration is used.
@@ -0,0 +1,248 @@
1
+ # Getting Started with AI Flow Kit
2
+
3
+ This guide walks you through setting up AI Flow Kit for your first project.
4
+
5
+ ## Prerequisites
6
+
7
+ - Node.js 14+ installed
8
+ - Claude Code installed (with access to Claude)
9
+ - A project you want to work on
10
+ - Optional: Jira, Backlog, or Google Sheets account (for pulling task context)
11
+
12
+ ## Step 1: Install AI Flow Kit
13
+
14
+ ### Global Installation (Recommended for teams)
15
+ ```bash
16
+ npm install -g ai-flow-kit
17
+ aiflow --version
18
+ ```
19
+
20
+ ### Local Installation
21
+ ```bash
22
+ cd your-project
23
+ npm install ai-flow-kit
24
+ npx aiflow --version
25
+ ```
26
+
27
+ ## Step 2: Initialize Your Project
28
+
29
+ Navigate to your project directory and run:
30
+
31
+ ```bash
32
+ aiflow init
33
+ ```
34
+
35
+ This will:
36
+ - Create `.claude/skills/` — AI skills for your team
37
+ - Create `.rules/` — Team coding standards
38
+ - Create `.aiflow/` — Internal configuration
39
+ - Prompt you to set framework (optional)
40
+
41
+ ### With Framework & Adapter
42
+
43
+ ```bash
44
+ # Full setup with framework and project management tool
45
+ aiflow init --framework laravel --adapter jira
46
+ ```
47
+
48
+ **Available frameworks:**
49
+ - `laravel` — PHP/Laravel projects
50
+ - `nextjs` — Next.js (React) projects
51
+ - `vue-nuxt` — Vue/Nuxt projects
52
+
53
+ **Available adapters:**
54
+ - `jira` — Atlassian Jira
55
+ - `backlog` — Nulab Backlog
56
+ - `google-sheets` — Google Sheets for task tracking
57
+
58
+ ## Step 3: Verify Setup
59
+
60
+ Check that everything is configured correctly:
61
+
62
+ ```bash
63
+ aiflow doctor
64
+ ```
65
+
66
+ Expected output:
67
+ ```
68
+ Running health check for AI Flow Kit...
69
+
70
+ ✓ .claude/skills exists
71
+ ✓ .rules exists
72
+ ✓ CLAUDE.md exists
73
+ ✓ Version tracking active (v1.0.0)
74
+
75
+ ✨ Everything looks healthy! You are ready to fly.
76
+ ```
77
+
78
+ ## Step 4: Your First Task
79
+
80
+ Let's walk through a complete workflow.
81
+
82
+ ### Example: Fix a Bug
83
+
84
+ **1. Load the bug context:**
85
+ ```bash
86
+ # From Jira
87
+ aiflow use JIRA-2024-123
88
+
89
+ # From Backlog
90
+ aiflow use BACKLOG-456
91
+
92
+ # Or just create context manually
93
+ aiflow use --manual
94
+ ```
95
+
96
+ This pulls:
97
+ - Bug description
98
+ - Reproduction steps
99
+ - Acceptance criteria
100
+ - Related files/links
101
+
102
+ **2. Generate a prompt:**
103
+ ```bash
104
+ aiflow prompt bug-fix
105
+ ```
106
+
107
+ This creates a prompt template with:
108
+ - Your bug context
109
+ - Team coding rules
110
+ - Investigation workflow
111
+ - Example solutions
112
+
113
+ **3. Use in Claude Code:**
114
+ - Copy the generated prompt
115
+ - Open Claude Code
116
+ - Paste the prompt
117
+ - Claude will auto-detect it's a bug fix and run the `investigate-bug` skill
118
+ - Follow along as Claude traces through your code
119
+
120
+ **4. After Claude fixes it:**
121
+ ```bash
122
+ # Verify the fix doesn't break anything
123
+ npm test
124
+
125
+ # Review changes
126
+ git diff
127
+
128
+ # Commit when satisfied
129
+ git add .
130
+ git commit -m "fix: [JIRA-2024-123] Resolve payment processing issue"
131
+ ```
132
+
133
+ ## Configuration
134
+
135
+ Create `.aiflowrc.json` in your project root (optional):
136
+
137
+ ```json
138
+ {
139
+ "team": "my-team",
140
+ "adapters": ["jira"],
141
+ "frameworks": ["laravel"],
142
+ "customSkills": ["investigate-bug", "impact-analysis"],
143
+ "defaultModel": "claude-opus-4-6",
144
+ "autoDetectTasks": true,
145
+ "strictMode": false
146
+ }
147
+ ```
148
+
149
+ See [Configuration Guide](./configuration.md) for all options.
150
+
151
+ ## Next Steps
152
+
153
+ - 📖 [Read workflow examples](./workflows/)
154
+ - ⚙️ [Configure adapters](./configuration.md)
155
+ - 🎯 [Understand available tasks](./cli-reference.md)
156
+ - 🔧 [Customize for your team](./architecture.md)
157
+
158
+ ## Common Tasks
159
+
160
+ ### Load context from a ticket
161
+ ```bash
162
+ aiflow use JIRA-123
163
+ # or
164
+ aiflow use BACKLOG-456
165
+ # or create manually
166
+ aiflow use --manual
167
+ ```
168
+
169
+ ### Generate a prompt for different task types
170
+ ```bash
171
+ aiflow prompt bug-fix # For fixing bugs
172
+ aiflow prompt feature # For building features
173
+ aiflow prompt investigation # For analyzing code
174
+ aiflow prompt refactor # For improving code
175
+ aiflow prompt impact # For assessing changes
176
+ ```
177
+
178
+ ### Update to latest version
179
+ ```bash
180
+ aiflow update
181
+ # Will download latest skills and templates
182
+ ```
183
+
184
+ ### Switch between versions
185
+ ```bash
186
+ aiflow use 1.0.0 # Use specific version
187
+ ```
188
+
189
+ ### Check project setup
190
+ ```bash
191
+ aiflow doctor
192
+ ```
193
+
194
+ ## Troubleshooting
195
+
196
+ ### "aiflow command not found"
197
+ ```bash
198
+ # If installed globally
199
+ npm install -g ai-flow-kit
200
+
201
+ # If installed locally
202
+ npx aiflow --version
203
+ ```
204
+
205
+ ### "Cannot load context from Jira"
206
+ ```bash
207
+ # Verify credentials
208
+ echo $JIRA_API_TOKEN
209
+ echo $JIRA_EMAIL
210
+ echo $JIRA_DOMAIN
211
+
212
+ # Check health
213
+ aiflow doctor
214
+ ```
215
+
216
+ ### "CLAUDE.md not found"
217
+ ```bash
218
+ # Regenerate it
219
+ aiflow init
220
+ # or with specific framework
221
+ aiflow init --framework laravel
222
+ ```
223
+
224
+ See [Troubleshooting Guide](./troubleshooting.md) for more help.
225
+
226
+ ## Tips for Success
227
+
228
+ 1. **Use task context** — Always pull from tickets when possible. It helps Claude understand requirements.
229
+
230
+ 2. **Follow the prompt template** — The generated prompt includes best practices and examples. Don't skip sections.
231
+
232
+ 3. **Commit frequently** — After Claude makes changes, review and commit. Makes it easier to review and rollback.
233
+
234
+ 4. **Use the right task type** — Picking the correct task type helps Claude use the right workflow.
235
+
236
+ 5. **Customize rules** — Add team-specific rules in `custom/rules/`. Claude will follow them.
237
+
238
+ 6. **Share with team** — Once setup, other developers just need to run `aiflow update`.
239
+
240
+ ## Getting Help
241
+
242
+ - 📖 [Full Documentation](../README.md)
243
+ - 💬 [Ask a question](../issues)
244
+ - 🤝 [See how others use it](../discussions)
245
+
246
+ ---
247
+
248
+ **Ready to supercharge your development?** Run `aiflow init` and start with your first task! 🚀