ace-docs 0.31.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.
- checksums.yaml +7 -0
- data/.ace-defaults/docs/config.yml +169 -0
- data/.ace-defaults/docs/multi-subject-example.md +130 -0
- data/.ace-defaults/docs/single-subject-example.md +150 -0
- data/.ace-defaults/nav/protocols/guide-sources/ace-docs.yml +10 -0
- data/.ace-defaults/nav/protocols/prompt-sources/ace-docs.yml +34 -0
- data/.ace-defaults/nav/protocols/tmpl-sources/ace-docs.yml +10 -0
- data/.ace-defaults/nav/protocols/wfi-sources/ace-docs.yml +19 -0
- data/CHANGELOG.md +1082 -0
- data/LICENSE +21 -0
- data/README.md +40 -0
- data/Rakefile +14 -0
- data/exe/ace-docs +14 -0
- data/handbook/guides/documentation/ruby.md +16 -0
- data/handbook/guides/documentation/rust.md +35 -0
- data/handbook/guides/documentation/typescript.md +18 -0
- data/handbook/guides/documentation.g.md +437 -0
- data/handbook/guides/documents-embedded-sync.g.md +473 -0
- data/handbook/guides/documents-embedding.g.md +276 -0
- data/handbook/guides/markdown-style.g.md +290 -0
- data/handbook/prompts/ace-change-analyzer.system.md +113 -0
- data/handbook/prompts/ace-change-analyzer.user.md +95 -0
- data/handbook/prompts/document-analysis.md +74 -0
- data/handbook/prompts/document-analysis.system.md +129 -0
- data/handbook/prompts/markdown-style.system.md +113 -0
- data/handbook/skills/as-docs-create-adr/SKILL.md +35 -0
- data/handbook/skills/as-docs-create-api/SKILL.md +35 -0
- data/handbook/skills/as-docs-create-user/SKILL.md +35 -0
- data/handbook/skills/as-docs-maintain-adrs/SKILL.md +35 -0
- data/handbook/skills/as-docs-squash-changelog/SKILL.md +42 -0
- data/handbook/skills/as-docs-update/SKILL.md +36 -0
- data/handbook/skills/as-docs-update-blueprint/SKILL.md +28 -0
- data/handbook/skills/as-docs-update-roadmap/SKILL.md +24 -0
- data/handbook/skills/as-docs-update-tools/SKILL.md +36 -0
- data/handbook/skills/as-docs-update-usage/SKILL.md +26 -0
- data/handbook/templates/code-docs/javascript-jsdoc.template.md +102 -0
- data/handbook/templates/code-docs/ruby-yard.template.md +85 -0
- data/handbook/templates/project-docs/README.template.md +73 -0
- data/handbook/templates/project-docs/architecture.template.md +300 -0
- data/handbook/templates/project-docs/blueprint.template.md +165 -0
- data/handbook/templates/project-docs/context/ownership.yml +160 -0
- data/handbook/templates/project-docs/decisions/adr.template.md +60 -0
- data/handbook/templates/project-docs/prd.template.md +144 -0
- data/handbook/templates/project-docs/roadmap/roadmap.template.md +47 -0
- data/handbook/templates/project-docs/vision.template.md +233 -0
- data/handbook/templates/user-docs/user-guide.template.md +107 -0
- data/handbook/workflow-instructions/docs/create-adr.wf.md +334 -0
- data/handbook/workflow-instructions/docs/create-api.wf.md +448 -0
- data/handbook/workflow-instructions/docs/create-cookbook.wf.md +434 -0
- data/handbook/workflow-instructions/docs/create-user.wf.md +399 -0
- data/handbook/workflow-instructions/docs/maintain-adrs.wf.md +589 -0
- data/handbook/workflow-instructions/docs/squash-changelog.wf.md +246 -0
- data/handbook/workflow-instructions/docs/update-blueprint.wf.md +361 -0
- data/handbook/workflow-instructions/docs/update-context.wf.md +336 -0
- data/handbook/workflow-instructions/docs/update-roadmap.wf.md +421 -0
- data/handbook/workflow-instructions/docs/update-tools.wf.md +307 -0
- data/handbook/workflow-instructions/docs/update-usage.wf.md +710 -0
- data/handbook/workflow-instructions/docs/update.wf.md +418 -0
- data/lib/ace/docs/atoms/diff_filterer.rb +131 -0
- data/lib/ace/docs/atoms/frontmatter_free_matcher.rb +20 -0
- data/lib/ace/docs/atoms/git_date_resolver.rb +16 -0
- data/lib/ace/docs/atoms/readme_metadata_inferrer.rb +60 -0
- data/lib/ace/docs/atoms/terminology_extractor.rb +308 -0
- data/lib/ace/docs/atoms/time_range_calculator.rb +96 -0
- data/lib/ace/docs/atoms/timestamp_parser.rb +106 -0
- data/lib/ace/docs/atoms/type_inferrer.rb +70 -0
- data/lib/ace/docs/cli/commands/analyze.rb +351 -0
- data/lib/ace/docs/cli/commands/analyze_consistency.rb +185 -0
- data/lib/ace/docs/cli/commands/discover.rb +75 -0
- data/lib/ace/docs/cli/commands/scope_options.rb +71 -0
- data/lib/ace/docs/cli/commands/status.rb +241 -0
- data/lib/ace/docs/cli/commands/update.rb +198 -0
- data/lib/ace/docs/cli/commands/validate.rb +225 -0
- data/lib/ace/docs/cli.rb +60 -0
- data/lib/ace/docs/models/analysis_report.rb +120 -0
- data/lib/ace/docs/models/consistency_report.rb +259 -0
- data/lib/ace/docs/models/document.rb +354 -0
- data/lib/ace/docs/molecules/change_detector.rb +389 -0
- data/lib/ace/docs/molecules/document_loader.rb +133 -0
- data/lib/ace/docs/molecules/frontmatter_manager.rb +85 -0
- data/lib/ace/docs/molecules/git_date_resolver.rb +30 -0
- data/lib/ace/docs/organisms/cross_document_analyzer.rb +274 -0
- data/lib/ace/docs/organisms/document_registry.rb +318 -0
- data/lib/ace/docs/organisms/validator.rb +164 -0
- data/lib/ace/docs/prompts/compact_diff_prompt.rb +119 -0
- data/lib/ace/docs/prompts/consistency_prompt.rb +286 -0
- data/lib/ace/docs/prompts/document_analysis_prompt.rb +389 -0
- data/lib/ace/docs/version.rb +7 -0
- data/lib/ace/docs.rb +82 -0
- data/lib/test.rb +4 -0
- metadata +347 -0
|
@@ -0,0 +1,710 @@
|
|
|
1
|
+
---
|
|
2
|
+
doc-type: workflow
|
|
3
|
+
title: Update Usage Documentation
|
|
4
|
+
purpose: Documentation for ace-docs/handbook/workflow-instructions/docs/update-usage.wf.md
|
|
5
|
+
ace-docs:
|
|
6
|
+
last-updated: 2026-02-23
|
|
7
|
+
last-checked: 2026-03-21
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Update Usage Documentation
|
|
11
|
+
|
|
12
|
+
## Goal
|
|
13
|
+
|
|
14
|
+
Systematically update usage documentation files based on user feedback, task requirements, or quality improvements, ensuring alignment with documentation best practices and project standards.
|
|
15
|
+
|
|
16
|
+
## Prerequisites
|
|
17
|
+
|
|
18
|
+
* Understanding of existing usage documentation patterns
|
|
19
|
+
* Access to target usage.md files or ability to create new ones
|
|
20
|
+
* Knowledge of Diátaxis framework (Tutorial, How-To, Reference, Explanation)
|
|
21
|
+
* Understanding of progressive disclosure principles
|
|
22
|
+
* Access to relevant feedback, task definitions, or improvement requests
|
|
23
|
+
|
|
24
|
+
## Project Context Loading
|
|
25
|
+
|
|
26
|
+
* Load workflow standards: `dev-handbook/.meta/gds/workflow-instructions-definition.g.md`
|
|
27
|
+
* Load project documentation: `docs/tools.md` for command examples
|
|
28
|
+
* Review existing patterns: Search for `usage.md` files in the project
|
|
29
|
+
* Load task context if applicable: Task definition file with requirements
|
|
30
|
+
|
|
31
|
+
## Process Steps
|
|
32
|
+
|
|
33
|
+
1. **Analyze Input and Requirements:**
|
|
34
|
+
* Determine the input type:
|
|
35
|
+
- User feedback or bug report
|
|
36
|
+
- Task definition with usage requirements
|
|
37
|
+
- Quality improvement request
|
|
38
|
+
- Migration from old format
|
|
39
|
+
* Identify target documentation:
|
|
40
|
+
```bash
|
|
41
|
+
# Find existing usage documentation
|
|
42
|
+
find . -name "usage.md" -path "*/ux/*" -o -name "usage.md" -path "*/docs/*"
|
|
43
|
+
|
|
44
|
+
# Or check specific task folder
|
|
45
|
+
ls -la .ace-taskflow/v.*/t/*/ux/usage.md
|
|
46
|
+
```
|
|
47
|
+
* Extract key requirements:
|
|
48
|
+
- What needs to be documented
|
|
49
|
+
- Target audience (developers, AI agents, or both)
|
|
50
|
+
- Scope of changes (new file, update, or complete rewrite)
|
|
51
|
+
|
|
52
|
+
2. **Classify Documentation Type:**
|
|
53
|
+
* Determine which Diátaxis type best fits:
|
|
54
|
+
|
|
55
|
+
| Type | Purpose | When to Use |
|
|
56
|
+
|------|---------|-------------|
|
|
57
|
+
| **Tutorial** | Learning-oriented, hands-on | New users getting started |
|
|
58
|
+
| **How-To Guide** | Task-oriented, problem-solving | Specific scenarios/goals |
|
|
59
|
+
| **Reference** | Information-oriented, technical | Command details, parameters |
|
|
60
|
+
| **Explanation** | Understanding-oriented, concepts | Architecture, design decisions |
|
|
61
|
+
|
|
62
|
+
* Most usage.md files are **How-To Guides** with **Reference** sections
|
|
63
|
+
* Consider if multiple types should be separated into different sections
|
|
64
|
+
|
|
65
|
+
3. **Select Documentation Pattern:**
|
|
66
|
+
Based on content type, choose the appropriate pattern:
|
|
67
|
+
|
|
68
|
+
* **Pattern A: CLI Tool Guide** (for command-line tools like ace-git-commit)
|
|
69
|
+
- Overview → Installation → Command Interface → Use Cases → Configuration
|
|
70
|
+
|
|
71
|
+
* **Pattern B: Feature Demo** (for new features/changes)
|
|
72
|
+
- Current Behavior (Before) → New Behavior (After) → Usage Scenarios → Benefits
|
|
73
|
+
|
|
74
|
+
* **Pattern C: Workflow Integration** (for multi-step processes)
|
|
75
|
+
- Overview → Command Types → Usage Scenarios → Command Reference → Tips
|
|
76
|
+
|
|
77
|
+
4. **Structure the Documentation:**
|
|
78
|
+
* Create or update the usage.md file following the selected pattern
|
|
79
|
+
* Use the appropriate embedded template (see templates section below)
|
|
80
|
+
* Apply progressive disclosure:
|
|
81
|
+
```markdown
|
|
82
|
+
## Quick Start (5 minutes)
|
|
83
|
+
[Minimal working example]
|
|
84
|
+
|
|
85
|
+
## Common Scenarios
|
|
86
|
+
[Practical use cases]
|
|
87
|
+
|
|
88
|
+
## Complete Reference
|
|
89
|
+
[Exhaustive documentation]
|
|
90
|
+
|
|
91
|
+
## Deep Dive (Optional)
|
|
92
|
+
[Advanced concepts]
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
5. **Write Scenario-Based Content:**
|
|
96
|
+
* For each major feature or command, create numbered scenarios:
|
|
97
|
+
```markdown
|
|
98
|
+
### Scenario N: [Descriptive Title]
|
|
99
|
+
|
|
100
|
+
**Goal**: [What user wants to achieve]
|
|
101
|
+
|
|
102
|
+
**Commands/Steps**:
|
|
103
|
+
```bash
|
|
104
|
+
# Command with comments
|
|
105
|
+
ace-taskflow command --flag value
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
**Expected Output**:
|
|
109
|
+
```
|
|
110
|
+
[Show actual output]
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
**Next Steps**: [Optional continuation]
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
6. **Add Examples with Expected Output:**
|
|
117
|
+
* EVERY example must show expected output
|
|
118
|
+
* Use OpenAPI-inspired format for multiple examples:
|
|
119
|
+
```markdown
|
|
120
|
+
**examples:**
|
|
121
|
+
basic:
|
|
122
|
+
summary: Simple usage
|
|
123
|
+
command: ace-tool command
|
|
124
|
+
output: |
|
|
125
|
+
Success: Operation completed
|
|
126
|
+
|
|
127
|
+
advanced:
|
|
128
|
+
summary: With options
|
|
129
|
+
command: ace-tool command --option value
|
|
130
|
+
output: |
|
|
131
|
+
Processing with option...
|
|
132
|
+
Success: Operation completed with value
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
7. **Include Command Reference Tables:**
|
|
136
|
+
* For tools with options, use consistent table format:
|
|
137
|
+
```markdown
|
|
138
|
+
| Option | Short | Description | Example |
|
|
139
|
+
|--------|-------|-------------|---------|
|
|
140
|
+
| `--flag` | `-f` | What it does | `--flag value` |
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
8. **Add Troubleshooting Section:**
|
|
144
|
+
* Use problem → solution format:
|
|
145
|
+
```markdown
|
|
146
|
+
### Problem: [Issue description]
|
|
147
|
+
|
|
148
|
+
**Symptom**: [What user sees]
|
|
149
|
+
|
|
150
|
+
**Solution**:
|
|
151
|
+
```bash
|
|
152
|
+
# Fix command
|
|
153
|
+
```
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
9. **Distinguish Command Types:**
|
|
157
|
+
* When both CLI and Claude commands exist:
|
|
158
|
+
```markdown
|
|
159
|
+
### Bash CLI Commands
|
|
160
|
+
Commands without `/` are terminal/bash commands:
|
|
161
|
+
```bash
|
|
162
|
+
ace-taskflow command
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
### Claude Code Commands (Slash Commands)
|
|
166
|
+
Commands starting with `/` are executed within Claude Code:
|
|
167
|
+
```
|
|
168
|
+
/ace:command
|
|
169
|
+
```
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
10. **Validate Documentation Quality:**
|
|
173
|
+
* Check all commands work:
|
|
174
|
+
```bash
|
|
175
|
+
# Test each command in documentation
|
|
176
|
+
# Verify output matches documentation
|
|
177
|
+
```
|
|
178
|
+
* Ensure consistency with existing patterns
|
|
179
|
+
* Verify progressive disclosure is implemented
|
|
180
|
+
* Confirm all examples have expected outputs
|
|
181
|
+
* Check for completeness:
|
|
182
|
+
- [ ] Overview/Purpose clear
|
|
183
|
+
- [ ] Prerequisites listed
|
|
184
|
+
- [ ] Installation/setup covered (if needed)
|
|
185
|
+
- [ ] Common scenarios documented
|
|
186
|
+
- [ ] Command reference complete
|
|
187
|
+
- [ ] Troubleshooting included
|
|
188
|
+
- [ ] Migration notes (if applicable)
|
|
189
|
+
|
|
190
|
+
11. **Review and Iterate:**
|
|
191
|
+
* Compare with existing high-quality examples:
|
|
192
|
+
- ace-git-commit usage (Pattern A)
|
|
193
|
+
- Task 031/032/033 usage (Pattern B)
|
|
194
|
+
- Batch operations usage (Pattern C)
|
|
195
|
+
* Get feedback if available
|
|
196
|
+
* Iterate based on user needs
|
|
197
|
+
|
|
198
|
+
## Success Criteria
|
|
199
|
+
|
|
200
|
+
* Usage documentation created or updated successfully
|
|
201
|
+
* Documentation type correctly classified (Tutorial/How-To/Reference/Explanation)
|
|
202
|
+
* Progressive disclosure implemented (Quick Start → Common → Complete → Deep)
|
|
203
|
+
* All examples include expected output
|
|
204
|
+
* Commands verified to work correctly
|
|
205
|
+
* Consistent with project documentation patterns
|
|
206
|
+
* Clear distinction between CLI and Claude commands (where applicable)
|
|
207
|
+
* Troubleshooting section included
|
|
208
|
+
* Quality validation completed
|
|
209
|
+
|
|
210
|
+
## Embedded Templates
|
|
211
|
+
|
|
212
|
+
<templates>
|
|
213
|
+
|
|
214
|
+
<template name="cli-tool-usage">
|
|
215
|
+
# [Tool Name] Usage Guide
|
|
216
|
+
|
|
217
|
+
## Document Type: How-To Guide + Reference
|
|
218
|
+
|
|
219
|
+
## Overview
|
|
220
|
+
|
|
221
|
+
[Brief description of what the tool does and its primary purpose]
|
|
222
|
+
|
|
223
|
+
**Key Features:**
|
|
224
|
+
- [Feature 1]
|
|
225
|
+
- [Feature 2]
|
|
226
|
+
- [Feature 3]
|
|
227
|
+
|
|
228
|
+
## Installation
|
|
229
|
+
|
|
230
|
+
```bash
|
|
231
|
+
# Installation command
|
|
232
|
+
[installation steps]
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
## Quick Start (5 minutes)
|
|
236
|
+
|
|
237
|
+
Get started with the most basic usage:
|
|
238
|
+
|
|
239
|
+
```bash
|
|
240
|
+
# Minimal working example
|
|
241
|
+
[command]
|
|
242
|
+
|
|
243
|
+
# Expected output:
|
|
244
|
+
[output]
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
**Success criteria:** [What indicates it worked]
|
|
248
|
+
|
|
249
|
+
## Command Interface
|
|
250
|
+
|
|
251
|
+
### Basic Usage
|
|
252
|
+
|
|
253
|
+
```bash
|
|
254
|
+
# Default behavior
|
|
255
|
+
[tool-name]
|
|
256
|
+
|
|
257
|
+
# With common flags
|
|
258
|
+
[tool-name] --flag value
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
### Command Options
|
|
262
|
+
|
|
263
|
+
| Option | Short | Description | Example |
|
|
264
|
+
|--------|-------|-------------|---------|
|
|
265
|
+
| `--help` | `-h` | Show help message | `tool -h` |
|
|
266
|
+
| `--verbose` | `-v` | Verbose output | `tool -v` |
|
|
267
|
+
| `--output` | `-o` | Output format | `tool -o json` |
|
|
268
|
+
|
|
269
|
+
## Common Scenarios
|
|
270
|
+
|
|
271
|
+
### Scenario 1: [Common Use Case]
|
|
272
|
+
|
|
273
|
+
**Goal**: [What user wants to achieve]
|
|
274
|
+
|
|
275
|
+
**Commands**:
|
|
276
|
+
```bash
|
|
277
|
+
# Step-by-step commands
|
|
278
|
+
[command 1]
|
|
279
|
+
[command 2]
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
**Expected Output**:
|
|
283
|
+
```
|
|
284
|
+
[Show actual output]
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
**Next Steps**: [What to do after]
|
|
288
|
+
|
|
289
|
+
### Scenario 2: [Another Use Case]
|
|
290
|
+
|
|
291
|
+
[Similar structure]
|
|
292
|
+
|
|
293
|
+
## Configuration
|
|
294
|
+
|
|
295
|
+
### Project Configuration
|
|
296
|
+
|
|
297
|
+
Create `.ace/[tool]/config.yml`:
|
|
298
|
+
|
|
299
|
+
```yaml
|
|
300
|
+
# Configuration example
|
|
301
|
+
[tool]:
|
|
302
|
+
setting: value
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
### Global Configuration
|
|
306
|
+
|
|
307
|
+
Place in `~/.ace/[tool]/config.yml` for user-wide defaults.
|
|
308
|
+
|
|
309
|
+
## Complete Command Reference
|
|
310
|
+
|
|
311
|
+
### Main Commands
|
|
312
|
+
|
|
313
|
+
#### `[tool] [command]`
|
|
314
|
+
|
|
315
|
+
[Detailed description]
|
|
316
|
+
|
|
317
|
+
**Parameters:**
|
|
318
|
+
- `param1`: [Description]
|
|
319
|
+
- `param2`: [Description]
|
|
320
|
+
|
|
321
|
+
**Options:**
|
|
322
|
+
- `--option1`: [Description]
|
|
323
|
+
|
|
324
|
+
**Examples:**
|
|
325
|
+
```bash
|
|
326
|
+
# Example 1
|
|
327
|
+
[command]
|
|
328
|
+
# Output: [output]
|
|
329
|
+
|
|
330
|
+
# Example 2
|
|
331
|
+
[command with options]
|
|
332
|
+
# Output: [output]
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
## Troubleshooting
|
|
336
|
+
|
|
337
|
+
### Problem: [Common Issue]
|
|
338
|
+
|
|
339
|
+
**Symptom**: [What user sees]
|
|
340
|
+
|
|
341
|
+
**Solution**:
|
|
342
|
+
```bash
|
|
343
|
+
# How to fix
|
|
344
|
+
[solution commands]
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
## Best Practices
|
|
348
|
+
|
|
349
|
+
1. **[Practice 1]**: [Explanation]
|
|
350
|
+
2. **[Practice 2]**: [Explanation]
|
|
351
|
+
3. **[Practice 3]**: [Explanation]
|
|
352
|
+
|
|
353
|
+
## Migration Notes
|
|
354
|
+
|
|
355
|
+
[If updating from older version]
|
|
356
|
+
|
|
357
|
+
**From old version:**
|
|
358
|
+
```bash
|
|
359
|
+
[old command]
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
**To new version:**
|
|
363
|
+
```bash
|
|
364
|
+
[new command]
|
|
365
|
+
```
|
|
366
|
+
</template>
|
|
367
|
+
|
|
368
|
+
<template name="feature-demo-usage">
|
|
369
|
+
# [Feature Name] - Usage Examples
|
|
370
|
+
|
|
371
|
+
## Document Type: Tutorial + How-To Guide
|
|
372
|
+
|
|
373
|
+
## Overview
|
|
374
|
+
|
|
375
|
+
[Brief description of the feature and what problem it solves]
|
|
376
|
+
|
|
377
|
+
## Current Behavior (Before)
|
|
378
|
+
|
|
379
|
+
```bash
|
|
380
|
+
# How things work currently
|
|
381
|
+
[current commands]
|
|
382
|
+
|
|
383
|
+
# Current output:
|
|
384
|
+
[current output]
|
|
385
|
+
|
|
386
|
+
# Limitations:
|
|
387
|
+
- [Limitation 1]
|
|
388
|
+
- [Limitation 2]
|
|
389
|
+
```
|
|
390
|
+
|
|
391
|
+
## New Behavior (After)
|
|
392
|
+
|
|
393
|
+
```bash
|
|
394
|
+
# How things work with new feature
|
|
395
|
+
[new commands]
|
|
396
|
+
|
|
397
|
+
# New output:
|
|
398
|
+
[new output]
|
|
399
|
+
|
|
400
|
+
# Improvements:
|
|
401
|
+
- [Improvement 1]
|
|
402
|
+
- [Improvement 2]
|
|
403
|
+
```
|
|
404
|
+
|
|
405
|
+
## Usage Scenarios
|
|
406
|
+
|
|
407
|
+
### Scenario 1: [Primary Use Case]
|
|
408
|
+
|
|
409
|
+
**Goal**: [What user achieves with this feature]
|
|
410
|
+
|
|
411
|
+
**Before** (old approach):
|
|
412
|
+
```bash
|
|
413
|
+
[old complex process]
|
|
414
|
+
```
|
|
415
|
+
|
|
416
|
+
**After** (new approach):
|
|
417
|
+
```bash
|
|
418
|
+
[new simple process]
|
|
419
|
+
```
|
|
420
|
+
|
|
421
|
+
**Benefits**:
|
|
422
|
+
- Saves [X] steps
|
|
423
|
+
- Reduces complexity
|
|
424
|
+
- [Other benefit]
|
|
425
|
+
|
|
426
|
+
### Scenario 2: [Secondary Use Case]
|
|
427
|
+
|
|
428
|
+
[Similar before/after structure]
|
|
429
|
+
|
|
430
|
+
### Scenario 3: [Edge Case or Advanced Usage]
|
|
431
|
+
|
|
432
|
+
[Demonstrate advanced capabilities]
|
|
433
|
+
|
|
434
|
+
## Configuration Examples
|
|
435
|
+
|
|
436
|
+
[If feature requires configuration]
|
|
437
|
+
|
|
438
|
+
```yaml
|
|
439
|
+
# Example configuration
|
|
440
|
+
feature:
|
|
441
|
+
enabled: true
|
|
442
|
+
options:
|
|
443
|
+
setting1: value
|
|
444
|
+
setting2: value
|
|
445
|
+
```
|
|
446
|
+
|
|
447
|
+
## Benefits
|
|
448
|
+
|
|
449
|
+
1. **[Key Benefit]**: [Detailed explanation]
|
|
450
|
+
2. **[Another Benefit]**: [How it helps users]
|
|
451
|
+
3. **[Third Benefit]**: [Impact on workflow]
|
|
452
|
+
|
|
453
|
+
## Compatibility Notes
|
|
454
|
+
|
|
455
|
+
- Works with: [versions/tools]
|
|
456
|
+
- Requires: [dependencies]
|
|
457
|
+
- Conflicts: [known issues]
|
|
458
|
+
</template>
|
|
459
|
+
|
|
460
|
+
<template name="workflow-integration-usage">
|
|
461
|
+
# [Workflow Name] - Usage Guide
|
|
462
|
+
|
|
463
|
+
## Document Type: How-To Guide
|
|
464
|
+
|
|
465
|
+
## Overview
|
|
466
|
+
|
|
467
|
+
[Description of the workflow and its purpose]
|
|
468
|
+
|
|
469
|
+
**Available Commands:**
|
|
470
|
+
- `/ace:[command1]` - [Description]
|
|
471
|
+
- `/ace:[command2]` - [Description]
|
|
472
|
+
- `ace-taskflow [command]` - [CLI equivalent if exists]
|
|
473
|
+
|
|
474
|
+
## Command Types
|
|
475
|
+
|
|
476
|
+
### Claude Code Commands (Slash Commands)
|
|
477
|
+
Commands starting with `/` are executed **within Claude Code**:
|
|
478
|
+
```
|
|
479
|
+
/ace:[command]
|
|
480
|
+
```
|
|
481
|
+
|
|
482
|
+
### Bash CLI Commands
|
|
483
|
+
Commands without `/` are **terminal/bash commands**:
|
|
484
|
+
```bash
|
|
485
|
+
ace-taskflow [command]
|
|
486
|
+
```
|
|
487
|
+
|
|
488
|
+
## Usage Scenarios
|
|
489
|
+
|
|
490
|
+
### Scenario 1: [Complete Workflow]
|
|
491
|
+
|
|
492
|
+
**Goal**: [End-to-end process description]
|
|
493
|
+
|
|
494
|
+
```bash
|
|
495
|
+
# Step 1: Preparation (bash command)
|
|
496
|
+
ace-taskflow list
|
|
497
|
+
|
|
498
|
+
# Step 2: Execution (Claude command)
|
|
499
|
+
/ace:[command]
|
|
500
|
+
|
|
501
|
+
# Expected Output:
|
|
502
|
+
Processing...
|
|
503
|
+
✓ Item 1 processed
|
|
504
|
+
✓ Item 2 processed
|
|
505
|
+
Summary: 2 items completed
|
|
506
|
+
```
|
|
507
|
+
|
|
508
|
+
### Scenario 2: [Partial Workflow]
|
|
509
|
+
|
|
510
|
+
**Goal**: [Specific part of workflow]
|
|
511
|
+
|
|
512
|
+
[Steps with mixed command types]
|
|
513
|
+
|
|
514
|
+
### Scenario 3: [Error Recovery]
|
|
515
|
+
|
|
516
|
+
**Goal**: [How to handle failures]
|
|
517
|
+
|
|
518
|
+
[Recovery steps]
|
|
519
|
+
|
|
520
|
+
## Command Reference
|
|
521
|
+
|
|
522
|
+
### `/ace:[command1]`
|
|
523
|
+
|
|
524
|
+
**Purpose**: [What it does]
|
|
525
|
+
|
|
526
|
+
**Usage**:
|
|
527
|
+
```
|
|
528
|
+
/ace:[command1] [arguments]
|
|
529
|
+
```
|
|
530
|
+
|
|
531
|
+
**Process**:
|
|
532
|
+
1. [Step 1]
|
|
533
|
+
2. [Step 2]
|
|
534
|
+
3. [Step 3]
|
|
535
|
+
|
|
536
|
+
**Output Example**:
|
|
537
|
+
```
|
|
538
|
+
[Sample output]
|
|
539
|
+
```
|
|
540
|
+
|
|
541
|
+
### `ace-taskflow [command]`
|
|
542
|
+
|
|
543
|
+
**Purpose**: [CLI tool purpose]
|
|
544
|
+
|
|
545
|
+
**Usage**:
|
|
546
|
+
```bash
|
|
547
|
+
ace-taskflow [command] [options]
|
|
548
|
+
```
|
|
549
|
+
|
|
550
|
+
**Options**:
|
|
551
|
+
| Option | Description |
|
|
552
|
+
|--------|-------------|
|
|
553
|
+
| `--flag` | [Description] |
|
|
554
|
+
|
|
555
|
+
## Workflow Integration
|
|
556
|
+
|
|
557
|
+
### Typical Weekly Workflow
|
|
558
|
+
|
|
559
|
+
```
|
|
560
|
+
Monday: [Step 1]
|
|
561
|
+
/ace:[command1]
|
|
562
|
+
|
|
563
|
+
Tuesday: [Step 2]
|
|
564
|
+
/ace:[command2]
|
|
565
|
+
|
|
566
|
+
Wednesday-Thursday: [Step 3]
|
|
567
|
+
/ace:[command3]
|
|
568
|
+
|
|
569
|
+
Friday: [Review]
|
|
570
|
+
/ace:[command4]
|
|
571
|
+
```
|
|
572
|
+
|
|
573
|
+
## Tips and Best Practices
|
|
574
|
+
|
|
575
|
+
### 1. Start Small
|
|
576
|
+
[Advice for beginners]
|
|
577
|
+
|
|
578
|
+
### 2. Batch Processing
|
|
579
|
+
[How to handle multiple items]
|
|
580
|
+
|
|
581
|
+
### 3. Error Handling
|
|
582
|
+
[How to recover from failures]
|
|
583
|
+
|
|
584
|
+
## Troubleshooting
|
|
585
|
+
|
|
586
|
+
### Command Not Found
|
|
587
|
+
|
|
588
|
+
**Symptom**: `command not found` error
|
|
589
|
+
|
|
590
|
+
**Solution**:
|
|
591
|
+
```bash
|
|
592
|
+
# Verify installation
|
|
593
|
+
which ace-taskflow
|
|
594
|
+
|
|
595
|
+
# Check workflow exists
|
|
596
|
+
ace-bundle wfi://[workflow] --verify
|
|
597
|
+
```
|
|
598
|
+
|
|
599
|
+
### Permission Errors
|
|
600
|
+
|
|
601
|
+
[Common permission issues and fixes]
|
|
602
|
+
|
|
603
|
+
## Migration Notes
|
|
604
|
+
|
|
605
|
+
**Legacy Commands** (deprecated):
|
|
606
|
+
- `/old-command` → Use `/ace:new-command`
|
|
607
|
+
|
|
608
|
+
**Key Differences**:
|
|
609
|
+
- [Difference 1]
|
|
610
|
+
- [Difference 2]
|
|
611
|
+
</template>
|
|
612
|
+
|
|
613
|
+
<template name="command-reference-format">
|
|
614
|
+
## Command: `[command name]`
|
|
615
|
+
|
|
616
|
+
**Purpose**: [One-line description]
|
|
617
|
+
|
|
618
|
+
**Syntax**:
|
|
619
|
+
```bash
|
|
620
|
+
[command] [required] [<optional>] [--flags]
|
|
621
|
+
```
|
|
622
|
+
|
|
623
|
+
**Parameters**:
|
|
624
|
+
- `required`: [Description]
|
|
625
|
+
- `<optional>`: [Description] (default: value)
|
|
626
|
+
|
|
627
|
+
**Options**:
|
|
628
|
+
| Flag | Short | Type | Description | Default |
|
|
629
|
+
|------|-------|------|-------------|---------|
|
|
630
|
+
| `--flag` | `-f` | string | [Description] | [default] |
|
|
631
|
+
|
|
632
|
+
**Examples**:
|
|
633
|
+
|
|
634
|
+
```bash
|
|
635
|
+
# Example 1: Basic usage
|
|
636
|
+
[command] param1
|
|
637
|
+
# Output:
|
|
638
|
+
[expected output]
|
|
639
|
+
|
|
640
|
+
# Example 2: With options
|
|
641
|
+
[command] param1 --flag value
|
|
642
|
+
# Output:
|
|
643
|
+
[expected output]
|
|
644
|
+
|
|
645
|
+
# Example 3: Advanced usage
|
|
646
|
+
[command] param1 param2 --flag1 --flag2 value
|
|
647
|
+
# Output:
|
|
648
|
+
[expected output]
|
|
649
|
+
```
|
|
650
|
+
|
|
651
|
+
**Exit Codes**:
|
|
652
|
+
- `0`: Success
|
|
653
|
+
- `1`: General error
|
|
654
|
+
- `2`: [Specific error]
|
|
655
|
+
|
|
656
|
+
**See Also**:
|
|
657
|
+
- Related command 1
|
|
658
|
+
- Related command 2
|
|
659
|
+
</template>
|
|
660
|
+
|
|
661
|
+
</templates>
|
|
662
|
+
|
|
663
|
+
## Common Patterns
|
|
664
|
+
|
|
665
|
+
### Pattern Recognition
|
|
666
|
+
|
|
667
|
+
When updating existing usage documentation, identify which pattern it follows:
|
|
668
|
+
|
|
669
|
+
1. **CLI Tool Pattern** (ace-git-commit style):
|
|
670
|
+
- Heavy emphasis on command options and configuration
|
|
671
|
+
- Multiple installation/setup sections
|
|
672
|
+
- Extensive troubleshooting
|
|
673
|
+
|
|
674
|
+
2. **Feature Demo Pattern** (Task 031/032/033 style):
|
|
675
|
+
- Strong before/after comparisons
|
|
676
|
+
- Focus on improvements and benefits
|
|
677
|
+
- Visual examples of changes
|
|
678
|
+
|
|
679
|
+
3. **Workflow Pattern** (batch operations style):
|
|
680
|
+
- Mixed command types (CLI + Claude)
|
|
681
|
+
- Step-by-step scenarios
|
|
682
|
+
- Integration with other tools
|
|
683
|
+
|
|
684
|
+
### Quality Checklist
|
|
685
|
+
|
|
686
|
+
Before completing updates, verify:
|
|
687
|
+
|
|
688
|
+
- [ ] Document type declared (Tutorial/How-To/Reference/Explanation)
|
|
689
|
+
- [ ] Progressive disclosure implemented (Quick Start → Advanced)
|
|
690
|
+
- [ ] All examples include expected output
|
|
691
|
+
- [ ] Scenario format consistent (Goal/Commands/Output/Next)
|
|
692
|
+
- [ ] Command reference tables properly formatted
|
|
693
|
+
- [ ] Troubleshooting section included
|
|
694
|
+
- [ ] Best practices or tips section added
|
|
695
|
+
- [ ] Migration notes included (if applicable)
|
|
696
|
+
- [ ] Commands tested and verified working
|
|
697
|
+
- [ ] Consistency with project patterns maintained
|
|
698
|
+
|
|
699
|
+
## Usage Example
|
|
700
|
+
|
|
701
|
+
> "Update the usage documentation for ace-retro commands based on user feedback that the examples are unclear"
|
|
702
|
+
|
|
703
|
+
**Expected Workflow:**
|
|
704
|
+
1. Analyze feedback to identify specific issues
|
|
705
|
+
2. Locate existing usage.md for retro commands
|
|
706
|
+
3. Classify as CLI Tool Guide pattern
|
|
707
|
+
4. Update with clearer scenarios and expected outputs
|
|
708
|
+
5. Add troubleshooting for common issues
|
|
709
|
+
6. Verify all commands work
|
|
710
|
+
7. Ensure progressive disclosure from basic to advanced usage
|