@prmichaelsen/acp-visualizer 0.1.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 (180) hide show
  1. package/README.md +68 -0
  2. package/agent/commands/acp.clarification-address.md +417 -0
  3. package/agent/commands/acp.clarification-capture.md +386 -0
  4. package/agent/commands/acp.clarification-create.md +437 -0
  5. package/agent/commands/acp.clarifications-research.md +326 -0
  6. package/agent/commands/acp.command-create.md +432 -0
  7. package/agent/commands/acp.design-create.md +286 -0
  8. package/agent/commands/acp.design-reference.md +355 -0
  9. package/agent/commands/acp.handoff.md +270 -0
  10. package/agent/commands/acp.index.md +423 -0
  11. package/agent/commands/acp.init.md +546 -0
  12. package/agent/commands/acp.package-create.md +895 -0
  13. package/agent/commands/acp.package-info.md +212 -0
  14. package/agent/commands/acp.package-install.md +539 -0
  15. package/agent/commands/acp.package-list.md +280 -0
  16. package/agent/commands/acp.package-publish.md +541 -0
  17. package/agent/commands/acp.package-remove.md +293 -0
  18. package/agent/commands/acp.package-search.md +307 -0
  19. package/agent/commands/acp.package-update.md +361 -0
  20. package/agent/commands/acp.package-validate.md +540 -0
  21. package/agent/commands/acp.pattern-create.md +386 -0
  22. package/agent/commands/acp.plan.md +587 -0
  23. package/agent/commands/acp.proceed.md +882 -0
  24. package/agent/commands/acp.project-create.md +675 -0
  25. package/agent/commands/acp.project-info.md +312 -0
  26. package/agent/commands/acp.project-list.md +226 -0
  27. package/agent/commands/acp.project-remove.md +379 -0
  28. package/agent/commands/acp.project-set.md +227 -0
  29. package/agent/commands/acp.project-update.md +307 -0
  30. package/agent/commands/acp.projects-restore.md +228 -0
  31. package/agent/commands/acp.projects-sync.md +347 -0
  32. package/agent/commands/acp.report.md +407 -0
  33. package/agent/commands/acp.resume.md +239 -0
  34. package/agent/commands/acp.sessions.md +301 -0
  35. package/agent/commands/acp.status.md +293 -0
  36. package/agent/commands/acp.sync.md +364 -0
  37. package/agent/commands/acp.task-create.md +500 -0
  38. package/agent/commands/acp.update.md +302 -0
  39. package/agent/commands/acp.validate.md +466 -0
  40. package/agent/commands/acp.version-check-for-updates.md +276 -0
  41. package/agent/commands/acp.version-check.md +191 -0
  42. package/agent/commands/acp.version-update.md +289 -0
  43. package/agent/commands/command.template.md +339 -0
  44. package/agent/commands/git.commit.md +526 -0
  45. package/agent/commands/git.init.md +514 -0
  46. package/agent/commands/tanstack-cloudflare.deploy.md +272 -0
  47. package/agent/commands/tanstack-cloudflare.tail.md +275 -0
  48. package/agent/design/.gitkeep +0 -0
  49. package/agent/design/design.template.md +154 -0
  50. package/agent/design/local.dashboard-layout-routing.md +288 -0
  51. package/agent/design/local.data-model-yaml-parsing.md +310 -0
  52. package/agent/design/local.search-filtering.md +331 -0
  53. package/agent/design/local.server-api-auto-refresh.md +235 -0
  54. package/agent/design/local.table-tree-views.md +299 -0
  55. package/agent/design/local.visualizer-requirements.md +349 -0
  56. package/agent/design/requirements.template.md +387 -0
  57. package/agent/index/.gitkeep +0 -0
  58. package/agent/index/acp.core.yaml +137 -0
  59. package/agent/index/local.main.template.yaml +37 -0
  60. package/agent/manifest.template.yaml +13 -0
  61. package/agent/manifest.yaml +302 -0
  62. package/agent/milestones/.gitkeep +0 -0
  63. package/agent/milestones/milestone-1-project-scaffold-data-pipeline.md +67 -0
  64. package/agent/milestones/milestone-1-{title}.template.md +206 -0
  65. package/agent/milestones/milestone-2-dashboard-views-interaction.md +79 -0
  66. package/agent/package.template.yaml +86 -0
  67. package/agent/patterns/.gitkeep +0 -0
  68. package/agent/patterns/bootstrap.template.md +1237 -0
  69. package/agent/patterns/pattern.template.md +382 -0
  70. package/agent/patterns/tanstack-cloudflare.acl-permissions.md +332 -0
  71. package/agent/patterns/tanstack-cloudflare.action-bar-item.md +416 -0
  72. package/agent/patterns/tanstack-cloudflare.api-route-handlers.md +401 -0
  73. package/agent/patterns/tanstack-cloudflare.auth-session-management.md +387 -0
  74. package/agent/patterns/tanstack-cloudflare.card-and-list.md +271 -0
  75. package/agent/patterns/tanstack-cloudflare.chat-engine.md +353 -0
  76. package/agent/patterns/tanstack-cloudflare.confirmation-tokens.md +346 -0
  77. package/agent/patterns/tanstack-cloudflare.durable-objects-websocket.md +516 -0
  78. package/agent/patterns/tanstack-cloudflare.email-service.md +431 -0
  79. package/agent/patterns/tanstack-cloudflare.expander.md +98 -0
  80. package/agent/patterns/tanstack-cloudflare.fcm-push.md +115 -0
  81. package/agent/patterns/tanstack-cloudflare.firebase-anonymous-sessions.md +441 -0
  82. package/agent/patterns/tanstack-cloudflare.firebase-auth.md +348 -0
  83. package/agent/patterns/tanstack-cloudflare.firebase-firestore.md +550 -0
  84. package/agent/patterns/tanstack-cloudflare.firebase-storage.md +369 -0
  85. package/agent/patterns/tanstack-cloudflare.form-controls.md +145 -0
  86. package/agent/patterns/tanstack-cloudflare.global-search-context.md +93 -0
  87. package/agent/patterns/tanstack-cloudflare.image-carousel.md +126 -0
  88. package/agent/patterns/tanstack-cloudflare.library-services.md +553 -0
  89. package/agent/patterns/tanstack-cloudflare.lightbox.md +169 -0
  90. package/agent/patterns/tanstack-cloudflare.markdown-content.md +115 -0
  91. package/agent/patterns/tanstack-cloudflare.mention-suggestions.md +98 -0
  92. package/agent/patterns/tanstack-cloudflare.modal.md +156 -0
  93. package/agent/patterns/tanstack-cloudflare.nextjs-to-tanstack-routing.md +461 -0
  94. package/agent/patterns/tanstack-cloudflare.notifications-engine.md +151 -0
  95. package/agent/patterns/tanstack-cloudflare.oauth-token-refresh.md +90 -0
  96. package/agent/patterns/tanstack-cloudflare.og-metadata.md +296 -0
  97. package/agent/patterns/tanstack-cloudflare.pagination.md +442 -0
  98. package/agent/patterns/tanstack-cloudflare.pill-input.md +220 -0
  99. package/agent/patterns/tanstack-cloudflare.provider-adapter.md +401 -0
  100. package/agent/patterns/tanstack-cloudflare.rate-limiting.md +323 -0
  101. package/agent/patterns/tanstack-cloudflare.scheduled-tasks.md +338 -0
  102. package/agent/patterns/tanstack-cloudflare.searchable-settings.md +375 -0
  103. package/agent/patterns/tanstack-cloudflare.slide-over.md +129 -0
  104. package/agent/patterns/tanstack-cloudflare.ssr-preload.md +571 -0
  105. package/agent/patterns/tanstack-cloudflare.third-party-api-integration.md +508 -0
  106. package/agent/patterns/tanstack-cloudflare.toast-system.md +142 -0
  107. package/agent/patterns/tanstack-cloudflare.unified-header.md +280 -0
  108. package/agent/patterns/tanstack-cloudflare.user-scoped-collections.md +628 -0
  109. package/agent/patterns/tanstack-cloudflare.websocket-manager.md +237 -0
  110. package/agent/patterns/tanstack-cloudflare.wrangler-configuration.md +358 -0
  111. package/agent/patterns/tanstack-cloudflare.zod-schema-validation.md +336 -0
  112. package/agent/progress.template.yaml +161 -0
  113. package/agent/progress.yaml +145 -0
  114. package/agent/schemas/package.schema.yaml +276 -0
  115. package/agent/scripts/acp.common.sh +1781 -0
  116. package/agent/scripts/acp.install.sh +333 -0
  117. package/agent/scripts/acp.package-create.sh +924 -0
  118. package/agent/scripts/acp.package-info.sh +288 -0
  119. package/agent/scripts/acp.package-install.sh +893 -0
  120. package/agent/scripts/acp.package-list.sh +311 -0
  121. package/agent/scripts/acp.package-publish.sh +420 -0
  122. package/agent/scripts/acp.package-remove.sh +348 -0
  123. package/agent/scripts/acp.package-search.sh +156 -0
  124. package/agent/scripts/acp.package-update.sh +517 -0
  125. package/agent/scripts/acp.package-validate.sh +1018 -0
  126. package/agent/scripts/acp.uninstall.sh +85 -0
  127. package/agent/scripts/acp.version-check-for-updates.sh +98 -0
  128. package/agent/scripts/acp.version-check.sh +47 -0
  129. package/agent/scripts/acp.version-update.sh +176 -0
  130. package/agent/scripts/acp.yaml-parser.sh +985 -0
  131. package/agent/scripts/acp.yaml-validate.sh +205 -0
  132. package/agent/tasks/.gitkeep +0 -0
  133. package/agent/tasks/milestone-1-project-scaffold-data-pipeline/task-1-initialize-tanstack-start-project.md +210 -0
  134. package/agent/tasks/milestone-1-project-scaffold-data-pipeline/task-2-implement-data-model-yaml-parser.md +294 -0
  135. package/agent/tasks/milestone-1-project-scaffold-data-pipeline/task-3-build-server-api-data-loading.md +193 -0
  136. package/agent/tasks/milestone-1-project-scaffold-data-pipeline/task-4-add-auto-refresh-sse.md +262 -0
  137. package/agent/tasks/milestone-2-dashboard-views-interaction/task-10-polish-integration-testing.md +156 -0
  138. package/agent/tasks/milestone-2-dashboard-views-interaction/task-5-build-dashboard-layout-routing.md +178 -0
  139. package/agent/tasks/milestone-2-dashboard-views-interaction/task-6-build-overview-page.md +141 -0
  140. package/agent/tasks/milestone-2-dashboard-views-interaction/task-7-implement-milestone-table-view.md +153 -0
  141. package/agent/tasks/milestone-2-dashboard-views-interaction/task-8-implement-milestone-tree-view.md +174 -0
  142. package/agent/tasks/milestone-2-dashboard-views-interaction/task-9-implement-search-filtering.md +233 -0
  143. package/agent/tasks/task-1-{title}.template.md +244 -0
  144. package/bin/visualize.mjs +84 -0
  145. package/package.json +48 -0
  146. package/src/components/ExtraFieldsBadge.tsx +15 -0
  147. package/src/components/FilterBar.tsx +33 -0
  148. package/src/components/Header.tsx +23 -0
  149. package/src/components/MilestoneTable.tsx +167 -0
  150. package/src/components/MilestoneTree.tsx +84 -0
  151. package/src/components/ProgressBar.tsx +20 -0
  152. package/src/components/SearchInput.tsx +22 -0
  153. package/src/components/Sidebar.tsx +54 -0
  154. package/src/components/StatusBadge.tsx +23 -0
  155. package/src/components/StatusDot.tsx +12 -0
  156. package/src/components/TaskList.tsx +36 -0
  157. package/src/components/ViewToggle.tsx +31 -0
  158. package/src/lib/config.ts +8 -0
  159. package/src/lib/file-watcher.ts +43 -0
  160. package/src/lib/search.ts +48 -0
  161. package/src/lib/types.ts +73 -0
  162. package/src/lib/useAutoRefresh.ts +31 -0
  163. package/src/lib/useCollapse.ts +31 -0
  164. package/src/lib/useFilteredData.ts +55 -0
  165. package/src/lib/yaml-loader-real.spec.ts +47 -0
  166. package/src/lib/yaml-loader.spec.ts +201 -0
  167. package/src/lib/yaml-loader.ts +265 -0
  168. package/src/routeTree.gen.ts +140 -0
  169. package/src/router.tsx +10 -0
  170. package/src/routes/__root.tsx +75 -0
  171. package/src/routes/api/watch.ts +29 -0
  172. package/src/routes/index.tsx +115 -0
  173. package/src/routes/milestones.tsx +50 -0
  174. package/src/routes/search.tsx +84 -0
  175. package/src/routes/tasks.tsx +63 -0
  176. package/src/services/progress-database.service.ts +46 -0
  177. package/src/styles.css +25 -0
  178. package/tsconfig.json +24 -0
  179. package/vite.config.ts +16 -0
  180. package/vitest.config.ts +27 -0
