liteagents 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (215) hide show
  1. package/CHANGELOG.md +441 -0
  2. package/LICENSE +21 -0
  3. package/README.md +179 -0
  4. package/cli.js +230 -0
  5. package/docs/.gitkeep +1 -0
  6. package/docs/CONTRIBUTING.md +739 -0
  7. package/docs/DUAL_PUBLISH_SUMMARY.md +177 -0
  8. package/docs/ERROR_HANDLING_IMPLEMENTATION.md +327 -0
  9. package/docs/GITHUB_PACKAGES.md +181 -0
  10. package/docs/GITHUB_SETUP.md +158 -0
  11. package/docs/INSTALLATION_DEMO.md +691 -0
  12. package/docs/INSTALLATION_LOCATIONS.md +299 -0
  13. package/docs/INSTALLER_GUIDE.md +1586 -0
  14. package/docs/INTEGRATION_ISSUES_9.1.md +341 -0
  15. package/docs/KNOWLEDGE_BASE.md +727 -0
  16. package/docs/MIGRATION.md +384 -0
  17. package/docs/PACKAGE_BASELINE.md +557 -0
  18. package/docs/PACKAGE_VALIDATION_REPORT.md +427 -0
  19. package/docs/PASS_INTEGRATION.md +307 -0
  20. package/docs/PASS_QUICK_START.md +150 -0
  21. package/docs/PRIVACY.md +203 -0
  22. package/docs/PUBLISHING.md +494 -0
  23. package/docs/QUICK-START.md +318 -0
  24. package/docs/RELEASE_NOTES_1.2.0.md +323 -0
  25. package/docs/SECURITY.md +317 -0
  26. package/docs/SILENT_MODE_GUIDE.md +526 -0
  27. package/docs/SKILLS_CONVERSION.md +154 -0
  28. package/docs/TESTING.md +582 -0
  29. package/docs/TEST_COVERAGE.md +347 -0
  30. package/docs/TROUBLESHOOTING.md +788 -0
  31. package/docs/UPDATED_VARIANT_CONFIGURATION.md +274 -0
  32. package/docs/VARIANT_CONFIGURATION.md +440 -0
  33. package/installer/cli.js +761 -0
  34. package/installer/installation-engine.js +1536 -0
  35. package/installer/package-manager.js +640 -0
  36. package/installer/path-manager.js +427 -0
  37. package/installer/report-template.js +298 -0
  38. package/installer/verification-system.js +274 -0
  39. package/package.json +83 -0
  40. package/packages/ampcode/AGENT.md +58 -0
  41. package/packages/ampcode/README.md +17 -0
  42. package/packages/ampcode/agents/1-create-prd.md +175 -0
  43. package/packages/ampcode/agents/2-generate-tasks.md +190 -0
  44. package/packages/ampcode/agents/3-process-task-list.md +225 -0
  45. package/packages/ampcode/agents/code-developer.md +198 -0
  46. package/packages/ampcode/agents/context-builder.md +142 -0
  47. package/packages/ampcode/agents/feature-planner.md +199 -0
  48. package/packages/ampcode/agents/market-researcher.md +89 -0
  49. package/packages/ampcode/agents/orchestrator.md +116 -0
  50. package/packages/ampcode/agents/quality-assurance.md +115 -0
  51. package/packages/ampcode/agents/system-architect.md +135 -0
  52. package/packages/ampcode/agents/ui-designer.md +184 -0
  53. package/packages/ampcode/commands/brainstorming.md +56 -0
  54. package/packages/ampcode/commands/code-review.md +107 -0
  55. package/packages/ampcode/commands/condition-based-waiting/example.ts +158 -0
  56. package/packages/ampcode/commands/condition-based-waiting.md +122 -0
  57. package/packages/ampcode/commands/debug.md +20 -0
  58. package/packages/ampcode/commands/docs-builder/templates.md +572 -0
  59. package/packages/ampcode/commands/docs-builder.md +106 -0
  60. package/packages/ampcode/commands/explain.md +18 -0
  61. package/packages/ampcode/commands/git-commit.md +14 -0
  62. package/packages/ampcode/commands/optimize.md +20 -0
  63. package/packages/ampcode/commands/refactor.md +21 -0
  64. package/packages/ampcode/commands/review.md +18 -0
  65. package/packages/ampcode/commands/root-cause-tracing/find-polluter.sh +63 -0
  66. package/packages/ampcode/commands/root-cause-tracing.md +176 -0
  67. package/packages/ampcode/commands/security.md +21 -0
  68. package/packages/ampcode/commands/ship.md +18 -0
  69. package/packages/ampcode/commands/skill-creator/scripts/init_skill.py +303 -0
  70. package/packages/ampcode/commands/skill-creator/scripts/package_skill.py +110 -0
  71. package/packages/ampcode/commands/skill-creator/scripts/quick_validate.py +65 -0
  72. package/packages/ampcode/commands/skill-creator.md +211 -0
  73. package/packages/ampcode/commands/stash.md +45 -0
  74. package/packages/ampcode/commands/systematic-debugging.md +297 -0
  75. package/packages/ampcode/commands/test-driven-development.md +390 -0
  76. package/packages/ampcode/commands/test-generate.md +18 -0
  77. package/packages/ampcode/commands/testing-anti-patterns.md +304 -0
  78. package/packages/ampcode/commands/verification-before-completion.md +152 -0
  79. package/packages/ampcode/settings.json +13 -0
  80. package/packages/ampcode/variants.json +8 -0
  81. package/packages/claude/CLAUDE.md +58 -0
  82. package/packages/claude/README.md +23 -0
  83. package/packages/claude/agents/1-create-prd.md +175 -0
  84. package/packages/claude/agents/2-generate-tasks.md +190 -0
  85. package/packages/claude/agents/3-process-task-list.md +225 -0
  86. package/packages/claude/agents/code-developer.md +198 -0
  87. package/packages/claude/agents/context-builder.md +142 -0
  88. package/packages/claude/agents/feature-planner.md +199 -0
  89. package/packages/claude/agents/market-researcher.md +89 -0
  90. package/packages/claude/agents/orchestrator.md +117 -0
  91. package/packages/claude/agents/quality-assurance.md +115 -0
  92. package/packages/claude/agents/system-architect.md +135 -0
  93. package/packages/claude/agents/ui-designer.md +184 -0
  94. package/packages/claude/commands/debug.md +20 -0
  95. package/packages/claude/commands/explain.md +18 -0
  96. package/packages/claude/commands/git-commit.md +14 -0
  97. package/packages/claude/commands/optimize.md +20 -0
  98. package/packages/claude/commands/refactor.md +21 -0
  99. package/packages/claude/commands/review.md +18 -0
  100. package/packages/claude/commands/security.md +21 -0
  101. package/packages/claude/commands/ship.md +18 -0
  102. package/packages/claude/commands/stash.md +45 -0
  103. package/packages/claude/commands/test-generate.md +18 -0
  104. package/packages/claude/skills/brainstorming/SKILL.md +56 -0
  105. package/packages/claude/skills/code-review/SKILL.md +107 -0
  106. package/packages/claude/skills/code-review/code-reviewer.md +146 -0
  107. package/packages/claude/skills/condition-based-waiting/SKILL.md +122 -0
  108. package/packages/claude/skills/condition-based-waiting/example.ts +158 -0
  109. package/packages/claude/skills/docs-builder/SKILL.md +106 -0
  110. package/packages/claude/skills/docs-builder/references/templates.md +572 -0
  111. package/packages/claude/skills/root-cause-tracing/SKILL.md +176 -0
  112. package/packages/claude/skills/root-cause-tracing/find-polluter.sh +63 -0
  113. package/packages/claude/skills/skill-creator/LICENSE.txt +202 -0
  114. package/packages/claude/skills/skill-creator/SKILL.md +211 -0
  115. package/packages/claude/skills/skill-creator/scripts/init_skill.py +303 -0
  116. package/packages/claude/skills/skill-creator/scripts/package_skill.py +110 -0
  117. package/packages/claude/skills/skill-creator/scripts/quick_validate.py +65 -0
  118. package/packages/claude/skills/systematic-debugging/CREATION-LOG.md +119 -0
  119. package/packages/claude/skills/systematic-debugging/SKILL.md +296 -0
  120. package/packages/claude/skills/systematic-debugging/test-academic.md +14 -0
  121. package/packages/claude/skills/systematic-debugging/test-pressure-1.md +58 -0
  122. package/packages/claude/skills/systematic-debugging/test-pressure-2.md +68 -0
  123. package/packages/claude/skills/systematic-debugging/test-pressure-3.md +69 -0
  124. package/packages/claude/skills/test-driven-development/SKILL.md +392 -0
  125. package/packages/claude/skills/testing-anti-patterns/SKILL.md +304 -0
  126. package/packages/claude/skills/verification-before-completion/SKILL.md +152 -0
  127. package/packages/claude/variants.json +9 -0
  128. package/packages/droid/AGENTS.md +52 -0
  129. package/packages/droid/README.md +17 -0
  130. package/packages/droid/change_settings.json +61 -0
  131. package/packages/droid/commands/brainstorming.md +56 -0
  132. package/packages/droid/commands/code-review.md +107 -0
  133. package/packages/droid/commands/condition-based-waiting/example.ts +158 -0
  134. package/packages/droid/commands/condition-based-waiting.md +122 -0
  135. package/packages/droid/commands/debug.md +20 -0
  136. package/packages/droid/commands/docs-builder/templates.md +572 -0
  137. package/packages/droid/commands/docs-builder.md +106 -0
  138. package/packages/droid/commands/explain.md +18 -0
  139. package/packages/droid/commands/git-commit.md +14 -0
  140. package/packages/droid/commands/optimize.md +20 -0
  141. package/packages/droid/commands/refactor.md +21 -0
  142. package/packages/droid/commands/review.md +18 -0
  143. package/packages/droid/commands/root-cause-tracing/find-polluter.sh +63 -0
  144. package/packages/droid/commands/root-cause-tracing.md +176 -0
  145. package/packages/droid/commands/security.md +21 -0
  146. package/packages/droid/commands/ship.md +18 -0
  147. package/packages/droid/commands/skill-creator/scripts/init_skill.py +303 -0
  148. package/packages/droid/commands/skill-creator/scripts/package_skill.py +110 -0
  149. package/packages/droid/commands/skill-creator/scripts/quick_validate.py +65 -0
  150. package/packages/droid/commands/skill-creator.md +211 -0
  151. package/packages/droid/commands/stash.md +45 -0
  152. package/packages/droid/commands/systematic-debugging.md +297 -0
  153. package/packages/droid/commands/test-driven-development.md +390 -0
  154. package/packages/droid/commands/test-generate.md +18 -0
  155. package/packages/droid/commands/testing-anti-patterns.md +304 -0
  156. package/packages/droid/commands/verification-before-completion.md +152 -0
  157. package/packages/droid/droids/1-create-prd.md +170 -0
  158. package/packages/droid/droids/2-generate-tasks.md +190 -0
  159. package/packages/droid/droids/3-process-task-list.md +225 -0
  160. package/packages/droid/droids/code-developer.md +198 -0
  161. package/packages/droid/droids/context-builder.md +142 -0
  162. package/packages/droid/droids/feature-planner.md +199 -0
  163. package/packages/droid/droids/market-researcher.md +89 -0
  164. package/packages/droid/droids/orchestrator.md +116 -0
  165. package/packages/droid/droids/quality-assurance.md +115 -0
  166. package/packages/droid/droids/system-architect.md +135 -0
  167. package/packages/droid/droids/ui-designer.md +184 -0
  168. package/packages/droid/variants.json +8 -0
  169. package/packages/opencode/AGENTS.md +52 -0
  170. package/packages/opencode/README.md +17 -0
  171. package/packages/opencode/agent/1-create-prd.md +179 -0
  172. package/packages/opencode/agent/2-generate-tasks.md +194 -0
  173. package/packages/opencode/agent/3-process-task-list.md +229 -0
  174. package/packages/opencode/agent/code-developer.md +202 -0
  175. package/packages/opencode/agent/context-builder.md +146 -0
  176. package/packages/opencode/agent/feature-planner.md +203 -0
  177. package/packages/opencode/agent/market-researcher.md +93 -0
  178. package/packages/opencode/agent/orchestrator.md +120 -0
  179. package/packages/opencode/agent/quality-assurance.md +119 -0
  180. package/packages/opencode/agent/system-architect.md +139 -0
  181. package/packages/opencode/agent/ui-designer.md +188 -0
  182. package/packages/opencode/command/brainstorming.md +56 -0
  183. package/packages/opencode/command/code-review.md +107 -0
  184. package/packages/opencode/command/condition-based-waiting/example.ts +158 -0
  185. package/packages/opencode/command/condition-based-waiting.md +122 -0
  186. package/packages/opencode/command/debug.md +20 -0
  187. package/packages/opencode/command/docs-builder/templates.md +572 -0
  188. package/packages/opencode/command/docs-builder.md +106 -0
  189. package/packages/opencode/command/explain.md +18 -0
  190. package/packages/opencode/command/git-commit.md +14 -0
  191. package/packages/opencode/command/optimize.md +20 -0
  192. package/packages/opencode/command/refactor.md +21 -0
  193. package/packages/opencode/command/review.md +18 -0
  194. package/packages/opencode/command/root-cause-tracing/find-polluter.sh +63 -0
  195. package/packages/opencode/command/root-cause-tracing.md +176 -0
  196. package/packages/opencode/command/security.md +21 -0
  197. package/packages/opencode/command/ship.md +18 -0
  198. package/packages/opencode/command/skill-creator/scripts/init_skill.py +303 -0
  199. package/packages/opencode/command/skill-creator/scripts/package_skill.py +110 -0
  200. package/packages/opencode/command/skill-creator/scripts/quick_validate.py +65 -0
  201. package/packages/opencode/command/skill-creator.md +211 -0
  202. package/packages/opencode/command/stash.md +45 -0
  203. package/packages/opencode/command/systematic-debugging.md +297 -0
  204. package/packages/opencode/command/test-driven-development.md +390 -0
  205. package/packages/opencode/command/test-generate.md +18 -0
  206. package/packages/opencode/command/testing-anti-patterns.md +304 -0
  207. package/packages/opencode/command/verification-before-completion.md +152 -0
  208. package/packages/opencode/opencode.jsonc +201 -0
  209. package/packages/opencode/variants.json +8 -0
  210. package/packages/subagentic-manual.md +349 -0
  211. package/postinstall.js +21 -0
  212. package/tools/ampcode/manifest-template.json +14 -0
  213. package/tools/claude/manifest-template.json +14 -0
  214. package/tools/droid/manifest-template.json +14 -0
  215. package/tools/opencode/manifest-template.json +14 -0
