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,276 @@
|
|
|
1
|
+
---
|
|
2
|
+
doc-type: guide
|
|
3
|
+
title: Documents Embedding Standards and Principles
|
|
4
|
+
purpose: Documentation for ace-docs/handbook/guides/documents-embedding.g.md
|
|
5
|
+
ace-docs:
|
|
6
|
+
last-updated: 2026-01-08
|
|
7
|
+
last-checked: 2026-03-21
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Documents Embedding Standards and Principles
|
|
11
|
+
|
|
12
|
+
This guide establishes standards for embedding documents (templates and guides) within workflow instruction files using XML-based `<documents>` containers, ensuring consistency and enabling automated synchronization across the development handbook system.
|
|
13
|
+
|
|
14
|
+
## Goal
|
|
15
|
+
|
|
16
|
+
Define clear principles and standards for:
|
|
17
|
+
|
|
18
|
+
- How to properly embed documents using universal `<documents>` XML format
|
|
19
|
+
- Document organization and placement within workflow files
|
|
20
|
+
- Maintaining document consistency across workflow instructions
|
|
21
|
+
- Enabling automated document synchronization through structured XML
|
|
22
|
+
- Supporting both templates and guides in a unified format
|
|
23
|
+
|
|
24
|
+
## Core Principles
|
|
25
|
+
|
|
26
|
+
1. **Universal Container Format**: Use `<documents>` container with `<template>` and `<guide>` tags for all document embedding
|
|
27
|
+
2. **Separation of Concerns**: Document content should be separated from workflow logic using XML structure
|
|
28
|
+
3. **Structured Metadata**: All document references should use XML attributes for path information
|
|
29
|
+
4. **XML Format Only**: Use XML sections for all document embedding (no markdown escaping)
|
|
30
|
+
5. **Automated Synchronization**: XML document format enables easy parsing and automated updates
|
|
31
|
+
|
|
32
|
+
## Universal Document Embedding Format
|
|
33
|
+
|
|
34
|
+
### XML-Based Document Container (Current Standard)
|
|
35
|
+
|
|
36
|
+
Use the universal `<documents>` container for clean, parseable document inclusion:
|
|
37
|
+
|
|
38
|
+
```xml
|
|
39
|
+
<documents>
|
|
40
|
+
<template path="{source-template-path}">
|
|
41
|
+
<!-- Template content goes here -->
|
|
42
|
+
</template>
|
|
43
|
+
|
|
44
|
+
<guide path="{source-guide-path}">
|
|
45
|
+
<!-- Guide content goes here -->
|
|
46
|
+
</guide>
|
|
47
|
+
|
|
48
|
+
<template path="{another-template-path}">
|
|
49
|
+
<!-- Another template content -->
|
|
50
|
+
</template>
|
|
51
|
+
</documents>
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
**Components:**
|
|
55
|
+
|
|
56
|
+
- `<documents>`: Universal container for all embedded documents
|
|
57
|
+
- `<template path="...">`: Embedded template content from templates (use `tmpl://` protocol)
|
|
58
|
+
- `<guide path="...">`: Embedded guide content from guides (use `guide://` protocol)
|
|
59
|
+
- `path`: Source document file path (supports variables like `{current-release-path}`)
|
|
60
|
+
|
|
61
|
+
**Examples:**
|
|
62
|
+
|
|
63
|
+
```xml
|
|
64
|
+
<documents>
|
|
65
|
+
<template path="tmpl://task-management/task-draft">
|
|
66
|
+
---
|
|
67
|
+
id: v.X.Y.Z+task.N
|
|
68
|
+
status: pending
|
|
69
|
+
priority: medium
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
# Task Title
|
|
73
|
+
Task description and requirements.
|
|
74
|
+
</template>
|
|
75
|
+
|
|
76
|
+
<guide path="guide://version-control-system">
|
|
77
|
+
# Version Control System Guide
|
|
78
|
+
|
|
79
|
+
This guide covers Git workflow standards...
|
|
80
|
+
</guide>
|
|
81
|
+
|
|
82
|
+
<template path="tmpl://project-docs/adr">
|
|
83
|
+
# ADR-NNN: Decision Title
|
|
84
|
+
|
|
85
|
+
## Status
|
|
86
|
+
Proposed
|
|
87
|
+
|
|
88
|
+
## Context
|
|
89
|
+
Context description.
|
|
90
|
+
</template>
|
|
91
|
+
</documents>
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## Code Block Escaping Standards
|
|
95
|
+
|
|
96
|
+
### XML Document Embedding: For Templates and Guides
|
|
97
|
+
|
|
98
|
+
Use XML `<documents>` sections for all embedded document content (NO escaping needed):
|
|
99
|
+
|
|
100
|
+
```xml
|
|
101
|
+
<documents>
|
|
102
|
+
<template path="tmpl://category/example">
|
|
103
|
+
<!-- Template content here -->
|
|
104
|
+
</template>
|
|
105
|
+
|
|
106
|
+
<guide path="guide://example">
|
|
107
|
+
<!-- Guide content here -->
|
|
108
|
+
</guide>
|
|
109
|
+
</documents>
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
### Three-Tick Escaping (```): For All Code Examples
|
|
113
|
+
|
|
114
|
+
Use standard three-tick escaping for:
|
|
115
|
+
|
|
116
|
+
- Command examples
|
|
117
|
+
- Code snippets
|
|
118
|
+
- Configuration examples
|
|
119
|
+
- Any code that is NOT a template/guide or markdown demonstration
|
|
120
|
+
|
|
121
|
+
```markdown
|
|
122
|
+
## Example Commands
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
git status
|
|
126
|
+
git add .
|
|
127
|
+
git commit -m "feat: add new feature"
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
## Configuration Example
|
|
131
|
+
|
|
132
|
+
```yaml
|
|
133
|
+
version: 1.0
|
|
134
|
+
settings:
|
|
135
|
+
debug: false
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### Four-Tick Escaping (````): Not for Documents
|
|
141
|
+
|
|
142
|
+
Four-tick escaping is reserved for markdown-within-markdown demonstrations (see [Markdown Definition Guide](guide://markdown-definition)).
|
|
143
|
+
|
|
144
|
+
**Important**: Do NOT use four-tick escaping for templates or guides - use XML format instead.
|
|
145
|
+
|
|
146
|
+
## Document Organization Structure
|
|
147
|
+
|
|
148
|
+
### Embedded Documents Section
|
|
149
|
+
|
|
150
|
+
All embedded documents must be placed at the end of workflow documents using XML format:
|
|
151
|
+
|
|
152
|
+
```xml
|
|
153
|
+
<documents>
|
|
154
|
+
<template path="{source-template-path}">
|
|
155
|
+
<!-- Template content here -->
|
|
156
|
+
</template>
|
|
157
|
+
|
|
158
|
+
<guide path="{source-guide-path}">
|
|
159
|
+
<!-- Guide content here -->
|
|
160
|
+
</guide>
|
|
161
|
+
|
|
162
|
+
<!-- additional documents -->
|
|
163
|
+
<template path="{another-template-path}">
|
|
164
|
+
<!-- Another template content -->
|
|
165
|
+
</template>
|
|
166
|
+
</documents>
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
### Benefits of Universal XML Format
|
|
170
|
+
|
|
171
|
+
- **Clear Structure**: Documents are explicitly contained and separated
|
|
172
|
+
- **Machine Parseable**: Easy to extract documents programmatically
|
|
173
|
+
- **Metadata Rich**: Path information is structured as attributes
|
|
174
|
+
- **Multiple Documents**: Simple to include multiple templates and guides in one section
|
|
175
|
+
- **Variable Support**: Path attributes can use variables like `{current-release-path}`
|
|
176
|
+
- **Type Safety**: Clear distinction between templates and guides
|
|
177
|
+
- **Unified Format**: Single container format for all document types
|
|
178
|
+
|
|
179
|
+
## Document Path Conventions
|
|
180
|
+
|
|
181
|
+
### Templates
|
|
182
|
+
|
|
183
|
+
Templates should be organized in logical directories in the handbook templates directory:
|
|
184
|
+
|
|
185
|
+
- `project-docs/` - Core project documentation templates
|
|
186
|
+
- `release-tasks/` - Task templates for releases
|
|
187
|
+
- `release-management/` - Release planning and tracking templates
|
|
188
|
+
- `code-docs/` - API and code documentation templates
|
|
189
|
+
- `user-docs/` - User-facing documentation templates
|
|
190
|
+
- `workflow-components/` - Reusable workflow step templates
|
|
191
|
+
|
|
192
|
+
### Guides
|
|
193
|
+
|
|
194
|
+
Guides should be organized in the handbook guides directory:
|
|
195
|
+
|
|
196
|
+
- Root level: Core development guides (`.g.md` extension)
|
|
197
|
+
- `.meta/` subdirectory: Meta-documentation and framework guides
|
|
198
|
+
- Specialized subdirectories for domain-specific guides
|
|
199
|
+
|
|
200
|
+
## Content Guidelines
|
|
201
|
+
|
|
202
|
+
### Template Content Standards
|
|
203
|
+
|
|
204
|
+
- Always include YAML frontmatter for metadata
|
|
205
|
+
- Use clear placeholder syntax (e.g., `{variable-name}`)
|
|
206
|
+
- Provide comprehensive documentation comments
|
|
207
|
+
- Follow consistent formatting and structure
|
|
208
|
+
- Include validation criteria where applicable
|
|
209
|
+
|
|
210
|
+
### Guide Content Standards
|
|
211
|
+
|
|
212
|
+
- Use clear, actionable headings
|
|
213
|
+
- Provide concrete examples and code snippets
|
|
214
|
+
- Include troubleshooting sections where relevant
|
|
215
|
+
- Cross-reference related guides and templates
|
|
216
|
+
- Maintain consistent tone and structure
|
|
217
|
+
|
|
218
|
+
## Synchronization Integration
|
|
219
|
+
|
|
220
|
+
The universal `<documents>` format integrates with the automated synchronization system:
|
|
221
|
+
|
|
222
|
+
- **Tool**: `handbook sync-templates`
|
|
223
|
+
- **Parsing**: XML structure enables reliable content extraction
|
|
224
|
+
- **Updates**: Automated synchronization between source files and embedded content
|
|
225
|
+
- **Validation**: Path verification and content consistency checks
|
|
226
|
+
- **Maintenance**: Automated detection of missing or outdated documents
|
|
227
|
+
|
|
228
|
+
## Migration from Legacy Formats
|
|
229
|
+
|
|
230
|
+
### From Individual Template Containers
|
|
231
|
+
|
|
232
|
+
```xml
|
|
233
|
+
<!-- Old format -->
|
|
234
|
+
<templates>
|
|
235
|
+
<template path="...">...</template>
|
|
236
|
+
</templates>
|
|
237
|
+
|
|
238
|
+
<!-- New universal format -->
|
|
239
|
+
<documents>
|
|
240
|
+
<template path="...">...</template>
|
|
241
|
+
</documents>
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
### From Mixed Formats
|
|
245
|
+
|
|
246
|
+
Consolidate all document types into single `<documents>` containers:
|
|
247
|
+
|
|
248
|
+
```xml
|
|
249
|
+
<documents>
|
|
250
|
+
<template path="tmpl://task">
|
|
251
|
+
<!-- Template content -->
|
|
252
|
+
</template>
|
|
253
|
+
|
|
254
|
+
<guide path="guide://workflow-guide">
|
|
255
|
+
<!-- Guide content -->
|
|
256
|
+
</guide>
|
|
257
|
+
</documents>
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
## Best Practices
|
|
261
|
+
|
|
262
|
+
1. **Single Container**: Use one `<documents>` container per workflow file
|
|
263
|
+
2. **Logical Grouping**: Group related templates and guides together
|
|
264
|
+
3. **Path Accuracy**: Ensure all path attributes are correct and up-to-date
|
|
265
|
+
4. **Content Freshness**: Regularly synchronize embedded content with source files
|
|
266
|
+
5. **Documentation**: Document the purpose and usage of embedded documents
|
|
267
|
+
6. **Validation**: Test embedded content in actual workflow contexts
|
|
268
|
+
7. **Consistency**: Follow established naming and organization conventions
|
|
269
|
+
|
|
270
|
+
## Related Documentation
|
|
271
|
+
|
|
272
|
+
- [Documents Embedded Sync Guide](./documents-embedded-sync.g.md) - Tool usage and operations
|
|
273
|
+
- [Markdown Definition Guide](guide://markdown-definition) - Markdown standards
|
|
274
|
+
- [Workflow Instructions Organization](guide://workflow-instructions-organization) - Workflow structure
|
|
275
|
+
|
|
276
|
+
This universal documents embedding format provides a consistent, maintainable approach to including both templates and guides within workflow instructions while enabling automated synchronization and content management.
|
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
---
|
|
2
|
+
doc-type: guide
|
|
3
|
+
title: Markdown Style Guide
|
|
4
|
+
purpose: Documentation for ace-docs/handbook/guides/markdown-style.g.md
|
|
5
|
+
ace-docs:
|
|
6
|
+
last-updated: 2026-02-23
|
|
7
|
+
last-checked: 2026-03-21
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Markdown Style Guide
|
|
11
|
+
|
|
12
|
+
This guide defines typography and formatting conventions for technical markdown documents. These standards optimize readability in monospace environments - terminals, code editors, and documentation tools.
|
|
13
|
+
|
|
14
|
+
## Goal
|
|
15
|
+
|
|
16
|
+
Establish consistent markdown styling that:
|
|
17
|
+
- Reads well in monospace fonts and terminal displays
|
|
18
|
+
- Supports both human and AI-agent consumption
|
|
19
|
+
- Creates visual hierarchy without relying on rich rendering
|
|
20
|
+
- Maintains clarity when viewed as plain text
|
|
21
|
+
|
|
22
|
+
## Core Principles
|
|
23
|
+
|
|
24
|
+
1. **Terminal-First**: Style choices should work in monospace environments
|
|
25
|
+
2. **Plain-Text Friendly**: Documents should be readable without rendering
|
|
26
|
+
3. **Visual Anchors**: Use emojis sparingly as scannable landmarks
|
|
27
|
+
4. **Vertical Rhythm**: Align related elements for visual coherence
|
|
28
|
+
|
|
29
|
+
## Typography Standards
|
|
30
|
+
|
|
31
|
+
### Em-Dashes: Use Spaced Hyphens
|
|
32
|
+
|
|
33
|
+
Em-dashes (`—`) render inconsistently across fonts and terminals. Use space-hyphen-space instead.
|
|
34
|
+
|
|
35
|
+
**Avoid:**
|
|
36
|
+
```
|
|
37
|
+
The toolkit—designed for AI agents—supports multiple workflows.
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
**Prefer:**
|
|
41
|
+
```
|
|
42
|
+
The toolkit - designed for AI agents - supports multiple workflows.
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
This ensures consistent width and readability in monospace displays.
|
|
46
|
+
|
|
47
|
+
### Quotation Marks
|
|
48
|
+
|
|
49
|
+
Use straight quotes (`"`, `'`) rather than curly/smart quotes (`"`, `"`, `'`, `'`).
|
|
50
|
+
|
|
51
|
+
**Avoid:**
|
|
52
|
+
```
|
|
53
|
+
"Smart quotes" cause encoding issues.
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
**Prefer:**
|
|
57
|
+
```
|
|
58
|
+
"Straight quotes" work everywhere.
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### Bullet Characters
|
|
62
|
+
|
|
63
|
+
Use standard ASCII hyphens (`-`) for unordered lists. Avoid fancy bullets or custom characters.
|
|
64
|
+
|
|
65
|
+
```markdown
|
|
66
|
+
- First item
|
|
67
|
+
- Second item
|
|
68
|
+
- Nested item
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## File Tree Formatting
|
|
72
|
+
|
|
73
|
+
Use Unicode box-drawing characters in code blocks for file trees. This creates clear visual hierarchy.
|
|
74
|
+
|
|
75
|
+
### Basic Structure
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
project/
|
|
79
|
+
├── src/
|
|
80
|
+
│ ├── components/
|
|
81
|
+
│ │ ├── Button.tsx # UI component
|
|
82
|
+
│ │ └── Modal.tsx # Dialog component
|
|
83
|
+
│ └── utils/
|
|
84
|
+
│ └── helpers.ts # Utility functions
|
|
85
|
+
├── docs/
|
|
86
|
+
│ ├── architecture.md # Technical design
|
|
87
|
+
│ └── vision.md # Project vision
|
|
88
|
+
└── README.md # Entry point
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Box-Drawing Characters
|
|
92
|
+
|
|
93
|
+
| Character | Name | Usage |
|
|
94
|
+
|-----------|------|-------|
|
|
95
|
+
| `├──` | Branch | Non-final sibling |
|
|
96
|
+
| `└──` | End | Final sibling |
|
|
97
|
+
| `│` | Pipe | Continuation |
|
|
98
|
+
|
|
99
|
+
### Comment Alignment
|
|
100
|
+
|
|
101
|
+
Align `#` comments vertically within each tree section for scannability.
|
|
102
|
+
|
|
103
|
+
```
|
|
104
|
+
ace-docs/
|
|
105
|
+
├── lib/
|
|
106
|
+
│ ├── cli.rb # Command-line entry
|
|
107
|
+
│ ├── config.rb # Configuration loader
|
|
108
|
+
│ └── generator.rb # Document generator
|
|
109
|
+
└── handbook/
|
|
110
|
+
├── guides/ # How-to documentation
|
|
111
|
+
├── prompts/ # LLM system prompts
|
|
112
|
+
└── templates/ # Document templates
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
**Tip:** Use a text editor with column selection (block mode) to align comments efficiently.
|
|
116
|
+
|
|
117
|
+
## Emoji Usage
|
|
118
|
+
|
|
119
|
+
Emojis serve as **visual anchors** for scannability - not decoration.
|
|
120
|
+
|
|
121
|
+
### When to Use Emojis
|
|
122
|
+
|
|
123
|
+
- **Section headers** in lists or principles
|
|
124
|
+
- **Status indicators** (completed, in-progress, blocked)
|
|
125
|
+
- **Category markers** for quick visual grouping
|
|
126
|
+
|
|
127
|
+
### Guidelines
|
|
128
|
+
|
|
129
|
+
1. **One emoji per item** - avoid stacking multiple emojis
|
|
130
|
+
2. **Consistent per category** - use the same emoji for the same concept
|
|
131
|
+
3. **Meaningful placement** - at the start of headers, not inline
|
|
132
|
+
4. **Skip when not scanning** - prose paragraphs rarely need emojis
|
|
133
|
+
|
|
134
|
+
### Numbered Lists with Emojis
|
|
135
|
+
|
|
136
|
+
For principles or key concepts, use numbered lists with leading emojis:
|
|
137
|
+
|
|
138
|
+
```markdown
|
|
139
|
+
1. 🖥️ **Terminal-First** - Optimize for monospace display
|
|
140
|
+
2. 🔍 **Discoverable** - Easy to find and navigate
|
|
141
|
+
3. 🤖 **Agent-Ready** - Structured for AI consumption
|
|
142
|
+
4. ✨ **Minimal** - Only what's necessary
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
### Category Markers
|
|
146
|
+
|
|
147
|
+
```markdown
|
|
148
|
+
## Features
|
|
149
|
+
|
|
150
|
+
- 📦 **Bundling** - Context aggregation
|
|
151
|
+
- 🔍 **Search** - Code discovery
|
|
152
|
+
- 📝 **Docs** - Documentation generation
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
## Headers and Sections
|
|
156
|
+
|
|
157
|
+
### Link Preservation
|
|
158
|
+
|
|
159
|
+
When a header's content moves to a code block, keep the link in the header:
|
|
160
|
+
|
|
161
|
+
```markdown
|
|
162
|
+
## [Project Structure](./docs/architecture.md)
|
|
163
|
+
|
|
164
|
+
```
|
|
165
|
+
project/
|
|
166
|
+
├── src/
|
|
167
|
+
└── docs/
|
|
168
|
+
```
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
This maintains navigation while showing structured content.
|
|
172
|
+
|
|
173
|
+
### Manifesto-Style Openers
|
|
174
|
+
|
|
175
|
+
For vision documents, use blockquote openers to set tone:
|
|
176
|
+
|
|
177
|
+
```markdown
|
|
178
|
+
> **Clarity through constraint.** Build tools that make developers faster,
|
|
179
|
+
> not tools that require learning curves.
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
## Code Block Conventions
|
|
183
|
+
|
|
184
|
+
### Language Tags
|
|
185
|
+
|
|
186
|
+
Always specify language for syntax highlighting:
|
|
187
|
+
|
|
188
|
+
```markdown
|
|
189
|
+
```ruby
|
|
190
|
+
def example
|
|
191
|
+
# implementation
|
|
192
|
+
end
|
|
193
|
+
```
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### Indentation in Examples
|
|
197
|
+
|
|
198
|
+
Use 2-space indentation in code examples for compactness.
|
|
199
|
+
|
|
200
|
+
### Shell Commands
|
|
201
|
+
|
|
202
|
+
Use `bash` or `sh` for shell examples. Include `$` prompt only when showing interactive sessions:
|
|
203
|
+
|
|
204
|
+
```bash
|
|
205
|
+
ace-bundle project
|
|
206
|
+
ace-test atoms
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
## Before/After Examples
|
|
210
|
+
|
|
211
|
+
### Typography Transformation
|
|
212
|
+
|
|
213
|
+
**Before (problematic):**
|
|
214
|
+
```
|
|
215
|
+
The toolkit—designed for AI agents—provides:
|
|
216
|
+
• "Smart quotes" for text
|
|
217
|
+
• Bullet using special character
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
**After (correct):**
|
|
221
|
+
```
|
|
222
|
+
The toolkit - designed for AI agents - provides:
|
|
223
|
+
- "Straight quotes" for text
|
|
224
|
+
- Bullet using hyphen
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
### File Tree Transformation
|
|
228
|
+
|
|
229
|
+
**Before (plain text):**
|
|
230
|
+
```
|
|
231
|
+
docs/
|
|
232
|
+
guides/
|
|
233
|
+
style.md
|
|
234
|
+
templates/
|
|
235
|
+
vision.md
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
**After (structured):**
|
|
239
|
+
```
|
|
240
|
+
docs/
|
|
241
|
+
├── guides/
|
|
242
|
+
│ └── style.md # Style guidance
|
|
243
|
+
└── templates/
|
|
244
|
+
└── vision.md # Vision template
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
### Principle List Transformation
|
|
248
|
+
|
|
249
|
+
**Before (flat):**
|
|
250
|
+
```
|
|
251
|
+
Core Principles:
|
|
252
|
+
- Terminal-First: Optimize for monospace display
|
|
253
|
+
- Discoverable: Easy to find and navigate
|
|
254
|
+
- Agent-Ready: Structured for AI consumption
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
**After (scannable):**
|
|
258
|
+
```
|
|
259
|
+
Core Principles:
|
|
260
|
+
|
|
261
|
+
1. 🖥️ **Terminal-First** - Optimize for monospace display
|
|
262
|
+
2. 🔍 **Discoverable** - Easy to find and navigate
|
|
263
|
+
3. 🤖 **Agent-Ready** - Structured for AI consumption
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
## Validation
|
|
267
|
+
|
|
268
|
+
### Manual Checks
|
|
269
|
+
|
|
270
|
+
1. View document in terminal: `cat docs/example.md`
|
|
271
|
+
2. Check for em-dash rendering: search for `—`
|
|
272
|
+
3. Verify tree alignment in monospace font
|
|
273
|
+
4. Ensure emoji display correctly in target environments
|
|
274
|
+
|
|
275
|
+
### Automated Checks
|
|
276
|
+
|
|
277
|
+
ace-lint can detect typography violations (planned feature):
|
|
278
|
+
|
|
279
|
+
```bash
|
|
280
|
+
ace-lint --check typography docs/
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
## Related Documentation
|
|
284
|
+
|
|
285
|
+
- [Documentation Guide](guide://documentation) - Document structure and placement
|
|
286
|
+
- [Vision Template](tmpl://project-docs/vision) - Styled vision document template
|
|
287
|
+
|
|
288
|
+
---
|
|
289
|
+
|
|
290
|
+
*These conventions prioritize universal readability over visual richness.*
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# ACE Dual Change Analyzer — System Prompt v3.0
|
|
2
|
+
|
|
3
|
+
You are **ACE Dual Change Analyzer**, a specialized assistant that examines git diffs and produces two separate analyses:
|
|
4
|
+
1. **Code Change Analysis**
|
|
5
|
+
2. **Documentation / Configuration Change Analysis**
|
|
6
|
+
|
|
7
|
+
Each analysis should be complete on its own, but code-related findings always take precedence.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## INPUT
|
|
12
|
+
|
|
13
|
+
- A **git diff** (can include code, config, examples, docs)
|
|
14
|
+
- Optional filters (paths, modules, time range)
|
|
15
|
+
- Optional context files for architectural reference
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## OUTPUT STRUCTURE
|
|
20
|
+
|
|
21
|
+
Produce **two top-level sections** in your markdown report:
|
|
22
|
+
|
|
23
|
+
## 🧩 1. Code Change Analysis
|
|
24
|
+
Focus on code, logic, architecture, and test changes.
|
|
25
|
+
- Summarize new features, API changes, refactors, tests, performance, or security updates.
|
|
26
|
+
- Include CLI, Ruby, YAML, or configuration logic only if it affects runtime behavior.
|
|
27
|
+
|
|
28
|
+
### Summary
|
|
29
|
+
2–3 sentences on the scope and impact of code-level changes.
|
|
30
|
+
|
|
31
|
+
### Changes Detected
|
|
32
|
+
Group by **Priority** and optionally by **Type**:
|
|
33
|
+
|
|
34
|
+
**HIGH Priority**
|
|
35
|
+
- *File / Component:* `<path>`
|
|
36
|
+
*Type:* Feature / API / Security / Architecture / Performance / Breaking
|
|
37
|
+
*Change:* `<concise description>`
|
|
38
|
+
*Impact:* `<why this matters>`
|
|
39
|
+
*Evidence:* `<file::@@ hunk header or Lx–Ly>`
|
|
40
|
+
|
|
41
|
+
**MEDIUM Priority**
|
|
42
|
+
- *File / Component:* ...
|
|
43
|
+
- ...
|
|
44
|
+
|
|
45
|
+
**LOW Priority**
|
|
46
|
+
- Minor improvements, internal refactoring, test updates.
|
|
47
|
+
|
|
48
|
+
### Self-Check
|
|
49
|
+
|
|
50
|
+
```yaml
|
|
51
|
+
hunks_total: [N]
|
|
52
|
+
hunks_mapped: [M]
|
|
53
|
+
hunks_ambiguous: [K]
|
|
54
|
+
coverage_ratio: [M/N]
|
|
55
|
+
ambiguous_list:
|
|
56
|
+
- file::@@ -hunk — reason ambiguous
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Patterns / Trends
|
|
60
|
+
- Architectural shifts, refactor patterns, or API standardization.
|
|
61
|
+
- Mention broader ecosystem themes (LLM integration, testing unification, etc.)
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## 📚 2. Documentation & Configuration Change Analysis
|
|
66
|
+
Focus on examples, guides, config YAMLs, markdown docs, usage guides, workflow instructions.
|
|
67
|
+
|
|
68
|
+
### Summary
|
|
69
|
+
Explain the overall scope of doc/config updates and what they describe or enable.
|
|
70
|
+
|
|
71
|
+
### Changes Detected
|
|
72
|
+
Group by **Priority** (HIGH, MEDIUM, LOW) and **Category** (Docs / Config / Workflow / Example):
|
|
73
|
+
|
|
74
|
+
- *File / Component:* `<path>`
|
|
75
|
+
*Category:* Docs / Config / Example
|
|
76
|
+
*Change:* `<summary>`
|
|
77
|
+
*Impact:* `<who benefits>`
|
|
78
|
+
*Evidence:* `<file::@@ hunk or Lx–Ly>`
|
|
79
|
+
|
|
80
|
+
### Self-Check
|
|
81
|
+
Same schema as above.
|
|
82
|
+
|
|
83
|
+
### Additional Notes
|
|
84
|
+
- Which documentation sections may need human validation.
|
|
85
|
+
- Whether config changes affect developer onboarding or automation.
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## ANALYSIS GUIDELINES
|
|
90
|
+
|
|
91
|
+
**1. Classify files before analyzing**
|
|
92
|
+
- Code files: `.rb`, `.js`, `.py`, `.go`, `.ts`, `.java`, etc.
|
|
93
|
+
- Config files: `.yml`, `.yaml`, `.json`
|
|
94
|
+
- Docs: `.md`, `.rst`, `.wf.md`, `.ag.md`
|
|
95
|
+
- Tests: always part of the code analysis unless they're illustrative examples.
|
|
96
|
+
|
|
97
|
+
**2. Prioritize impact**
|
|
98
|
+
- HIGH → new APIs, breaking changes, major workflows.
|
|
99
|
+
- MEDIUM → behavior or test logic changes, new flags, moderate refactors.
|
|
100
|
+
- LOW → small enhancements, comments, doc clarity.
|
|
101
|
+
|
|
102
|
+
**3. Detect patterns**
|
|
103
|
+
Aggregate similar changes: multiple test helper additions → "test infra standardization."
|
|
104
|
+
|
|
105
|
+
**4. Maintain completeness**
|
|
106
|
+
Every diff hunk must be accounted for in one of the two analyses.
|
|
107
|
+
|
|
108
|
+
**5. Be precise**
|
|
109
|
+
No speculation. Only state what's clearly evidenced in the diff.
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
**Prompt version:** v3.0 — 2025-10-18
|