@prmichaelsen/acp-visualizer 0.1.0 → 0.1.2

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 (159) hide show
  1. package/package.json +8 -10
  2. package/src/components/ExtraFieldsBadge.tsx +1 -1
  3. package/src/components/FilterBar.tsx +1 -1
  4. package/src/components/Header.tsx +1 -1
  5. package/src/components/MilestoneTable.tsx +1 -1
  6. package/src/components/MilestoneTree.tsx +2 -2
  7. package/src/components/StatusBadge.tsx +1 -1
  8. package/src/components/StatusDot.tsx +1 -1
  9. package/src/components/TaskList.tsx +1 -1
  10. package/src/routes/__root.tsx +5 -5
  11. package/src/routes/api/watch.ts +1 -1
  12. package/src/routes/index.tsx +2 -2
  13. package/src/routes/milestones.tsx +7 -7
  14. package/src/routes/search.tsx +4 -4
  15. package/src/routes/tasks.tsx +3 -3
  16. package/src/services/progress-database.service.ts +3 -3
  17. package/agent/commands/acp.clarification-address.md +0 -417
  18. package/agent/commands/acp.clarification-capture.md +0 -386
  19. package/agent/commands/acp.clarification-create.md +0 -437
  20. package/agent/commands/acp.clarifications-research.md +0 -326
  21. package/agent/commands/acp.command-create.md +0 -432
  22. package/agent/commands/acp.design-create.md +0 -286
  23. package/agent/commands/acp.design-reference.md +0 -355
  24. package/agent/commands/acp.handoff.md +0 -270
  25. package/agent/commands/acp.index.md +0 -423
  26. package/agent/commands/acp.init.md +0 -546
  27. package/agent/commands/acp.package-create.md +0 -895
  28. package/agent/commands/acp.package-info.md +0 -212
  29. package/agent/commands/acp.package-install.md +0 -539
  30. package/agent/commands/acp.package-list.md +0 -280
  31. package/agent/commands/acp.package-publish.md +0 -541
  32. package/agent/commands/acp.package-remove.md +0 -293
  33. package/agent/commands/acp.package-search.md +0 -307
  34. package/agent/commands/acp.package-update.md +0 -361
  35. package/agent/commands/acp.package-validate.md +0 -540
  36. package/agent/commands/acp.pattern-create.md +0 -386
  37. package/agent/commands/acp.plan.md +0 -587
  38. package/agent/commands/acp.proceed.md +0 -882
  39. package/agent/commands/acp.project-create.md +0 -675
  40. package/agent/commands/acp.project-info.md +0 -312
  41. package/agent/commands/acp.project-list.md +0 -226
  42. package/agent/commands/acp.project-remove.md +0 -379
  43. package/agent/commands/acp.project-set.md +0 -227
  44. package/agent/commands/acp.project-update.md +0 -307
  45. package/agent/commands/acp.projects-restore.md +0 -228
  46. package/agent/commands/acp.projects-sync.md +0 -347
  47. package/agent/commands/acp.report.md +0 -407
  48. package/agent/commands/acp.resume.md +0 -239
  49. package/agent/commands/acp.sessions.md +0 -301
  50. package/agent/commands/acp.status.md +0 -293
  51. package/agent/commands/acp.sync.md +0 -364
  52. package/agent/commands/acp.task-create.md +0 -500
  53. package/agent/commands/acp.update.md +0 -302
  54. package/agent/commands/acp.validate.md +0 -466
  55. package/agent/commands/acp.version-check-for-updates.md +0 -276
  56. package/agent/commands/acp.version-check.md +0 -191
  57. package/agent/commands/acp.version-update.md +0 -289
  58. package/agent/commands/command.template.md +0 -339
  59. package/agent/commands/git.commit.md +0 -526
  60. package/agent/commands/git.init.md +0 -514
  61. package/agent/commands/tanstack-cloudflare.deploy.md +0 -272
  62. package/agent/commands/tanstack-cloudflare.tail.md +0 -275
  63. package/agent/design/.gitkeep +0 -0
  64. package/agent/design/design.template.md +0 -154
  65. package/agent/design/local.dashboard-layout-routing.md +0 -288
  66. package/agent/design/local.data-model-yaml-parsing.md +0 -310
  67. package/agent/design/local.search-filtering.md +0 -331
  68. package/agent/design/local.server-api-auto-refresh.md +0 -235
  69. package/agent/design/local.table-tree-views.md +0 -299
  70. package/agent/design/local.visualizer-requirements.md +0 -349
  71. package/agent/design/requirements.template.md +0 -387
  72. package/agent/index/.gitkeep +0 -0
  73. package/agent/index/acp.core.yaml +0 -137
  74. package/agent/index/local.main.template.yaml +0 -37
  75. package/agent/manifest.template.yaml +0 -13
  76. package/agent/manifest.yaml +0 -302
  77. package/agent/milestones/.gitkeep +0 -0
  78. package/agent/milestones/milestone-1-project-scaffold-data-pipeline.md +0 -67
  79. package/agent/milestones/milestone-1-{title}.template.md +0 -206
  80. package/agent/milestones/milestone-2-dashboard-views-interaction.md +0 -79
  81. package/agent/package.template.yaml +0 -86
  82. package/agent/patterns/.gitkeep +0 -0
  83. package/agent/patterns/bootstrap.template.md +0 -1237
  84. package/agent/patterns/pattern.template.md +0 -382
  85. package/agent/patterns/tanstack-cloudflare.acl-permissions.md +0 -332
  86. package/agent/patterns/tanstack-cloudflare.action-bar-item.md +0 -416
  87. package/agent/patterns/tanstack-cloudflare.api-route-handlers.md +0 -401
  88. package/agent/patterns/tanstack-cloudflare.auth-session-management.md +0 -387
  89. package/agent/patterns/tanstack-cloudflare.card-and-list.md +0 -271
  90. package/agent/patterns/tanstack-cloudflare.chat-engine.md +0 -353
  91. package/agent/patterns/tanstack-cloudflare.confirmation-tokens.md +0 -346
  92. package/agent/patterns/tanstack-cloudflare.durable-objects-websocket.md +0 -516
  93. package/agent/patterns/tanstack-cloudflare.email-service.md +0 -431
  94. package/agent/patterns/tanstack-cloudflare.expander.md +0 -98
  95. package/agent/patterns/tanstack-cloudflare.fcm-push.md +0 -115
  96. package/agent/patterns/tanstack-cloudflare.firebase-anonymous-sessions.md +0 -441
  97. package/agent/patterns/tanstack-cloudflare.firebase-auth.md +0 -348
  98. package/agent/patterns/tanstack-cloudflare.firebase-firestore.md +0 -550
  99. package/agent/patterns/tanstack-cloudflare.firebase-storage.md +0 -369
  100. package/agent/patterns/tanstack-cloudflare.form-controls.md +0 -145
  101. package/agent/patterns/tanstack-cloudflare.global-search-context.md +0 -93
  102. package/agent/patterns/tanstack-cloudflare.image-carousel.md +0 -126
  103. package/agent/patterns/tanstack-cloudflare.library-services.md +0 -553
  104. package/agent/patterns/tanstack-cloudflare.lightbox.md +0 -169
  105. package/agent/patterns/tanstack-cloudflare.markdown-content.md +0 -115
  106. package/agent/patterns/tanstack-cloudflare.mention-suggestions.md +0 -98
  107. package/agent/patterns/tanstack-cloudflare.modal.md +0 -156
  108. package/agent/patterns/tanstack-cloudflare.nextjs-to-tanstack-routing.md +0 -461
  109. package/agent/patterns/tanstack-cloudflare.notifications-engine.md +0 -151
  110. package/agent/patterns/tanstack-cloudflare.oauth-token-refresh.md +0 -90
  111. package/agent/patterns/tanstack-cloudflare.og-metadata.md +0 -296
  112. package/agent/patterns/tanstack-cloudflare.pagination.md +0 -442
  113. package/agent/patterns/tanstack-cloudflare.pill-input.md +0 -220
  114. package/agent/patterns/tanstack-cloudflare.provider-adapter.md +0 -401
  115. package/agent/patterns/tanstack-cloudflare.rate-limiting.md +0 -323
  116. package/agent/patterns/tanstack-cloudflare.scheduled-tasks.md +0 -338
  117. package/agent/patterns/tanstack-cloudflare.searchable-settings.md +0 -375
  118. package/agent/patterns/tanstack-cloudflare.slide-over.md +0 -129
  119. package/agent/patterns/tanstack-cloudflare.ssr-preload.md +0 -571
  120. package/agent/patterns/tanstack-cloudflare.third-party-api-integration.md +0 -508
  121. package/agent/patterns/tanstack-cloudflare.toast-system.md +0 -142
  122. package/agent/patterns/tanstack-cloudflare.unified-header.md +0 -280
  123. package/agent/patterns/tanstack-cloudflare.user-scoped-collections.md +0 -628
  124. package/agent/patterns/tanstack-cloudflare.websocket-manager.md +0 -237
  125. package/agent/patterns/tanstack-cloudflare.wrangler-configuration.md +0 -358
  126. package/agent/patterns/tanstack-cloudflare.zod-schema-validation.md +0 -336
  127. package/agent/progress.template.yaml +0 -161
  128. package/agent/progress.yaml +0 -145
  129. package/agent/schemas/package.schema.yaml +0 -276
  130. package/agent/scripts/acp.common.sh +0 -1781
  131. package/agent/scripts/acp.install.sh +0 -333
  132. package/agent/scripts/acp.package-create.sh +0 -924
  133. package/agent/scripts/acp.package-info.sh +0 -288
  134. package/agent/scripts/acp.package-install.sh +0 -893
  135. package/agent/scripts/acp.package-list.sh +0 -311
  136. package/agent/scripts/acp.package-publish.sh +0 -420
  137. package/agent/scripts/acp.package-remove.sh +0 -348
  138. package/agent/scripts/acp.package-search.sh +0 -156
  139. package/agent/scripts/acp.package-update.sh +0 -517
  140. package/agent/scripts/acp.package-validate.sh +0 -1018
  141. package/agent/scripts/acp.uninstall.sh +0 -85
  142. package/agent/scripts/acp.version-check-for-updates.sh +0 -98
  143. package/agent/scripts/acp.version-check.sh +0 -47
  144. package/agent/scripts/acp.version-update.sh +0 -176
  145. package/agent/scripts/acp.yaml-parser.sh +0 -985
  146. package/agent/scripts/acp.yaml-validate.sh +0 -205
  147. package/agent/tasks/.gitkeep +0 -0
  148. package/agent/tasks/milestone-1-project-scaffold-data-pipeline/task-1-initialize-tanstack-start-project.md +0 -210
  149. package/agent/tasks/milestone-1-project-scaffold-data-pipeline/task-2-implement-data-model-yaml-parser.md +0 -294
  150. package/agent/tasks/milestone-1-project-scaffold-data-pipeline/task-3-build-server-api-data-loading.md +0 -193
  151. package/agent/tasks/milestone-1-project-scaffold-data-pipeline/task-4-add-auto-refresh-sse.md +0 -262
  152. package/agent/tasks/milestone-2-dashboard-views-interaction/task-10-polish-integration-testing.md +0 -156
  153. package/agent/tasks/milestone-2-dashboard-views-interaction/task-5-build-dashboard-layout-routing.md +0 -178
  154. package/agent/tasks/milestone-2-dashboard-views-interaction/task-6-build-overview-page.md +0 -141
  155. package/agent/tasks/milestone-2-dashboard-views-interaction/task-7-implement-milestone-table-view.md +0 -153
  156. package/agent/tasks/milestone-2-dashboard-views-interaction/task-8-implement-milestone-tree-view.md +0 -174
  157. package/agent/tasks/milestone-2-dashboard-views-interaction/task-9-implement-search-filtering.md +0 -233
  158. package/agent/tasks/task-1-{title}.template.md +0 -244
  159. package/vitest.config.ts +0 -27