@@ -0,0 +1,526 @@
1
+ # Silent Mode and CI/CD Installation Guide
2
+
3
+ ## Overview
4
+
5
+ The Agentic Kit installer supports **silent mode** (also called **non-interactive mode**) for automated installations in CI/CD pipelines, Docker containers, and other scripted environments. Silent mode eliminates all user prompts and uses sensible defaults or explicitly provided configuration.
6
+
7
+ ## Table of Contents
8
+
9
+ - [Quick Start](#quick-start)
10
+ - [Command-Line Flags](#command-line-flags)
11
+ - [Configuration File Format](#configuration-file-format)
12
+ - [Exit Codes](#exit-codes)
13
+ - [Silent Mode Behavior](#silent-mode-behavior)
14
+ - [CI/CD Examples](#cicd-examples)
15
+ - [Troubleshooting](#troubleshooting)
16
+
17
+ ## Quick Start
18
+
19
+ ### Basic Silent Installation
20
+
21
+ ```bash
22
+ # Install Claude with Lite variant in silent mode
23
+ node installer/cli.js --variant lite --tools claude --silent
24
+
25
+ # Install multiple tools with Standard variant
26
+ node installer/cli.js --variant standard --tools claude,opencode --silent
27
+ ```
28
+
29
+ ### Using Configuration File
30
+
31
+ ```bash
32
+ # Create configuration file
33
+ cat > install-config.json <<EOF
34
+ {
35
+ "variant": "standard",
36
+ "tools": ["claude", "opencode"],
37
+ "paths": {
38
+ "claude": "~/.claude",
39
+ "opencode": "~/.config/opencode"
40
+ },
41
+ "silent": true
42
+ }
43
+ EOF
44
+
45
+ # Run installation
46
+ node installer/cli.js --config install-config.json
47
+ ```
48
+
49
+ ## Command-Line Flags
50
+
51
+ ### Required Flags (for non-interactive mode)
52
+
53
+ | Flag | Description | Example |
54
+ |------|-------------|---------|
55
+ | `--variant <lite\|standard\|pro>` | Package variant to install | `--variant standard` |
56
+ | `--tools <tool1,tool2,...>` | Comma-separated list of tools | `--tools claude,opencode` |
57
+
58
+ ### Optional Flags
59
+
60
+ | Flag | Description | Example |
61
+ |------|-------------|---------|
62
+ | `--silent` | Enable silent mode (no prompts) | `--silent` |
63
+ | `--non-interactive` | Alias for `--silent` | `--non-interactive` |
64
+ | `--yes`, `-y` | Auto-confirm all prompts (alias for `--silent`) | `--yes` |
65
+ | `--path <tool>=<path>` | Custom installation path for a tool | `--path claude=/custom/path` |
66
+ | `--config <file>` | Load configuration from JSON file | `--config config.json` |
67
+
68
+ ### Utility Flags
69
+
70
+ | Flag | Description | Example |
71
+ |------|-------------|---------|
72
+ | `--help`, `-h` | Display help information | `--help` |
73
+ | `--uninstall <tool>` | Uninstall a specific tool | `--uninstall claude` |
74
+
75
+ ## Configuration File Format
76
+
77
+ Configuration files must be valid JSON with the following structure:
78
+
79
+ ```json
80
+ {
81
+ "variant": "standard",
82
+ "tools": ["claude", "opencode"],
83
+ "paths": {
84
+ "claude": "~/.claude-custom",
85
+ "opencode": "~/.config/opencode-custom"
86
+ },
87
+ "silent": true
88
+ }
89
+ ```
90
+
91
+ ### Configuration Fields
92
+
93
+ | Field | Type | Required | Description |
94
+ |-------|------|----------|-------------|
95
+ | `variant` | string | Yes | Package variant: `lite`, `standard`, or `pro` |
96
+ | `tools` | array | Yes | List of tools to install (at least 1 required) |
97
+ | `paths` | object | No | Custom installation paths per tool |
98
+ | `silent` | boolean | No | Enable silent mode (default: `false`) |
99
+
100
+ ### Valid Tool IDs
101
+
102
+ - `claude` - Claude Code
103
+ - `opencode` - Opencode
104
+ - `ampcode` - Ampcode
105
+ - `droid` - Droid
106
+
107
+ ### Valid Variants
108
+
109
+ - `lite` - Minimal setup (3 agents, 0 skills) - Best for CI/CD
110
+ - `standard` - Standard setup (13 agents, 8 skills) - For most users
111
+ - `pro` - Full setup (13 agents, 22 skills) - For advanced users
112
+
113
+ ## Exit Codes
114
+
115
+ The installer uses standard exit codes for automation:
116
+
117
+ | Exit Code | Meaning | Description |
118
+ |-----------|---------|-------------|
119
+ | `0` | Success | Installation completed successfully |
120
+ | `1` | Error | Installation failed or invalid input |
121
+
122
+ ### Common Exit Code Scenarios
123
+
124
+ **Exit Code 0 (Success):**
125
+ - All tools installed successfully
126
+ - Help information displayed (`--help`)
127
+ - Uninstallation completed successfully
128
+
129
+ **Exit Code 1 (Error):**
130
+ - Invalid variant specified
131
+ - Invalid tool ID specified
132
+ - Missing required arguments (variant or tools)
133
+ - Installation failed due to errors
134
+ - Pre-installation checks failed
135
+ - Missing configuration file
136
+ - Invalid JSON in configuration file
137
+ - Permission denied errors
138
+ - Insufficient disk space
139
+
140
+ ## Silent Mode Behavior
141
+
142
+ ### Automatic Decisions
143
+
144
+ In silent mode, the installer automatically makes the following decisions:
145
+
146
+ | Scenario | Interactive Mode | Silent Mode |
147
+ |----------|------------------|-------------|
148
+ | Pre-installation warnings | Prompt user to continue | Auto-proceed with warning message |
149
+ | Installation failure (multi-tool) | Ask Continue/Quit | Auto-continue with remaining tools |
150
+ | Custom path validation | Show confirmation dialog | Use path without confirmation |
151
+ | Uninstall confirmation | Prompt Yes/No | Skip confirmation (auto-proceed) |
152
+ | Interrupted installation resume | Prompt Resume/Fresh | **Not supported** - use interactive mode |
153
+
154
+ ### Default Behaviors
155
+
156
+ **Default Paths:**
157
+ - If no custom path specified via `--path`, uses default paths:
158
+ - Claude: `~/.claude`
159
+ - Opencode: `~/.config/opencode`
160
+ - Ampcode: `~/.config/amp`
161
+ - Droid: `~/.factory`
162
+
163
+ **Error Handling:**
164
+ - **Fail fast**: Exits immediately on pre-installation check failures
165
+ - **Continue on partial failure**: Continues with remaining tools if one tool fails
166
+ - **Rollback**: Failed installations are automatically rolled back (no partial installs)
167
+
168
+ ### Output in Silent Mode
169
+
170
+ Silent mode provides minimal output:
171
+ - Pre-installation check results
172
+ - Installation progress (progress bar)
173
+ - Success/failure summary
174
+ - Error messages and actionable advice
175
+ - Installation report location
176
+
177
+ No output is suppressed entirely - you'll still see what's happening, just without interactive prompts.
178
+
179
+ ## CI/CD Examples
180
+
181
+ ### GitHub Actions
182
+
183
+ ```yaml
184
+ name: Install Agentic Kit
185
+
186
+ on: [push]
187
+
188
+ jobs:
189
+ install:
190
+ runs-on: ubuntu-latest
191
+
192
+ steps:
193
+ - uses: actions/checkout@v2
194
+
195
+ - name: Setup Node.js
196
+ uses: actions/setup-node@v2
197
+ with:
198
+ node-version: '18'
199
+
200
+ - name: Install Agentic Kit
201
+ run: |
202
+ node installer/cli.js \
203
+ --variant lite \
204
+ --tools claude \
205
+ --silent
206
+
207
+ - name: Verify Installation
208
+ run: |
209
+ test -f ~/.claude/manifest.json
210
+ echo "Installation verified successfully"
211
+ ```
212
+
213
+ ### GitLab CI
214
+
215
+ ```yaml
216
+ install_agentic_kit:
217
+ stage: setup
218
+ script:
219
+ - node installer/cli.js --variant standard --tools claude,opencode --silent
220
+ - test -f ~/.claude/manifest.json
221
+ - test -f ~/.config/opencode/manifest.json
222
+ only:
223
+ - main
224
+ ```
225
+
226
+ ### Jenkins Pipeline
227
+
228
+ ```groovy
229
+ pipeline {
230
+ agent any
231
+
232
+ stages {
233
+ stage('Install Agentic Kit') {
234
+ steps {
235
+ sh '''
236
+ node installer/cli.js \
237
+ --variant lite \
238
+ --tools claude \
239
+ --silent
240
+ '''
241
+ }
242
+ }
243
+
244
+ stage('Verify Installation') {
245
+ steps {
246
+ sh 'test -f ~/.claude/manifest.json'
247
+ }
248
+ }
249
+ }
250
+ }
251
+ ```
252
+
253
+ ### Docker
254
+
255
+ ```dockerfile
256
+ FROM node:18-alpine
257
+
258
+ WORKDIR /app
259
+
260
+ # Copy installer
261
+ COPY installer/ ./installer/
262
+ COPY packages/ ./packages/
263
+
264
+ # Install in silent mode
265
+ RUN node installer/cli.js \
266
+ --variant lite \
267
+ --tools claude \
268
+ --path claude=/app/.claude \
269
+ --silent
270
+
271
+ # Verify installation
272
+ RUN test -f /app/.claude/manifest.json
273
+
274
+ CMD ["sh"]
275
+ ```
276
+
277
+ ### Travis CI
278
+
279
+ ```yaml
280
+ language: node_js
281
+ node_js:
282
+ - "18"
283
+
284
+ script:
285
+ - node installer/cli.js --variant standard --tools claude --silent
286
+ - test -f ~/.claude/manifest.json
287
+ ```
288
+
289
+ ### CircleCI
290
+
291
+ ```yaml
292
+ version: 2.1
293
+
294
+ jobs:
295
+ install:
296
+ docker:
297
+ - image: node:18
298
+ steps:
299
+ - checkout
300
+ - run:
301
+ name: Install Agentic Kit
302
+ command: |
303
+ node installer/cli.js \
304
+ --variant lite \
305
+ --tools claude \
306
+ --silent
307
+ - run:
308
+ name: Verify Installation
309
+ command: test -f ~/.claude/manifest.json
310
+
311
+ workflows:
312
+ version: 2
313
+ install_workflow:
314
+ jobs:
315
+ - install
316
+ ```
317
+
318
+ ## Advanced Usage
319
+
320
+ ### Using Configuration File in CI/CD
321
+
322
+ ```bash
323
+ # Create config file programmatically
324
+ cat > /tmp/install-config.json <<EOF
325
+ {
326
+ "variant": "${INSTALL_VARIANT:-standard}",
327
+ "tools": ["claude", "opencode"],
328
+ "paths": {
329
+ "claude": "${CLAUDE_PATH:-~/.claude}",
330
+ "opencode": "${OPENCODE_PATH:-~/.config/opencode}"
331
+ },
332
+ "silent": true
333
+ }
334
+ EOF
335
+
336
+ # Run installation
337
+ node installer/cli.js --config /tmp/install-config.json
338
+
339
+ # Check exit code
340
+ if [ $? -eq 0 ]; then
341
+ echo "Installation successful"
342
+ else
343
+ echo "Installation failed"
344
+ exit 1
345
+ fi
346
+ ```
347
+
348
+ ### Multiple Tools with Custom Paths
349
+
350
+ ```bash
351
+ node installer/cli.js \
352
+ --variant pro \
353
+ --tools claude,opencode,ampcode \
354
+ --path claude=/opt/ai/claude \
355
+ --path opencode=/opt/ai/opencode \
356
+ --path ampcode=/opt/ai/ampcode \
357
+ --silent
358
+ ```
359
+
360
+ ### Conditional Installation
361
+
362
+ ```bash
363
+ #!/bin/bash
364
+
365
+ # Only install if not already present
366
+ if [ ! -f ~/.claude/manifest.json ]; then
367
+ echo "Installing Claude..."
368
+ node installer/cli.js --variant lite --tools claude --silent
369
+
370
+ if [ $? -eq 0 ]; then
371
+ echo "✓ Claude installed successfully"
372
+ else
373
+ echo "✗ Claude installation failed"
374
+ exit 1
375
+ fi
376
+ else
377
+ echo "Claude already installed, skipping"
378
+ fi
379
+ ```
380
+
381
+ ## Troubleshooting
382
+
383
+ ### Common Issues
384
+
385
+ **1. Exit Code 1 with "Invalid variant"**
386
+
387
+ ```bash
388
+ # ✗ Wrong
389
+ node installer/cli.js --variant basic --tools claude --silent
390
+
391
+ # ✓ Correct - use lite, standard, or pro
392
+ node installer/cli.js --variant lite --tools claude --silent
393
+ ```
394
+
395
+ **2. Exit Code 1 with "Invalid tool"**
396
+
397
+ ```bash
398
+ # ✗ Wrong
399
+ node installer/cli.js --variant lite --tools claude-code --silent
400
+
401
+ # ✓ Correct - use exact tool IDs
402
+ node installer/cli.js --variant lite --tools claude --silent
403
+ ```
404
+
405
+ **3. Pre-installation Checks Failed**
406
+
407
+ If pre-installation checks fail, review the error messages. Common causes:
408
+ - **Insufficient disk space**: Free up space or choose a different path
409
+ - **Permission denied**: Run with appropriate permissions or choose writable path
410
+ - **Missing parent directory**: Create parent directories first
411
+
412
+ ```bash
413
+ # Check disk space
414
+ df -h ~
415
+
416
+ # Create parent directory if needed
417
+ mkdir -p ~/.config
418
+
419
+ # Try installation with custom path
420
+ node installer/cli.js --variant lite --tools claude --path claude=/tmp/claude --silent
421
+ ```
422
+
423
+ **4. Package Validation Failed**
424
+
425
+ ```bash
426
+ # Verify packages directory exists
427
+ ls -la packages/
428
+
429
+ # Check package structure
430
+ ls -la packages/claude/
431
+ ls -la packages/claude/variants.json
432
+ ```
433
+
434
+ ### Debugging
435
+
436
+ To debug silent mode issues:
437
+
438
+ 1. **Check exit code:**
439
+ ```bash
440
+ node installer/cli.js --variant lite --tools claude --silent
441
+ echo "Exit code: $?"
442
+ ```
443
+
444
+ 2. **Review installation log:**
445
+ ```bash
446
+ cat ~/.agentic-kit-install.log
447
+ ```
448
+
449
+ 3. **Test without silent mode first:**
450
+ ```bash
451
+ # Run interactively to see prompts
452
+ node installer/cli.js --variant lite --tools claude
453
+ ```
454
+
455
+ 4. **Verify configuration:**
456
+ ```bash
457
+ # Test config file loading
458
+ node -e "console.log(JSON.parse(require('fs').readFileSync('config.json', 'utf8')))"
459
+ ```
460
+
461
+ ### Getting Help
462
+
463
+ If you encounter issues:
464
+
465
+ 1. Check this guide for common scenarios
466
+ 2. Review the installation log at `~/.agentic-kit-install.log`
467
+ 3. Run with `--help` to see all available options
468
+ 4. Try interactive mode first to diagnose issues
469
+ 5. Report issues at: https://github.com/amrhas82/agentflow/issues
470
+
471
+ ## Best Practices
472
+
473
+ ### For CI/CD Pipelines
474
+
475
+ 1. **Always use `--silent` flag** to prevent hanging on prompts
476
+ 2. **Specify explicit paths** to avoid home directory conflicts
477
+ 3. **Check exit codes** to detect failures
478
+ 4. **Use Lite variant** for faster CI builds (minimal footprint)
479
+ 5. **Cache installations** if possible to speed up builds
480
+ 6. **Verify installation** after completion (check manifest.json exists)
481
+
482
+ ### Example CI/CD Template
483
+
484
+ ```bash
485
+ #!/bin/bash
486
+ set -e # Exit on error
487
+
488
+ # Configuration
489
+ VARIANT="${AGENTIC_KIT_VARIANT:-lite}"
490
+ TOOLS="${AGENTIC_KIT_TOOLS:-claude}"
491
+ INSTALL_PATH="${AGENTIC_KIT_PATH:-/opt/agentic-kit}"
492
+
493
+ # Run installation
494
+ echo "Installing Agentic Kit ($VARIANT variant, tools: $TOOLS)..."
495
+ node installer/cli.js \
496
+ --variant "$VARIANT" \
497
+ --tools "$TOOLS" \
498
+ --path claude="$INSTALL_PATH/claude" \
499
+ --silent
500
+
501
+ # Verify installation
502
+ if [ -f "$INSTALL_PATH/claude/manifest.json" ]; then
503
+ echo "✓ Installation successful"
504
+ cat "$INSTALL_PATH/claude/manifest.json" | grep -E '(tool|variant|version)'
505
+ else
506
+ echo "✗ Installation verification failed"
507
+ exit 1
508
+ fi
509
+
510
+ echo "Agentic Kit ready for use!"
511
+ ```
512
+
513
+ ## Summary
514
+
515
+ Silent mode enables fully automated installations with:
516
+ - ✅ No user prompts or interaction
517
+ - ✅ Sensible defaults for all decisions
518
+ - ✅ Proper exit codes for automation
519
+ - ✅ Detailed error messages for troubleshooting
520
+ - ✅ Support for configuration files
521
+ - ✅ Multi-tool installation support
522
+ - ✅ Custom path configuration
523
+ - ✅ Automatic rollback on failures
524
+ - ✅ Comprehensive logging
525
+
526
+ Perfect for CI/CD, Docker, and automated deployment scenarios!
@@ -0,0 +1,154 @@
1
+ # Claude Skills to Droid Commands Conversion
2
+
3
+ ## Overview
4
+
5
+ This document describes the transformation of 22 Claude skills from `~/.factory/commands/` into Factory.ai CLI compatible Droid slash commands.
6
+
7
+ ## Source Material
8
+
9
+ **Original Location**: `~/.factory/commands/`
10
+ **Total Skills Transformed**: 22
11
+ **Output Location**: `/home/hamr/PycharmProjects/agentflow/commands/`
12
+
13
+ ## Conversion Process
14
+
15
+ ### 1. Research Phase
16
+ - Analyzed Factory.ai CLI slash command formatting requirements from official documentation
17
+ - Studied existing skill structures in `~/.factory/commands/`
18
+ - Identified external dependencies (scripts, templates, references, assets)
19
+
20
+ ### 2. Transformation Requirements
21
+ - **Rename Files**: Each `SKILL.md` → `{parent-folder-name}.md`
22
+ - **Factory.ai Format**: Add YAML frontmatter with `description` and `argument-hint` fields
23
+ - **Content Integration**: Merge external file contents into commands where relevant
24
+ - **Maintain Functionality**: Preserve original skill logic while making it Droid-compatible
25
+
26
+ ### 3. External Content Integration Strategy
27
+
28
+ For skills with extensive external files, I prioritized integration based on usefulness:
29
+
30
+ #### Scripts Integration
31
+ - **PDF skills**: Embedded 8 Python scripts usage patterns directly
32
+ - **Webapp testing**: Included Playwright helper script examples
33
+ - **Slack GIF creator**: Integrated core library function patterns
34
+
35
+ #### Templates Integration
36
+ - **Algorithmic art**: Merged p5.js template structures and best practices
37
+ - **Artifacts builder**: Included React/TypeScript scaffolding patterns
38
+ - **Canvas design**: Applied design philosophy templates
39
+
40
+ #### Reference Documentation
41
+ - **DOCX**: Combined JavaScript library patterns with raw XML manipulation
42
+ - **PPTX**: Integrated HTML-to-PPTX workflows with design principles
43
+ - **MCP builder**: Merged protocol documentation with implementation guides
44
+
45
+ #### Examples and Assets
46
+ - **Theme factory**: Referenced 10 theme specifications without duplicating assets
47
+ - **Brand guidelines**: Applied Anthropic color/typography standards
48
+ - **XLSX**: Integrated financial modeling standards with formula examples
49
+
50
+ ### 4. Factory.ai CLI Formatting
51
+
52
+ Each command follows the standard format:
53
+
54
+ ```yaml
55
+ ---
56
+ description: [Brief description of the skill]
57
+ argument-hint: <optional-parameters>
58
+ ---
59
+ [Content with $ARGUMENTS variable usage for parameters]
60
+ ```
61
+
62
+ **Key Features**:
63
+ - Clear, actionable descriptions
64
+ - Specific argument hints for user guidance
65
+ - Structured content with examples
66
+ - Progressive disclosure of complexity
67
+
68
+ ## Transformed Skills Categories
69
+
70
+ ### Core Development Skills (7)
71
+ - **algorithmic-art**: Algorithmic art creation with p5.js
72
+ - **artifacts-builder**: React/TypeScript artifact development
73
+ - **canvas-design**: Visual art creation with design philosophy
74
+ - **code-review**: Structured code review processes
75
+ - **test-driven-development**: TDD red-green-refactor cycle
76
+ - **testing-anti-patterns**: Avoiding common test pitfalls
77
+ - **skill-creator**: Creating effective Claude skills
78
+
79
+ ### Debugging & Quality (4)
80
+ - **systematic-debugging**: Four-phase debugging framework
81
+ - **root-cause-tracing**: Backward tracing to find original triggers
82
+ - **condition-based-waiting**: Eliminating flaky tests from timing guesses
83
+ - **verification-before-completion**: Evidence-based completion claims
84
+
85
+ ### Communication & Documentation (4)
86
+ - **brainstorming**: Idea refinement through collaborative dialogue
87
+ - **internal-comms**: Company-approved communication formats
88
+ - **brand-guidelines**: Anthropic brand identity application
89
+ - **mcp-builder**: Model Context Protocol server development
90
+
91
+ ### File Processing & Office Tools (4)
92
+ - **pdf**: Comprehensive PDF manipulation and forms
93
+ - **docx**: Word document creation and manipulation
94
+ - **pptx**: PowerPoint presentation development
95
+ - **xlsx**: Spreadsheet creation with formulas and analysis
96
+
97
+ ### Web & API Integration (2)
98
+ - **webapp-testing**: Playwright-based web application testing
99
+ - **theme-factory**: Professional theme application
100
+
101
+ ### Creative & Animation (1)
102
+ - **slack-gif-creator**: Slack-optimized animated GIFs
103
+
104
+ ## Quality Standards Applied
105
+
106
+ ### Content Preservation
107
+ - ✅ All original functionality maintained
108
+ - ✅ Code examples preserved and enhanced
109
+ - ✅ Best practices and patterns documented
110
+ - ✅ Error handling and edge cases included
111
+
112
+ ### Droid Compatibility
113
+ - ✅ YAML frontmatter properly formatted
114
+ - ✅ Clear argument hints for user guidance
115
+ - ✅ Progressive complexity disclosure
116
+ - ✅ Cross-references and dependencies noted
117
+
118
+ ### User Experience
119
+ - ✅ Concrete examples for each major use case
120
+ - ✅ Clear categorization by purpose
121
+ - ✅ Comprehensive but not overwhelming
122
+ - ✅ Ready-to-use command syntax
123
+
124
+ ## Usage
125
+
126
+ All commands are now available as Droid slash commands:
127
+
128
+ ```
129
+ /command-name <optional-arguments>
130
+ ```
131
+
132
+ Each command includes:
133
+ - Clear purpose and when to use
134
+ - Concrete examples with expected arguments
135
+ - Best practices and common patterns
136
+ - Integration with external tools where relevant
137
+
138
+ ## Benefits of Transformation
139
+
140
+ 1. **Unified Interface**: All skills now accessible through consistent `/command-name` syntax
141
+ 2. **Enhanced Discoverability**: Categorized organization with clear descriptions
142
+ 3. **Improved Integration**: External dependencies merged into self-contained commands
143
+ 4. **Better UX**: Progressive disclosure with concrete examples
144
+ 5. **Factory.ai Compliance**: Full compatibility with Droid CLI requirements
145
+
146
+ ## Technical Implementation
147
+
148
+ - **Total Files Created**: 22 command files + 1 README + 1 conversion guide
149
+ - **Lines of Documentation**: ~3,000 lines across all commands
150
+ - **External Files Integrated**: 50+ scripts, templates, and reference files
151
+ - **Code Examples**: 100+ practical implementation examples
152
+ - **Categories**: 6 logical groupings for easy navigation
153
+
154
+ This transformation enables seamless access to Claude's specialized capabilities through the Factory.ai CLI, maintaining full functionality while improving discoverability and usability.