@prmichaelsen/acp-visualizer 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/README.md +68 -0
- package/agent/commands/acp.clarification-address.md +417 -0
- package/agent/commands/acp.clarification-capture.md +386 -0
- package/agent/commands/acp.clarification-create.md +437 -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.handoff.md +270 -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 +587 -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/commands/tanstack-cloudflare.deploy.md +272 -0
- package/agent/commands/tanstack-cloudflare.tail.md +275 -0
- package/agent/design/.gitkeep +0 -0
- package/agent/design/design.template.md +154 -0
- package/agent/design/local.dashboard-layout-routing.md +288 -0
- package/agent/design/local.data-model-yaml-parsing.md +310 -0
- package/agent/design/local.search-filtering.md +331 -0
- package/agent/design/local.server-api-auto-refresh.md +235 -0
- package/agent/design/local.table-tree-views.md +299 -0
- package/agent/design/local.visualizer-requirements.md +349 -0
- package/agent/design/requirements.template.md +387 -0
- package/agent/index/.gitkeep +0 -0
- package/agent/index/acp.core.yaml +137 -0
- package/agent/index/local.main.template.yaml +37 -0
- package/agent/manifest.template.yaml +13 -0
- package/agent/manifest.yaml +302 -0
- package/agent/milestones/.gitkeep +0 -0
- package/agent/milestones/milestone-1-project-scaffold-data-pipeline.md +67 -0
- package/agent/milestones/milestone-1-{title}.template.md +206 -0
- package/agent/milestones/milestone-2-dashboard-views-interaction.md +79 -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/patterns/tanstack-cloudflare.acl-permissions.md +332 -0
- package/agent/patterns/tanstack-cloudflare.action-bar-item.md +416 -0
- package/agent/patterns/tanstack-cloudflare.api-route-handlers.md +401 -0
- package/agent/patterns/tanstack-cloudflare.auth-session-management.md +387 -0
- package/agent/patterns/tanstack-cloudflare.card-and-list.md +271 -0
- package/agent/patterns/tanstack-cloudflare.chat-engine.md +353 -0
- package/agent/patterns/tanstack-cloudflare.confirmation-tokens.md +346 -0
- package/agent/patterns/tanstack-cloudflare.durable-objects-websocket.md +516 -0
- package/agent/patterns/tanstack-cloudflare.email-service.md +431 -0
- package/agent/patterns/tanstack-cloudflare.expander.md +98 -0
- package/agent/patterns/tanstack-cloudflare.fcm-push.md +115 -0
- package/agent/patterns/tanstack-cloudflare.firebase-anonymous-sessions.md +441 -0
- package/agent/patterns/tanstack-cloudflare.firebase-auth.md +348 -0
- package/agent/patterns/tanstack-cloudflare.firebase-firestore.md +550 -0
- package/agent/patterns/tanstack-cloudflare.firebase-storage.md +369 -0
- package/agent/patterns/tanstack-cloudflare.form-controls.md +145 -0
- package/agent/patterns/tanstack-cloudflare.global-search-context.md +93 -0
- package/agent/patterns/tanstack-cloudflare.image-carousel.md +126 -0
- package/agent/patterns/tanstack-cloudflare.library-services.md +553 -0
- package/agent/patterns/tanstack-cloudflare.lightbox.md +169 -0
- package/agent/patterns/tanstack-cloudflare.markdown-content.md +115 -0
- package/agent/patterns/tanstack-cloudflare.mention-suggestions.md +98 -0
- package/agent/patterns/tanstack-cloudflare.modal.md +156 -0
- package/agent/patterns/tanstack-cloudflare.nextjs-to-tanstack-routing.md +461 -0
- package/agent/patterns/tanstack-cloudflare.notifications-engine.md +151 -0
- package/agent/patterns/tanstack-cloudflare.oauth-token-refresh.md +90 -0
- package/agent/patterns/tanstack-cloudflare.og-metadata.md +296 -0
- package/agent/patterns/tanstack-cloudflare.pagination.md +442 -0
- package/agent/patterns/tanstack-cloudflare.pill-input.md +220 -0
- package/agent/patterns/tanstack-cloudflare.provider-adapter.md +401 -0
- package/agent/patterns/tanstack-cloudflare.rate-limiting.md +323 -0
- package/agent/patterns/tanstack-cloudflare.scheduled-tasks.md +338 -0
- package/agent/patterns/tanstack-cloudflare.searchable-settings.md +375 -0
- package/agent/patterns/tanstack-cloudflare.slide-over.md +129 -0
- package/agent/patterns/tanstack-cloudflare.ssr-preload.md +571 -0
- package/agent/patterns/tanstack-cloudflare.third-party-api-integration.md +508 -0
- package/agent/patterns/tanstack-cloudflare.toast-system.md +142 -0
- package/agent/patterns/tanstack-cloudflare.unified-header.md +280 -0
- package/agent/patterns/tanstack-cloudflare.user-scoped-collections.md +628 -0
- package/agent/patterns/tanstack-cloudflare.websocket-manager.md +237 -0
- package/agent/patterns/tanstack-cloudflare.wrangler-configuration.md +358 -0
- package/agent/patterns/tanstack-cloudflare.zod-schema-validation.md +336 -0
- package/agent/progress.template.yaml +161 -0
- package/agent/progress.yaml +145 -0
- package/agent/schemas/package.schema.yaml +276 -0
- package/agent/scripts/acp.common.sh +1781 -0
- package/agent/scripts/acp.install.sh +333 -0
- package/agent/scripts/acp.package-create.sh +924 -0
- package/agent/scripts/acp.package-info.sh +288 -0
- package/agent/scripts/acp.package-install.sh +893 -0
- package/agent/scripts/acp.package-list.sh +311 -0
- package/agent/scripts/acp.package-publish.sh +420 -0
- package/agent/scripts/acp.package-remove.sh +348 -0
- package/agent/scripts/acp.package-search.sh +156 -0
- package/agent/scripts/acp.package-update.sh +517 -0
- package/agent/scripts/acp.package-validate.sh +1018 -0
- package/agent/scripts/acp.uninstall.sh +85 -0
- package/agent/scripts/acp.version-check-for-updates.sh +98 -0
- package/agent/scripts/acp.version-check.sh +47 -0
- package/agent/scripts/acp.version-update.sh +176 -0
- package/agent/scripts/acp.yaml-parser.sh +985 -0
- package/agent/scripts/acp.yaml-validate.sh +205 -0
- package/agent/tasks/.gitkeep +0 -0
- package/agent/tasks/milestone-1-project-scaffold-data-pipeline/task-1-initialize-tanstack-start-project.md +210 -0
- package/agent/tasks/milestone-1-project-scaffold-data-pipeline/task-2-implement-data-model-yaml-parser.md +294 -0
- package/agent/tasks/milestone-1-project-scaffold-data-pipeline/task-3-build-server-api-data-loading.md +193 -0
- package/agent/tasks/milestone-1-project-scaffold-data-pipeline/task-4-add-auto-refresh-sse.md +262 -0
- package/agent/tasks/milestone-2-dashboard-views-interaction/task-10-polish-integration-testing.md +156 -0
- package/agent/tasks/milestone-2-dashboard-views-interaction/task-5-build-dashboard-layout-routing.md +178 -0
- package/agent/tasks/milestone-2-dashboard-views-interaction/task-6-build-overview-page.md +141 -0
- package/agent/tasks/milestone-2-dashboard-views-interaction/task-7-implement-milestone-table-view.md +153 -0
- package/agent/tasks/milestone-2-dashboard-views-interaction/task-8-implement-milestone-tree-view.md +174 -0
- package/agent/tasks/milestone-2-dashboard-views-interaction/task-9-implement-search-filtering.md +233 -0
- package/agent/tasks/task-1-{title}.template.md +244 -0
- package/bin/visualize.mjs +84 -0
- package/package.json +48 -0
- package/src/components/ExtraFieldsBadge.tsx +15 -0
- package/src/components/FilterBar.tsx +33 -0
- package/src/components/Header.tsx +23 -0
- package/src/components/MilestoneTable.tsx +167 -0
- package/src/components/MilestoneTree.tsx +84 -0
- package/src/components/ProgressBar.tsx +20 -0
- package/src/components/SearchInput.tsx +22 -0
- package/src/components/Sidebar.tsx +54 -0
- package/src/components/StatusBadge.tsx +23 -0
- package/src/components/StatusDot.tsx +12 -0
- package/src/components/TaskList.tsx +36 -0
- package/src/components/ViewToggle.tsx +31 -0
- package/src/lib/config.ts +8 -0
- package/src/lib/file-watcher.ts +43 -0
- package/src/lib/search.ts +48 -0
- package/src/lib/types.ts +73 -0
- package/src/lib/useAutoRefresh.ts +31 -0
- package/src/lib/useCollapse.ts +31 -0
- package/src/lib/useFilteredData.ts +55 -0
- package/src/lib/yaml-loader-real.spec.ts +47 -0
- package/src/lib/yaml-loader.spec.ts +201 -0
- package/src/lib/yaml-loader.ts +265 -0
- package/src/routeTree.gen.ts +140 -0
- package/src/router.tsx +10 -0
- package/src/routes/__root.tsx +75 -0
- package/src/routes/api/watch.ts +29 -0
- package/src/routes/index.tsx +115 -0
- package/src/routes/milestones.tsx +50 -0
- package/src/routes/search.tsx +84 -0
- package/src/routes/tasks.tsx +63 -0
- package/src/services/progress-database.service.ts +46 -0
- package/src/styles.css +25 -0
- package/tsconfig.json +24 -0
- package/vite.config.ts +16 -0
- package/vitest.config.ts +27 -0
|
@@ -0,0 +1,466 @@
|
|
|
1
|
+
# Command: validate
|
|
2
|
+
|
|
3
|
+
> **🤖 Agent Directive**: If you are reading this file, the command `@acp.validate` has been invoked. Follow the steps below to execute this command.
|
|
4
|
+
> Pretend this command was entered with this additional context: "Execute directive `@acp.validate` 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**: 2.0.0
|
|
9
|
+
**Created**: 2026-02-16
|
|
10
|
+
**Last Updated**: 2026-02-21
|
|
11
|
+
**Status**: Active
|
|
12
|
+
**Scripts**: None
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
**Purpose**: Validate all ACP documents for structure, consistency, correctness, and namespace conventions
|
|
17
|
+
**Category**: Documentation
|
|
18
|
+
**Frequency**: As Needed
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## What This Command Does
|
|
23
|
+
|
|
24
|
+
This command validates all ACP documentation to ensure it follows proper structure, maintains consistency, contains no errors, and follows namespace conventions. It checks document formatting, verifies links and references, validates YAML syntax, ensures all required sections are present, validates namespace usage, and checks for reserved name violations.
|
|
25
|
+
|
|
26
|
+
Use this command before committing documentation changes, after creating new documents, or periodically to ensure documentation quality. It's particularly useful before releases or when onboarding new contributors.
|
|
27
|
+
|
|
28
|
+
Unlike `@acp.sync` which compares docs to code, `@acp.validate` checks the internal consistency and correctness of the documentation itself. Unlike `@acp.package-validate` which is for package authors, this command validates general ACP project documentation.
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Prerequisites
|
|
33
|
+
|
|
34
|
+
- [ ] ACP installed in project
|
|
35
|
+
- [ ] Documentation exists in `agent/` directory
|
|
36
|
+
- [ ] You want to verify documentation quality
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Steps
|
|
41
|
+
|
|
42
|
+
### 1. Validate Directory Structure
|
|
43
|
+
|
|
44
|
+
Check that all required directories and files exist.
|
|
45
|
+
|
|
46
|
+
**Actions**:
|
|
47
|
+
- Verify `agent/` directory exists
|
|
48
|
+
- Check for `agent/design/`, `agent/milestones/`, `agent/patterns/`, `agent/tasks/`
|
|
49
|
+
- Verify `agent/progress.yaml` exists
|
|
50
|
+
- Check for `agent/commands/` directory
|
|
51
|
+
- Note any missing directories
|
|
52
|
+
|
|
53
|
+
**Expected Outcome**: Directory structure validated
|
|
54
|
+
|
|
55
|
+
### 2. Validate progress.yaml
|
|
56
|
+
|
|
57
|
+
Check YAML syntax and required fields.
|
|
58
|
+
|
|
59
|
+
**Actions**:
|
|
60
|
+
- Parse `agent/progress.yaml` as YAML
|
|
61
|
+
- Verify required fields exist (project, milestones, tasks)
|
|
62
|
+
- Check field types (strings, numbers, dates)
|
|
63
|
+
- Validate date formats (YYYY-MM-DD)
|
|
64
|
+
- Verify progress percentages (0-100)
|
|
65
|
+
- Check milestone/task references are consistent
|
|
66
|
+
- Validate status values (not_started, in_progress, completed)
|
|
67
|
+
|
|
68
|
+
**Expected Outcome**: progress.yaml is valid
|
|
69
|
+
|
|
70
|
+
### 3. Validate Design Documents
|
|
71
|
+
|
|
72
|
+
Check design document structure and content.
|
|
73
|
+
|
|
74
|
+
**Actions**:
|
|
75
|
+
- Read all files in `agent/design/`
|
|
76
|
+
- Verify required sections exist (Overview, Problem, Solution)
|
|
77
|
+
- Check for proper markdown formatting
|
|
78
|
+
- Validate code blocks have language tags
|
|
79
|
+
- Verify dates are in correct format
|
|
80
|
+
- Check status values are valid
|
|
81
|
+
- Ensure no broken internal links
|
|
82
|
+
|
|
83
|
+
**Expected Outcome**: Design docs are well-formed
|
|
84
|
+
|
|
85
|
+
### 4. Validate Milestone Documents
|
|
86
|
+
|
|
87
|
+
Check milestone document structure.
|
|
88
|
+
|
|
89
|
+
**Actions**:
|
|
90
|
+
- Read all files in `agent/milestones/`
|
|
91
|
+
- Verify required sections (Overview, Deliverables, Success Criteria)
|
|
92
|
+
- Check naming convention (milestone-N-name.md)
|
|
93
|
+
- Validate task references exist
|
|
94
|
+
- Verify success criteria are checkboxes
|
|
95
|
+
- Check for proper formatting
|
|
96
|
+
|
|
97
|
+
**Expected Outcome**: Milestone docs are valid
|
|
98
|
+
|
|
99
|
+
### 5. Validate Task Documents
|
|
100
|
+
|
|
101
|
+
Check task document structure.
|
|
102
|
+
|
|
103
|
+
**Actions**:
|
|
104
|
+
- Read all files in `agent/tasks/`
|
|
105
|
+
- Verify required sections (Objective, Steps, Verification)
|
|
106
|
+
- Check naming convention (task-N-name.md)
|
|
107
|
+
- Validate milestone references
|
|
108
|
+
- Verify verification items are checkboxes
|
|
109
|
+
- Check for proper formatting
|
|
110
|
+
|
|
111
|
+
**Expected Outcome**: Task docs are valid
|
|
112
|
+
|
|
113
|
+
### 6. Validate Pattern Documents
|
|
114
|
+
|
|
115
|
+
Check pattern document structure.
|
|
116
|
+
|
|
117
|
+
**Actions**:
|
|
118
|
+
- Read all files in `agent/patterns/`
|
|
119
|
+
- Verify required sections (Overview, Implementation, Examples)
|
|
120
|
+
- Check code examples are properly formatted
|
|
121
|
+
- Validate examples have language tags
|
|
122
|
+
- Verify no broken links
|
|
123
|
+
|
|
124
|
+
**Expected Outcome**: Pattern docs are valid
|
|
125
|
+
|
|
126
|
+
### 7. Validate Command Documents
|
|
127
|
+
|
|
128
|
+
Check command document structure.
|
|
129
|
+
|
|
130
|
+
**Actions**:
|
|
131
|
+
- Read all files in `agent/commands/`
|
|
132
|
+
- Verify required sections (Purpose, Steps, Verification)
|
|
133
|
+
- Check agent directive is present
|
|
134
|
+
- Validate namespace and version fields
|
|
135
|
+
- Verify examples are complete
|
|
136
|
+
- Check related commands links work
|
|
137
|
+
|
|
138
|
+
**Expected Outcome**: Command docs are valid
|
|
139
|
+
|
|
140
|
+
### 8. Validate Namespace Conventions
|
|
141
|
+
|
|
142
|
+
Check namespace usage across all files.
|
|
143
|
+
|
|
144
|
+
**Actions**:
|
|
145
|
+
- **Detect Context**: Check if package.yaml exists
|
|
146
|
+
- If exists: This is a package (use package namespace)
|
|
147
|
+
- If not exists: This is a project (use @local namespace)
|
|
148
|
+
- **Command Files**: Validate command filenames
|
|
149
|
+
- In packages: Commands MUST use {namespace}.{command}.md format
|
|
150
|
+
- In projects: Local commands MUST use local.{command}.md format
|
|
151
|
+
- Core ACP commands always use acp.{command}.md format
|
|
152
|
+
- ERROR if files missing proper namespace prefix
|
|
153
|
+
- **Pattern Files**: Validate pattern filenames
|
|
154
|
+
- In packages: Patterns MUST use {namespace}.{pattern}.md format
|
|
155
|
+
- In projects: Patterns MUST use local.{pattern}.md format
|
|
156
|
+
- ERROR if patterns missing namespace prefix
|
|
157
|
+
- Exception: Template files (*.template.md) don't need namespace
|
|
158
|
+
- **Design Files**: Validate design filenames
|
|
159
|
+
- In packages: Designs MUST use {namespace}.{design}.md format
|
|
160
|
+
- In projects: Designs MUST use local.{design}.md format
|
|
161
|
+
- ERROR if designs missing namespace prefix
|
|
162
|
+
- Exception: Template files (*.template.md) don't need namespace
|
|
163
|
+
- **Reserved Names**: Check for reserved namespace usage
|
|
164
|
+
- Reject package names: acp, local, core, system, global
|
|
165
|
+
- Reject command files starting with reserved namespaces (unless core ACP)
|
|
166
|
+
- Reject pattern files starting with reserved namespaces (unless core ACP)
|
|
167
|
+
- ERROR for any violations
|
|
168
|
+
- **Consistency**: Verify namespace consistency
|
|
169
|
+
- All commands in package use same namespace
|
|
170
|
+
- All patterns in package use same namespace
|
|
171
|
+
- All designs in package use same namespace
|
|
172
|
+
- Namespace matches package.yaml name field (if package)
|
|
173
|
+
- ERROR for mixing of namespaces
|
|
174
|
+
|
|
175
|
+
**Expected Outcome**: Namespace conventions validated, errors reported for violations
|
|
176
|
+
|
|
177
|
+
### 9. Validate Key File Index
|
|
178
|
+
|
|
179
|
+
Check index files in `agent/index/` for schema correctness and referential integrity.
|
|
180
|
+
|
|
181
|
+
**Actions**:
|
|
182
|
+
- Check that `agent/index/` directory exists (warn if missing)
|
|
183
|
+
- For each `*.yaml` file in `agent/index/` (skip `*.template.yaml`):
|
|
184
|
+
- Verify filename follows `{namespace}.{qualifier}.yaml` naming
|
|
185
|
+
- Parse the index entries under the top-level key
|
|
186
|
+
- For each entry, verify required fields present: `path`, `weight`, `kind`, `description`, `rationale`, `applies`
|
|
187
|
+
- Validate `weight` is a number in range 0.0-1.0
|
|
188
|
+
- Validate `kind` is one of: pattern, command, design, requirements
|
|
189
|
+
- Validate `applies` values use fully qualified command names (contain a dot, e.g. `acp.proceed`)
|
|
190
|
+
- Check that each `path` actually exists in the project
|
|
191
|
+
- Warn on missing paths (file may have been moved or deleted)
|
|
192
|
+
- Check total indexed entries across all files (warn if > 20)
|
|
193
|
+
- Check per-namespace entry count (warn if > 10)
|
|
194
|
+
|
|
195
|
+
**Output format**:
|
|
196
|
+
```
|
|
197
|
+
📑 Index Validation:
|
|
198
|
+
✓ agent/index/local.main.yaml (5 entries, all valid)
|
|
199
|
+
⚠️ agent/index/core-sdk.main.yaml: path not found: agent/patterns/core-sdk.deleted.md
|
|
200
|
+
✓ Total: 8 entries across 2 namespaces (within limits)
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
**Expected Outcome**: Index files validated for schema and referential integrity
|
|
204
|
+
|
|
205
|
+
### 10. Check Cross-References
|
|
206
|
+
|
|
207
|
+
Validate links between documents.
|
|
208
|
+
|
|
209
|
+
**Actions**:
|
|
210
|
+
- Extract all internal links from documents
|
|
211
|
+
- Verify linked files exist
|
|
212
|
+
- Check milestone → task references
|
|
213
|
+
- Verify task → milestone back-references
|
|
214
|
+
- Validate command → command links
|
|
215
|
+
- Note any broken links
|
|
216
|
+
|
|
217
|
+
**Expected Outcome**: All links are valid
|
|
218
|
+
|
|
219
|
+
### 11. Generate Validation Report
|
|
220
|
+
|
|
221
|
+
Summarize validation results.
|
|
222
|
+
|
|
223
|
+
**Actions**:
|
|
224
|
+
- Count total documents validated
|
|
225
|
+
- List any errors found
|
|
226
|
+
- List any warnings
|
|
227
|
+
- Provide recommendations
|
|
228
|
+
- Suggest fixes for issues
|
|
229
|
+
|
|
230
|
+
**Expected Outcome**: Validation report generated
|
|
231
|
+
|
|
232
|
+
---
|
|
233
|
+
|
|
234
|
+
## Verification
|
|
235
|
+
|
|
236
|
+
- [ ] All required directories exist
|
|
237
|
+
- [ ] progress.yaml is valid YAML
|
|
238
|
+
- [ ] progress.yaml has all required fields
|
|
239
|
+
- [ ] All design documents are well-formed
|
|
240
|
+
- [ ] All milestone documents are valid
|
|
241
|
+
- [ ] All task documents are valid
|
|
242
|
+
- [ ] All pattern documents are valid
|
|
243
|
+
- [ ] All command documents are valid
|
|
244
|
+
- [ ] Namespace conventions validated
|
|
245
|
+
- [ ] Reserved names checked
|
|
246
|
+
- [ ] Key file index validated (schema, paths, limits)
|
|
247
|
+
- [ ] No broken internal links
|
|
248
|
+
- [ ] Validation report generated
|
|
249
|
+
|
|
250
|
+
---
|
|
251
|
+
|
|
252
|
+
## Expected Output
|
|
253
|
+
|
|
254
|
+
### Files Modified
|
|
255
|
+
None - this is a read-only validation command
|
|
256
|
+
|
|
257
|
+
### Console Output
|
|
258
|
+
```
|
|
259
|
+
✓ Validating ACP Documentation
|
|
260
|
+
|
|
261
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
262
|
+
|
|
263
|
+
Directory Structure:
|
|
264
|
+
✓ agent/ directory exists
|
|
265
|
+
✓ agent/design/ exists (5 files)
|
|
266
|
+
✓ agent/milestones/ exists (2 files)
|
|
267
|
+
✓ agent/patterns/ exists (3 files)
|
|
268
|
+
✓ agent/tasks/ exists (7 files)
|
|
269
|
+
✓ agent/commands/ exists (11 files)
|
|
270
|
+
|
|
271
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
272
|
+
|
|
273
|
+
progress.yaml:
|
|
274
|
+
✓ Valid YAML syntax
|
|
275
|
+
✓ All required fields present
|
|
276
|
+
✓ Date formats correct
|
|
277
|
+
✓ Progress percentages valid (0-100)
|
|
278
|
+
✓ Status values valid
|
|
279
|
+
✓ Task/milestone references consistent
|
|
280
|
+
|
|
281
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
282
|
+
|
|
283
|
+
Design Documents (5):
|
|
284
|
+
✓ All have required sections
|
|
285
|
+
✓ Markdown formatting correct
|
|
286
|
+
✓ Code blocks properly tagged
|
|
287
|
+
⚠️ auth-design.md: Missing "Last Updated" date
|
|
288
|
+
|
|
289
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
290
|
+
|
|
291
|
+
Milestone Documents (2):
|
|
292
|
+
✓ All have required sections
|
|
293
|
+
✓ Naming convention followed
|
|
294
|
+
✓ Task references valid
|
|
295
|
+
✓ Success criteria are checkboxes
|
|
296
|
+
|
|
297
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
298
|
+
|
|
299
|
+
Task Documents (7):
|
|
300
|
+
✓ All have required sections
|
|
301
|
+
✓ Naming convention followed
|
|
302
|
+
✓ Milestone references valid
|
|
303
|
+
✓ Verification items are checkboxes
|
|
304
|
+
|
|
305
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
306
|
+
|
|
307
|
+
Pattern Documents (3):
|
|
308
|
+
✓ All have required sections
|
|
309
|
+
✓ Code examples properly formatted
|
|
310
|
+
✓ No broken links
|
|
311
|
+
|
|
312
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
313
|
+
|
|
314
|
+
Command Documents (11):
|
|
315
|
+
✓ All have required sections
|
|
316
|
+
✓ Agent directives present
|
|
317
|
+
✓ Namespace and version fields valid
|
|
318
|
+
✓ Examples complete
|
|
319
|
+
✓ Related command links valid
|
|
320
|
+
|
|
321
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
322
|
+
|
|
323
|
+
Namespace Conventions:
|
|
324
|
+
✓ Context detected: Project (no package.yaml)
|
|
325
|
+
✓ All core ACP commands use 'acp' namespace
|
|
326
|
+
✓ Local commands use 'local' namespace
|
|
327
|
+
✓ No reserved name violations
|
|
328
|
+
✓ Namespace consistency maintained
|
|
329
|
+
|
|
330
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
331
|
+
|
|
332
|
+
Cross-References:
|
|
333
|
+
✓ All internal links valid
|
|
334
|
+
✓ Milestone → task references correct
|
|
335
|
+
✓ Task → milestone back-references correct
|
|
336
|
+
✓ Command → command links work
|
|
337
|
+
|
|
338
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
339
|
+
|
|
340
|
+
✅ Validation Complete!
|
|
341
|
+
|
|
342
|
+
Summary:
|
|
343
|
+
- Documents validated: 28
|
|
344
|
+
- Errors: 0
|
|
345
|
+
- Warnings: 1
|
|
346
|
+
- Overall: PASS
|
|
347
|
+
|
|
348
|
+
Warnings:
|
|
349
|
+
⚠️ auth-design.md: Missing "Last Updated" date
|
|
350
|
+
|
|
351
|
+
Recommendations:
|
|
352
|
+
- Add "Last Updated" date to auth-design.md
|
|
353
|
+
- Consider adding more code examples to patterns
|
|
354
|
+
```
|
|
355
|
+
|
|
356
|
+
### Status Update
|
|
357
|
+
- Validation completed
|
|
358
|
+
- Issues identified (if any)
|
|
359
|
+
- Documentation quality confirmed
|
|
360
|
+
|
|
361
|
+
---
|
|
362
|
+
|
|
363
|
+
## Examples
|
|
364
|
+
|
|
365
|
+
### Example 1: Before Committing Changes
|
|
366
|
+
|
|
367
|
+
**Context**: Made changes to several docs, want to verify before commit
|
|
368
|
+
|
|
369
|
+
**Invocation**: `@acp.validate`
|
|
370
|
+
|
|
371
|
+
**Result**: Validates all docs, finds 2 broken links, reports them, you fix them before committing
|
|
372
|
+
|
|
373
|
+
### Example 2: After Creating New Documents
|
|
374
|
+
|
|
375
|
+
**Context**: Created 3 new design documents
|
|
376
|
+
|
|
377
|
+
**Invocation**: `@acp.validate`
|
|
378
|
+
|
|
379
|
+
**Result**: Validates new docs, confirms they follow proper structure, identifies missing section in one doc
|
|
380
|
+
|
|
381
|
+
### Example 3: Periodic Quality Check
|
|
382
|
+
|
|
383
|
+
**Context**: Monthly documentation review
|
|
384
|
+
|
|
385
|
+
**Invocation**: `@acp.validate`
|
|
386
|
+
|
|
387
|
+
**Result**: Validates all 50+ documents, finds minor formatting issues in 3 files, overall quality is good
|
|
388
|
+
|
|
389
|
+
---
|
|
390
|
+
|
|
391
|
+
## Related Commands
|
|
392
|
+
|
|
393
|
+
- [`@acp.package-validate`](acp.package-validate.md) - Package-specific validation (for package authors)
|
|
394
|
+
- [`@acp.sync`](acp.sync.md) - Sync documentation with code (different from validation)
|
|
395
|
+
- [`@acp.update`](acp.update.md) - Update progress tracking
|
|
396
|
+
- [`@acp.report`](acp.report.md) - Generate comprehensive report including validation results
|
|
397
|
+
- [`@acp.init`](acp.init.md) - Can include validation as part of initialization
|
|
398
|
+
|
|
399
|
+
---
|
|
400
|
+
|
|
401
|
+
## Troubleshooting
|
|
402
|
+
|
|
403
|
+
### Issue 1: YAML parsing errors
|
|
404
|
+
|
|
405
|
+
**Symptom**: progress.yaml fails to parse
|
|
406
|
+
|
|
407
|
+
**Cause**: Invalid YAML syntax (indentation, special characters)
|
|
408
|
+
|
|
409
|
+
**Solution**: Use YAML validator, check indentation (2 spaces), quote strings with special characters
|
|
410
|
+
|
|
411
|
+
### Issue 2: Many broken links reported
|
|
412
|
+
|
|
413
|
+
**Symptom**: Validation finds numerous broken links
|
|
414
|
+
|
|
415
|
+
**Cause**: Files were moved or renamed
|
|
416
|
+
|
|
417
|
+
**Solution**: Update links to reflect new file locations, use relative paths, verify files exist
|
|
418
|
+
|
|
419
|
+
### Issue 3: Validation takes too long
|
|
420
|
+
|
|
421
|
+
**Symptom**: Command runs for several minutes
|
|
422
|
+
|
|
423
|
+
**Cause**: Very large project with many documents
|
|
424
|
+
|
|
425
|
+
**Solution**: This is normal for large projects, consider validating specific directories only, run less frequently
|
|
426
|
+
|
|
427
|
+
---
|
|
428
|
+
|
|
429
|
+
## Security Considerations
|
|
430
|
+
|
|
431
|
+
### File Access
|
|
432
|
+
- **Reads**: All files in `agent/` directory
|
|
433
|
+
- **Writes**: None (read-only validation)
|
|
434
|
+
- **Executes**: None
|
|
435
|
+
|
|
436
|
+
### Network Access
|
|
437
|
+
- **APIs**: None
|
|
438
|
+
- **Repositories**: None
|
|
439
|
+
|
|
440
|
+
### Sensitive Data
|
|
441
|
+
- **Secrets**: Does not access secrets or credentials
|
|
442
|
+
- **Credentials**: Does not access credentials files
|
|
443
|
+
|
|
444
|
+
---
|
|
445
|
+
|
|
446
|
+
## Notes
|
|
447
|
+
|
|
448
|
+
- This is a read-only command - it doesn't modify files
|
|
449
|
+
- Validation should be fast (< 30 seconds for most projects)
|
|
450
|
+
- Run before committing documentation changes
|
|
451
|
+
- Integrate into CI/CD pipeline if desired
|
|
452
|
+
- Warnings are informational, not failures
|
|
453
|
+
- Errors should be fixed before proceeding
|
|
454
|
+
- Consider running after major documentation updates
|
|
455
|
+
- Can be automated as a pre-commit hook
|
|
456
|
+
|
|
457
|
+
---
|
|
458
|
+
|
|
459
|
+
**Namespace**: acp
|
|
460
|
+
**Command**: validate
|
|
461
|
+
**Version**: 2.0.0
|
|
462
|
+
**Created**: 2026-02-16
|
|
463
|
+
**Last Updated**: 2026-02-21
|
|
464
|
+
**Status**: Active
|
|
465
|
+
**Compatibility**: ACP 2.0.0+
|
|
466
|
+
**Author**: ACP Project
|