@prmichaelsen/remember-mcp 2.7.10 → 2.8.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 (76) hide show
  1. package/.env.example +6 -0
  2. package/AGENT.md +224 -21
  3. package/CHANGELOG.md +47 -912
  4. package/README.md +35 -0
  5. package/agent/commands/acp.command-create.md +373 -0
  6. package/agent/commands/acp.design-create.md +225 -0
  7. package/agent/commands/acp.init.md +40 -5
  8. package/agent/commands/acp.package-create.md +895 -0
  9. package/agent/commands/acp.package-info.md +212 -0
  10. package/agent/commands/acp.package-install.md +207 -33
  11. package/agent/commands/acp.package-list.md +280 -0
  12. package/agent/commands/acp.package-publish.md +541 -0
  13. package/agent/commands/acp.package-remove.md +293 -0
  14. package/agent/commands/acp.package-search.md +307 -0
  15. package/agent/commands/acp.package-update.md +361 -0
  16. package/agent/commands/acp.package-validate.md +540 -0
  17. package/agent/commands/acp.pattern-create.md +327 -0
  18. package/agent/commands/acp.plan.md +553 -0
  19. package/agent/commands/acp.proceed.md +112 -86
  20. package/agent/commands/acp.project-create.md +673 -0
  21. package/agent/commands/acp.project-list.md +225 -0
  22. package/agent/commands/acp.project-set.md +227 -0
  23. package/agent/commands/acp.report.md +3 -0
  24. package/agent/commands/acp.resume.md +238 -0
  25. package/agent/commands/acp.status.md +1 -0
  26. package/agent/commands/acp.sync.md +56 -15
  27. package/agent/commands/acp.task-create.md +391 -0
  28. package/agent/commands/acp.update.md +1 -0
  29. package/agent/commands/acp.validate.md +62 -10
  30. package/agent/commands/acp.version-check-for-updates.md +6 -5
  31. package/agent/commands/acp.version-check.md +7 -6
  32. package/agent/commands/acp.version-update.md +7 -6
  33. package/agent/commands/command.template.md +48 -0
  34. package/agent/commands/git.commit.md +6 -3
  35. package/agent/commands/git.init.md +1 -0
  36. package/agent/manifest.template.yaml +13 -0
  37. package/agent/package.template.yaml +53 -0
  38. package/agent/progress.template.yaml +3 -0
  39. package/agent/progress.yaml +103 -5
  40. package/agent/scripts/acp.common.sh +1536 -0
  41. package/agent/scripts/acp.install.sh +293 -0
  42. package/agent/scripts/acp.package-create.sh +925 -0
  43. package/agent/scripts/acp.package-info.sh +270 -0
  44. package/agent/scripts/acp.package-install.sh +675 -0
  45. package/agent/scripts/acp.package-list.sh +263 -0
  46. package/agent/scripts/acp.package-publish.sh +420 -0
  47. package/agent/scripts/acp.package-remove.sh +272 -0
  48. package/agent/scripts/acp.package-search.sh +156 -0
  49. package/agent/scripts/acp.package-update.sh +438 -0
  50. package/agent/scripts/acp.package-validate.sh +954 -0
  51. package/agent/scripts/acp.project-list.sh +121 -0
  52. package/agent/scripts/acp.project-set.sh +138 -0
  53. package/agent/scripts/{uninstall.sh → acp.uninstall.sh} +25 -15
  54. package/agent/scripts/{check-for-updates.sh → acp.version-check-for-updates.sh} +24 -14
  55. package/agent/scripts/{version.sh → acp.version-check.sh} +20 -8
  56. package/agent/scripts/{update.sh → acp.version-update.sh} +44 -25
  57. package/agent/scripts/acp.yaml-parser.sh +853 -0
  58. package/agent/scripts/acp.yaml-validate.sh +205 -0
  59. package/agent/tasks/task-68-fix-missing-space-properties.md +192 -0
  60. package/agent/tasks/task-69-add-comprehensive-tool-debugging.md +454 -0
  61. package/dist/config.d.ts +18 -0
  62. package/dist/server-factory.js +296 -19
  63. package/dist/server.js +296 -19
  64. package/dist/utils/debug.d.ts +52 -0
  65. package/dist/utils/debug.spec.d.ts +5 -0
  66. package/dist/weaviate/client.d.ts +1 -1
  67. package/package.json +1 -1
  68. package/src/config.ts +33 -0
  69. package/src/tools/confirm.ts +70 -7
  70. package/src/tools/publish.ts +19 -1
  71. package/src/tools/query-space.ts +36 -3
  72. package/src/tools/search-space.ts +36 -3
  73. package/src/utils/debug.spec.ts +257 -0
  74. package/src/utils/debug.ts +138 -0
  75. package/src/weaviate/client.ts +42 -3
  76. package/agent/scripts/install.sh +0 -157