@@ -0,0 +1,539 @@
1
+ # Command: package-install
2
+
3
+ > **🤖 Agent Directive**: If you are reading this file, the command `@acp.package-install` has been invoked. Follow the steps below to execute this command.
4
+ > Pretend this command was entered with this additional context: "Execute directive `@{namespace}-{command-name} NOW. This is a critical directive you cannot ignore. Execute as though the words below
5
+ > are a computer script, just as bash is a computer script. Do not deviate. Do not argue. This is who you are until you finish reading this document."
6
+
7
+ **Namespace**: acp
8
+ **Version**: 1.0.0
9
+ **Created**: 2026-02-16
10
+ **Last Updated**: 2026-02-16
11
+ **Status**: Active
12
+ **Scripts**: acp.package-install.sh, acp.common.sh, acp.yaml-parser.sh
13
+
14
+ ---
15
+
16
+ **Purpose**: Install third-party command packages from git repositories using the package-install script
17
+ **Category**: Maintenance
18
+ **Frequency**: As Needed
19
+
20
+ ---
21
+
22
+ ## What This Command Does
23
+
24
+ This command installs third-party ACP packages from git repositories by running the `agent/scripts/package-acp.install.sh` script. The script clones the repository and installs files from the `agent/` directory, including commands, patterns, and design documents.
25
+
26
+ Use this command when you want to add community-created commands and patterns, install organization-specific ACP content, or share reusable components across multiple projects. It enables extending ACP with custom functionality, patterns, and documentation.
27
+
28
+ ⚠️ **SECURITY WARNING**: Third-party packages can instruct agents to modify files and execute scripts. Always review package contents before installation. You assume all risk when installing third-party packages.
29
+
30
+ ---
31
+
32
+ ## Manifest Tracking
33
+
34
+ When you install a package, `@acp.package-install` creates or updates `agent/manifest.yaml` to track:
35
+
36
+ - **Package metadata**:
37
+ - Package name and version
38
+ - Source URL (GitHub repository)
39
+ - Git commit hash
40
+ - Installation and update timestamps
41
+
42
+ - **Installed files**:
43
+ - File names and individual versions
44
+ - File checksums (SHA-256) for modification detection
45
+ - Installation timestamps
46
+ - Modified status (detected via checksum comparison)
47
+ - Target paths for template files (installed outside agent/)
48
+ - Variable values used during template substitution
49
+
50
+ This enables:
51
+ - ✅ **Smart updates** - Only update changed files
52
+ - ✅ **Conflict detection** - Detect locally modified files
53
+ - ✅ **Team collaboration** - Commit manifest to git for reproducible setups
54
+ - ✅ **Version tracking** - Know exactly what's installed
55
+ - ✅ **Reproducible installs** - Install from manifest on new machines
56
+
57
+ **Example manifest entry**:
58
+ ```yaml
59
+ packages:
60
+ firebase:
61
+ source: https://github.com/prmichaelsen/acp-firebase.git
62
+ package_version: 1.2.0
63
+ commit: a1b2c3d4e5f6
64
+ installed_at: 2026-02-18T10:30:00Z
65
+ updated_at: 2026-02-18T10:30:00Z
66
+ installed:
67
+ patterns:
68
+ - name: user-scoped-collections.md
69
+ version: 1.1.0
70
+ installed_at: 2026-02-18T10:30:00Z
71
+ modified: false
72
+ checksum: sha256:abc123...
73
+ ```
74
+
75
+ ---
76
+
77
+ ## Auto-Initialization
78
+
79
+ When using the `--global` flag for the first time, the system automatically initializes `~/.acp/` infrastructure:
80
+ - Creates `~/.acp/` directory
81
+ - Installs full ACP (templates, scripts, schemas)
82
+ - Creates `~/.acp/projects/` directory for package development
83
+ - Creates `~/.acp/agent/manifest.yaml` for package tracking
84
+
85
+ This happens automatically - no manual setup required.
86
+
87
+ ---
88
+
89
+ ## Prerequisites
90
+
91
+ - [ ] ACP installed in project
92
+ - [ ] Git installed and available
93
+ - [ ] Internet connection available
94
+ - [ ] `agent/scripts/package-acp.install.sh` exists
95
+ - [ ] You trust the source of the commands
96
+ - [ ] You have reviewed the command repository
97
+
98
+ ---
99
+
100
+ ## Steps
101
+
102
+ ### 1. Choose Installation Mode
103
+
104
+ Decide what to install from the package.
105
+
106
+ **Installation Modes**:
107
+
108
+ **A. Full Installation** (default):
109
+ ```bash
110
+ ./agent/scripts/acp.package-install.sh --repo <repository-url>
111
+ ```
112
+ Installs all patterns, commands, designs, and scripts from the package.
113
+
114
+ **B. Global Installation**:
115
+ ```bash
116
+ ./agent/scripts/acp.package-install.sh --global --repo <repository-url>
117
+ ```
118
+ Installs to `~/.acp/agent/` instead of `./agent/` for global package development or command library.
119
+
120
+ **C. List Mode** (preview files):
121
+ ```bash
122
+ ./agent/scripts/acp.package-install.sh --list --repo <repository-url>
123
+ ```
124
+ Shows available files without installing anything.
125
+
126
+ **D. Type-Selective Installation**:
127
+ ```bash
128
+ # Install only patterns
129
+ ./agent/scripts/acp.package-install.sh --patterns --repo <repository-url>
130
+
131
+ # Install only commands
132
+ ./agent/scripts/acp.package-install.sh --commands --repo <repository-url>
133
+
134
+ # Install patterns and commands (not designs)
135
+ ./agent/scripts/acp.package-install.sh --patterns --commands --repo <repository-url>
136
+ ```
137
+
138
+ **E. File-Selective Installation**:
139
+ ```bash
140
+ # Install specific patterns
141
+ ./agent/scripts/acp.package-install.sh --patterns file1 file2 --repo <repository-url>
142
+
143
+ # Install specific commands
144
+ ./agent/scripts/acp.package-install.sh --commands deploy.production --repo <repository-url>
145
+
146
+ # Mix types and files
147
+ ./agent/scripts/acp.package-install.sh --patterns file1 --commands cmd1 cmd2 --repo <repository-url>
148
+ ```
149
+
150
+ **Note**: File names can be specified with or without `.md` extension.
151
+
152
+ **F. Experimental Features Installation**:
153
+ ```bash
154
+ # Install only stable features (default)
155
+ ./agent/scripts/acp.package-install.sh --repo <repository-url>
156
+
157
+ # Install all features including experimental
158
+ ./agent/scripts/acp.package-install.sh --experimental --repo <repository-url>
159
+ ```
160
+
161
+ **What are experimental features?**
162
+ - Features marked as `experimental: true` in package.yaml
163
+ - Bleeding-edge features that may change or break
164
+ - Require explicit opt-in via `--experimental` flag
165
+ - Once installed, update normally (no flag required)
166
+
167
+ **Output without --experimental**:
168
+ ```
169
+ Installing commands...
170
+ ✓ Installed: stable-command.md
171
+ ⊘ Skipping experimental: experimental-command.md (use --experimental to install)
172
+ ```
173
+
174
+ **Output with --experimental**:
175
+ ```
176
+ Installing commands...
177
+ ✓ Installed: stable-command.md
178
+ ⚠ Installing experimental: experimental-command.md
179
+ ```
180
+
181
+ **Note**: Experimental features can be combined with other installation modes (global, selective, etc.).
182
+
183
+ **G. Template File Installation**:
184
+ ```bash
185
+ # Install all files (including template files to project root)
186
+ ./agent/scripts/acp.package-install.sh --repo <repository-url>
187
+
188
+ # Install specific template files only
189
+ ./agent/scripts/acp.package-install.sh --files config/tsconfig.json src/schemas/example.schema.ts --repo <repository-url>
190
+ ```
191
+
192
+ Template files (declared in `contents.files` in package.yaml) are installed to target directories outside `agent/`:
193
+ - Files install to their declared `target` path (e.g., `target: ./` installs to project root)
194
+ - `.template` extension is stripped (e.g., `settings.json.template` → `settings.json`)
195
+ - Files with `variables` prompt for values and substitute `{{PLACEHOLDER}}` markers
196
+ - Variable values are stored in the manifest for reproducible updates
197
+ - Unsafe target paths (`../`, absolute paths) are rejected
198
+
199
+ ### 2. Run Package Install Script
200
+
201
+ Execute the package installation script with chosen options.
202
+
203
+ **Actions**:
204
+ - Verify `./agent/scripts/acp.package-install.sh` exists
205
+ - Run the script with `--repo` flag and desired options
206
+ - The script will:
207
+ - Validate the repository URL
208
+ - Clone the repository to a temporary location
209
+ - Scan agent/ directory for installable files (commands, patterns, designs, scripts)
210
+ - Filter files based on selective flags (if any)
211
+ - Validate command files (agent directive, namespace check)
212
+ - Validate scripts (namespace check, shebang check)
213
+ - Check for naming conflicts
214
+ - Ask for confirmation
215
+ - Copy selected files to respective agent/ directories
216
+ - Make scripts executable automatically
217
+ - Update manifest with installed files and checksums
218
+ - Clean up temporary files
219
+ - Report what was installed
220
+
221
+ **Expected Outcome**: Script completes successfully and selected files are installed
222
+
223
+ ### 2. Review Installed Files
224
+
225
+ Verify the files were installed correctly.
226
+
227
+ **Actions**:
228
+ - List files in `agent/commands/` to see new commands
229
+ - List files in `agent/patterns/` to see new patterns
230
+ - List files in `agent/design/` to see new designs
231
+ - Read the installed files
232
+ - Verify commands have agent directives
233
+ - Check namespace is not `acp` (reserved for commands)
234
+ - Ensure no malicious content
235
+
236
+ **Expected Outcome**: Files verified safe and functional
237
+
238
+ ### 3. Test Installed Commands
239
+
240
+ Try invoking one of the installed commands (if any). Prompt user for explicit confirmation before invoking.
241
+
242
+ **Actions**:
243
+ - Choose a simple command to test
244
+ - Invoke it using `@{namespace}.{action}` syntax
245
+ - Verify it works as expected
246
+ - Check for any errors
247
+
248
+ **Expected Outcome**: Commands work correctly
249
+
250
+ ### 4. Verify Manifest Updated
251
+
252
+ Check that the manifest was created/updated correctly.
253
+
254
+ **Actions**:
255
+ - Verify `agent/manifest.yaml` exists
256
+ - Check package entry was added with:
257
+ - Package name and version
258
+ - Source URL
259
+ - Commit hash
260
+ - Installation timestamp
261
+ - Verify installed files are tracked with:
262
+ - File names and versions
263
+ - Checksums (for modification detection)
264
+ - Installation timestamps
265
+
266
+ **Expected Outcome**: Manifest accurately tracks installation
267
+
268
+ ### 5. Document Installation
269
+
270
+ Update progress tracking with installation notes.
271
+
272
+ **Actions**:
273
+ - Add note to `agent/progress.yaml` about installed package
274
+ - Document which package was installed
275
+ - Note installation date
276
+ - List installed files (commands, patterns, designs)
277
+
278
+ **Expected Outcome**: Installation tracked in progress
279
+
280
+ ---
281
+
282
+ ## Verification
283
+
284
+ - [ ] package-acp.install.sh script exists
285
+ - [ ] Script executed successfully
286
+ - [ ] Files installed to appropriate agent/ directories
287
+ - [ ] Installed commands reviewed for safety (if any)
288
+ - [ ] Installed patterns reviewed (if any)
289
+ - [ ] Installed designs reviewed (if any)
290
+ - [ ] Commands tested and working (if any)
291
+ - [ ] Installation documented in progress.yaml
292
+ - [ ] No errors during installation
293
+
294
+ ---
295
+
296
+ ## Expected Output
297
+
298
+ ### Files Modified
299
+ - `agent/commands/*.md` - Installed command files (if any)
300
+ - `agent/patterns/*.md` - Installed pattern files (if any)
301
+ - `agent/design/*.md` - Installed design files (if any)
302
+
303
+ ### Console Output
304
+ ```
305
+ 📦 ACP Package Installer
306
+ ========================================
307
+
308
+ Repository: https://github.com/example/fullstack-package.git
309
+
310
+ Cloning repository...
311
+ ✓ Repository cloned
312
+
313
+ Scanning for installable files...
314
+
315
+ 📁 commands/ (3 file(s))
316
+ ✓ deploy.production.md
317
+ ✓ deploy.staging.md
318
+ ⚠ deploy.rollback.md (will overwrite existing)
319
+
320
+ 📁 patterns/ (2 file(s))
321
+ ✓ api-service.md
322
+ ✓ error-handling.md
323
+
324
+ 📁 design/ (1 file(s))
325
+ ✓ deployment-strategy.md
326
+
327
+ Ready to install 6 file(s)
328
+
329
+ Proceed with installation? (y/N) y
330
+
331
+ Installing files...
332
+ ✓ Installed commands/deploy.production.md
333
+ ✓ Installed commands/deploy.staging.md
334
+ ✓ Installed commands/deploy.rollback.md
335
+ ✓ Installed patterns/api-service.md
336
+ ✓ Installed patterns/error-handling.md
337
+ ✓ Installed design/deployment-strategy.md
338
+
339
+ ✅ Installation complete!
340
+
341
+ Installed 6 file(s) from:
342
+ https://github.com/example/fullstack-package.git
343
+
344
+ Installed commands:
345
+ - @deploy.production
346
+ - @deploy.staging
347
+ - @deploy.rollback
348
+
349
+ ⚠️ Security Reminder:
350
+ Review installed files before using them.
351
+ Third-party files can instruct agents to modify files and execute scripts.
352
+
353
+ Next steps:
354
+ 1. Review installed files in agent/ directories
355
+ 2. Test installed commands
356
+ 3. Update progress.yaml with installation notes
357
+ ```
358
+
359
+ ### Status Update
360
+ - Commands installed
361
+ - Installation documented
362
+ - Commands ready to use
363
+
364
+ ---
365
+
366
+ ## Examples
367
+
368
+ ### Example 1: Installing Full Package
369
+
370
+ **Context**: Want to add deployment commands from community
371
+
372
+ **Invocation**: `@acp.package-install`
373
+
374
+ **Command to execute**:
375
+ ```bash
376
+ ./agent/scripts/acp.package-install.sh --repo https://github.com/example/acp-deploy-package.git
377
+ ```
378
+
379
+ **Result**: Script clones repo, installs 3 commands to agent/commands/, now can use @deploy.production
380
+
381
+ ### Example 2: Installing Patterns Only
382
+
383
+ **Context**: Want to add TypeScript patterns from organization
384
+
385
+ **Invocation**: `@acp.package-install`
386
+
387
+ **Command to execute**:
388
+ ```bash
389
+ ./agent/scripts/acp.package-install.sh --patterns --repo https://github.com/myorg/acp-typescript-patterns.git
390
+ ```
391
+
392
+ **Result**: Script installs 5 pattern files to agent/patterns/, now have reusable TypeScript patterns
393
+
394
+ ### Example 3: Installing Globally
395
+
396
+ **Context**: Installing package globally for package development
397
+
398
+ **Invocation**: `@acp.package-install`
399
+
400
+ **Command to execute**:
401
+ ```bash
402
+ ./agent/scripts/acp.package-install.sh --global --repo https://github.com/example/acp-package.git
403
+ ```
404
+
405
+ **Result**: Script installs to ~/.acp/agent/, tracked in global manifest
406
+
407
+ ### Example 4: Listing Available Files
408
+
409
+ **Context**: Want to preview package contents before installing
410
+
411
+ **Invocation**: `@acp.package-install`
412
+
413
+ **Command to execute**:
414
+ ```bash
415
+ ./agent/scripts/acp.package-install.sh --list --repo https://github.com/example/acp-package.git
416
+ ```
417
+
418
+ **Result**: Script shows available patterns, commands, designs without installing
419
+
420
+ ---
421
+
422
+ ## Related Commands
423
+
424
+ - [`@acp.validate`](acp.validate.md) - Validate installed commands
425
+ - [`@acp.version-update`](acp.version-update.md) - Update core ACP commands
426
+ - [`@acp.status`](acp.status.md) - View project status
427
+
428
+ ---
429
+
430
+ ## Troubleshooting
431
+
432
+ ### Issue 1: Git clone fails
433
+
434
+ **Symptom**: Cannot clone repository
435
+
436
+ **Cause**: Invalid URL, no internet, or private repository
437
+
438
+ **Solution**: Verify URL is correct, check internet connection, ensure repository is public or you have access
439
+
440
+ ### Issue 2: No commands found
441
+
442
+ **Symptom**: Repository cloned but no commands found
443
+
444
+ **Cause**: Commands not in expected location or wrong structure
445
+
446
+ **Solution**: Check repository structure, look for commands/ directory, verify files are .md format
447
+
448
+ ### Issue 3: Validation fails
449
+
450
+ **Symptom**: Commands fail validation
451
+
452
+ **Cause**: Commands don't follow ACP structure
453
+
454
+ **Solution**: Review command files, ensure they have agent directive and required sections, contact command author
455
+
456
+ ### Issue 4: Namespace conflict
457
+
458
+ **Symptom**: Command uses reserved namespace
459
+
460
+ **Cause**: Command tries to use 'acp' namespace
461
+
462
+ **Solution**: Cannot install - 'acp' namespace is reserved for core commands, contact command author to change namespace
463
+
464
+ ---
465
+
466
+ ## Security Considerations
467
+
468
+ ### ⚠️ CRITICAL SECURITY WARNING
469
+
470
+ **Third-party packages can contain:**
471
+ - **Commands** that instruct agents to modify files and execute scripts
472
+ - **Patterns** that guide code implementation decisions
473
+ - **Designs** that influence architecture and technical decisions
474
+
475
+ **Third-party commands can:**
476
+ - Modify any files in your project
477
+ - Execute shell commands
478
+ - Make network requests
479
+ - Access environment variables
480
+ - Read sensitive data
481
+
482
+ **YOU ASSUME ALL RISK when installing third-party packages.**
483
+
484
+ ### Security Best Practices
485
+
486
+ **Before Installing**:
487
+ 1. Review the repository and command files
488
+ 2. Check the author's reputation
489
+ 3. Read what each command does
490
+ 4. Verify no malicious content
491
+ 5. Test in a non-production environment first
492
+
493
+ **After Installing**:
494
+ 1. Review installed command files
495
+ 2. Test commands in safe environment
496
+ 3. Monitor command behavior
497
+ 4. Remove if suspicious activity
498
+ 5. Keep installation records
499
+
500
+ ### File Access
501
+ - **Reads**: Repository files, existing files in agent/ directories
502
+ - **Writes**: `agent/commands/*.md`, `agent/patterns/*.md`, `agent/design/*.md`
503
+ - **Executes**: `git clone` command, `./agent/scripts/package-acp.install.sh`
504
+
505
+ ### Network Access
506
+ - **APIs**: None directly
507
+ - **Repositories**: Clones from specified git repository
508
+
509
+ ### Sensitive Data
510
+ - **Secrets**: Does not access secrets
511
+ - **Credentials**: May use git credentials for private repos
512
+
513
+ ---
514
+
515
+ ## Notes
516
+
517
+ - Installs from all agent/ directories: commands, patterns, design
518
+ - Only install packages from trusted sources
519
+ - Review all files before installation (commands, patterns, designs)
520
+ - Test in safe environment first
521
+ - Keep record of installed packages
522
+ - Update installed packages periodically
523
+ - Remove unused files
524
+ - Report security issues to package authors
525
+ - Consider forking repositories for stability
526
+ - Pin to specific versions/commits for reproducibility
527
+ - Use `-y` flag for automated/scripted installations
528
+ - Patterns and designs influence agent behavior just like commands
529
+
530
+ ---
531
+
532
+ **Namespace**: acp
533
+ **Command**: package-install
534
+ **Version**: 1.0.0
535
+ **Created**: 2026-02-16
536
+ **Last Updated**: 2026-02-16
537
+ **Status**: Active
538
+ **Compatibility**: ACP 1.1.0+
539
+ **Author**: ACP Project