liteagents 2.15.3 → 2.17.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.
Files changed (37) hide show
  1. package/CHANGELOG.md +185 -0
  2. package/README.md +8 -7
  3. package/package.json +2 -2
  4. package/packages/ampcode/AGENT.md +2 -2
  5. package/packages/ampcode/agents/quality-assurance.md +1 -1
  6. package/packages/ampcode/commands/docs-builder/docs-builder.cjs +2382 -0
  7. package/packages/ampcode/commands/docs-builder.md +787 -223
  8. package/packages/ampcode/commands/remember/AGENT_RULES.md +13 -43
  9. package/packages/ampcode/commands/remember/{friction.js → friction.cjs} +211 -99
  10. package/packages/ampcode/commands/remember.md +208 -29
  11. package/packages/claude/CLAUDE.md +3 -3
  12. package/packages/claude/commands/docs-builder/docs-builder.cjs +2382 -0
  13. package/packages/claude/commands/docs-builder.md +873 -0
  14. package/packages/claude/commands/remember/AGENT_RULES.md +10 -40
  15. package/packages/claude/commands/remember/{friction.js → friction.cjs} +208 -96
  16. package/packages/claude/commands/remember.md +208 -29
  17. package/packages/droid/AGENTS.md +2 -2
  18. package/packages/droid/commands/docs-builder/docs-builder.cjs +2382 -0
  19. package/packages/droid/commands/docs-builder.md +787 -223
  20. package/packages/droid/commands/remember/AGENT_RULES.md +13 -43
  21. package/packages/droid/commands/remember/{friction.js → friction.cjs} +211 -99
  22. package/packages/droid/commands/remember.md +208 -29
  23. package/packages/droid/droids/quality-assurance.md +1 -1
  24. package/packages/opencode/AGENTS.md +2 -2
  25. package/packages/opencode/agent/quality-assurance.md +1 -1
  26. package/packages/opencode/command/docs-builder/docs-builder.cjs +2382 -0
  27. package/packages/opencode/command/docs-builder.md +787 -223
  28. package/packages/opencode/command/remember/AGENT_RULES.md +13 -43
  29. package/packages/opencode/command/remember/{friction.js → friction.cjs} +211 -99
  30. package/packages/opencode/command/remember.md +208 -29
  31. package/packages/opencode/opencode.jsonc +2 -6
  32. package/packages/subagentic-manual.md +31 -32
  33. package/packages/ampcode/commands/docs-builder/templates.md +0 -601
  34. package/packages/claude/skills/docs-builder/SKILL.md +0 -309
  35. package/packages/claude/skills/docs-builder/references/templates.md +0 -601
  36. package/packages/droid/commands/docs-builder/templates.md +0 -601
  37. package/packages/opencode/command/docs-builder/templates.md +0 -601
