@orchestrator-claude/definitions 3.5.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/agents/api-extractor.md +687 -0
- package/agents/business-rule-miner.md +754 -0
- package/agents/code-archaeologist.md +720 -0
- package/agents/docs-guardian.md +524 -0
- package/agents/implementer.md +512 -0
- package/agents/legacy-discoverer.md +583 -0
- package/agents/legacy-synthesizer.md +1101 -0
- package/agents/orchestrator.md +165 -0
- package/agents/planner.md +365 -0
- package/agents/researcher.md +447 -0
- package/agents/reviewer.md +514 -0
- package/agents/schema-extractor.md +781 -0
- package/agents/specifier.md +360 -0
- package/agents/task-generator.md +390 -0
- package/bin/orch-defs.js +2 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +172 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands/DiffCommand.d.ts +13 -0
- package/dist/commands/DiffCommand.d.ts.map +1 -0
- package/dist/commands/DiffCommand.js +74 -0
- package/dist/commands/DiffCommand.js.map +1 -0
- package/dist/commands/SeedCommand.d.ts +19 -0
- package/dist/commands/SeedCommand.d.ts.map +1 -0
- package/dist/commands/SeedCommand.js +56 -0
- package/dist/commands/SeedCommand.js.map +1 -0
- package/dist/http/ApiClient.d.ts +50 -0
- package/dist/http/ApiClient.d.ts.map +1 -0
- package/dist/http/ApiClient.js +58 -0
- package/dist/http/ApiClient.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -0
- package/dist/manifest/ManifestLoader.d.ts +34 -0
- package/dist/manifest/ManifestLoader.d.ts.map +1 -0
- package/dist/manifest/ManifestLoader.js +110 -0
- package/dist/manifest/ManifestLoader.js.map +1 -0
- package/dist/manifest/types.d.ts +59 -0
- package/dist/manifest/types.d.ts.map +1 -0
- package/dist/manifest/types.js +5 -0
- package/dist/manifest/types.js.map +1 -0
- package/dist/scripts/generate-manifest.d.ts +10 -0
- package/dist/scripts/generate-manifest.d.ts.map +1 -0
- package/dist/scripts/generate-manifest.js +114 -0
- package/dist/scripts/generate-manifest.js.map +1 -0
- package/hooks/post-agent-artifact-relay.sh +157 -0
- package/hooks/post-artifact-generate.sh +39 -0
- package/hooks/post-implement-validate.sh +139 -0
- package/hooks/post-phase-checkpoint.sh +322 -0
- package/hooks/pre-agent-invoke.sh +34 -0
- package/hooks/pre-phase-advance.sh +40 -0
- package/hooks/track-agent-invocation.sh +241 -0
- package/kb/auth-strategies.md +742 -0
- package/kb/docs-constitution.md +310 -0
- package/kb/error-handling.md +555 -0
- package/kb/rest-conventions.md +458 -0
- package/kb/validation-patterns.md +589 -0
- package/manifest.json +314 -0
- package/package.json +65 -0
- package/skills/artifact-validator/SKILL.md +226 -0
- package/skills/docs-guardian/SKILL.md +230 -0
- package/skills/kb-lookup/SKILL.md +257 -0
- package/skills/phase-gate-evaluator/SKILL.md +274 -0
- package/skills/release/SKILL.md +239 -0
- package/skills/release/release.sh +491 -0
- package/skills/smoke-test/SKILL.md +195 -0
- package/skills/workflow-status/SKILL.md +322 -0
- package/workflows/bug-fix.json +74 -0
- package/workflows/feature-development.json +88 -0
- package/workflows/legacy-analysis.json +304 -0
- package/workflows/refactoring.json +74 -0
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "DOCS-CONSTITUTION - Documentation Governance Rules"
|
|
3
|
+
category: "governance"
|
|
4
|
+
tier: "critical"
|
|
5
|
+
tags: ["documentation", "governance", "rules", "compliance"]
|
|
6
|
+
template: "all"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# DOCS-CONSTITUTION - Documentation Governance Rules
|
|
10
|
+
|
|
11
|
+
## Overview
|
|
12
|
+
|
|
13
|
+
This document defines the rules and conventions for documentation governance in the **my-project** project. It serves as the source of truth for the Documentation Guardian system.
|
|
14
|
+
|
|
15
|
+
**Project**: my-project
|
|
16
|
+
**Template**: orchestrator
|
|
17
|
+
**Constitution Preset**: orchestrator
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## 1. Separation of Concerns
|
|
22
|
+
|
|
23
|
+
### 1.1 project-guidelines/ (Technical Documentation)
|
|
24
|
+
|
|
25
|
+
**Purpose**: Documentation for developers and LLM agents.
|
|
26
|
+
|
|
27
|
+
**What belongs here:**
|
|
28
|
+
- RFCs (Request for Comments)
|
|
29
|
+
- ADRs (Architecture Decision Records)
|
|
30
|
+
- Phase tracking files
|
|
31
|
+
- Design documents
|
|
32
|
+
- Technical specifications
|
|
33
|
+
- Internal conventions
|
|
34
|
+
|
|
35
|
+
**Structure:**
|
|
36
|
+
```
|
|
37
|
+
project-guidelines/
|
|
38
|
+
rfcs/
|
|
39
|
+
index.md
|
|
40
|
+
RFC-000-TEMPLATE.md
|
|
41
|
+
RFC-XXX-*.md
|
|
42
|
+
adrs/
|
|
43
|
+
index.md
|
|
44
|
+
ADR-XXX-*.md
|
|
45
|
+
README.md
|
|
46
|
+
MASTER-INDEX.md
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### 1.2 docs/ (User Documentation)
|
|
50
|
+
|
|
51
|
+
**Purpose**: Documentation for end users and external developers.
|
|
52
|
+
|
|
53
|
+
**What belongs here:**
|
|
54
|
+
- Getting started guides
|
|
55
|
+
- Tutorials
|
|
56
|
+
- API reference (public)
|
|
57
|
+
- Configuration guides
|
|
58
|
+
- Troubleshooting
|
|
59
|
+
- Examples
|
|
60
|
+
|
|
61
|
+
**Structure:**
|
|
62
|
+
```
|
|
63
|
+
docs/
|
|
64
|
+
README.md
|
|
65
|
+
getting-started.md
|
|
66
|
+
tutorials/
|
|
67
|
+
examples/
|
|
68
|
+
migration/
|
|
69
|
+
api/
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### 1.3 Identification Patterns
|
|
73
|
+
|
|
74
|
+
**Technical documents** (project-guidelines/):
|
|
75
|
+
- Contains: RFC, ADR, TRACKING, PHASE, DESIGN, SPEC, PLAN
|
|
76
|
+
- Filename patterns: `RFC-*.md`, `ADR-*.md`, `*-TRACKING.md`
|
|
77
|
+
- Content patterns: workflow IDs, phase references, internal APIs
|
|
78
|
+
|
|
79
|
+
**User documents** (docs/):
|
|
80
|
+
- Contains: tutorial, guide, getting-started, example, how-to
|
|
81
|
+
- Filename patterns: `*-guide.md`, `*-tutorial.md`
|
|
82
|
+
- Content patterns: user-facing instructions, public API usage
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## 2. Versioning Rules
|
|
87
|
+
|
|
88
|
+
### 2.1 Semantic Versioning
|
|
89
|
+
|
|
90
|
+
Follow SemVer 2.0.0:
|
|
91
|
+
```
|
|
92
|
+
MAJOR.MINOR.PATCH
|
|
93
|
+
|
|
94
|
+
MAJOR: Breaking changes
|
|
95
|
+
MINOR: New features (backwards compatible)
|
|
96
|
+
PATCH: Bug fixes (backwards compatible)
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### 2.2 Version Sources
|
|
100
|
+
|
|
101
|
+
**Single Source of Truth**: `package.json`
|
|
102
|
+
|
|
103
|
+
**Must Stay in Sync:**
|
|
104
|
+
- package.json version
|
|
105
|
+
- Latest git tag (v{version})
|
|
106
|
+
- CHANGELOG.md header
|
|
107
|
+
- RFC target versions (when applicable)
|
|
108
|
+
|
|
109
|
+
### 2.3 Git Tags
|
|
110
|
+
|
|
111
|
+
**Format**: `v{MAJOR}.{MINOR}.{PATCH}`
|
|
112
|
+
|
|
113
|
+
**Examples:**
|
|
114
|
+
- v1.0.0
|
|
115
|
+
- v1.2.3
|
|
116
|
+
- v2.0.0-beta.1
|
|
117
|
+
|
|
118
|
+
**Rules:**
|
|
119
|
+
- Create tag after package.json update
|
|
120
|
+
- Never delete published tags
|
|
121
|
+
- Use annotated tags for releases
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
## 3. Archival Rules
|
|
126
|
+
|
|
127
|
+
### 3.1 When to Archive
|
|
128
|
+
|
|
129
|
+
Archive documents when:
|
|
130
|
+
- Not modified for 30+ days AND not protected
|
|
131
|
+
- Associated phase/feature is complete
|
|
132
|
+
- Explicitly marked as deprecated
|
|
133
|
+
- Superseded by newer document
|
|
134
|
+
|
|
135
|
+
### 3.2 Protected Documents (Never Archive)
|
|
136
|
+
|
|
137
|
+
- RFCs (any status)
|
|
138
|
+
- ADRs (any status)
|
|
139
|
+
- CONSTITUTION.md
|
|
140
|
+
- CLAUDE.md
|
|
141
|
+
- README.md (any location)
|
|
142
|
+
- Active tracking files
|
|
143
|
+
|
|
144
|
+
### 3.3 Archive Location
|
|
145
|
+
|
|
146
|
+
```
|
|
147
|
+
project-guidelines/archive/
|
|
148
|
+
YYYY-MM/
|
|
149
|
+
archived-document.md
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
### 3.4 Archive Process
|
|
153
|
+
|
|
154
|
+
1. Move file to archive directory
|
|
155
|
+
2. Add archive header with date and reason
|
|
156
|
+
3. Update any references
|
|
157
|
+
4. Remove from MASTER-INDEX.md
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## 4. RFC Lifecycle
|
|
162
|
+
|
|
163
|
+
### 4.1 States
|
|
164
|
+
|
|
165
|
+
| State | Description |
|
|
166
|
+
|-------|-------------|
|
|
167
|
+
| DRAFT | Initial ideation, incomplete |
|
|
168
|
+
| PROPOSED | Complete, open for feedback (14 days) |
|
|
169
|
+
| ACCEPTED | Approved, ready for implementation |
|
|
170
|
+
| IN_PROGRESS | Phases being executed |
|
|
171
|
+
| COMPLETE | All phases implemented |
|
|
172
|
+
| ABANDONED | Rejected or withdrawn |
|
|
173
|
+
| DEPRECATED | Superseded by newer RFC |
|
|
174
|
+
|
|
175
|
+
### 4.2 State Transitions
|
|
176
|
+
|
|
177
|
+
```
|
|
178
|
+
DRAFT -> PROPOSED -> ACCEPTED -> IN_PROGRESS -> COMPLETE
|
|
179
|
+
\-> ABANDONED
|
|
180
|
+
\-> DEPRECATED
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
### 4.3 Required Fields
|
|
184
|
+
|
|
185
|
+
Every RFC must have:
|
|
186
|
+
- Unique ID (RFC-XXX)
|
|
187
|
+
- Title
|
|
188
|
+
- Status
|
|
189
|
+
- Author
|
|
190
|
+
- Date
|
|
191
|
+
- Target Version
|
|
192
|
+
- Summary
|
|
193
|
+
- Phases with status
|
|
194
|
+
|
|
195
|
+
---
|
|
196
|
+
|
|
197
|
+
## 5. Update Triggers
|
|
198
|
+
|
|
199
|
+
### 5.1 After Workflow Completion
|
|
200
|
+
|
|
201
|
+
Update:
|
|
202
|
+
- RFC status (if applicable)
|
|
203
|
+
- CHANGELOG.md
|
|
204
|
+
- MASTER-INDEX.md
|
|
205
|
+
- package.json version (if release)
|
|
206
|
+
|
|
207
|
+
### 5.2 After New Feature
|
|
208
|
+
|
|
209
|
+
Update:
|
|
210
|
+
- docs/ with user documentation
|
|
211
|
+
- README.md if major feature
|
|
212
|
+
- CLAUDE.md if new skill/agent
|
|
213
|
+
|
|
214
|
+
### 5.3 After Bug Fix
|
|
215
|
+
|
|
216
|
+
Update:
|
|
217
|
+
- CHANGELOG.md
|
|
218
|
+
- Related tracking files
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
|
|
222
|
+
## 6. Required Files
|
|
223
|
+
|
|
224
|
+
### 6.1 Root Level
|
|
225
|
+
|
|
226
|
+
| File | Required | Description |
|
|
227
|
+
|------|----------|-------------|
|
|
228
|
+
| README.md | Yes | Project overview |
|
|
229
|
+
| CLAUDE.md | Yes | LLM agent instructions |
|
|
230
|
+
| CHANGELOG.md | Recommended | Version history |
|
|
231
|
+
| package.json | Yes | Project metadata |
|
|
232
|
+
|
|
233
|
+
### 6.2 project-guidelines/
|
|
234
|
+
|
|
235
|
+
| File | Required | Description |
|
|
236
|
+
|------|----------|-------------|
|
|
237
|
+
| README.md | Yes | Guidelines overview |
|
|
238
|
+
| MASTER-INDEX.md | Recommended | Navigation index |
|
|
239
|
+
| rfcs/index.md | If RFCs exist | RFC listing |
|
|
240
|
+
| adrs/index.md | If ADRs exist | ADR listing |
|
|
241
|
+
|
|
242
|
+
### 6.3 docs/
|
|
243
|
+
|
|
244
|
+
| File | Required | Description |
|
|
245
|
+
|------|----------|-------------|
|
|
246
|
+
| README.md | Yes | Documentation overview |
|
|
247
|
+
| getting-started.md | Recommended | Quick start guide |
|
|
248
|
+
|
|
249
|
+
---
|
|
250
|
+
|
|
251
|
+
## 7. Naming Conventions
|
|
252
|
+
|
|
253
|
+
### 7.1 Files
|
|
254
|
+
|
|
255
|
+
| Type | Pattern | Example |
|
|
256
|
+
|------|---------|---------|
|
|
257
|
+
| RFC | `RFC-XXX-TITLE.md` | RFC-001-REST-API.md |
|
|
258
|
+
| ADR | `ADR-XXX-TITLE.md` | ADR-001-DATABASE.md |
|
|
259
|
+
| Tracking | `PHASE{N}-TRACKING.md` | PHASE1-TRACKING.md |
|
|
260
|
+
| Guide | `{topic}-guide.md` | authentication-guide.md |
|
|
261
|
+
| Tutorial | `{topic}-tutorial.md` | getting-started-tutorial.md |
|
|
262
|
+
|
|
263
|
+
### 7.2 Directories
|
|
264
|
+
|
|
265
|
+
- Use lowercase with hyphens
|
|
266
|
+
- No spaces or underscores
|
|
267
|
+
- Descriptive names
|
|
268
|
+
|
|
269
|
+
**Examples:**
|
|
270
|
+
- `project-guidelines/` (not `projectGuidelines/`)
|
|
271
|
+
- `getting-started/` (not `GettingStarted/`)
|
|
272
|
+
|
|
273
|
+
---
|
|
274
|
+
|
|
275
|
+
## 8. Compliance Checks
|
|
276
|
+
|
|
277
|
+
The Documentation Guardian verifies:
|
|
278
|
+
|
|
279
|
+
### 8.1 Errors (Must Fix)
|
|
280
|
+
|
|
281
|
+
- Version mismatch between package.json and git tags
|
|
282
|
+
- Missing required files
|
|
283
|
+
- Invalid RFC/ADR structure
|
|
284
|
+
|
|
285
|
+
### 8.2 Warnings (Should Fix)
|
|
286
|
+
|
|
287
|
+
- Documents in wrong directory
|
|
288
|
+
- Missing recommended files
|
|
289
|
+
- Outdated references
|
|
290
|
+
|
|
291
|
+
### 8.3 Infos (Consider)
|
|
292
|
+
|
|
293
|
+
- Archive candidates
|
|
294
|
+
- Old unmodified files
|
|
295
|
+
- Completed tracking files
|
|
296
|
+
|
|
297
|
+
---
|
|
298
|
+
|
|
299
|
+
## References
|
|
300
|
+
|
|
301
|
+
- [Semantic Versioning 2.0.0](https://semver.org/)
|
|
302
|
+
- [Conventional Commits](https://www.conventionalcommits.org/)
|
|
303
|
+
- [RFC Process](https://en.wikipedia.org/wiki/Request_for_Comments)
|
|
304
|
+
- [ADR Process](https://adr.github.io/)
|
|
305
|
+
|
|
306
|
+
---
|
|
307
|
+
|
|
308
|
+
**Generated for**: my-project
|
|
309
|
+
**Template**: orchestrator
|
|
310
|
+
**Constitution Preset**: orchestrator
|