@@ -1,437 +0,0 @@
1
- # Command: clarification-create
2
-
3
- > **🤖 Agent Directive**: If you are reading this file, the command `@acp-clarification-create` has been invoked. Follow the steps below to execute this command.
4
- > Pretend this command was entered with this additional context: "Execute directive `@acp-clarification-create 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-25
10
- **Last Updated**: 2026-02-25
11
- **Status**: Active
12
-
13
- ---
14
-
15
- **Purpose**: Create clarification documents from file input or chat to gather detailed requirements
16
- **Category**: Creation
17
- **Frequency**: As Needed
18
-
19
- ---
20
-
21
- ## Arguments
22
-
23
- **CLI-Style Arguments**:
24
- - `--file <path>` or `-f <path>` - Path to source file to analyze for clarifications
25
- - `--title <title>` or `-t <title>` - Title for the clarification document
26
- - `--auto` or `-a` - Automatically generate questions without user review
27
-
28
- **Natural Language Arguments**:
29
- - `@acp.clarification-create from draft file` - Analyze draft and create clarifications
30
- - `@acp.clarification-create for feature X` - Create clarifications about feature X
31
- - `@acp.clarification-create` - Interactive mode (no file)
32
-
33
- **Argument Mapping**:
34
- The agent infers intent from context:
35
- - If file path mentioned → Read and analyze that file
36
- - If topic mentioned → Create clarifications about that topic
37
- - If no arguments → Interactive chat-based clarification creation
38
-
39
- ---
40
-
41
- ## What This Command Does
42
-
43
- This command creates structured clarification documents following the [`agent/clarifications/clarification-{N}-{title}.template.md`](../clarifications/clarification-{N}-{title}.template.md) format. It can analyze existing files (drafts, designs, requirements) to identify gaps and generate targeted questions, or work interactively via chat to gather requirements.
44
-
45
- Clarification documents use a hierarchical structure (Items > Questions > Bullet points) to organize related questions logically. They include response markers (`>`) for users to provide answers inline, making it easy to capture detailed requirements without lengthy back-and-forth conversations.
46
-
47
- Use this command when you need to gather detailed information about ambiguous requirements, unclear design decisions, or incomplete specifications. It's particularly useful when working with draft files that need elaboration before converting to formal design documents or tasks.
48
-
49
- ---
50
-
51
- ## Prerequisites
52
-
53
- - [ ] ACP installed in current directory
54
- - [ ] Clarification template exists (agent/clarifications/clarification-{N}-{title}.template.md)
55
- - [ ] (Optional) Source file to analyze if using file-based workflow
56
-
57
- ---
58
-
59
- ## Steps
60
-
61
- ### 1. Determine Next Clarification Number
62
-
63
- Find the next available clarification number:
64
-
65
- **Actions**:
66
- - List all existing clarification files in agent/clarifications/
67
- - Parse clarification numbers (clarification-1-*, clarification-2-*, etc.)
68
- - Find highest number
69
- - Increment by 1 for new clarification number
70
-
71
- **Expected Outcome**: Next clarification number determined (e.g., clarification-7)
72
-
73
- ### 1.5. Check Existing Clarifications for Overlap
74
-
75
- Before generating questions, check if existing clarifications already cover related topics.
76
-
77
- **Actions**:
78
- - List all files in `agent/clarifications/` (exclude `*.template.md`)
79
- - For each file, extract the title from the filename (e.g., `clarification-5-key-file-directive.md` → "key-file-directive")
80
- - Infer from titles which clarifications might be relevant to the current topic
81
- - Use keyword matching between the current topic/title and existing clarification titles
82
- - Only load clarifications that appear relevant (avoid unnecessary context token consumption)
83
- - If relevant clarifications found:
84
- - Read them to identify already-answered questions
85
- - When generating questions in Step 5, cross-reference with these answered questions
86
- - Skip or note questions that have already been answered elsewhere
87
- - Produce visible output showing what was checked
88
-
89
- **Display format**:
90
- ```
91
- 🔍 Checking existing clarifications for overlap...
92
- ✓ clarification-5-key-file-directive.md — not relevant (skipped)
93
- ✓ clarification-6-create-command-context-capture.md — relevant, loaded
94
- → 20 questions already answered on context capture topic
95
-
96
- 1 existing clarification loaded, 1 skipped
97
- Will avoid duplicating answered questions.
98
- ```
99
-
100
- **Heuristic**: This is a title-based relevance check, not an exhaustive content scan. If a title doesn't seem related to the current topic, skip it entirely to conserve context tokens. When in doubt, skip — it's better to occasionally re-ask a question than to burn tokens loading irrelevant clarifications.
101
-
102
- **Expected Outcome**: Existing relevant clarifications identified, duplicate questions will be avoided
103
-
104
- ### 2. Check for Source File
105
-
106
- Check if file was provided as argument:
107
-
108
- **Syntax**:
109
- - `@acp.clarification-create --file agent/drafts/my-draft.md`
110
- - `@acp.clarification-create @my-draft.md` (@ reference)
111
- - `@acp.clarification-create` (no file - interactive mode)
112
-
113
- **Actions**:
114
- - If file provided: Read source file
115
- - If no file: Proceed to interactive mode
116
-
117
- **Expected Outcome**: Source file read (if provided) or interactive mode confirmed
118
-
119
- ### 3. Collect Clarification Information
120
-
121
- Gather information from user via chat:
122
-
123
- **Information to Collect**:
124
- - **Clarification title** (descriptive, kebab-case)
125
- - Example: "package-create-enhancements" or "firebase-auth-requirements"
126
- - Validation: lowercase, alphanumeric, hyphens
127
- - **Purpose** (one-line description of what needs clarification)
128
- - Example: "Clarify package creation workflow and metadata requirements"
129
- - **Source context** (what document/feature this relates to)
130
- - Example: "agent/design/acp-package-development-system.md"
131
-
132
- **Expected Outcome**: All clarification metadata collected
133
-
134
- ### 4. Analyze Source Content (If File Provided)
135
-
136
- If source file was provided, analyze for gaps:
137
-
138
- **Actions**:
139
- - Read and understand source file content
140
- - Identify ambiguous statements
141
- - Find missing details
142
- - Note incomplete specifications
143
- - Detect assumptions that need validation
144
- - List areas needing user input
145
-
146
- **Expected Outcome**: List of topics needing clarification identified
147
-
148
- ### 5. Generate Questions
149
-
150
- Create structured questions organized by topic:
151
-
152
- **Structure**:
153
- ```markdown
154
- # Item 1: {Major Topic}
155
-
156
- ## Questions 1.1: {Subtopic}
157
-
158
- - Specific question 1?
159
-
160
- >
161
-
162
- - Specific question 2?
163
-
164
- >
165
-
166
- ## Questions 1.2: {Another Subtopic}
167
-
168
- - Question 1?
169
-
170
- >
171
- ```
172
-
173
- **Guidelines**:
174
- - Group related questions under Items (major topics)
175
- - Use Questions subsections for subtopics
176
- - Keep questions specific and actionable
177
- - Provide context for complex questions
178
- - Include examples where helpful
179
- - Leave blank response lines (`>`) for user answers
180
- - **Prefer Yes/No questions** over "Option A or Option B?" format — users can answer "yes/no" instead of "the former/the latter":
181
- - **Two options, with clear recommendation**: "We recommend X. Acceptable?" (yes/no)
182
- - **Two options, no clear recommendation**: "Do you prefer X? (yes/no)" — state the first option and let the user accept or reject. Do NOT force a recommendation when neither option is clearly better.
183
- - **3+ options**: Use labeled choices (A, B, C, etc.)
184
- - Recommendations are optional — only include one when the agent has enough context to genuinely justify a preference. When in doubt, omit the recommendation and just present the choice.
185
- - **Multi-option discrete questions**: When asking about a set of properties/features/items, list each option as a separate bullet with its own `>` response line so the user can accept/reject each individually without retyping:
186
- ```markdown
187
- - Which properties should be included?
188
-
189
- - name
190
- >
191
- - description
192
- >
193
- - version
194
- >
195
- - author
196
- >
197
- ```
198
- This lets users answer "yes", "no", or add notes per item inline.
199
-
200
- **If analyzing file**:
201
- - Generate 10-30 questions based on gaps found
202
- - Organize by logical topic areas
203
- - Reference specific sections of source file
204
-
205
- **If interactive mode**:
206
- - Ask user: "What topics need clarification?"
207
- - Generate questions based on user's description
208
- - Aim for 5-15 questions initially
209
-
210
- **Expected Outcome**: Structured questions generated
211
-
212
- ### 6. Create Clarification File
213
-
214
- Generate clarification document from template:
215
-
216
- **Actions**:
217
- - Determine full filename: `clarification-{N}-{title}.md`
218
- - N = clarification number from Step 1
219
- - title = kebab-case version of clarification title
220
- - Copy structure from clarification template
221
- - Fill in metadata:
222
- - Clarification number and title
223
- - Purpose
224
- - Created date
225
- - Status: "Awaiting Responses"
226
- - Fill in Items and Questions sections with generated questions
227
- - Include "How to Use This Document" section from template
228
- - Save to `agent/clarifications/clarification-{N}-{title}.md`
229
-
230
- **Expected Outcome**: Clarification file created
231
-
232
- ### 7. Report Success
233
-
234
- Display what was created:
235
-
236
- **Output**:
237
- ```
238
- ✅ Clarification Created Successfully!
239
-
240
- File: agent/clarifications/clarification-{N}-{title}.md
241
- Number: {N}
242
- Title: {title}
243
- Questions: {count} questions across {item-count} topics
244
- Status: Awaiting Responses
245
-
246
- ✓ Clarification file created
247
- ✓ {count} questions generated
248
-
249
- Next steps:
250
- - Review the clarification file
251
- - Answer questions by typing responses after > markers
252
- - To leave feedback or ask follow-up questions, use HTML comment blocks (<!-- your feedback -->)
253
- - Update Status to "Completed" when done
254
- - Run @acp.clarification-address to have the agent analyze your responses and address comment-block feedback
255
- - Use answers to update design docs, tasks, or create new entities
256
- ```
257
-
258
- **Expected Outcome**: User knows clarification was created and how to use it
259
-
260
- ---
261
-
262
- ## Verification
263
-
264
- - [ ] Next clarification number determined correctly
265
- - [ ] Clarification information collected
266
- - [ ] Source file analyzed (if provided)
267
- - [ ] Questions generated and organized logically
268
- - [ ] Clarification file created with correct number and title
269
- - [ ] File follows template structure
270
- - [ ] All metadata filled in correctly
271
- - [ ] Questions are clear and actionable
272
- - [ ] Response markers (>) included for all questions
273
-
274
- ---
275
-
276
- ## Expected Output
277
-
278
- ### Files Created
279
- - `agent/clarifications/clarification-{N}-{title}.md` - Clarification document with structured questions
280
-
281
- ### Files Modified
282
- - None (clarifications are standalone documents)
283
-
284
- ---
285
-
286
- ## Examples
287
-
288
- ### Example 1: Creating Clarification from Draft File
289
-
290
- **Context**: Have draft design document that needs elaboration
291
-
292
- **Invocation**: `@acp.clarification-create --file agent/drafts/auth-system-draft.md`
293
-
294
- **Result**:
295
- ```
296
- ✅ Clarification Created Successfully!
297
-
298
- File: agent/clarifications/clarification-7-auth-system-requirements.md
299
- Number: 7
300
- Title: auth-system-requirements
301
- Questions: 25 questions across 4 topics
302
- Status: Awaiting Responses
303
-
304
- Topics covered:
305
- - Authentication Methods (8 questions)
306
- - Security Requirements (7 questions)
307
- - User Management (6 questions)
308
- - Integration Points (4 questions)
309
-
310
- ✓ Clarification file created
311
- ✓ 25 questions generated
312
-
313
- Next steps:
314
- - Review agent/clarifications/clarification-7-auth-system-requirements.md
315
- - Answer questions by typing responses after > markers
316
- - Update Status to "Completed" when done
317
- ```
318
-
319
- ### Example 2: Creating Clarification Interactively
320
-
321
- **Context**: Need to gather requirements for new feature
322
-
323
- **Invocation**: `@acp.clarification-create`
324
-
325
- **Interaction**:
326
- ```
327
- Agent: What would you like to title this clarification? (kebab-case)
328
- User: payment-integration-requirements
329
-
330
- Agent: What's the purpose? (one-line description)
331
- User: Clarify payment gateway integration requirements and workflow
332
-
333
- Agent: What topics need clarification?
334
- User: Payment providers, security, webhooks, error handling
335
-
336
- Agent: Generating questions for these topics...
337
-
338
- ✅ Clarification Created Successfully!
339
-
340
- File: agent/clarifications/clarification-8-payment-integration-requirements.md
341
- Number: 8
342
- Title: payment-integration-requirements
343
- Questions: 12 questions across 4 topics
344
- Status: Awaiting Responses
345
-
346
- ✓ Clarification file created
347
- ✓ 12 questions generated
348
- ```
349
-
350
- ### Example 3: Creating Clarification with Custom Title
351
-
352
- **Context**: Analyzing existing design document
353
-
354
- **Invocation**: `@acp.clarification-create --file agent/design/local.api-design.md --title api-endpoint-details`
355
-
356
- **Result**: Creates clarification-9-api-endpoint-details.md with questions about API design gaps
357
-
358
- ---
359
-
360
- ## Related Commands
361
-
362
- - [`@acp.clarification-address`](acp.clarification-address.md) - Address user responses with research, tradeoffs, and recommendations
363
- - [`@acp.clarifications-research`](acp.clarifications-research.md) - Fill in agent-delegated research lines
364
- - [`@acp.design-create`](acp.design-create.md) - Create design documents (often follows clarification)
365
- - [`@acp.task-create`](acp.task-create.md) - Create tasks (may use clarification answers)
366
- - [`@acp.pattern-create`](acp.pattern-create.md) - Create patterns (may use clarification answers)
367
-
368
- ---
369
-
370
- ## Troubleshooting
371
-
372
- ### Issue 1: Source file not found
373
-
374
- **Symptom**: Error message "File not found"
375
-
376
- **Solution**: Verify file path is correct. Use relative path from project root or @ reference for files in agent/drafts/
377
-
378
- ### Issue 2: No questions generated
379
-
380
- **Symptom**: Clarification created but empty
381
-
382
- **Solution**: Provide more context about what needs clarification. Source file may be too complete or too vague.
383
-
384
- ### Issue 3: Questions too generic
385
-
386
- **Symptom**: Generated questions are not specific enough
387
-
388
- **Solution**: Provide more detailed source file or specify topics more precisely in interactive mode
389
-
390
- ### Issue 4: Clarification number conflict
391
-
392
- **Symptom**: Clarification file already exists with that number
393
-
394
- **Solution**: Command should auto-detect and use next available number. If conflict persists, manually check agent/clarifications/ directory.
395
-
396
- ---
397
-
398
- ## Security Considerations
399
-
400
- ### File Access
401
- - **Reads**: Source files (drafts, designs, requirements), clarification template
402
- - **Writes**: agent/clarifications/clarification-{N}-{title}.md
403
- - **Executes**: None
404
-
405
- ### Network Access
406
- - **APIs**: None
407
- - **Repositories**: None
408
-
409
- ### Sensitive Data
410
- - **Secrets**: Never include secrets in clarifications
411
- - **Credentials**: Never include credentials in questions or examples
412
-
413
- ---
414
-
415
- ## Notes
416
-
417
- - Clarification title should be descriptive and relate to the topic
418
- - Clarification number is automatically assigned (sequential)
419
- - Questions should be specific and actionable
420
- - Use hierarchical structure (Items > Questions > Bullet points)
421
- - Response markers (>) make it easy for users to answer inline
422
- - Clarifications are living documents - can be updated as questions are answered
423
- - Users can leave feedback or follow-up questions in HTML comment blocks (`<!-- ... -->`); run `@acp.clarification-address` to have the agent respond
424
- - After clarification is complete, use answers to update design docs, tasks, or create new entities
425
- - Clarifications are typically kept in version control for historical reference
426
- - Good clarifications have 10-30 questions organized into 3-5 major topics
427
-
428
- ---
429
-
430
- **Namespace**: acp
431
- **Command**: clarification-create
432
- **Version**: 1.0.0
433
- **Created**: 2026-02-25
434
- **Last Updated**: 2026-02-25
435
- **Status**: Active
436
- **Compatibility**: ACP 4.0.0+
437
- **Author**: ACP Project