@prmichaelsen/acp-mcp 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 (94) hide show
  1. package/.env.example +5 -0
  2. package/AGENT.md +1279 -0
  3. package/README.md +78 -0
  4. package/agent/commands/acp.command-create.md +372 -0
  5. package/agent/commands/acp.design-create.md +224 -0
  6. package/agent/commands/acp.init.md +410 -0
  7. package/agent/commands/acp.package-create.md +894 -0
  8. package/agent/commands/acp.package-info.md +211 -0
  9. package/agent/commands/acp.package-install.md +461 -0
  10. package/agent/commands/acp.package-list.md +279 -0
  11. package/agent/commands/acp.package-publish.md +540 -0
  12. package/agent/commands/acp.package-remove.md +292 -0
  13. package/agent/commands/acp.package-search.md +306 -0
  14. package/agent/commands/acp.package-update.md +310 -0
  15. package/agent/commands/acp.package-validate.md +535 -0
  16. package/agent/commands/acp.pattern-create.md +326 -0
  17. package/agent/commands/acp.plan.md +552 -0
  18. package/agent/commands/acp.proceed.md +336 -0
  19. package/agent/commands/acp.project-create.md +672 -0
  20. package/agent/commands/acp.report.md +394 -0
  21. package/agent/commands/acp.resume.md +237 -0
  22. package/agent/commands/acp.status.md +280 -0
  23. package/agent/commands/acp.sync.md +363 -0
  24. package/agent/commands/acp.task-create.md +390 -0
  25. package/agent/commands/acp.update.md +301 -0
  26. package/agent/commands/acp.validate.md +436 -0
  27. package/agent/commands/acp.version-check-for-updates.md +275 -0
  28. package/agent/commands/acp.version-check.md +190 -0
  29. package/agent/commands/acp.version-update.md +288 -0
  30. package/agent/commands/command.template.md +316 -0
  31. package/agent/commands/git.commit.md +513 -0
  32. package/agent/commands/git.init.md +513 -0
  33. package/agent/commands/mcp-server-starter.add-tool.md +677 -0
  34. package/agent/commands/mcp-server-starter.init.md +894 -0
  35. package/agent/design/.gitkeep +0 -0
  36. package/agent/design/design.template.md +136 -0
  37. package/agent/design/remember-mcp-analysis.md +987 -0
  38. package/agent/design/requirements.template.md +387 -0
  39. package/agent/manifest.template.yaml +13 -0
  40. package/agent/manifest.yaml +109 -0
  41. package/agent/milestones/.gitkeep +0 -0
  42. package/agent/milestones/milestone-1-{title}.template.md +206 -0
  43. package/agent/package.template.yaml +36 -0
  44. package/agent/patterns/.gitkeep +0 -0
  45. package/agent/patterns/bootstrap.template.md +1237 -0
  46. package/agent/patterns/mcp-server-starter.bootstrap.md +597 -0
  47. package/agent/patterns/mcp-server-starter.build-config.md +554 -0
  48. package/agent/patterns/mcp-server-starter.config-management.md +525 -0
  49. package/agent/patterns/mcp-server-starter.server-factory.md +616 -0
  50. package/agent/patterns/mcp-server-starter.server-standalone.md +642 -0
  51. package/agent/patterns/mcp-server-starter.test-config.md +558 -0
  52. package/agent/patterns/mcp-server-starter.tool-creation.md +653 -0
  53. package/agent/patterns/pattern.template.md +364 -0
  54. package/agent/progress.template.yaml +161 -0
  55. package/agent/progress.yaml +33 -0
  56. package/agent/schemas/package.schema.yaml +161 -0
  57. package/agent/scripts/acp.common.sh +1362 -0
  58. package/agent/scripts/acp.install.sh +213 -0
  59. package/agent/scripts/acp.package-create.sh +925 -0
  60. package/agent/scripts/acp.package-info.sh +270 -0
  61. package/agent/scripts/acp.package-install.sh +550 -0
  62. package/agent/scripts/acp.package-list.sh +263 -0
  63. package/agent/scripts/acp.package-publish.sh +420 -0
  64. package/agent/scripts/acp.package-remove.sh +272 -0
  65. package/agent/scripts/acp.package-search.sh +156 -0
  66. package/agent/scripts/acp.package-update.sh +356 -0
  67. package/agent/scripts/acp.package-validate.sh +766 -0
  68. package/agent/scripts/acp.uninstall.sh +85 -0
  69. package/agent/scripts/acp.version-check-for-updates.sh +98 -0
  70. package/agent/scripts/acp.version-check.sh +47 -0
  71. package/agent/scripts/acp.version-update.sh +158 -0
  72. package/agent/scripts/acp.yaml-parser.sh +736 -0
  73. package/agent/scripts/acp.yaml-validate.sh +205 -0
  74. package/agent/tasks/.gitkeep +0 -0
  75. package/agent/tasks/task-1-{title}.template.md +225 -0
  76. package/dist/config.d.ts +4 -0
  77. package/dist/server-factory.d.ts +9 -0
  78. package/dist/server-factory.js +99 -0
  79. package/dist/server-factory.js.map +7 -0
  80. package/dist/server.d.ts +2 -0
  81. package/dist/server.js +106 -0
  82. package/dist/server.js.map +7 -0
  83. package/dist/tools/acp-remote-list-files.d.ts +15 -0
  84. package/dist/types/ssh-config.d.ts +16 -0
  85. package/esbuild.build.js +34 -0
  86. package/esbuild.watch.js +31 -0
  87. package/jest.config.js +31 -0
  88. package/package.json +54 -0
  89. package/src/config.ts +16 -0
  90. package/src/server-factory.ts +43 -0
  91. package/src/server.ts +46 -0
  92. package/src/tools/acp-remote-list-files.ts +89 -0
  93. package/src/types/ssh-config.ts +17 -0
  94. package/tsconfig.json +22 -0
