@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.
- package/AIFLOW.md +432 -0
- package/CHANGELOG.md +78 -0
- package/CONTRIBUTING.md +351 -0
- package/IMPLEMENTATION_SUMMARY.md +348 -0
- package/QUICK_START.md +392 -0
- package/README.md +323 -0
- package/bin/aiflow.js +178 -0
- package/custom/mcp-presets/README.md +138 -0
- package/custom/mcp-presets/backlog.json +15 -0
- package/custom/mcp-presets/figma.json +15 -0
- package/custom/mcp-presets/google-sheets.json +14 -0
- package/custom/mcp-presets/jira.json +16 -0
- package/custom/prompts/bug-fix.md +149 -0
- package/custom/prompts/feature.md +190 -0
- package/custom/prompts/investigation.md +164 -0
- package/custom/rules/code-style.md +7 -0
- package/custom/rules/java/code-style.md +11 -0
- package/custom/rules/java/naming.md +17 -0
- package/custom/rules/java/review-checklist.md +36 -0
- package/custom/rules/javascript/code-style.md +12 -0
- package/custom/rules/javascript/naming.md +14 -0
- package/custom/rules/naming.md +9 -0
- package/custom/rules/php/code-style.md +10 -0
- package/custom/rules/php/naming.md +15 -0
- package/custom/rules/review-checklist.md +9 -0
- package/custom/skills/figma-to-component/SKILL.md +207 -0
- package/custom/skills/generate-spec/SKILL.md +97 -0
- package/custom/skills/impact-analysis/SKILL.md +94 -0
- package/custom/skills/investigate-bug/SKILL.md +93 -0
- package/custom/skills/report-customer/SKILL.md +95 -0
- package/custom/skills/review-plan/SKILL.md +158 -0
- package/custom/skills/validate-ticket/SKILL.md +240 -0
- package/custom/templates/laravel.md +90 -0
- package/custom/templates/nextjs.md +89 -0
- package/custom/templates/reactjs.md +567 -0
- package/custom/templates/spring-boot.md +598 -0
- package/custom/templates/vue-nuxt.md +89 -0
- package/docs/architecture.md +395 -0
- package/docs/cli-reference.md +438 -0
- package/docs/configuration.md +412 -0
- package/docs/getting-started.md +248 -0
- package/docs/troubleshooting.md +587 -0
- package/docs/workflows/bug-fix.md +126 -0
- package/docs/workflows/feature.md +123 -0
- package/docs/workflows/impact-analysis.md +13 -0
- package/docs/workflows/investigation.md +13 -0
- package/docs/workflows/refactor.md +13 -0
- package/index.js +27 -0
- package/package.json +70 -0
- package/scripts/config.js +317 -0
- package/scripts/context.js +117 -0
- package/scripts/detect.js +239 -0
- package/scripts/doctor.js +48 -0
- package/scripts/guide.js +282 -0
- package/scripts/hooks/session-start.js +140 -0
- package/scripts/init.js +453 -0
- package/scripts/memory.js +247 -0
- package/scripts/prompt.js +392 -0
- package/scripts/remove.js +170 -0
- package/scripts/update.js +111 -0
- package/scripts/use.js +570 -0
- package/scripts/validate.js +303 -0
- package/upstream/.claude-plugin/marketplace.json +20 -0
- package/upstream/.claude-plugin/plugin.json +20 -0
- package/upstream/.codex/INSTALL.md +67 -0
- package/upstream/.cursor-plugin/plugin.json +25 -0
- package/upstream/.gitattributes +18 -0
- package/upstream/.github/FUNDING.yml +3 -0
- package/upstream/.github/ISSUE_TEMPLATE/bug_report.md +52 -0
- package/upstream/.github/ISSUE_TEMPLATE/config.yml +5 -0
- package/upstream/.github/ISSUE_TEMPLATE/feature_request.md +34 -0
- package/upstream/.github/ISSUE_TEMPLATE/platform_support.md +23 -0
- package/upstream/.github/PULL_REQUEST_TEMPLATE.md +87 -0
- package/upstream/.opencode/INSTALL.md +83 -0
- package/upstream/.opencode/plugins/superpowers.js +112 -0
- package/upstream/.version-bump.json +19 -0
- package/upstream/AGENTS.md +1 -0
- package/upstream/CHANGELOG.md +13 -0
- package/upstream/CLAUDE.md +85 -0
- package/upstream/CODE_OF_CONDUCT.md +128 -0
- package/upstream/GEMINI.md +2 -0
- package/upstream/LICENSE +21 -0
- package/upstream/README.md +190 -0
- package/upstream/RELEASE-NOTES.md +1096 -0
- package/upstream/agents/code-reviewer.md +48 -0
- package/upstream/commands/brainstorm.md +5 -0
- package/upstream/commands/execute-plan.md +5 -0
- package/upstream/commands/write-plan.md +5 -0
- package/upstream/docs/README.codex.md +126 -0
- package/upstream/docs/README.opencode.md +130 -0
- package/upstream/docs/plans/2025-11-22-opencode-support-design.md +294 -0
- package/upstream/docs/plans/2025-11-22-opencode-support-implementation.md +1095 -0
- package/upstream/docs/plans/2025-11-28-skills-improvements-from-user-feedback.md +711 -0
- package/upstream/docs/plans/2026-01-17-visual-brainstorming.md +571 -0
- package/upstream/docs/superpowers/plans/2026-01-22-document-review-system.md +301 -0
- package/upstream/docs/superpowers/plans/2026-02-19-visual-brainstorming-refactor.md +523 -0
- package/upstream/docs/superpowers/plans/2026-03-11-zero-dep-brainstorm-server.md +479 -0
- package/upstream/docs/superpowers/plans/2026-03-23-codex-app-compatibility.md +564 -0
- package/upstream/docs/superpowers/specs/2026-01-22-document-review-system-design.md +136 -0
- package/upstream/docs/superpowers/specs/2026-02-19-visual-brainstorming-refactor-design.md +162 -0
- package/upstream/docs/superpowers/specs/2026-03-11-zero-dep-brainstorm-server-design.md +118 -0
- package/upstream/docs/superpowers/specs/2026-03-23-codex-app-compatibility-design.md +244 -0
- package/upstream/docs/testing.md +303 -0
- package/upstream/docs/windows/polyglot-hooks.md +212 -0
- package/upstream/gemini-extension.json +6 -0
- package/upstream/hooks/hooks-cursor.json +10 -0
- package/upstream/hooks/hooks.json +16 -0
- package/upstream/hooks/run-hook.cmd +46 -0
- package/upstream/hooks/session-start +57 -0
- package/upstream/package.json +6 -0
- package/upstream/scripts/bump-version.sh +220 -0
- package/upstream/skills/brainstorming/SKILL.md +164 -0
- package/upstream/skills/brainstorming/scripts/frame-template.html +214 -0
- package/upstream/skills/brainstorming/scripts/helper.js +88 -0
- package/upstream/skills/brainstorming/scripts/server.cjs +354 -0
- package/upstream/skills/brainstorming/scripts/start-server.sh +148 -0
- package/upstream/skills/brainstorming/scripts/stop-server.sh +56 -0
- package/upstream/skills/brainstorming/spec-document-reviewer-prompt.md +49 -0
- package/upstream/skills/brainstorming/visual-companion.md +287 -0
- package/upstream/skills/dispatching-parallel-agents/SKILL.md +182 -0
- package/upstream/skills/executing-plans/SKILL.md +70 -0
- package/upstream/skills/finishing-a-development-branch/SKILL.md +200 -0
- package/upstream/skills/receiving-code-review/SKILL.md +213 -0
- package/upstream/skills/requesting-code-review/SKILL.md +105 -0
- package/upstream/skills/requesting-code-review/code-reviewer.md +146 -0
- package/upstream/skills/subagent-driven-development/SKILL.md +277 -0
- package/upstream/skills/subagent-driven-development/code-quality-reviewer-prompt.md +26 -0
- package/upstream/skills/subagent-driven-development/implementer-prompt.md +113 -0
- package/upstream/skills/subagent-driven-development/spec-reviewer-prompt.md +61 -0
- package/upstream/skills/systematic-debugging/CREATION-LOG.md +119 -0
- package/upstream/skills/systematic-debugging/SKILL.md +296 -0
- package/upstream/skills/systematic-debugging/condition-based-waiting-example.ts +158 -0
- package/upstream/skills/systematic-debugging/condition-based-waiting.md +115 -0
- package/upstream/skills/systematic-debugging/defense-in-depth.md +122 -0
- package/upstream/skills/systematic-debugging/find-polluter.sh +63 -0
- package/upstream/skills/systematic-debugging/root-cause-tracing.md +169 -0
- package/upstream/skills/systematic-debugging/test-academic.md +14 -0
- package/upstream/skills/systematic-debugging/test-pressure-1.md +58 -0
- package/upstream/skills/systematic-debugging/test-pressure-2.md +68 -0
- package/upstream/skills/systematic-debugging/test-pressure-3.md +69 -0
- package/upstream/skills/test-driven-development/SKILL.md +371 -0
- package/upstream/skills/test-driven-development/testing-anti-patterns.md +299 -0
- package/upstream/skills/using-git-worktrees/SKILL.md +218 -0
- package/upstream/skills/using-superpowers/SKILL.md +117 -0
- package/upstream/skills/using-superpowers/references/codex-tools.md +100 -0
- package/upstream/skills/using-superpowers/references/copilot-tools.md +52 -0
- package/upstream/skills/using-superpowers/references/gemini-tools.md +33 -0
- package/upstream/skills/verification-before-completion/SKILL.md +139 -0
- package/upstream/skills/writing-plans/SKILL.md +152 -0
- package/upstream/skills/writing-plans/plan-document-reviewer-prompt.md +49 -0
- package/upstream/skills/writing-skills/SKILL.md +655 -0
- package/upstream/skills/writing-skills/anthropic-best-practices.md +1150 -0
- package/upstream/skills/writing-skills/examples/CLAUDE_MD_TESTING.md +189 -0
- package/upstream/skills/writing-skills/graphviz-conventions.dot +172 -0
- package/upstream/skills/writing-skills/persuasion-principles.md +187 -0
- package/upstream/skills/writing-skills/render-graphs.js +168 -0
- package/upstream/skills/writing-skills/testing-skills-with-subagents.md +384 -0
- package/upstream/tests/brainstorm-server/package-lock.json +36 -0
- package/upstream/tests/brainstorm-server/package.json +10 -0
- package/upstream/tests/brainstorm-server/server.test.js +427 -0
- package/upstream/tests/brainstorm-server/windows-lifecycle.test.sh +351 -0
- package/upstream/tests/brainstorm-server/ws-protocol.test.js +392 -0
- package/upstream/tests/claude-code/README.md +158 -0
- package/upstream/tests/claude-code/analyze-token-usage.py +168 -0
- package/upstream/tests/claude-code/run-skill-tests.sh +187 -0
- package/upstream/tests/claude-code/test-document-review-system.sh +177 -0
- package/upstream/tests/claude-code/test-helpers.sh +202 -0
- package/upstream/tests/claude-code/test-subagent-driven-development-integration.sh +314 -0
- package/upstream/tests/claude-code/test-subagent-driven-development.sh +165 -0
- package/upstream/tests/explicit-skill-requests/prompts/action-oriented.txt +3 -0
- package/upstream/tests/explicit-skill-requests/prompts/after-planning-flow.txt +17 -0
- package/upstream/tests/explicit-skill-requests/prompts/claude-suggested-it.txt +11 -0
- package/upstream/tests/explicit-skill-requests/prompts/i-know-what-sdd-means.txt +8 -0
- package/upstream/tests/explicit-skill-requests/prompts/mid-conversation-execute-plan.txt +3 -0
- package/upstream/tests/explicit-skill-requests/prompts/please-use-brainstorming.txt +1 -0
- package/upstream/tests/explicit-skill-requests/prompts/skip-formalities.txt +3 -0
- package/upstream/tests/explicit-skill-requests/prompts/subagent-driven-development-please.txt +1 -0
- package/upstream/tests/explicit-skill-requests/prompts/use-systematic-debugging.txt +1 -0
- package/upstream/tests/explicit-skill-requests/run-all.sh +70 -0
- package/upstream/tests/explicit-skill-requests/run-claude-describes-sdd.sh +100 -0
- package/upstream/tests/explicit-skill-requests/run-extended-multiturn-test.sh +113 -0
- package/upstream/tests/explicit-skill-requests/run-haiku-test.sh +144 -0
- package/upstream/tests/explicit-skill-requests/run-multiturn-test.sh +143 -0
- package/upstream/tests/explicit-skill-requests/run-test.sh +136 -0
- package/upstream/tests/opencode/run-tests.sh +163 -0
- package/upstream/tests/opencode/setup.sh +88 -0
- package/upstream/tests/opencode/test-plugin-loading.sh +82 -0
- package/upstream/tests/opencode/test-priority.sh +198 -0
- package/upstream/tests/opencode/test-tools.sh +104 -0
- package/upstream/tests/skill-triggering/prompts/dispatching-parallel-agents.txt +8 -0
- package/upstream/tests/skill-triggering/prompts/executing-plans.txt +1 -0
- package/upstream/tests/skill-triggering/prompts/requesting-code-review.txt +3 -0
- package/upstream/tests/skill-triggering/prompts/systematic-debugging.txt +11 -0
- package/upstream/tests/skill-triggering/prompts/test-driven-development.txt +7 -0
- package/upstream/tests/skill-triggering/prompts/writing-plans.txt +10 -0
- package/upstream/tests/skill-triggering/run-all.sh +60 -0
- package/upstream/tests/skill-triggering/run-test.sh +88 -0
- package/upstream/tests/subagent-driven-dev/go-fractals/design.md +81 -0
- package/upstream/tests/subagent-driven-dev/go-fractals/plan.md +172 -0
- package/upstream/tests/subagent-driven-dev/go-fractals/scaffold.sh +45 -0
- package/upstream/tests/subagent-driven-dev/run-test.sh +106 -0
- package/upstream/tests/subagent-driven-dev/svelte-todo/design.md +70 -0
- package/upstream/tests/subagent-driven-dev/svelte-todo/plan.md +222 -0
- 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! 🚀
|