telo3-ai 5.0.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.
@@ -0,0 +1,425 @@
1
+ # Document Specification
2
+
3
+ > Detailed specifications for each of the six core project context documents.
4
+
5
+ ---
6
+
7
+ ## Overview
8
+
9
+ The project context system uses six distinct documents with non-overlapping responsibilities:
10
+
11
+ | Document | Focus | Temporal Scope |
12
+ |----------|-------|----------------|
13
+ | **prd.md** | Requirements & Product | Stable, strategic |
14
+ | **architecture.md** | Technical Structure | Stable with evolution |
15
+ | **rules.md** | Engineering Standards | Stable, principles-based |
16
+ | **design.md** | Visual & UX Patterns | Stable with refinement |
17
+ | **tasks.md** | Implementation Work | Dynamic, short-term |
18
+ | **memory.md** | Current State & Context | Dynamic, continuity |
19
+
20
+ ---
21
+
22
+ ## prd.md — Product Requirements Document
23
+
24
+ ### Purpose
25
+ Define **WHAT** the product is and **WHY** it exists.
26
+
27
+ ### Responsibilities
28
+ - Product vision and strategy
29
+ - Target users and use cases
30
+ - Functional requirements
31
+ - Goals and success criteria
32
+ - Scope boundaries (goals and non-goals)
33
+ - Product decisions and rationale
34
+
35
+ ### What NOT to Include
36
+ - ❌ How the system is implemented (that's architecture.md)
37
+ - ❌ Coding standards (that's rules.md)
38
+ - ❌ Visual design (that's design.md)
39
+ - ❌ Current implementation status (that's tasks.md and memory.md)
40
+
41
+ ### When to Update
42
+ - Requirements change or are clarified
43
+ - Scope changes (new goals or non-goals)
44
+ - Important product decisions are made
45
+ - Success criteria are defined or changed
46
+ - New user insights emerge
47
+
48
+ ### Anti-Patterns
49
+ - Inventing requirements without user input
50
+ - Documenting technical implementation details
51
+ - Including temporary notes that belong in memory.md
52
+ - Duplicating architecture or design information
53
+
54
+ ---
55
+
56
+ ## architecture.md — Architecture Documentation
57
+
58
+ ### Purpose
59
+ Define **HOW** the system works technically.
60
+
61
+ ### Responsibilities
62
+ - Technology stack and dependencies
63
+ - System structure and organization
64
+ - Data models and relationships
65
+ - API architecture and conventions
66
+ - Authentication and authorization flow
67
+ - External service integrations
68
+ - Deployment and infrastructure
69
+ - Architectural decisions and rationale
70
+
71
+ ### What NOT to Include
72
+ - ❌ Product requirements (that's prd.md)
73
+ - ❌ Coding standards (that's rules.md)
74
+ - ❌ Visual design system (that's design.md)
75
+ - ❌ Implementation task list (that's tasks.md)
76
+ - ❌ Temporary implementation notes (that's memory.md)
77
+
78
+ ### When to Update
79
+ - Technology stack changes
80
+ - New external services are integrated
81
+ - Database schema changes significantly
82
+ - API structure changes
83
+ - Deployment process changes
84
+ - Major architectural refactoring occurs
85
+ - Architectural decisions are made
86
+
87
+ ### Anti-Patterns
88
+ - Documenting what should exist rather than what does exist
89
+ - Including implementation TODOs (use tasks.md)
90
+ - Duplicating dependency lists from package files (reference them instead)
91
+ - Documenting coding standards (use rules.md)
92
+
93
+ ---
94
+
95
+ ## rules.md — Engineering Rules
96
+
97
+ ### Purpose
98
+ Define **HOW** the project must be engineered.
99
+
100
+ ### Responsibilities
101
+ - Coding standards and conventions
102
+ - File organization patterns
103
+ - Security practices
104
+ - Privacy guidelines
105
+ - Testing requirements
106
+ - Git and version control practices
107
+ - Performance guidelines
108
+ - Accessibility standards
109
+ - Compliance awareness
110
+ - Refactoring principles
111
+
112
+ ### What NOT to Include
113
+ - ❌ Product requirements (that's prd.md)
114
+ - ❌ System architecture (that's architecture.md)
115
+ - ❌ Visual design standards (that's design.md)
116
+ - ❌ Specific implementation tasks (that's tasks.md)
117
+ - ❌ Current violations or technical debt (that's memory.md)
118
+
119
+ ### When to Update
120
+ - Engineering standards are established or changed
121
+ - Security practices evolve
122
+ - New compliance considerations are identified
123
+ - Team agreements about code quality are made
124
+ - Accessibility or performance standards change
125
+
126
+ ### Anti-Patterns
127
+ - Writing rules that are not actually followed
128
+ - Creating overly prescriptive rules that prevent good judgment
129
+ - Duplicating technology-specific conventions that are documented elsewhere
130
+ - Including implementation-specific notes
131
+
132
+ ---
133
+
134
+ ## design.md — Design System
135
+
136
+ ### Purpose
137
+ Define **HOW** the product looks and behaves.
138
+
139
+ ### Responsibilities
140
+ - Design philosophy and principles
141
+ - Color system
142
+ - Typography
143
+ - Spacing and layout
144
+ - Component specifications
145
+ - Interaction patterns
146
+ - Accessibility guidelines
147
+ - Responsive behavior
148
+ - Animation and motion
149
+ - Anti-patterns to avoid
150
+
151
+ ### What NOT to Include
152
+ - ❌ Product features (that's prd.md)
153
+ - ❌ Technical implementation (that's architecture.md)
154
+ - ❌ Code organization (that's rules.md)
155
+ - ❌ Design tasks (that's tasks.md)
156
+ - ❌ Current design inconsistencies (that's memory.md)
157
+
158
+ ### When to Update
159
+ - Brand identity changes
160
+ - New components are standardized
161
+ - Design tokens are modified
162
+ - Accessibility requirements change
163
+ - Responsive breakpoints change
164
+ - Design anti-patterns are identified
165
+
166
+ ### Anti-Patterns
167
+ - Documenting every possible component variant
168
+ - Including implementation code (reference components instead)
169
+ - Documenting one-off designs that aren't patterns
170
+ - Making it a visual style guide without UX guidance
171
+
172
+ ---
173
+
174
+ ## tasks.md — Tasks & Implementation Backlog
175
+
176
+ ### Purpose
177
+ Track **WHAT** implementation work remains.
178
+
179
+ ### Responsibilities
180
+ - Feature backlog
181
+ - Bug list
182
+ - Technical debt tracking
183
+ - Implementation phases
184
+ - Active work in progress
185
+ - Recently completed work
186
+ - Blocked tasks
187
+
188
+ ### What NOT to Include
189
+ - ❌ Product requirements (that's prd.md)
190
+ - ❌ Architectural design (that's architecture.md)
191
+ - ❌ Coding standards (that's rules.md)
192
+ - ❌ Design system (that's design.md)
193
+ - ❌ Decisions and context (that's memory.md)
194
+
195
+ ### When to Update
196
+ - After completing meaningful work
197
+ - When adding new features to the backlog
198
+ - When prioritization changes
199
+ - When bugs are discovered or fixed
200
+ - When technical debt is identified or addressed
201
+
202
+ ### Anti-Patterns
203
+ - Tracking every tiny code change
204
+ - Keeping completed tasks indefinitely (archive them)
205
+ - Including decision rationale (use memory.md)
206
+ - Duplicating bug tracker content
207
+
208
+ ---
209
+
210
+ ## memory.md — Project Memory
211
+
212
+ ### Purpose
213
+ Track **CURRENT STATE** and important continuity information.
214
+
215
+ ### Responsibilities
216
+ - Current project status
217
+ - Recently completed work (summary)
218
+ - Important decisions that must be preserved
219
+ - Known bugs and limitations
220
+ - Temporary workarounds
221
+ - Technical debt context
222
+ - Important discoveries
223
+ - Pending questions
224
+ - Project-specific preferences
225
+ - Security/privacy/compliance considerations
226
+
227
+ ### What NOT to Include
228
+ - ❌ Stable product requirements (that's prd.md)
229
+ - ❌ Stable architecture (that's architecture.md)
230
+ - ❌ Established engineering rules (that's rules.md)
231
+ - ❌ Established design patterns (that's design.md)
232
+ - ❌ Detailed task breakdowns (that's tasks.md)
233
+ - ❌ Conversation transcripts
234
+ - ❌ Secrets or credentials
235
+
236
+ ### When to Update
237
+ - After significant implementation work
238
+ - When important decisions are made
239
+ - When temporary workarounds are introduced
240
+ - When new bugs or limitations are discovered
241
+ - When architectural changes are in progress
242
+ - When important context emerges
243
+
244
+ ### Anti-Patterns
245
+ - Turning it into a conversation log
246
+ - Documenting stable information that belongs elsewhere
247
+ - Including secrets or sensitive data
248
+ - Keeping outdated information indefinitely
249
+ - Writing novels (keep it concise and scannable)
250
+
251
+ ---
252
+
253
+ ## Document Relationships
254
+
255
+ ### Information Flow
256
+
257
+ ```
258
+ Product Strategy (prd.md)
259
+ ↓
260
+ Technical Design (architecture.md)
261
+ ↓
262
+ Engineering Standards (rules.md)
263
+ ↓
264
+ Visual Design (design.md)
265
+ ↓
266
+ Implementation (tasks.md)
267
+ ↓
268
+ Current State (memory.md)
269
+ ```
270
+
271
+ ### Cross-References
272
+
273
+ Documents should reference each other when necessary:
274
+
275
+ - **prd.md** might reference architecture.md for technical constraints
276
+ - **architecture.md** might reference prd.md for product requirements
277
+ - **rules.md** might reference architecture.md for technology-specific standards
278
+ - **design.md** might reference rules.md for accessibility standards
279
+ - **tasks.md** should reference all documents for implementation context
280
+ - **memory.md** might reference any document for context
281
+
282
+ ### Avoiding Duplication
283
+
284
+ When information logically belongs in multiple documents:
285
+
286
+ 1. **Choose the primary home** based on responsibility
287
+ 2. **Reference, don't duplicate** — Link to the primary source
288
+ 3. **Exception:** Brief summaries are acceptable for context
289
+
290
+ Example:
291
+ - **Primary:** architecture.md documents the database is PostgreSQL
292
+ - **Reference:** rules.md might say "See architecture.md for database choice; all queries must use parameterized statements"
293
+
294
+ ---
295
+
296
+ ## Document Lifecycle
297
+
298
+ ### Creation
299
+ 1. Start with templates
300
+ 2. Inspect actual project implementation
301
+ 3. Fill in known information
302
+ 4. Mark unknowns explicitly
303
+ 5. Never invent information
304
+
305
+ ### Maintenance
306
+ 1. Update after meaningful changes
307
+ 2. Keep information current
308
+ 3. Remove outdated information
309
+ 4. Archive historical information when appropriate
310
+ 5. Maintain clear document history
311
+
312
+ ### Archival
313
+ 1. Move completed tasks to "Recently Completed" or remove
314
+ 2. Move superseded decisions to "Historical Decisions" or note status
315
+ 3. Remove temporary workarounds after they're fixed
316
+ 4. Keep information needed for understanding current state
317
+
318
+ ---
319
+
320
+ ## Document Location
321
+
322
+ ### Recommended Locations
323
+
324
+ **Option 1: Dedicated directory**
325
+ ```
326
+ project-context/
327
+ ├── prd.md
328
+ ├── architecture.md
329
+ ├── rules.md
330
+ ├── design.md
331
+ ├── tasks.md
332
+ └── memory.md
333
+ ```
334
+
335
+ **Option 2: General documentation directory**
336
+ ```
337
+ docs/project-context/
338
+ ├── prd.md
339
+ ├── architecture.md
340
+ ├── rules.md
341
+ ├── design.md
342
+ ├── tasks.md
343
+ └── memory.md
344
+ ```
345
+
346
+ **Option 3: Project root** (for simple projects)
347
+ ```
348
+ PROJECT_ROOT/
349
+ ├── prd.md
350
+ ├── architecture.md
351
+ ├── rules.md
352
+ ├── design.md
353
+ ├── tasks.md
354
+ └── memory.md
355
+ ```
356
+
357
+ ### Integration with Existing Documentation
358
+
359
+ If the project already has documentation:
360
+ - **Don't replace** existing docs unnecessarily
361
+ - **Reference** existing docs from context documents
362
+ - **Complement** existing docs with structure
363
+ - **Consolidate** only if there's clear benefit
364
+
365
+ Example integration in architecture.md:
366
+ ```markdown
367
+ ## Additional Documentation
368
+
369
+ - API documentation: See `/docs/api/README.md`
370
+ - Database schema: See `/docs/schema.md`
371
+ - Deployment guide: See `DEPLOY.md`
372
+ ```
373
+
374
+ ---
375
+
376
+ ## Validation
377
+
378
+ ### Quality Checks
379
+
380
+ Each document should be:
381
+ - ✅ **Clear:** Easy to understand
382
+ - ✅ **Current:** Reflects actual state
383
+ - ✅ **Concise:** No unnecessary verbosity
384
+ - ✅ **Complete:** Covers its responsibilities
385
+ - ✅ **Consistent:** Aligned with other documents
386
+ - ✅ **Actionable:** Provides useful guidance
387
+
388
+ ### Common Issues
389
+
390
+ - ❌ **Stale information:** Document says X, code does Y
391
+ - ❌ **Missing information:** Key decisions not documented
392
+ - ❌ **Duplicated information:** Same thing in multiple places
393
+ - ❌ **Wrong document:** Information in the wrong place
394
+ - ❌ **Too detailed:** Documenting every implementation detail
395
+ - ❌ **Too vague:** Not providing useful guidance
396
+
397
+ ---
398
+
399
+ ## Success Criteria
400
+
401
+ The six-document system is working well when:
402
+
403
+ ✅ AI agents understand the project before coding
404
+ ✅ New developers can onboard from the documents
405
+ ✅ Decisions are documented and preserved
406
+ ✅ Architectural drift is prevented
407
+ ✅ Design consistency is maintained
408
+ ✅ Important context is not lost
409
+ ✅ Documentation stays synchronized with code
410
+ ✅ Team members reference the docs regularly
411
+
412
+ ---
413
+
414
+ ## Summary
415
+
416
+ | Document | Question | Update Frequency |
417
+ |----------|----------|------------------|
418
+ | prd.md | What & Why? | Quarterly or when requirements change |
419
+ | architecture.md | How is it built? | When architecture changes |
420
+ | rules.md | How should we code? | When standards evolve |
421
+ | design.md | How should it look? | When design patterns change |
422
+ | tasks.md | What needs to be done? | Weekly or after significant work |
423
+ | memory.md | What's the current state? | After important work or decisions |
424
+
425
+ **Remember:** These are living documents. Keep them current, concise, and useful.