@@ -0,0 +1,211 @@
1
+ # Command: package-info
2
+
3
+ > **🤖 Agent Directive**: If you are reading this file, the command `@acp.package-info` has been invoked. Follow the steps below to execute this command.
4
+
5
+ **Namespace**: acp
6
+ **Version**: 2.0.0
7
+ **Created**: 2026-02-18
8
+ **Last Updated**: 2026-02-22
9
+ **Status**: Active
10
+
11
+ ---
12
+
13
+ **Purpose**: Display detailed information about a specific installed package (local or global)
14
+ **Category**: Information
15
+ **Frequency**: As Needed
16
+
17
+ ---
18
+
19
+ ## What This Command Does
20
+
21
+ This command shows comprehensive information about an installed ACP package, including metadata (source, version, commit, location), all installed files with their versions, and modification status for each file. Supports both local packages (`./agent/`) and global packages (`~/.acp/packages/`).
22
+
23
+ Use this command when you need detailed information about a package (local or global), want to see which files are installed, check for local modifications, or verify package metadata before updating or removing.
24
+
25
+ ---
26
+
27
+ ## Prerequisites
28
+
29
+ - [ ] ACP installed in project
30
+ - [ ] `agent/manifest.yaml` exists with installed packages
31
+ - [ ] `agent/scripts/acp.package-info.sh` exists
32
+ - [ ] Package name is known (use `@acp.package-list` to see installed packages)
33
+
34
+ ---
35
+
36
+ ## Steps
37
+
38
+ ### 1. Run Package Info Script
39
+
40
+ Execute the info script with the package name.
41
+
42
+ **Actions**:
43
+ - Run `./agent/scripts/acp.package-info.sh [--global] <package-name>`
44
+ - Script will display all package information
45
+ - Use `--global` flag to show global package info
46
+
47
+ **Examples**:
48
+ ```bash
49
+ # Show local package info
50
+ ./agent/scripts/acp.package-info.sh firebase
51
+
52
+ # Show global package info
53
+ ./agent/scripts/acp.package-info.sh --global firebase
54
+ ```
55
+
56
+ **Expected Outcome**: Detailed package information displayed
57
+
58
+ ### 2. Review Package Information
59
+
60
+ Analyze the displayed information.
61
+
62
+ **Actions**:
63
+ - Note package version and source
64
+ - Review installed files list
65
+ - Check for modified files (marked with [MODIFIED])
66
+ - Verify file versions
67
+ - Note commit hash for reference
68
+
69
+ **Expected Outcome**: Complete understanding of package state
70
+
71
+ ---
72
+
73
+ ## Verification
74
+
75
+ - [ ] Script executed successfully
76
+ - [ ] Package metadata displayed (source, version, commit, dates)
77
+ - [ ] All installed files listed with versions
78
+ - [ ] Modified files marked with [MODIFIED] tag
79
+ - [ ] File counts shown by type
80
+ - [ ] Total file count displayed
81
+ - [ ] Output is well-formatted and readable
82
+ - [ ] No errors during execution
83
+
84
+ ---
85
+
86
+ ## Expected Output
87
+
88
+ ### Files Modified
89
+ None - this is a read-only command
90
+
91
+ ### Console Output
92
+ ```
93
+ 📦 firebase (1.2.0)
94
+
95
+ Source: https://github.com/prmichaelsen/acp-firebase.git
96
+ Commit: a1b2c3d4e5f6
97
+ Installed: 2026-02-18T10:30:00Z
98
+ Updated: 2026-02-18T15:45:00Z
99
+
100
+ Contents:
101
+
102
+ Patterns (3):
103
+ - user-scoped-collections.md (v1.1.0)
104
+ - firebase-security-rules.md (v1.0.0) [MODIFIED]
105
+ - firestore-queries.md (v1.0.0)
106
+
107
+ Commands (2):
108
+ - firebase.init.md (v1.0.0)
109
+ - firebase.migrate.md (v1.0.0)
110
+
111
+ Designs (1):
112
+ - firebase-architecture.md (v1.0.0)
113
+
114
+ Modified Files: 1
115
+
116
+ Total Files: 6
117
+ ```
118
+
119
+ ---
120
+
121
+ ## Examples
122
+
123
+ ### Example 1: Show Package Info
124
+
125
+ **Context**: Want to see details about firebase package
126
+
127
+ **Invocation**: `@acp.package-info firebase`
128
+
129
+ **Result**: Shows complete package information with 6 files, 1 modified
130
+
131
+ ### Example 2: Check Before Update
132
+
133
+ **Context**: Want to see what will be updated
134
+
135
+ **Invocation**: `@acp.package-info firebase`
136
+
137
+ **Result**: Shows current versions and modified files, helps decide update strategy
138
+
139
+ ### Example 3: Verify Installation
140
+
141
+ **Context**: Just installed package, want to confirm
142
+
143
+ **Invocation**: `@acp.package-info mcp-integration`
144
+
145
+ **Result**: Shows all installed files with versions, confirms installation successful
146
+
147
+ ### Example 4: Package Not Found
148
+
149
+ **Context**: Try to get info for non-existent package
150
+
151
+ **Invocation**: `@acp.package-info nonexistent`
152
+
153
+ **Result**: Error message "Package not installed: nonexistent", suggests using @acp.package-list
154
+
155
+ ---
156
+
157
+ ## Related Commands
158
+
159
+ - [`@acp.package-list`](acp.package-list.md) - List all installed packages
160
+ - [`@acp.package-update`](acp.package-update.md) - Update package
161
+ - [`@acp.package-remove`](acp.package-remove.md) - Remove package
162
+ - [`@acp.package-install`](acp.package-install.md) - Install package
163
+
164
+ ---
165
+
166
+ ## Troubleshooting
167
+
168
+ ### Issue 1: Package not found
169
+
170
+ **Symptom**: Error "Package not installed"
171
+
172
+ **Cause**: Package name incorrect or not installed
173
+
174
+ **Solution**: Run `@acp.package-list` to see installed packages, check spelling
175
+
176
+ ### Issue 2: Modified status incorrect
177
+
178
+ **Symptom**: File shows [MODIFIED] but wasn't changed
179
+
180
+ **Cause**: Line ending differences or encoding changes
181
+
182
+ **Solution**: This is based on checksum comparison, file content differs from original
183
+
184
+ ### Issue 3: File version shows 0.0.0
185
+
186
+ **Symptom**: File version is 0.0.0
187
+
188
+ **Cause**: Package didn't have package.yaml or file not listed
189
+
190
+ **Solution**: This is normal for packages without version metadata
191
+
192
+ ---
193
+
194
+ ## Notes
195
+
196
+ - Read-only operation (doesn't modify anything)
197
+ - Shows real-time modification status via checksum comparison
198
+ - Useful before updating or removing packages
199
+ - Modified files highlighted in yellow
200
+ - Fast operation (no network access)
201
+
202
+ ---
203
+
204
+ **Namespace**: acp
205
+ **Command**: package-info
206
+ **Version**: 1.0.0
207
+ **Created**: 2026-02-18
208
+ **Last Updated**: 2026-02-18
209
+ **Status**: Active
210
+ **Compatibility**: ACP 2.0.0+
211
+ **Author**: ACP Project
@@ -0,0 +1,461 @@
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
+
13
+ ---
14
+
15
+ **Purpose**: Install third-party command packages from git repositories using the package-install script
16
+ **Category**: Maintenance
17
+ **Frequency**: As Needed
18
+
19
+ ---
20
+
21
+ ## What This Command Does
22
+
23
+ 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.
24
+
25
+ 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.
26
+
27
+ ⚠️ **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.
28
+
29
+ ---
30
+
31
+ ## Manifest Tracking
32
+
33
+ When you install a package, `@acp.package-install` creates or updates `agent/manifest.yaml` to track:
34
+
35
+ - **Package metadata**:
36
+ - Package name and version
37
+ - Source URL (GitHub repository)
38
+ - Git commit hash
39
+ - Installation and update timestamps
40
+
41
+ - **Installed files**:
42
+ - File names and individual versions
43
+ - File checksums (SHA-256) for modification detection
44
+ - Installation timestamps
45
+ - Modified status (detected via checksum comparison)
46
+
47
+ This enables:
48
+ - ✅ **Smart updates** - Only update changed files
49
+ - ✅ **Conflict detection** - Detect locally modified files
50
+ - ✅ **Team collaboration** - Commit manifest to git for reproducible setups
51
+ - ✅ **Version tracking** - Know exactly what's installed
52
+ - ✅ **Reproducible installs** - Install from manifest on new machines
53
+
54
+ **Example manifest entry**:
55
+ ```yaml
56
+ packages:
57
+ firebase:
58
+ source: https://github.com/prmichaelsen/acp-firebase.git
59
+ package_version: 1.2.0
60
+ commit: a1b2c3d4e5f6
61
+ installed_at: 2026-02-18T10:30:00Z
62
+ updated_at: 2026-02-18T10:30:00Z
63
+ installed:
64
+ patterns:
65
+ - name: user-scoped-collections.md
66
+ version: 1.1.0
67
+ installed_at: 2026-02-18T10:30:00Z
68
+ modified: false
69
+ checksum: sha256:abc123...
70
+ ```
71
+
72
+ ---
73
+
74
+ ## Auto-Initialization
75
+
76
+ When using the `--global` flag for the first time, the system automatically initializes `~/.acp/` infrastructure:
77
+ - Creates `~/.acp/` directory
78
+ - Installs full ACP (templates, scripts, schemas)
79
+ - Creates `~/.acp/projects/` directory for package development
80
+ - Creates `~/.acp/agent/manifest.yaml` for package tracking
81
+
82
+ This happens automatically - no manual setup required.
83
+
84
+ ---
85
+
86
+ ## Prerequisites
87
+
88
+ - [ ] ACP installed in project
89
+ - [ ] Git installed and available
90
+ - [ ] Internet connection available
91
+ - [ ] `agent/scripts/package-acp.install.sh` exists
92
+ - [ ] You trust the source of the commands
93
+ - [ ] You have reviewed the command repository
94
+
95
+ ---
96
+
97
+ ## Steps
98
+
99
+ ### 1. Choose Installation Mode
100
+
101
+ Decide what to install from the package.
102
+
103
+ **Installation Modes**:
104
+
105
+ **A. Full Installation** (default):
106
+ ```bash
107
+ ./agent/scripts/acp.package-install.sh <repository-url>
108
+ ```
109
+ Installs all patterns, commands, and designs from the package.
110
+
111
+ **B. List Mode** (preview files):
112
+ ```bash
113
+ ./agent/scripts/acp.package-install.sh --list <repository-url>
114
+ ```
115
+ Shows available files without installing anything.
116
+
117
+ **C. Type-Selective Installation**:
118
+ ```bash
119
+ # Install only patterns
120
+ ./agent/scripts/acp.package-install.sh --patterns <repository-url>
121
+
122
+ # Install only commands
123
+ ./agent/scripts/acp.package-install.sh --commands <repository-url>
124
+
125
+ # Install patterns and commands (not designs)
126
+ ./agent/scripts/acp.package-install.sh --patterns --commands <repository-url>
127
+ ```
128
+
129
+ **D. File-Selective Installation**:
130
+ ```bash
131
+ # Install specific patterns
132
+ ./agent/scripts/acp.package-install.sh --patterns file1 file2 <repository-url>
133
+
134
+ # Install specific commands
135
+ ./agent/scripts/acp.package-install.sh --commands deploy.production <repository-url>
136
+
137
+ # Mix types and files
138
+ ./agent/scripts/acp.package-install.sh --patterns file1 --commands cmd1 cmd2 <repository-url>
139
+ ```
140
+
141
+ **Note**: File names can be specified with or without `.md` extension.
142
+
143
+ ### 2. Run Package Install Script
144
+
145
+ Execute the package installation script with chosen options.
146
+
147
+ **Actions**:
148
+ - Verify `./agent/scripts/acp.package-install.sh` exists
149
+ - Run the script with desired flags and repository URL
150
+ - The script will:
151
+ - Validate the repository URL
152
+ - Clone the repository to a temporary location
153
+ - Scan agent/ directory for installable files (commands, patterns, design)
154
+ - Filter files based on selective flags (if any)
155
+ - Validate command files (agent directive, namespace check)
156
+ - Check for naming conflicts
157
+ - Ask for confirmation (unless -y flag used)
158
+ - Copy selected files to respective agent/ directories
159
+ - Update manifest with installed files
160
+ - Clean up temporary files
161
+ - Report what was installed
162
+
163
+ **Expected Outcome**: Script completes successfully and selected files are installed
164
+
165
+ ### 2. Review Installed Files
166
+
167
+ Verify the files were installed correctly.
168
+
169
+ **Actions**:
170
+ - List files in `agent/commands/` to see new commands
171
+ - List files in `agent/patterns/` to see new patterns
172
+ - List files in `agent/design/` to see new designs
173
+ - Read the installed files
174
+ - Verify commands have agent directives
175
+ - Check namespace is not `acp` (reserved for commands)
176
+ - Ensure no malicious content
177
+
178
+ **Expected Outcome**: Files verified safe and functional
179
+
180
+ ### 3. Test Installed Commands
181
+
182
+ Try invoking one of the installed commands (if any). Prompt user for explicit confirmation before invoking.
183
+
184
+ **Actions**:
185
+ - Choose a simple command to test
186
+ - Invoke it using `@{namespace}.{action}` syntax
187
+ - Verify it works as expected
188
+ - Check for any errors
189
+
190
+ **Expected Outcome**: Commands work correctly
191
+
192
+ ### 4. Verify Manifest Updated
193
+
194
+ Check that the manifest was created/updated correctly.
195
+
196
+ **Actions**:
197
+ - Verify `agent/manifest.yaml` exists
198
+ - Check package entry was added with:
199
+ - Package name and version
200
+ - Source URL
201
+ - Commit hash
202
+ - Installation timestamp
203
+ - Verify installed files are tracked with:
204
+ - File names and versions
205
+ - Checksums (for modification detection)
206
+ - Installation timestamps
207
+
208
+ **Expected Outcome**: Manifest accurately tracks installation
209
+
210
+ ### 5. Document Installation
211
+
212
+ Update progress tracking with installation notes.
213
+
214
+ **Actions**:
215
+ - Add note to `agent/progress.yaml` about installed package
216
+ - Document which package was installed
217
+ - Note installation date
218
+ - List installed files (commands, patterns, designs)
219
+
220
+ **Expected Outcome**: Installation tracked in progress
221
+
222
+ ---
223
+
224
+ ## Verification
225
+
226
+ - [ ] package-acp.install.sh script exists
227
+ - [ ] Script executed successfully
228
+ - [ ] Files installed to appropriate agent/ directories
229
+ - [ ] Installed commands reviewed for safety (if any)
230
+ - [ ] Installed patterns reviewed (if any)
231
+ - [ ] Installed designs reviewed (if any)
232
+ - [ ] Commands tested and working (if any)
233
+ - [ ] Installation documented in progress.yaml
234
+ - [ ] No errors during installation
235
+
236
+ ---
237
+
238
+ ## Expected Output
239
+
240
+ ### Files Modified
241
+ - `agent/commands/*.md` - Installed command files (if any)
242
+ - `agent/patterns/*.md` - Installed pattern files (if any)
243
+ - `agent/design/*.md` - Installed design files (if any)
244
+
245
+ ### Console Output
246
+ ```
247
+ 📦 ACP Package Installer
248
+ ========================================
249
+
250
+ Repository: https://github.com/example/fullstack-package.git
251
+
252
+ Cloning repository...
253
+ ✓ Repository cloned
254
+
255
+ Scanning for installable files...
256
+
257
+ 📁 commands/ (3 file(s))
258
+ ✓ deploy.production.md
259
+ ✓ deploy.staging.md
260
+ ⚠ deploy.rollback.md (will overwrite existing)
261
+
262
+ 📁 patterns/ (2 file(s))
263
+ ✓ api-service.md
264
+ ✓ error-handling.md
265
+
266
+ 📁 design/ (1 file(s))
267
+ ✓ deployment-strategy.md
268
+
269
+ Ready to install 6 file(s)
270
+
271
+ Proceed with installation? (y/N) y
272
+
273
+ Installing files...
274
+ ✓ Installed commands/deploy.production.md
275
+ ✓ Installed commands/deploy.staging.md
276
+ ✓ Installed commands/deploy.rollback.md
277
+ ✓ Installed patterns/api-service.md
278
+ ✓ Installed patterns/error-handling.md
279
+ ✓ Installed design/deployment-strategy.md
280
+
281
+ ✅ Installation complete!
282
+
283
+ Installed 6 file(s) from:
284
+ https://github.com/example/fullstack-package.git
285
+
286
+ Installed commands:
287
+ - @deploy.production
288
+ - @deploy.staging
289
+ - @deploy.rollback
290
+
291
+ ⚠️ Security Reminder:
292
+ Review installed files before using them.
293
+ Third-party files can instruct agents to modify files and execute scripts.
294
+
295
+ Next steps:
296
+ 1. Review installed files in agent/ directories
297
+ 2. Test installed commands
298
+ 3. Update progress.yaml with installation notes
299
+ ```
300
+
301
+ ### Status Update
302
+ - Commands installed
303
+ - Installation documented
304
+ - Commands ready to use
305
+
306
+ ---
307
+
308
+ ## Examples
309
+
310
+ ### Example 1: Installing Deployment Commands
311
+
312
+ **Context**: Want to add deployment commands from community
313
+
314
+ **Invocation**: `@acp.package-install https://github.com/example/acp-deploy-package.git`
315
+
316
+ **Result**: Script clones repo, installs 3 commands to agent/commands/, now can use @deploy.production
317
+
318
+ ### Example 2: Installing Patterns Package
319
+
320
+ **Context**: Want to add TypeScript patterns from organization
321
+
322
+ **Invocation**: `@acp.package-install https://github.com/myorg/acp-typescript-patterns.git`
323
+
324
+ **Result**: Script installs 5 pattern files to agent/patterns/, now have reusable TypeScript patterns
325
+
326
+ ### Example 3: Installing Complete Package
327
+
328
+ **Context**: Installing package with commands, patterns, and designs
329
+
330
+ **Invocation**: `@acp.package-install https://github.com/example/acp-fullstack-package.git`
331
+
332
+ **Result**: Script installs 3 commands, 4 patterns, 2 design docs across agent/ directories
333
+
334
+ ### Example 4: Installing with Conflicts
335
+
336
+ **Context**: Installing package that conflicts with existing files
337
+
338
+ **Invocation**: `@acp.package-install https://github.com/example/acp-package.git`
339
+
340
+ **Result**: Script detects conflicts, asks for confirmation, overwrites if approved
341
+
342
+ ---
343
+
344
+ ## Related Commands
345
+
346
+ - [`@acp.validate`](acp.validate.md) - Validate installed commands
347
+ - [`@acp.version-update`](acp.version-update.md) - Update core ACP commands
348
+ - [`@acp.status`](acp.status.md) - View project status
349
+
350
+ ---
351
+
352
+ ## Troubleshooting
353
+
354
+ ### Issue 1: Git clone fails
355
+
356
+ **Symptom**: Cannot clone repository
357
+
358
+ **Cause**: Invalid URL, no internet, or private repository
359
+
360
+ **Solution**: Verify URL is correct, check internet connection, ensure repository is public or you have access
361
+
362
+ ### Issue 2: No commands found
363
+
364
+ **Symptom**: Repository cloned but no commands found
365
+
366
+ **Cause**: Commands not in expected location or wrong structure
367
+
368
+ **Solution**: Check repository structure, look for commands/ directory, verify files are .md format
369
+
370
+ ### Issue 3: Validation fails
371
+
372
+ **Symptom**: Commands fail validation
373
+
374
+ **Cause**: Commands don't follow ACP structure
375
+
376
+ **Solution**: Review command files, ensure they have agent directive and required sections, contact command author
377
+
378
+ ### Issue 4: Namespace conflict
379
+
380
+ **Symptom**: Command uses reserved namespace
381
+
382
+ **Cause**: Command tries to use 'acp' namespace
383
+
384
+ **Solution**: Cannot install - 'acp' namespace is reserved for core commands, contact command author to change namespace
385
+
386
+ ---
387
+
388
+ ## Security Considerations
389
+
390
+ ### ⚠️ CRITICAL SECURITY WARNING
391
+
392
+ **Third-party packages can contain:**
393
+ - **Commands** that instruct agents to modify files and execute scripts
394
+ - **Patterns** that guide code implementation decisions
395
+ - **Designs** that influence architecture and technical decisions
396
+
397
+ **Third-party commands can:**
398
+ - Modify any files in your project
399
+ - Execute shell commands
400
+ - Make network requests
401
+ - Access environment variables
402
+ - Read sensitive data
403
+
404
+ **YOU ASSUME ALL RISK when installing third-party packages.**
405
+
406
+ ### Security Best Practices
407
+
408
+ **Before Installing**:
409
+ 1. Review the repository and command files
410
+ 2. Check the author's reputation
411
+ 3. Read what each command does
412
+ 4. Verify no malicious content
413
+ 5. Test in a non-production environment first
414
+
415
+ **After Installing**:
416
+ 1. Review installed command files
417
+ 2. Test commands in safe environment
418
+ 3. Monitor command behavior
419
+ 4. Remove if suspicious activity
420
+ 5. Keep installation records
421
+
422
+ ### File Access
423
+ - **Reads**: Repository files, existing files in agent/ directories
424
+ - **Writes**: `agent/commands/*.md`, `agent/patterns/*.md`, `agent/design/*.md`
425
+ - **Executes**: `git clone` command, `./agent/scripts/package-acp.install.sh`
426
+
427
+ ### Network Access
428
+ - **APIs**: None directly
429
+ - **Repositories**: Clones from specified git repository
430
+
431
+ ### Sensitive Data
432
+ - **Secrets**: Does not access secrets
433
+ - **Credentials**: May use git credentials for private repos
434
+
435
+ ---
436
+
437
+ ## Notes
438
+
439
+ - Installs from all agent/ directories: commands, patterns, design
440
+ - Only install packages from trusted sources
441
+ - Review all files before installation (commands, patterns, designs)
442
+ - Test in safe environment first
443
+ - Keep record of installed packages
444
+ - Update installed packages periodically
445
+ - Remove unused files
446
+ - Report security issues to package authors
447
+ - Consider forking repositories for stability
448
+ - Pin to specific versions/commits for reproducibility
449
+ - Use `-y` flag for automated/scripted installations
450
+ - Patterns and designs influence agent behavior just like commands
451
+
452
+ ---
453
+
454
+ **Namespace**: acp
455
+ **Command**: package-install
456
+ **Version**: 1.0.0
457
+ **Created**: 2026-02-16
458
+ **Last Updated**: 2026-02-16
459
+ **Status**: Active
460
+ **Compatibility**: ACP 1.1.0+
461
+ **Author**: ACP Project