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,494 @@
1
+ # Publishing Guide - Agentic Kit
2
+
3
+ This guide documents how to publish Agentic Kit to npm.js, GitHub Packages, and Claude Code marketplaces.
4
+
5
+ ---
6
+
7
+ ## Table of Contents
8
+
9
+ 1. [Quick Publishing](#quick-publishing)
10
+ 2. [Publishing to npm.js](#publishing-to-npmjs)
11
+ 3. [Publishing to GitHub Packages](#publishing-to-github-packages)
12
+ 4. [Publishing to Both Registries](#publishing-to-both-registries)
13
+ 5. [Publishing to Claude Code Marketplace](#publishing-to-claude-code-marketplace)
14
+ 6. [Version Management](#version-management)
15
+ 7. [Troubleshooting](#troubleshooting)
16
+
17
+ ---
18
+
19
+ ## Quick Publishing
20
+
21
+ ### Publish to Both npm.js and GitHub Packages
22
+
23
+ ```bash
24
+ # One command to publish everywhere!
25
+ npm run publish:both
26
+ ```
27
+
28
+ **Requirements:**
29
+ - Logged into npm: `npm login`
30
+ - GitHub token set: `export GITHUB_TOKEN=ghp_your_token_here`
31
+ - See [First-Time Setup](#first-time-setup) below
32
+
33
+ ### Individual Registries
34
+
35
+ ```bash
36
+ # Just npm.js
37
+ npm run publish:npm
38
+
39
+ # Just GitHub Packages
40
+ npm run publish:github
41
+ ```
42
+
43
+ ---
44
+
45
+ ## First-Time Setup
46
+
47
+ ### Setup for npm.js
48
+
49
+ ```bash
50
+ npm login
51
+ ```
52
+
53
+ Enter your npm credentials when prompted.
54
+
55
+ ### Setup for GitHub Packages
56
+
57
+ **One-time setup required.** See detailed guide: [`GITHUB_SETUP.md`](GITHUB_SETUP.md)
58
+
59
+ **Quick version:**
60
+
61
+ 1. **Create GitHub Token:** https://github.com/settings/tokens
62
+ - Click "Generate new token (classic)"
63
+ - Select scopes: `write:packages`, `read:packages`
64
+ - Copy token (starts with `ghp_`)
65
+
66
+ 2. **Set Environment Variable:**
67
+
68
+ **Option A: Using `pass` (Recommended)** 🔐
69
+ ```bash
70
+ # Store token in pass
71
+ pass insert amr/github
72
+
73
+ # Export from pass (or the script will do it automatically!)
74
+ export GITHUB_TOKEN=$(pass show amr/github)
75
+ ```
76
+ **See:** [PASS_INTEGRATION.md](PASS_INTEGRATION.md)
77
+
78
+ **Option B: Direct export**
79
+ ```bash
80
+ # Linux/macOS
81
+ export GITHUB_TOKEN=ghp_your_token_here
82
+
83
+ # Add to ~/.bashrc or ~/.zshrc for persistence
84
+ echo 'export GITHUB_TOKEN=ghp_your_token_here' >> ~/.bashrc
85
+ ```
86
+
87
+ 3. **Verify:**
88
+ ```bash
89
+ echo $GITHUB_TOKEN # Should show your token
90
+ ```
91
+
92
+ ---
93
+
94
+ ## Publishing to npm.js
95
+
96
+ ### Prerequisites
97
+
98
+ - npm account (create at https://www.npmjs.com/signup)
99
+ - Access to the `agentflow` package
100
+ - All changes committed to git
101
+
102
+ ### Publishing Process
103
+
104
+ #### 1. Login to npm
105
+
106
+ ```bash
107
+ npm login
108
+ ```
109
+
110
+ #### 2. Validate Package
111
+
112
+ ```bash
113
+ npm run validate
114
+ ```
115
+
116
+ This checks:
117
+ - ✅ All manifest files exist and are valid JSON
118
+ - ✅ Variant configurations are correct
119
+ - ✅ All required files are present
120
+ - ✅ CLI script has proper shebang
121
+
122
+ #### 3. Publish
123
+
124
+ ```bash
125
+ npm run publish:npm
126
+ ```
127
+
128
+ Or manually:
129
+ ```bash
130
+ npm publish --access public
131
+ ```
132
+
133
+ #### 4. Verify Publication
134
+
135
+ Check your package page:
136
+ - https://www.npmjs.com/package/agentflow
137
+
138
+ Test installation:
139
+ ```bash
140
+ npx agentflow --help
141
+ npx agentic-kit --variant=lite
142
+ ```
143
+
144
+ ---
145
+
146
+ ## Publishing to GitHub Packages
147
+
148
+ ### Prerequisites
149
+
150
+ - GitHub account with access to `amrhas82/agentic-kit` repository
151
+ - GitHub Personal Access Token (see [GITHUB_SETUP.md](GITHUB_SETUP.md))
152
+ - `GITHUB_TOKEN` environment variable set
153
+
154
+ ### Publishing Process
155
+
156
+ #### 1. Verify GitHub Token
157
+
158
+ ```bash
159
+ echo $GITHUB_TOKEN # Should show ghp_...
160
+ ```
161
+
162
+ If not set, see [First-Time Setup](#first-time-setup).
163
+
164
+ #### 2. Publish
165
+
166
+ ```bash
167
+ npm run publish:github
168
+ ```
169
+
170
+ Or manually:
171
+ ```bash
172
+ npm publish --registry https://npm.pkg.github.com
173
+ ```
174
+
175
+ #### 3. Verify Publication
176
+
177
+ 1. Go to: https://github.com/amrhas82/agentflow
178
+ 2. Click **"Packages"** on the right sidebar
179
+ 3. You should see `agentflow` listed
180
+
181
+ ### Installing from GitHub Packages
182
+
183
+ Users need to configure their `.npmrc`:
184
+
185
+ ```
186
+ @amrhas82:registry=https://npm.pkg.github.com
187
+ //npm.pkg.github.com/:_authToken=THEIR_GITHUB_TOKEN
188
+ ```
189
+
190
+ Then install:
191
+ ```bash
192
+ npm install agentflow
193
+ ```
194
+
195
+ ---
196
+
197
+ ## Publishing to Both Registries
198
+
199
+ ### Automated (Recommended)
200
+
201
+ Use the publish script:
202
+
203
+ ```bash
204
+ ./publish.sh
205
+ ```
206
+
207
+ Or npm script:
208
+ ```bash
209
+ npm run publish:both
210
+ ```
211
+
212
+ This will:
213
+ 1. Validate package
214
+ 2. Publish to npm.js
215
+ 3. Publish to GitHub Packages (if `GITHUB_TOKEN` is set)
216
+
217
+ ### Manual
218
+
219
+ ```bash
220
+ # 1. Publish to npm.js
221
+ npm publish --registry https://registry.npmjs.org --access public
222
+
223
+ # 2. Publish to GitHub Packages
224
+ npm publish --registry https://npm.pkg.github.com
225
+ ```
226
+
227
+ ### Why Publish to Both?
228
+
229
+ **npm.js:**
230
+ - ✅ Easier for users (no GitHub token required)
231
+ - ✅ Works with `npx` out of the box
232
+ - ✅ Better discovery/SEO
233
+ - ✅ Standard npm workflow
234
+
235
+ **GitHub Packages:**
236
+ - ✅ Integrated with GitHub repository
237
+ - ✅ Shows up on repo page
238
+ - ✅ Easier access control (can be private)
239
+ - ✅ Better for GitHub-based workflows
240
+
241
+ ---
242
+
243
+ ## Publishing to Claude Code Marketplace
244
+
245
+ ### Current Options (2025)
246
+
247
+ Claude Code doesn't have a centralized official Anthropic marketplace yet. There are three distribution methods:
248
+
249
+ ### Option 1: Direct GitHub Installation ⭐ (Recommended)
250
+
251
+ Users can install directly from GitHub without marketplace approval:
252
+
253
+ ```
254
+ /plugin add github:amrhas82/agentflow
255
+ ```
256
+
257
+ **No submission required!** Works as soon as you push to GitHub.
258
+
259
+ **Requirements:**
260
+ - ✅ Repository must be public
261
+ - ✅ `.claude-plugin/` directory with manifests
262
+ - ✅ All plugin files in repository root
263
+
264
+ ### Option 2: Create Your Own Marketplace
265
+
266
+ Host your own marketplace catalog: `.claude-plugin/marketplace.json`
267
+
268
+ ```json
269
+ {
270
+ "name": "Agentic Kit Official",
271
+ "owner": "amrhas82",
272
+ "description": "Official marketplace for Agentic Kit variants",
273
+ "plugins": [
274
+ {
275
+ "name": "agentflow-standard",
276
+ "source": "github:amrhas82/agentflow",
277
+ "description": "Standard variant (13 agents, 8 skills)"
278
+ },
279
+ {
280
+ "name": "agentic-kit-lite",
281
+ "source": "github:amrhas82/agentflow",
282
+ "description": "Lite variant (3 agents)"
283
+ },
284
+ {
285
+ "name": "agentic-kit-pro",
286
+ "source": "github:amrhas82/agentflow",
287
+ "description": "Pro variant (13 agents, 14 skills)"
288
+ }
289
+ ]
290
+ }
291
+ ```
292
+
293
+ Users install via:
294
+ ```
295
+ /plugin marketplace add github:amrhas82/agentflow
296
+ ```
297
+
298
+ ### Option 3: Submit to Community Marketplaces
299
+
300
+ **claudecodecommands.directory** (Largest Community Marketplace)
301
+
302
+ 1. Visit: https://claudecodecommands.directory/submit
303
+ 2. Fill out submission form
304
+ 3. Wait for review (1-3 days)
305
+ 4. Users can then search and install
306
+
307
+ ---
308
+
309
+ ## Version Management
310
+
311
+ ### Using UPDATE_VERSION.sh (Recommended)
312
+
313
+ Automatically updates version across all files:
314
+
315
+ ```bash
316
+ ./UPDATE_VERSION.sh 1.2.0
317
+ ```
318
+
319
+ This updates:
320
+ - `package.json`
321
+ - All 4 plugin manifest files in `.claude-plugin/`
322
+
323
+ ### Manual Version Update
324
+
325
+ ```bash
326
+ # Update version
327
+ npm version patch # 1.1.0 -> 1.1.1 (bug fixes)
328
+ npm version minor # 1.1.0 -> 1.2.0 (new features)
329
+ npm version major # 1.1.0 -> 2.0.0 (breaking changes)
330
+ ```
331
+
332
+ Then manually update manifest files:
333
+ - `.claude-plugin/plugin.json`
334
+ - `.claude-plugin/plugin-lite.json`
335
+ - `.claude-plugin/plugin-standard.json`
336
+ - `.claude-plugin/plugin-pro.json`
337
+
338
+ ### Complete Release Process
339
+
340
+ ```bash
341
+ # 1. Update version
342
+ ./UPDATE_VERSION.sh 1.2.0
343
+
344
+ # 2. Update CHANGELOG.md
345
+ # Add release notes for this version
346
+
347
+ # 3. Commit changes
348
+ git add .
349
+ git commit -m "Bump version to 1.2.0"
350
+ git tag v1.2.0
351
+ git push origin main --tags
352
+
353
+ # 4. Publish to both registries
354
+ npm run publish:both
355
+
356
+ # 5. Verify
357
+ # - Check npm.js: https://www.npmjs.com/package/agentflow
358
+ # - Check GitHub: https://github.com/amrhas82/agentflow/packages
359
+ ```
360
+
361
+ ---
362
+
363
+ ## Troubleshooting
364
+
365
+ ### npm.js Issues
366
+
367
+ #### Error: 403 Forbidden - Package name taken
368
+ ```
369
+ npm error 403 You do not have permission to publish
370
+ ```
371
+
372
+ **Solution:** Use scoped package name: `@username/package-name`
373
+
374
+ #### Error: 402 Payment Required
375
+ ```
376
+ npm error 402 You must sign up for private packages
377
+ ```
378
+
379
+ **Solution:** Add `--access public` flag:
380
+ ```bash
381
+ npm publish --access public
382
+ ```
383
+
384
+ #### Error: Not logged in
385
+ ```
386
+ npm error need auth
387
+ ```
388
+
389
+ **Solution:**
390
+ ```bash
391
+ npm login
392
+ ```
393
+
394
+ ### GitHub Packages Issues
395
+
396
+ #### Error: 401 Unauthorized
397
+
398
+ **Cause:** `GITHUB_TOKEN` not set or incorrect
399
+
400
+ **Solution:**
401
+ ```bash
402
+ # Check if set
403
+ echo $GITHUB_TOKEN
404
+
405
+ # Set it
406
+ export GITHUB_TOKEN=ghp_your_token_here
407
+ ```
408
+
409
+ #### Error: 403 Forbidden
410
+
411
+ **Cause:** Token missing `write:packages` scope
412
+
413
+ **Solution:**
414
+ 1. Go to https://github.com/settings/tokens
415
+ 2. Generate new token with `write:packages` scope
416
+
417
+ #### Error: 404 Not Found
418
+
419
+ **Cause:** Repository doesn't exist or name mismatch
420
+
421
+ **Solution:**
422
+ - Verify: https://github.com/amrhas82/agentflow
423
+ - Check package.json has `agentflow`
424
+
425
+ #### Package Not Showing Up
426
+
427
+ **Solution:**
428
+ - Wait 5-10 minutes (propagation delay)
429
+ - Check GitHub repo → Packages tab
430
+ - Verify publish succeeded without errors
431
+
432
+ ### General Issues
433
+
434
+ #### Validation Fails
435
+
436
+ **Problem:** `npm run validate` reports errors
437
+
438
+ **Solutions:**
439
+ - Check manifest files have correct agent/skill counts
440
+ - Ensure all agent files exist in `agents/` directory
441
+ - Verify all skill directories exist in `skills/`
442
+ - Check cli.js has shebang and is executable
443
+
444
+ #### GitHub Install Not Working
445
+
446
+ **Problem:** Users can't install via `/plugin add github:amrhas82/agentflow`
447
+
448
+ **Checklist:**
449
+ - [ ] Repository is public
450
+ - [ ] `.claude-plugin/` directory exists
451
+ - [ ] Manifests are valid JSON
452
+ - [ ] All files are pushed to GitHub
453
+
454
+ ---
455
+
456
+ ## Distribution Checklist
457
+
458
+ Before publishing a new release:
459
+
460
+ - [ ] All tests pass
461
+ - [ ] `npm run validate` succeeds
462
+ - [ ] Version bumped (via `UPDATE_VERSION.sh`)
463
+ - [ ] CHANGELOG.md updated
464
+ - [ ] README.md reflects current features
465
+ - [ ] All changes committed to git
466
+ - [ ] Git tag created (`v1.x.x`)
467
+ - [ ] Changes pushed to GitHub with tags
468
+ - [ ] Published to npm.js: `npm run publish:npm`
469
+ - [ ] Published to GitHub Packages: `npm run publish:github`
470
+ - [ ] Verified npm.js installation: `npx agentflow --help`
471
+ - [ ] Verified GitHub Packages shows package
472
+ - [ ] Verified GitHub installation: `/plugin add github:amrhas82/agentflow`
473
+
474
+ ---
475
+
476
+ ## Package URLs
477
+
478
+ After publishing, your package will be available at:
479
+
480
+ - **npm.js:** https://www.npmjs.com/package/agentflow
481
+ - **GitHub Packages:** https://github.com/amrhas82/agentflow/packages
482
+ - **GitHub Repository:** https://github.com/amrhas82/agentflow
483
+
484
+ ## Support & Resources
485
+
486
+ - **npm Documentation:** https://docs.npmjs.com/cli/v10/commands/npm-publish
487
+ - **GitHub Packages Docs:** https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry
488
+ - **Claude Code Plugin Docs:** https://docs.claude.com/en/docs/claude-code/plugin-marketplaces
489
+ - **First-Time GitHub Setup:** [GITHUB_SETUP.md](GITHUB_SETUP.md)
490
+ - **Using `pass` Password Manager:** [PASS_INTEGRATION.md](PASS_INTEGRATION.md)
491
+
492
+ ---
493
+
494
+ **Last Updated:** November 2025