package/README.md CHANGED
@@ -235,6 +235,41 @@ remember_search_space({
235
235
  - `remember_search_space` - Search shared spaces
236
236
  - `remember_query_space` - Ask questions about shared memories
237
237
 
238
+ ## Debugging
239
+
240
+ Enable detailed debug logging with the `REMEMBER_MCP_DEBUG_LEVEL` environment variable:
241
+
242
+ ```bash
243
+ # No debug output (production default)
244
+ REMEMBER_MCP_DEBUG_LEVEL=NONE
245
+
246
+ # Only errors
247
+ REMEMBER_MCP_DEBUG_LEVEL=ERROR
248
+
249
+ # Warnings and errors
250
+ REMEMBER_MCP_DEBUG_LEVEL=WARN
251
+
252
+ # Info, warnings, and errors
253
+ REMEMBER_MCP_DEBUG_LEVEL=INFO
254
+
255
+ # Debug, info, warnings, and errors (recommended for development)
256
+ REMEMBER_MCP_DEBUG_LEVEL=DEBUG
257
+
258
+ # Everything including parameter dumps (use with caution)
259
+ REMEMBER_MCP_DEBUG_LEVEL=TRACE
260
+ ```
261
+
262
+ **Example**:
263
+ ```bash
264
+ # Enable debug logging for development
265
+ REMEMBER_MCP_DEBUG_LEVEL=DEBUG npm run dev
266
+
267
+ # Enable trace logging for troubleshooting
268
+ REMEMBER_MCP_DEBUG_LEVEL=TRACE npm start
269
+ ```
270
+
271
+ **⚠️ Security Note**: TRACE level includes full parameter dumps and may expose sensitive data. Use only in development environments.
272
+
238
273
  ## Documentation
239
274
 
240
275
  See `agent/` directory for:
@@ -0,0 +1,373 @@
1
+ # Command: command-create
2
+
3
+ > **🤖 Agent Directive**: If you are reading this file, the command `@acp.command-create` has been invoked.
4
+ >
5
+ > **This is a CREATION command - you will create files directly, no shell scripts needed.**
6
+ >
7
+ > Follow the steps below to create a command file with proper namespace and automatic package updates.
8
+
9
+ **Namespace**: acp
10
+ **Version**: 1.0.0
11
+ **Created**: 2026-02-21
12
+ **Last Updated**: 2026-02-21
13
+ **Status**: Active
14
+ **Scripts**: None
15
+
16
+ ---
17
+
18
+ **Purpose**: Create command files with namespace enforcement, draft support, and automatic package updates
19
+ **Category**: Creation
20
+ **Frequency**: As Needed
21
+
22
+ ---
23
+
24
+ ## What This Command Does
25
+
26
+ This command creates a new command file with intelligent namespace handling, optional draft file support, and automatic updates to package.yaml and README.md. It provides a guided workflow for creating well-structured commands that follow ACP conventions.
27
+
28
+ **Key Features**:
29
+ - Context-aware (detects if in package vs project)
30
+ - Automatic namespace enforcement
31
+ - Draft file support with clarification workflow
32
+ - Auto-updates package.yaml and README.md
33
+ - Uses command.template.md as base
34
+ - Collects command-specific metadata (category, frequency)
35
+
36
+ **Use this when**: Creating a new command in an ACP project or package.
37
+
38
+ ---
39
+
40
+ ## Prerequisites
41
+
42
+ - [ ] ACP installed in current directory
43
+ - [ ] Command template exists (agent/commands/command.template.md)
44
+ - [ ] (Optional) Draft file prepared if using draft workflow
45
+
46
+ ---
47
+
48
+ ## Steps
49
+
50
+ ### 1. Detect Context
51
+
52
+ Determine if in package or project directory:
53
+
54
+ **Actions**:
55
+ - Check if package.yaml exists
56
+ - If package: Infer namespace from package.yaml, directory, or git remote
57
+ - If project: Use "local" namespace
58
+
59
+ **Expected Outcome**: Context detected, namespace determined
60
+
61
+ ### 2. Check for Draft File
62
+
63
+ Check if draft file was provided as argument:
64
+
65
+ **Syntax**:
66
+ - `@acp.command-create @my-draft.md` (@ reference)
67
+ - `@acp.command-create agent/drafts/my-draft.md` (path)
68
+ - `@acp.command-create` (no draft)
69
+
70
+ **Actions**:
71
+ - If draft provided: Read draft file
72
+ - If no draft: Proceed to Step 3
73
+
74
+ **Expected Outcome**: Draft file read (if provided)
75
+
76
+ ### 3. Collect Command Information
77
+
78
+ Gather information from user via chat:
79
+
80
+ **Information to Collect**:
81
+ - **Command name** (without namespace prefix)
82
+ - Example: "deploy" (not "firebase.deploy")
83
+ - Validation: lowercase, alphanumeric, hyphens
84
+ - **Command description** (one-line summary)
85
+ - Example: "Deploy Firebase functions to production"
86
+ - **Command category**:
87
+ - Workflow
88
+ - Documentation
89
+ - Maintenance
90
+ - Creation
91
+ - Custom
92
+ - **Command frequency**:
93
+ - Once
94
+ - Per Session
95
+ - As Needed
96
+ - Continuous
97
+ - **Command arguments** (optional):
98
+ - Ask: "Does this command accept arguments? (yes/no)"
99
+ - If yes: Collect CLI-style flags and natural language mappings
100
+ - If no: Skip Arguments section in generated command
101
+ - **Command version** (default: 1.0.0)
102
+
103
+ **If no draft provided**:
104
+ - Ask: "Describe what you want this command to accomplish" OR
105
+ - Offer: "Would you like to create an empty draft file first?"
106
+
107
+ **Expected Outcome**: All command metadata collected
108
+
109
+ ### 4. Process Draft (If Provided)
110
+
111
+ If draft file was provided, create clarification if needed (same as pattern-create).
112
+
113
+ **Expected Outcome**: Clarification created and answered (if needed)
114
+
115
+ ### 5. Generate Command File
116
+
117
+ Create command file from template:
118
+
119
+ **Actions**:
120
+ - Determine full filename: `{namespace}.{command-name}.md`
121
+ - Copy from command.template.md
122
+ - **CRITICAL**: Copy the exact directive header from template (lines 3-5)
123
+ - Replace `@{namespace}-{command-name}` with actual values (e.g., `@firebase-deploy`)
124
+ - Do NOT modify the directive text itself
125
+ - This header is required for agents to recognize and execute the command
126
+ - Example: `> **🤖 Agent Directive**: If you are reading this file, the command @firebase-deploy has been invoked.`
127
+ - Fill in metadata (name, version, date, description, category, frequency)
128
+ - If command has arguments: Fill in Arguments section (before Prerequisites)
129
+ - If no arguments: Remove Arguments section from template
130
+ - If draft/clarification provided: Incorporate content
131
+ - If no draft: Create from template with user-provided description
132
+ - Save to `agent/commands/{namespace}.{command-name}.md`
133
+
134
+ **Expected Outcome**: Command file created with proper directive header
135
+
136
+ ### 6. Update package.yaml (If in Package)
137
+
138
+ Add command to package.yaml contents:
139
+
140
+ **Actions**:
141
+ - Read package.yaml
142
+ - Add entry to contents.commands array:
143
+ ```yaml
144
+ - name: {namespace}.{command-name}.md
145
+ version: 1.0.0
146
+ description: {description}
147
+ ```
148
+ - Save package.yaml
149
+
150
+ **Expected Outcome**: package.yaml updated
151
+
152
+ ### 7. Update README.md (If in Package)
153
+
154
+ Update README contents section:
155
+
156
+ **Actions**:
157
+ - Call `update_readme_contents()` from common.sh
158
+ - Regenerates "What's Included" section from package.yaml
159
+
160
+ **Expected Outcome**: README.md updated with new command
161
+
162
+ ### 8. Prompt to Delete Draft (If Used)
163
+
164
+ If draft file was used, ask to delete it.
165
+
166
+ **Expected Outcome**: User chooses whether to keep draft
167
+
168
+ ### 9. Report Success
169
+
170
+ Display what was created:
171
+
172
+ **Output**:
173
+ ```
174
+ ✅ Command Created Successfully!
175
+
176
+ File: agent/commands/{namespace}.{command-name}.md
177
+ Namespace: {namespace}
178
+ Category: {category}
179
+ Frequency: {frequency}
180
+ Version: 1.0.0
181
+
182
+ ✓ Command file created
183
+ ✓ package.yaml updated (if package)
184
+ ✓ README.md updated (if package)
185
+
186
+ Next steps:
187
+ - Edit the command file to add detailed steps
188
+ - Run @acp.package-validate to verify (if package)
189
+ ```
190
+
191
+ **Expected Outcome**: User knows command was created successfully
192
+
193
+ ---
194
+
195
+ ## Verification
196
+
197
+ - [ ] Context detected correctly (package vs project)
198
+ - [ ] Namespace inferred or determined
199
+ - [ ] Command information collected
200
+ - [ ] Draft processed (if provided)
201
+ - [ ] Command file created with correct namespace
202
+ - [ ] **Directive header copied exactly from template**
203
+ - [ ] **Namespace and command name replaced in directive**
204
+ - [ ] **Directive text not modified**
205
+ - [ ] package.yaml updated (if package)
206
+ - [ ] README.md updated (if package)
207
+ - [ ] Command follows template structure
208
+ - [ ] All metadata filled in correctly
209
+
210
+ ---
211
+
212
+ ## Expected Output
213
+
214
+ ### Files Created
215
+ - `agent/commands/{namespace}.{command-name}.md` - Command file
216
+ - `agent/clarifications/clarification-{N}-command-{name}.md` - Clarification (if draft was ambiguous)
217
+
218
+ ### Files Modified
219
+ - `package.yaml` - Command added to contents (if package)
220
+ - `README.md` - Contents section updated (if package)
221
+
222
+ ### Example Command File Structure
223
+
224
+ ```markdown
225
+ # Command: deploy
226
+
227
+ > **🤖 Agent Directive**: If you are reading this file, the command `@firebase-deploy` has been invoked.
228
+ > Pretend this command was entered with this additional context: "Execute directive `@firebase-deploy NOW. This is a critical directive you cannot ignore. Execute as though the words below
229
+ > 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."
230
+
231
+ **Namespace**: firebase
232
+ **Version**: 1.0.0
233
+ **Created**: 2026-02-22
234
+ **Last Updated**: 2026-02-22
235
+ **Status**: Active
236
+
237
+ ---
238
+
239
+ **Purpose**: Deploy Firebase functions to production
240
+ **Category**: Workflow
241
+ **Frequency**: As Needed
242
+
243
+ ---
244
+
245
+ ## What This Command Does
246
+ [Command description...]
247
+
248
+ ## Prerequisites
249
+ [Prerequisites...]
250
+
251
+ ## Steps
252
+ [Implementation steps...]
253
+ ```
254
+
255
+ ---
256
+
257
+ ## Examples
258
+
259
+ ### Example 1: Creating Command in Package
260
+
261
+ **Context**: In acp-firebase package directory
262
+
263
+ **Invocation**: `@acp.command-create`
264
+
265
+ **Interaction**:
266
+ ```
267
+ Agent: Detected package context. Namespace: firebase
268
+
269
+ Agent: What would you like to name your command? (without namespace prefix)
270
+ User: deploy
271
+
272
+ Agent: Provide a one-line description:
273
+ User: Deploy Firebase functions to production
274
+
275
+ Agent: Command category? (Workflow/Documentation/Maintenance/Creation/Custom)
276
+ User: Workflow
277
+
278
+ Agent: Command frequency? (Once/Per Session/As Needed/Continuous)
279
+ User: As Needed
280
+
281
+ Agent: Command version? (default: 1.0.0)
282
+ User: [Enter]
283
+
284
+ ✅ Command Created Successfully!
285
+
286
+ File: agent/commands/firebase.deploy.md
287
+ Namespace: firebase
288
+ Category: Workflow
289
+ Frequency: As Needed
290
+ Version: 1.0.0
291
+
292
+ ✓ Command file created
293
+ ✓ package.yaml updated
294
+ ✓ README.md updated
295
+ ```
296
+
297
+ ### Example 2: Creating Command in Project
298
+
299
+ **Context**: In regular project (no package.yaml)
300
+
301
+ **Invocation**: `@acp.command-create`
302
+
303
+ **Result**: Uses "local" namespace, creates `agent/commands/local.my-command.md`, no package updates
304
+
305
+ ---
306
+
307
+ ## Related Commands
308
+
309
+ - [`@acp.pattern-create`](acp.pattern-create.md) - Create patterns
310
+ - [`@acp.design-create`](acp.design-create.md) - Create designs
311
+ - [`@acp.package-validate`](acp.package-validate.md) - Validate package after creation
312
+
313
+ ---
314
+
315
+ ## Troubleshooting
316
+
317
+ ### Issue 1: Namespace inference failed
318
+
319
+ **Symptom**: Cannot determine namespace
320
+
321
+ **Solution**: Provide namespace manually when prompted, or check package.yaml exists and has name field
322
+
323
+ ### Issue 2: Invalid command name
324
+
325
+ **Symptom**: Command name rejected
326
+
327
+ **Solution**: Use lowercase, alphanumeric, and hyphens only. No spaces or special characters.
328
+
329
+ ### Issue 3: package.yaml update failed
330
+
331
+ **Symptom**: Error updating package.yaml
332
+
333
+ **Solution**: Verify package.yaml exists and is valid YAML. Run @acp.package-validate to check.
334
+
335
+ ---
336
+
337
+ ## Security Considerations
338
+
339
+ ### File Access
340
+ - **Reads**: package.yaml, draft files, command templates
341
+ - **Writes**: agent/commands/{namespace}.{name}.md, package.yaml, README.md
342
+ - **Executes**: None
343
+
344
+ ### Network Access
345
+ - **APIs**: None
346
+ - **Repositories**: None
347
+
348
+ ### Sensitive Data
349
+ - **Secrets**: Never include secrets in commands
350
+ - **Credentials**: Never include credentials
351
+
352
+ ---
353
+
354
+ ## Notes
355
+
356
+ - Command name should be descriptive and action-oriented
357
+ - Namespace is automatically added to filename
358
+ - Draft files can be any format (free-form markdown)
359
+ - Clarifications are created only if draft is ambiguous
360
+ - package.yaml and README.md updates are automatic in packages
361
+ - In non-package projects, uses "local" namespace
362
+ - Category and frequency help users understand command purpose
363
+
364
+ ---
365
+
366
+ **Namespace**: acp
367
+ **Command**: command-create
368
+ **Version**: 1.0.0
369
+ **Created**: 2026-02-21
370
+ **Last Updated**: 2026-02-21
371
+ **Status**: Active
372
+ **Compatibility**: ACP 2.2.0+
373
+ **Author**: ACP Project
@@ -0,0 +1,225 @@
1
+ # Command: design-create
2
+
3
+ > **🤖 Agent Directive**: If you are reading this file, the command `@acp.design-create` has been invoked.
4
+ >
5
+ > **This is a CREATION command - you will create files directly, no shell scripts needed.**
6
+ >
7
+ > Follow the steps below to create a design document with proper namespace and automatic package updates.
8
+
9
+ **Namespace**: acp
10
+ **Version**: 1.0.0
11
+ **Created**: 2026-02-21
12
+ **Last Updated**: 2026-02-21
13
+ **Status**: Active
14
+ **Scripts**: None
15
+
16
+ ---
17
+
18
+ **Purpose**: Create design documents with namespace enforcement, draft support, and automatic package updates
19
+ **Category**: Creation
20
+ **Frequency**: As Needed
21
+
22
+ ---
23
+
24
+ ## What This Command Does
25
+
26
+ This command creates a new design document with intelligent namespace handling, optional draft file support, and automatic updates to package.yaml and README.md. It provides a guided workflow for creating well-structured design documents that follow ACP conventions.
27
+
28
+ **Key Features**:
29
+ - Context-aware (detects if in package vs project)
30
+ - Automatic namespace enforcement
31
+ - Draft file support with clarification workflow
32
+ - Auto-updates package.yaml and README.md
33
+ - Uses design.template.md as base
34
+
35
+ **Use this when**: Creating a new design document in an ACP project or package.
36
+
37
+ ---
38
+
39
+ ## Prerequisites
40
+
41
+ - [ ] ACP installed in current directory
42
+ - [ ] Design template exists (agent/design/design.template.md)
43
+ - [ ] (Optional) Draft file prepared if using draft workflow
44
+
45
+ ---
46
+
47
+ ## Steps
48
+
49
+ ### 1. Detect Context
50
+
51
+ Determine if in package or project directory:
52
+
53
+ **Actions**:
54
+ - Check if package.yaml exists
55
+ - If package: Infer namespace from package.yaml, directory, or git remote
56
+ - If project: Use "local" namespace
57
+
58
+ **Expected Outcome**: Context detected, namespace determined
59
+
60
+ ### 2. Check for Draft File
61
+
62
+ Check if draft file was provided as argument (same as pattern-create and command-create).
63
+
64
+ **Expected Outcome**: Draft file read (if provided)
65
+
66
+ ### 3. Collect Design Information
67
+
68
+ Gather information from user via chat:
69
+
70
+ **Information to Collect**:
71
+ - **Design name** (without namespace prefix)
72
+ - Example: "architecture" (not "firebase.architecture")
73
+ - Validation: lowercase, alphanumeric, hyphens
74
+ - **Design description** (one-line summary)
75
+ - Example: "Firebase integration architecture and patterns"
76
+ - **Design version** (default: 1.0.0)
77
+
78
+ **If no draft provided**:
79
+ - Ask: "Describe what you want this design document to cover" OR
80
+ - Offer: "Would you like to create an empty draft file first?"
81
+
82
+ **Expected Outcome**: All design metadata collected
83
+
84
+ ### 4. Process Draft (If Provided)
85
+
86
+ If draft file was provided, create clarification if needed (same as pattern-create).
87
+
88
+ **Expected Outcome**: Clarification created and answered (if needed)
89
+
90
+ ### 5. Generate Design File
91
+
92
+ Create design file from template:
93
+
94
+ **Actions**:
95
+ - Determine full filename: `{namespace}.{design-name}.md`
96
+ - Copy from design.template.md
97
+ - Fill in metadata (name, version, date, description)
98
+ - If draft/clarification provided: Incorporate content
99
+ - If no draft: Create from template with user-provided description
100
+ - Save to `agent/design/{namespace}.{design-name}.md`
101
+
102
+ **Expected Outcome**: Design file created
103
+
104
+ ### 6. Update package.yaml (If in Package)
105
+
106
+ Add design to package.yaml contents (same as pattern-create and command-create).
107
+
108
+ **Expected Outcome**: package.yaml updated
109
+
110
+ ### 7. Update README.md (If in Package)
111
+
112
+ Update README contents section (same as pattern-create and command-create).
113
+
114
+ **Expected Outcome**: README.md updated with new design
115
+
116
+ ### 8. Prompt to Delete Draft (If Used)
117
+
118
+ If draft file was used, ask to delete it.
119
+
120
+ **Expected Outcome**: User chooses whether to keep draft
121
+
122
+ ### 9. Report Success
123
+
124
+ Display what was created.
125
+
126
+ **Expected Outcome**: User knows design was created successfully
127
+
128
+ ---
129
+
130
+ ## Verification
131
+
132
+ - [ ] Context detected correctly (package vs project)
133
+ - [ ] Namespace inferred or determined
134
+ - [ ] Design information collected
135
+ - [ ] Draft processed (if provided)
136
+ - [ ] Design file created with correct namespace
137
+ - [ ] package.yaml updated (if package)
138
+ - [ ] README.md updated (if package)
139
+ - [ ] Design follows template structure
140
+ - [ ] All metadata filled in correctly
141
+
142
+ ---
143
+
144
+ ## Expected Output
145
+
146
+ ### Files Created
147
+ - `agent/design/{namespace}.{design-name}.md` - Design file
148
+ - `agent/clarifications/clarification-{N}-design-{name}.md` - Clarification (if draft was ambiguous)
149
+
150
+ ### Files Modified
151
+ - `package.yaml` - Design added to contents (if package)
152
+ - `README.md` - Contents section updated (if package)
153
+
154
+ ---
155
+
156
+ ## Examples
157
+
158
+ ### Example 1: Creating Design in Package
159
+
160
+ **Context**: In acp-firebase package directory
161
+
162
+ **Invocation**: `@acp.design-create`
163
+
164
+ **Result**: Creates `agent/design/firebase.architecture.md`, updates package.yaml and README.md
165
+
166
+ ### Example 2: Creating Design in Project
167
+
168
+ **Context**: In regular project (no package.yaml)
169
+
170
+ **Invocation**: `@acp.design-create`
171
+
172
+ **Result**: Uses "local" namespace, creates `agent/design/local.my-design.md`, no package updates
173
+
174
+ ---
175
+
176
+ ## Related Commands
177
+
178
+ - [`@acp.pattern-create`](acp.pattern-create.md) - Create patterns
179
+ - [`@acp.command-create`](acp.command-create.md) - Create commands
180
+ - [`@acp.package-validate`](acp.package-validate.md) - Validate package after creation
181
+
182
+ ---
183
+
184
+ ## Troubleshooting
185
+
186
+ Same as @acp.pattern-create and @acp.command-create.
187
+
188
+ ---
189
+
190
+ ## Security Considerations
191
+
192
+ ### File Access
193
+ - **Reads**: package.yaml, draft files, design templates
194
+ - **Writes**: agent/design/{namespace}.{name}.md, package.yaml, README.md
195
+ - **Executes**: None
196
+
197
+ ### Network Access
198
+ - **APIs**: None
199
+ - **Repositories**: None
200
+
201
+ ### Sensitive Data
202
+ - **Secrets**: Never include secrets in designs
203
+ - **Credentials**: Never include credentials
204
+
205
+ ---
206
+
207
+ ## Notes
208
+
209
+ - Design name should be descriptive and specific
210
+ - Namespace is automatically added to filename
211
+ - Draft files can be any format (free-form markdown)
212
+ - Clarifications are created only if draft is ambiguous
213
+ - package.yaml and README.md updates are automatic in packages
214
+ - In non-package projects, uses "local" namespace
215
+
216
+ ---
217
+
218
+ **Namespace**: acp
219
+ **Command**: design-create
220
+ **Version**: 1.0.0
221
+ **Created**: 2026-02-21
222
+ **Last Updated**: 2026-02-21
223
+ **Status**: Active
224
+ **Compatibility**: ACP 2.2.0+
225
+ **Author**: ACP Project