@@ -1,601 +0,0 @@
1
- # Documentation Templates
2
-
3
- Detailed templates for each file in the /docs structure.
4
-
5
- ## 00-context/blueprint.md
6
-
7
- ```markdown
8
- # [Project Name] Blueprint
9
-
10
- ## Identity
11
- [What this project IS in 2-3 sentences. Sourced from README.]
12
-
13
- ## Status
14
- | Area | Status | Notes |
15
- |------|--------|-------|
16
- | [feature/module] | implemented / in-progress / planned | [brief] |
17
-
18
- ## Architecture
19
- [High-level structure: packages, modules, entry points. Tables or flat lists, no ASCII trees.]
20
-
21
- ## Implemented
22
- [What works today. Group by feature area. Be specific about what ships.]
23
-
24
- ## Planned
25
- [What's next. Ordered by priority. Link to design docs if they exist.]
26
-
27
- ## Future Direction
28
- [Where does this project want to be? North star. 3-5 bullets max.]
29
-
30
- ## Key Decisions
31
- [Major architectural choices already made. Brief rationale. Link to decisions-log if available.]
32
- ```
33
-
34
- ## 00-context/vision.md
35
-
36
- ```markdown
37
- # Vision
38
-
39
- ## Problem
40
- [What problem does this solve? Who feels the pain?]
41
-
42
- ## Solution
43
- [How does this product solve it?]
44
-
45
- ## Target Users
46
- [Who is this for? Primary/secondary personas]
47
-
48
- ## Boundaries
49
- ### In Scope
50
- - [Feature/capability 1]
51
- - [Feature/capability 2]
52
-
53
- ### Out of Scope
54
- - [What we explicitly won't do]
55
- - [Adjacent problems we're ignoring]
56
-
57
- ## Success Metrics
58
- - [Metric 1: how measured]
59
- - [Metric 2: how measured]
60
- ```
61
-
62
- ## 00-context/assumptions.md
63
-
64
- ```markdown
65
- # Assumptions & Risks
66
-
67
- ## Technical Assumptions
68
- - [Assumption 1: e.g., "Users have Python 3.8+"]
69
- - [Assumption 2: e.g., "API response time < 200ms"]
70
-
71
- ## Business Assumptions
72
- - [Assumption 1: e.g., "Users prefer CLI over GUI"]
73
- - [Assumption 2: e.g., "10K users within 6 months"]
74
-
75
- ## Known Risks
76
- | Risk | Impact | Mitigation |
77
- |------|--------|------------|
78
- | [Risk description] | High/Med/Low | [How we handle it] |
79
-
80
- ## Open Questions
81
- - [ ] [Question 1 that needs answering]
82
- - [ ] [Question 2 that blocks decisions]
83
- ```
84
-
85
- ## 00-context/system-state.md
86
-
87
- ```markdown
88
- # System State
89
-
90
- ## What's Implemented
91
- ### Core Features
92
- - [Feature 1] - Status: ✅ Live | 🚧 In Progress | 📋 Planned
93
- - [Feature 2] - Status: [...]
94
-
95
- ### Tech Stack
96
- - Language: [e.g., Python 3.11]
97
- - Frameworks: [e.g., FastAPI, React]
98
- - Database: [e.g., PostgreSQL 15]
99
- - Infrastructure: [e.g., AWS, Docker]
100
-
101
- ## What's In Progress
102
- - [Feature/change being worked on]
103
- - [Expected completion: rough timeframe]
104
-
105
- ## What's Planned
106
- - [Next feature to build]
107
- - [Roadmap item 2]
108
-
109
- ## Known Issues
110
- - [Issue 1: description, severity]
111
- - [Issue 2: description, severity]
112
- ```
113
-
114
- ## 01-product/prd.md
115
-
116
- ```markdown
117
- # Product Requirements Document
118
-
119
- ## Problem Statement
120
- [Clear description of problem. 2-3 paragraphs max.]
121
-
122
- ## User Personas
123
- ### Primary: [Persona Name]
124
- - **Who**: [Role/description]
125
- - **Pain**: [Current problem]
126
- - **Goal**: [What they want to achieve]
127
-
128
- ### Secondary: [Persona Name]
129
- [Same structure]
130
-
131
- ## Features
132
- ### Must Have (P0)
133
- 1. **[Feature name]**
134
- - Description: [What it does]
135
- - User value: [Why it matters]
136
- - Acceptance: [How we know it's done]
137
-
138
- ### Should Have (P1)
139
- [Same structure]
140
-
141
- ### Nice to Have (P2)
142
- [Same structure]
143
-
144
- ## Non-Functional Requirements
145
- - Performance: [e.g., "API responds < 200ms p95"]
146
- - Security: [e.g., "OAuth2, encrypted at rest"]
147
- - Scalability: [e.g., "Handle 10K concurrent users"]
148
- - Reliability: [e.g., "99.9% uptime"]
149
-
150
- ## Success Criteria
151
- - [ ] [Measurable criterion 1]
152
- - [ ] [Measurable criterion 2]
153
-
154
- ## Out of Scope
155
- - [Explicitly excluded feature 1]
156
- - [Explicitly excluded feature 2]
157
- ```
158
-
159
- ## 02-features/feature-<name>/feature-spec.md
160
-
161
- ```markdown
162
- # Feature: [Name]
163
-
164
- ## User Intent
165
- **As a** [user type]
166
- **I want to** [action]
167
- **So that** [benefit]
168
-
169
- ## User Stories
170
- 1. **Story 1**: [Description]
171
- - Acceptance: User can [specific action]
172
- - Acceptance: System responds with [expected behavior]
173
-
174
- ## Acceptance Criteria
175
- - [ ] [Criterion 1: testable condition]
176
- - [ ] [Criterion 2: testable condition]
177
- - [ ] [Criterion 3: testable condition]
178
-
179
- ## Edge Cases
180
- - **Case 1**: [Scenario] → [Expected behavior]
181
- - **Case 2**: [Scenario] → [Expected behavior]
182
-
183
- ## UI/UX Notes
184
- [Wireframes, mockups, or interaction descriptions]
185
- ```
186
-
187
- ## 02-features/feature-<name>/tech-design.md
188
-
189
- ```markdown
190
- # Technical Design: [Feature Name]
191
-
192
- ## Architecture Approach
193
- [High-level approach. Diagram if helpful.]
194
-
195
- ## Components
196
- ### [Component 1]
197
- - **Responsibility**: [What it does]
198
- - **Interface**: [API/methods]
199
- - **Dependencies**: [What it needs]
200
-
201
- ### [Component 2]
202
- [Same structure]
203
-
204
- ## Data Models
205
- ```language
206
- [Schema/types/interfaces]
207
- ```
208
-
209
- ## APIs
210
- ### Endpoint: `METHOD /path`
211
- - **Request**: [Schema]
212
- - **Response**: [Schema]
213
- - **Errors**: [Error codes]
214
-
215
- ## Security Considerations
216
- - [Auth/authz requirements]
217
- - [Data validation]
218
- - [Potential vulnerabilities addressed]
219
-
220
- ## Performance Considerations
221
- - [Expected load]
222
- - [Optimization strategy]
223
- - [Caching approach]
224
-
225
- ## Trade-offs
226
- - **Decision**: [What we chose]
227
- - **Alternatives**: [What we didn't choose]
228
- - **Rationale**: [Why]
229
- ```
230
-
231
- ## 02-features/feature-<name>/dev-tasks.md
232
-
233
- ```markdown
234
- # Development Tasks: [Feature Name]
235
-
236
- ## Tasks
237
- - [ ] Task 1: [Specific, executable action]
238
- - Dependencies: [What must be done first]
239
- - Files: [Which files to touch]
240
- - [ ] Task 2: [...]
241
- - [ ] Task 3: [...]
242
-
243
- ## Implementation Notes
244
- [Context LLM needs to execute tasks]
245
-
246
- ## Definition of Done
247
- - [ ] Code complete
248
- - [ ] Tests pass
249
- - [ ] Docs updated
250
- - [ ] Reviewed
251
- ```
252
-
253
- ## 02-features/feature-<name>/test-plan.md
254
-
255
- ```markdown
256
- # Test Plan: [Feature Name]
257
-
258
- ## Test Strategy
259
- - **Unit**: [What to unit test]
260
- - **Integration**: [What to integration test]
261
- - **E2E**: [What to E2E test]
262
-
263
- ## Test Cases
264
- ### TC-1: [Test name]
265
- - **Given**: [Precondition]
266
- - **When**: [Action]
267
- - **Then**: [Expected result]
268
-
269
- ### TC-2: [Test name]
270
- [Same structure]
271
-
272
- ## Edge Cases
273
- - [ ] Test: [Edge case 1]
274
- - [ ] Test: [Edge case 2]
275
-
276
- ## Performance Tests
277
- - [ ] Load test: [Scenario]
278
- - [ ] Stress test: [Scenario]
279
-
280
- ## Security Tests
281
- - [ ] Auth test: [Scenario]
282
- - [ ] Input validation: [Scenario]
283
- ```
284
-
285
- ## 03-logs/implementation-log.md
286
-
287
- ```markdown
288
- # Implementation Log
289
-
290
- Track what changed in code and why.
291
-
292
- ## YYYY-MM-DD - [Change Title]
293
- **What**: [Code changes made - files, functions, modules]
294
- **Why**: [Business/technical reason for change]
295
- **Impact**: [What changed for users/devs]
296
- **Ref**: [PR/commit/issue reference]
297
-
298
- ---
299
-
300
- ## YYYY-MM-DD - [Change Title]
301
- [Repeat structure]
302
- ```
303
-
304
- ## 03-logs/decisions-log.md
305
-
306
- ```markdown
307
- # Decisions Log
308
-
309
- Track architectural and product decisions.
310
-
311
- ## YYYY-MM-DD - [Decision Title]
312
- **Context**: [Why this decision needed]
313
- **Options Considered**:
314
- 1. Option A: [Description, pros/cons]
315
- 2. Option B: [Description, pros/cons]
316
-
317
- **Decision**: [What we chose]
318
- **Rationale**: [Why we chose it]
319
- **Consequences**: [Implications, trade-offs]
320
- **Ref**: [Discussion link, RFC number]
321
-
322
- ---
323
-
324
- ## YYYY-MM-DD - [Decision Title]
325
- [Repeat structure]
326
- ```
327
-
328
- ## 03-logs/bug-log.md
329
-
330
- ```markdown
331
- # Bug Log
332
-
333
- Track bugs, root causes, fixes.
334
-
335
- ## [BUG-001] - [Bug Title]
336
- **Reported**: YYYY-MM-DD
337
- **Severity**: Critical | High | Medium | Low
338
- **Symptoms**: [What users saw]
339
- **Root Cause**: [What went wrong technically]
340
- **Fix**: [How resolved]
341
- **Prevention**: [How we avoid repeating]
342
- **Ref**: [Issue/PR reference]
343
-
344
- ---
345
-
346
- ## [BUG-002] - [Bug Title]
347
- [Repeat structure]
348
- ```
349
-
350
- ## 03-logs/validation-log.md
351
-
352
- ```markdown
353
- # Validation Log
354
-
355
- Track what happened after shipping.
356
-
357
- ## YYYY-MM-DD - [Release/Feature Name]
358
- **Validated**: [What was tested in production]
359
- **Results**:
360
- - Metric 1: [Actual vs expected]
361
- - Metric 2: [Actual vs expected]
362
-
363
- **Issues Found**: [Problems discovered post-ship]
364
- **User Feedback**: [What users said]
365
- **Next Steps**: [Follow-up actions]
366
-
367
- ---
368
-
369
- ## YYYY-MM-DD - [Release/Feature Name]
370
- [Repeat structure]
371
- ```
372
-
373
- ## 03-logs/insights.md
374
-
375
- ```markdown
376
- # Insights
377
-
378
- Learnings and future improvements.
379
-
380
- ## What Worked Well
381
- - [Success 1: what and why]
382
- - [Success 2: what and why]
383
-
384
- ## What Didn't Work
385
- - [Issue 1: what went wrong, how to improve]
386
- - [Issue 2: what went wrong, how to improve]
387
-
388
- ## Process Improvements
389
- - [ ] [Change we should make to workflow]
390
- - [ ] [Tool/practice to adopt]
391
-
392
- ## Technical Debt
393
- - [ ] [Debt item 1: what, impact, effort to fix]
394
- - [ ] [Debt item 2: what, impact, effort to fix]
395
-
396
- ## Future Optimizations
397
- - [Optimization opportunity 1]
398
- - [Optimization opportunity 2]
399
- ```
400
-
401
- ## 04-process/dev-workflow.md
402
-
403
- ```markdown
404
- # Development Workflow
405
-
406
- ## Daily Dev Loop
407
-
408
- ### 1. Pick Task
409
- - Check `02-features/*/dev-tasks.md` or backlog
410
- - Verify acceptance criteria clear
411
-
412
- ### 2. Implement
413
- - Write test first (if TDD)
414
- - Implement feature
415
- - Run tests locally
416
- - Update docs
417
-
418
- ### 3. Review
419
- - Self-review checklist:
420
- - [ ] Tests pass
421
- - [ ] Docs updated
422
- - [ ] No console.logs/debugs
423
- - [ ] Security reviewed
424
- - Create PR
425
-
426
- ### 4. Ship
427
- - Merge after approval
428
- - Update `03-logs/implementation-log.md`
429
- - Monitor production
430
-
431
- ## Branch Strategy
432
- - `main`: production-ready code
433
- - `feature/*`: new features
434
- - `fix/*`: bug fixes
435
-
436
- ## Working with LLMs
437
- - Provide context: link to relevant docs
438
- - Reference acceptance criteria from feature specs
439
- - Ask to update logs after changes
440
- - Request test generation
441
-
442
- ## Code Review Checklist
443
- - [ ] Matches acceptance criteria
444
- - [ ] Tests cover edge cases
445
- - [ ] Docs updated
446
- - [ ] No security issues
447
- - [ ] Performance acceptable
448
- ```
449
-
450
- ## 04-process/definition-of-done.md
451
-
452
- ```markdown
453
- # Definition of Done
454
-
455
- ## Code Complete
456
- - [ ] Implements all acceptance criteria
457
- - [ ] Passes all tests (unit, integration, e2e)
458
- - [ ] No linter errors
459
- - [ ] Code reviewed and approved
460
- - [ ] Security reviewed (if touching auth/data)
461
-
462
- ## Documentation Complete
463
- - [ ] Feature spec updated (if behavior changed)
464
- - [ ] API docs updated (if APIs changed)
465
- - [ ] README updated (if setup changed)
466
- - [ ] Logs updated (implementation-log, decisions-log)
467
-
468
- ## Testing Complete
469
- - [ ] Unit tests written and passing
470
- - [ ] Integration tests written and passing
471
- - [ ] Manual testing completed
472
- - [ ] Edge cases tested
473
- - [ ] Performance acceptable
474
-
475
- ## Release Ready
476
- - [ ] Deployed to staging
477
- - [ ] Smoke tests pass
478
- - [ ] Rollback plan documented
479
- - [ ] Monitoring in place
480
- ```
481
-
482
- ## 04-process/llm-prompts.md
483
-
484
- ```markdown
485
- # Canonical LLM Prompts
486
-
487
- Standard prompts for documentation tasks.
488
-
489
- ## Create Feature Spec
490
- \`\`\`
491
- As backlog-manager, create a feature spec for [feature name] in 02-features/feature-[name]/.
492
-
493
- Requirements:
494
- [Paste requirements]
495
-
496
- Include:
497
- - User stories with acceptance criteria
498
- - Edge cases
499
- - UI/UX considerations
500
- \`\`\`
501
-
502
- ## Create Technical Design
503
- \`\`\`
504
- As architect, create technical design for [feature name] in 02-features/feature-[name]/.
505
-
506
- Feature spec: 02-features/feature-[name]/feature-spec.md
507
-
508
- Include:
509
- - Architecture approach
510
- - Components and data models
511
- - APIs
512
- - Security and performance considerations
513
- - Trade-offs
514
- \`\`\`
515
-
516
- ## Generate Dev Tasks
517
- \`\`\`
518
- As 2-generate-tasks, break down the feature into executable dev tasks.
519
-
520
- Feature spec: 02-features/feature-[name]/feature-spec.md
521
- Tech design: 02-features/feature-[name]/tech-design.md
522
-
523
- Create: 02-features/feature-[name]/dev-tasks.md
524
- \`\`\`
525
-
526
- ## Update Implementation Log
527
- \`\`\`
528
- Update 03-logs/implementation-log.md with today's changes.
529
-
530
- Changes made:
531
- [Describe changes]
532
-
533
- Why:
534
- [Reason]
535
-
536
- Impact:
537
- [User/developer impact]
538
- \`\`\`
539
-
540
- ## Update Decisions Log
541
- \`\`\`
542
- Update 03-logs/decisions-log.md with architectural decision.
543
-
544
- Decision: [What we decided]
545
- Context: [Why decision needed]
546
- Options: [Alternatives considered]
547
- Rationale: [Why we chose this]
548
- \`\`\`
549
- ```
550
-
551
- ## docs/README.md
552
-
553
- ```markdown
554
- # Documentation Guide
555
-
556
- ## Structure
557
-
558
- Our docs follow a 5-tier hierarchy:
559
-
560
- - **00-context/**: WHY this exists, WHAT's currently built
561
- - **01-product/**: WHAT we must build (requirements)
562
- - **02-features/**: HOW features are designed and built
563
- - **03-logs/**: MEMORY of changes, decisions, bugs over time
564
- - **04-process/**: HOW to work (workflows, standards)
565
-
566
- ## Quick Navigation
567
-
568
- **Start here**: `00-context/vision.md` - understand product purpose
569
- **Requirements**: `01-product/prd.md` - single source of truth
570
- **Feature work**: `02-features/feature-*/` - specs, designs, tasks
571
- **History**: `03-logs/` - what changed and why
572
- **Workflows**: `04-process/` - how we work daily
573
-
574
- ## For Developers
575
-
576
- 1. **Starting new feature**:
577
- - Read: `01-product/prd.md` for requirements
578
- - Check: `02-features/` for existing feature patterns
579
- - Create: `02-features/feature-<name>/` with 4 files
580
-
581
- 2. **Daily work**:
582
- - Follow: `04-process/dev-workflow.md`
583
- - Check: `04-process/definition-of-done.md` before PR
584
-
585
- 3. **After changes**:
586
- - Update: `03-logs/implementation-log.md`
587
- - Update: `03-logs/decisions-log.md` if architectural
588
-
589
- ## For LLMs
590
-
591
- Standard prompts: `04-process/llm-prompts.md`
592
- Context loading: Start with `00-context/`, then drill into specific features
593
-
594
- ## Legacy Docs
595
-
596
- [If existing docs/ subdirs exist, map them here]
597
- - Old `commands/` → See `02-features/cli/`
598
- - Old `development/` → See `04-process/dev-workflow.md`
599
- - Old `guides/` → Distributed across `02-features/`
600
- - Old `reference/` → See `00-context/` and `01-product/`
601
- ```