@prmichaelsen/reddit-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.
- package/.claude/settings.local.json +23 -0
- package/.env.example +13 -0
- package/AGENT.md +1772 -0
- package/README.md +54 -0
- package/agent/commands/acp.clarification-capture.md +386 -0
- package/agent/commands/acp.clarification-create.md +432 -0
- package/agent/commands/acp.clarifications-research.md +326 -0
- package/agent/commands/acp.command-create.md +432 -0
- package/agent/commands/acp.design-create.md +286 -0
- package/agent/commands/acp.design-reference.md +355 -0
- package/agent/commands/acp.index.md +423 -0
- package/agent/commands/acp.init.md +546 -0
- package/agent/commands/acp.package-create.md +895 -0
- package/agent/commands/acp.package-info.md +212 -0
- package/agent/commands/acp.package-install.md +539 -0
- package/agent/commands/acp.package-list.md +280 -0
- package/agent/commands/acp.package-publish.md +541 -0
- package/agent/commands/acp.package-remove.md +293 -0
- package/agent/commands/acp.package-search.md +307 -0
- package/agent/commands/acp.package-update.md +361 -0
- package/agent/commands/acp.package-validate.md +540 -0
- package/agent/commands/acp.pattern-create.md +386 -0
- package/agent/commands/acp.plan.md +577 -0
- package/agent/commands/acp.proceed.md +882 -0
- package/agent/commands/acp.project-create.md +675 -0
- package/agent/commands/acp.project-info.md +312 -0
- package/agent/commands/acp.project-list.md +226 -0
- package/agent/commands/acp.project-remove.md +379 -0
- package/agent/commands/acp.project-set.md +227 -0
- package/agent/commands/acp.project-update.md +307 -0
- package/agent/commands/acp.projects-restore.md +228 -0
- package/agent/commands/acp.projects-sync.md +347 -0
- package/agent/commands/acp.report.md +407 -0
- package/agent/commands/acp.resume.md +239 -0
- package/agent/commands/acp.sessions.md +301 -0
- package/agent/commands/acp.status.md +293 -0
- package/agent/commands/acp.sync.md +364 -0
- package/agent/commands/acp.task-create.md +500 -0
- package/agent/commands/acp.update.md +302 -0
- package/agent/commands/acp.validate.md +466 -0
- package/agent/commands/acp.version-check-for-updates.md +276 -0
- package/agent/commands/acp.version-check.md +191 -0
- package/agent/commands/acp.version-update.md +289 -0
- package/agent/commands/command.template.md +339 -0
- package/agent/commands/git.commit.md +526 -0
- package/agent/commands/git.init.md +514 -0
- package/agent/design/.gitkeep +0 -0
- package/agent/design/design.template.md +154 -0
- package/agent/design/requirements.md +332 -0
- package/agent/design/requirements.template.md +387 -0
- package/agent/index/.gitkeep +0 -0
- package/agent/index/local.main.template.yaml +37 -0
- package/agent/manifest.template.yaml +13 -0
- package/agent/manifest.yaml +61 -0
- package/agent/milestones/.gitkeep +0 -0
- package/agent/milestones/milestone-1-foundation-listings-mvp.md +140 -0
- package/agent/milestones/milestone-1-{title}.template.md +206 -0
- package/agent/milestones/milestone-2-content-interaction.md +56 -0
- package/agent/milestones/milestone-3-users-and-messaging.md +54 -0
- package/agent/milestones/milestone-4-subreddits-and-flair.md +56 -0
- package/agent/milestones/milestone-5-moderation.md +53 -0
- package/agent/milestones/milestone-6-advanced-features-and-polish.md +56 -0
- package/agent/package.template.yaml +86 -0
- package/agent/patterns/.gitkeep +0 -0
- package/agent/patterns/bootstrap.template.md +1237 -0
- package/agent/patterns/pattern.template.md +382 -0
- package/agent/progress.template.yaml +161 -0
- package/agent/progress.yaml +223 -0
- package/agent/schemas/package.schema.yaml +276 -0
- package/agent/scripts/acp.common.sh +1781 -0
- package/agent/scripts/acp.yaml-parser.sh +985 -0
- package/agent/tasks/.gitkeep +0 -0
- package/agent/tasks/milestone-1-foundation-listings-mvp/task-1-project-scaffolding.md +75 -0
- package/agent/tasks/milestone-1-foundation-listings-mvp/task-2-reddit-oauth.md +71 -0
- package/agent/tasks/milestone-1-foundation-listings-mvp/task-3-reddit-api-client.md +71 -0
- package/agent/tasks/milestone-1-foundation-listings-mvp/task-4-listing-tools.md +65 -0
- package/agent/tasks/milestone-1-foundation-listings-mvp/task-5-search-tools.md +43 -0
- package/agent/tasks/milestone-1-foundation-listings-mvp/task-6-testing-verification.md +49 -0
- package/agent/tasks/milestone-2-content-interaction/task-7-post-tools.md +56 -0
- package/agent/tasks/milestone-2-content-interaction/task-8-comment-tools.md +49 -0
- package/agent/tasks/milestone-2-content-interaction/task-9-vote-save-report-tools.md +50 -0
- package/agent/tasks/milestone-3-users-and-messaging/task-10-account-tools.md +44 -0
- package/agent/tasks/milestone-3-users-and-messaging/task-11-user-profile-tools.md +50 -0
- package/agent/tasks/milestone-3-users-and-messaging/task-12-private-message-tools.md +50 -0
- package/agent/tasks/milestone-4-subreddits-and-flair/task-13-subreddit-tools.md +47 -0
- package/agent/tasks/milestone-4-subreddits-and-flair/task-14-flair-tools.md +46 -0
- package/agent/tasks/milestone-4-subreddits-and-flair/task-15-http-transport.md +53 -0
- package/agent/tasks/milestone-5-moderation/task-16-mod-action-tools.md +48 -0
- package/agent/tasks/milestone-5-moderation/task-17-mod-listing-tools.md +47 -0
- package/agent/tasks/milestone-5-moderation/task-18-mod-management-tools.md +42 -0
- package/agent/tasks/milestone-6-advanced-features-and-polish/task-19-multireddit-tools.md +49 -0
- package/agent/tasks/milestone-6-advanced-features-and-polish/task-20-wiki-tools.md +47 -0
- package/agent/tasks/milestone-6-advanced-features-and-polish/task-21-documentation-polish.md +65 -0
- package/agent/tasks/task-1-{title}.template.md +244 -0
- package/dist/auth/oauth.d.ts +15 -0
- package/dist/auth/oauth.d.ts.map +1 -0
- package/dist/client/reddit.d.ts +28 -0
- package/dist/client/reddit.d.ts.map +1 -0
- package/dist/factory.d.ts +2 -0
- package/dist/factory.d.ts.map +1 -0
- package/dist/factory.js +30394 -0
- package/dist/factory.js.map +7 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +31955 -0
- package/dist/index.js.map +7 -0
- package/dist/server.d.ts +5 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +30401 -0
- package/dist/server.js.map +7 -0
- package/dist/tools/listings.d.ts +4 -0
- package/dist/tools/listings.d.ts.map +1 -0
- package/dist/tools/search.d.ts +4 -0
- package/dist/tools/search.d.ts.map +1 -0
- package/dist/transport/http.d.ts +7 -0
- package/dist/transport/http.d.ts.map +1 -0
- package/dist/types/index.d.ts +78 -0
- package/dist/types/index.d.ts.map +1 -0
- package/esbuild.build.js +21 -0
- package/jest.config.js +18 -0
- package/package.json +46 -0
- package/src/auth/oauth.ts +200 -0
- package/src/client/reddit.ts +245 -0
- package/src/factory.ts +5 -0
- package/src/index.ts +31 -0
- package/src/server.ts +36 -0
- package/src/tools/listings.ts +202 -0
- package/src/tools/search.ts +85 -0
- package/src/transport/http.ts +49 -0
- package/src/types/index.ts +83 -0
- package/tests/fixtures/reddit-responses.ts +132 -0
- package/tests/helpers/mock-client.ts +36 -0
- package/tests/unit/auth.test.ts +89 -0
- package/tests/unit/client.test.ts +218 -0
- package/tests/unit/listings.test.ts +113 -0
- package/tests/unit/search.test.ts +59 -0
- package/tests/unit/server.test.ts +14 -0
- package/tsconfig.json +21 -0
|
@@ -0,0 +1,432 @@
|
|
|
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
|
+
- Update Status to "Completed" when done
|
|
253
|
+
- Use answers to update design docs, tasks, or create new entities
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
**Expected Outcome**: User knows clarification was created and how to use it
|
|
257
|
+
|
|
258
|
+
---
|
|
259
|
+
|
|
260
|
+
## Verification
|
|
261
|
+
|
|
262
|
+
- [ ] Next clarification number determined correctly
|
|
263
|
+
- [ ] Clarification information collected
|
|
264
|
+
- [ ] Source file analyzed (if provided)
|
|
265
|
+
- [ ] Questions generated and organized logically
|
|
266
|
+
- [ ] Clarification file created with correct number and title
|
|
267
|
+
- [ ] File follows template structure
|
|
268
|
+
- [ ] All metadata filled in correctly
|
|
269
|
+
- [ ] Questions are clear and actionable
|
|
270
|
+
- [ ] Response markers (>) included for all questions
|
|
271
|
+
|
|
272
|
+
---
|
|
273
|
+
|
|
274
|
+
## Expected Output
|
|
275
|
+
|
|
276
|
+
### Files Created
|
|
277
|
+
- `agent/clarifications/clarification-{N}-{title}.md` - Clarification document with structured questions
|
|
278
|
+
|
|
279
|
+
### Files Modified
|
|
280
|
+
- None (clarifications are standalone documents)
|
|
281
|
+
|
|
282
|
+
---
|
|
283
|
+
|
|
284
|
+
## Examples
|
|
285
|
+
|
|
286
|
+
### Example 1: Creating Clarification from Draft File
|
|
287
|
+
|
|
288
|
+
**Context**: Have draft design document that needs elaboration
|
|
289
|
+
|
|
290
|
+
**Invocation**: `@acp.clarification-create --file agent/drafts/auth-system-draft.md`
|
|
291
|
+
|
|
292
|
+
**Result**:
|
|
293
|
+
```
|
|
294
|
+
✅ Clarification Created Successfully!
|
|
295
|
+
|
|
296
|
+
File: agent/clarifications/clarification-7-auth-system-requirements.md
|
|
297
|
+
Number: 7
|
|
298
|
+
Title: auth-system-requirements
|
|
299
|
+
Questions: 25 questions across 4 topics
|
|
300
|
+
Status: Awaiting Responses
|
|
301
|
+
|
|
302
|
+
Topics covered:
|
|
303
|
+
- Authentication Methods (8 questions)
|
|
304
|
+
- Security Requirements (7 questions)
|
|
305
|
+
- User Management (6 questions)
|
|
306
|
+
- Integration Points (4 questions)
|
|
307
|
+
|
|
308
|
+
✓ Clarification file created
|
|
309
|
+
✓ 25 questions generated
|
|
310
|
+
|
|
311
|
+
Next steps:
|
|
312
|
+
- Review agent/clarifications/clarification-7-auth-system-requirements.md
|
|
313
|
+
- Answer questions by typing responses after > markers
|
|
314
|
+
- Update Status to "Completed" when done
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
### Example 2: Creating Clarification Interactively
|
|
318
|
+
|
|
319
|
+
**Context**: Need to gather requirements for new feature
|
|
320
|
+
|
|
321
|
+
**Invocation**: `@acp.clarification-create`
|
|
322
|
+
|
|
323
|
+
**Interaction**:
|
|
324
|
+
```
|
|
325
|
+
Agent: What would you like to title this clarification? (kebab-case)
|
|
326
|
+
User: payment-integration-requirements
|
|
327
|
+
|
|
328
|
+
Agent: What's the purpose? (one-line description)
|
|
329
|
+
User: Clarify payment gateway integration requirements and workflow
|
|
330
|
+
|
|
331
|
+
Agent: What topics need clarification?
|
|
332
|
+
User: Payment providers, security, webhooks, error handling
|
|
333
|
+
|
|
334
|
+
Agent: Generating questions for these topics...
|
|
335
|
+
|
|
336
|
+
✅ Clarification Created Successfully!
|
|
337
|
+
|
|
338
|
+
File: agent/clarifications/clarification-8-payment-integration-requirements.md
|
|
339
|
+
Number: 8
|
|
340
|
+
Title: payment-integration-requirements
|
|
341
|
+
Questions: 12 questions across 4 topics
|
|
342
|
+
Status: Awaiting Responses
|
|
343
|
+
|
|
344
|
+
✓ Clarification file created
|
|
345
|
+
✓ 12 questions generated
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
### Example 3: Creating Clarification with Custom Title
|
|
349
|
+
|
|
350
|
+
**Context**: Analyzing existing design document
|
|
351
|
+
|
|
352
|
+
**Invocation**: `@acp.clarification-create --file agent/design/local.api-design.md --title api-endpoint-details`
|
|
353
|
+
|
|
354
|
+
**Result**: Creates clarification-9-api-endpoint-details.md with questions about API design gaps
|
|
355
|
+
|
|
356
|
+
---
|
|
357
|
+
|
|
358
|
+
## Related Commands
|
|
359
|
+
|
|
360
|
+
- [`@acp.design-create`](acp.design-create.md) - Create design documents (often follows clarification)
|
|
361
|
+
- [`@acp.task-create`](acp.task-create.md) - Create tasks (may use clarification answers)
|
|
362
|
+
- [`@acp.pattern-create`](acp.pattern-create.md) - Create patterns (may use clarification answers)
|
|
363
|
+
|
|
364
|
+
---
|
|
365
|
+
|
|
366
|
+
## Troubleshooting
|
|
367
|
+
|
|
368
|
+
### Issue 1: Source file not found
|
|
369
|
+
|
|
370
|
+
**Symptom**: Error message "File not found"
|
|
371
|
+
|
|
372
|
+
**Solution**: Verify file path is correct. Use relative path from project root or @ reference for files in agent/drafts/
|
|
373
|
+
|
|
374
|
+
### Issue 2: No questions generated
|
|
375
|
+
|
|
376
|
+
**Symptom**: Clarification created but empty
|
|
377
|
+
|
|
378
|
+
**Solution**: Provide more context about what needs clarification. Source file may be too complete or too vague.
|
|
379
|
+
|
|
380
|
+
### Issue 3: Questions too generic
|
|
381
|
+
|
|
382
|
+
**Symptom**: Generated questions are not specific enough
|
|
383
|
+
|
|
384
|
+
**Solution**: Provide more detailed source file or specify topics more precisely in interactive mode
|
|
385
|
+
|
|
386
|
+
### Issue 4: Clarification number conflict
|
|
387
|
+
|
|
388
|
+
**Symptom**: Clarification file already exists with that number
|
|
389
|
+
|
|
390
|
+
**Solution**: Command should auto-detect and use next available number. If conflict persists, manually check agent/clarifications/ directory.
|
|
391
|
+
|
|
392
|
+
---
|
|
393
|
+
|
|
394
|
+
## Security Considerations
|
|
395
|
+
|
|
396
|
+
### File Access
|
|
397
|
+
- **Reads**: Source files (drafts, designs, requirements), clarification template
|
|
398
|
+
- **Writes**: agent/clarifications/clarification-{N}-{title}.md
|
|
399
|
+
- **Executes**: None
|
|
400
|
+
|
|
401
|
+
### Network Access
|
|
402
|
+
- **APIs**: None
|
|
403
|
+
- **Repositories**: None
|
|
404
|
+
|
|
405
|
+
### Sensitive Data
|
|
406
|
+
- **Secrets**: Never include secrets in clarifications
|
|
407
|
+
- **Credentials**: Never include credentials in questions or examples
|
|
408
|
+
|
|
409
|
+
---
|
|
410
|
+
|
|
411
|
+
## Notes
|
|
412
|
+
|
|
413
|
+
- Clarification title should be descriptive and relate to the topic
|
|
414
|
+
- Clarification number is automatically assigned (sequential)
|
|
415
|
+
- Questions should be specific and actionable
|
|
416
|
+
- Use hierarchical structure (Items > Questions > Bullet points)
|
|
417
|
+
- Response markers (>) make it easy for users to answer inline
|
|
418
|
+
- Clarifications are living documents - can be updated as questions are answered
|
|
419
|
+
- After clarification is complete, use answers to update design docs, tasks, or create new entities
|
|
420
|
+
- Clarifications are typically kept in version control for historical reference
|
|
421
|
+
- Good clarifications have 10-30 questions organized into 3-5 major topics
|
|
422
|
+
|
|
423
|
+
---
|
|
424
|
+
|
|
425
|
+
**Namespace**: acp
|
|
426
|
+
**Command**: clarification-create
|
|
427
|
+
**Version**: 1.0.0
|
|
428
|
+
**Created**: 2026-02-25
|
|
429
|
+
**Last Updated**: 2026-02-25
|
|
430
|
+
**Status**: Active
|
|
431
|
+
**Compatibility**: ACP 4.0.0+
|
|
432
|
+
**Author**: ACP Project
|