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,309 +0,0 @@
1
- ---
2
- name: docs-builder
3
- description: Create or reorganize project documentation with structured /docs hierarchy
4
- usage: /docs-builder
5
- auto_trigger: false
6
- ---
7
-
8
- # Documentation Architecture Skill
9
-
10
- Create or reorganize `/docs` following a 5-tier hierarchy:
11
-
12
- ```
13
- /docs
14
- ├── 00-context/ # WHY and WHAT EXISTS RIGHT NOW
15
- ├── 01-product/ # WHAT the product must do
16
- ├── 02-features/ # HOW features are designed & built
17
- ├── 03-logs/ # MEMORY (what changed over time)
18
- ├── 04-process/ # HOW to work with this system
19
- ├── archive/ # Old/unclear docs preserved here
20
- └── README.md # Navigation guide
21
- ```
22
-
23
- ---
24
-
25
- ## Step 1: Detect Mode
26
-
27
- Check if `/docs` exists and has content:
28
-
29
- ```bash
30
- find docs -name "*.md" 2>/dev/null | wc -l
31
- ```
32
-
33
- - **0 files** → **Fresh Mode** (skip to Step 3)
34
- - **1+ files** → **Existing Mode** (continue to Step 2)
35
-
36
- ---
37
-
38
- ## Step 2: Existing Mode - Analyze First
39
-
40
- ### 2.1 Inventory
41
-
42
- List all markdown files:
43
- ```bash
44
- find docs -name "*.md" -exec wc -l {} \; | sort -n
45
- ```
46
-
47
- ### 2.2 Read and Categorize
48
-
49
- **For each file**, read first 50-100 lines and categorize:
50
-
51
- | Category | Criteria | Action |
52
- |----------|----------|--------|
53
- | **KEEP** | Evergreen guides, references, architecture, troubleshooting | Move to appropriate tier |
54
- | **CONSOLIDATE** | Duplicate/overlapping content | Merge into one, originals to archive |
55
- | **ARCHIVE** | Work logs, status reports, old phase docs, unclear purpose | Move to `/docs/archive/` |
56
-
57
- ### 2.3 Categorization Heuristics
58
-
59
- **Likely KEEP/MOVE:**
60
- - Filename contains: GUIDE, REFERENCE, HOWTO, ARCHITECTURE, COMMANDS, TROUBLESHOOTING, QUICKSTART
61
- - Content: Has TOC, structured sections, explains "how to" or "what is"
62
- - Purpose: Teaches something reusable
63
-
64
- **Likely ARCHIVE:**
65
- - Filename contains: REPORT, STATUS, SUMMARY, FIX_, PHASE_, SPRINT_, _LOG, DRAFT, WIP, OLD, TEMP
66
- - Filename has dates: 2024-01-15-meeting.md
67
- - Located in: archive/, old/, reports/, fixes/, phases/
68
- - Content: Dated entries, task IDs, one-time status updates
69
- - Under ~20 lines and looks like placeholder
70
-
71
- **When uncertain → ARCHIVE** (can always recover later)
72
-
73
- ### 2.4 Present Plan to User
74
-
75
- Before making changes, show categorization:
76
-
77
- ```
78
- KEEP → Move to new structure (X files):
79
- - guides/COMMANDS.md → 02-features/cli/COMMANDS.md
80
- - reference/CONFIG.md → 04-process/reference/CONFIG.md
81
- ...
82
-
83
- CONSOLIDATE (X groups):
84
- - architecture.md + ARCHITECTURE.md → 00-context/system-state.md
85
- ...
86
-
87
- ARCHIVE (X files):
88
- - PHASE1_STATUS.md
89
- - FIX_SUMMARY_2024.md
90
- - reports/old-metrics.md
91
- ...
92
- ```
93
-
94
- **Wait for user approval before proceeding.**
95
-
96
- ### 2.5 Execute Reorganization
97
-
98
- 1. Create directory structure (including archive):
99
- ```bash
100
- mkdir -p docs/{00-context,01-product,02-features,03-logs,04-process,archive}
101
- ```
102
-
103
- 2. Move ARCHIVE files first:
104
- ```bash
105
- mv docs/old-file.md docs/archive/
106
- ```
107
-
108
- 3. Move KEEP files to appropriate tiers
109
-
110
- 4. For CONSOLIDATE: read both files, merge content into new file, move originals to archive
111
-
112
- 5. Remove empty old directories
113
-
114
- ---
115
-
116
- ## Step 3: Create Structure
117
-
118
- ### 3.1 Create Directories
119
-
120
- ```bash
121
- mkdir -p docs/{00-context,01-product,02-features,03-logs,04-process,archive}
122
- ```
123
-
124
- ### 3.2 Required Files
125
-
126
- Create these files (see `references/templates.md` for content):
127
-
128
- **00-context/** (4 files):
129
- - [ ] `blueprint.md` - Overarching project artifact (see below)
130
- - [ ] `vision.md` - Product purpose & boundaries
131
- - [ ] `assumptions.md` - Constraints, risks, unknowns
132
- - [ ] `system-state.md` - What's currently built
133
-
134
- **01-product/** (1 file):
135
- - [ ] `prd.md` - Product requirements
136
-
137
- **02-features/** (per feature):
138
- - [ ] `feature-<name>/` subdirectories as needed
139
- - [ ] Or flat files for simpler projects
140
-
141
- **03-logs/** (5 files):
142
- - [ ] `implementation-log.md`
143
- - [ ] `decisions-log.md`
144
- - [ ] `bug-log.md`
145
- - [ ] `validation-log.md`
146
- - [ ] `insights.md`
147
-
148
- **04-process/** (3+ files):
149
- - [ ] `dev-workflow.md`
150
- - [ ] `definition-of-done.md`
151
- - [ ] `llm-prompts.md`
152
-
153
- **Root:**
154
- - [ ] `README.md` - Navigation guide
155
-
156
- ---
157
-
158
- ## Step 4: Populate Files
159
-
160
- ### Content Sources
161
-
162
- Pull content from:
163
- - Project README.md
164
- - Package files (package.json, pyproject.toml)
165
- - Existing code comments/docstrings
166
- - Existing docs being reorganized
167
-
168
- ### For Existing Mode
169
-
170
- When moving files:
171
- - Update any internal links to match new locations
172
- - Merge duplicate content thoughtfully
173
- - Preserve useful information, don't just copy-paste
174
-
175
- ---
176
-
177
- ## Step 5: Integration
178
-
179
- **If CLAUDE.md exists:**
180
- Add or update documentation pointer:
181
- ```markdown
182
- ## Documentation
183
- See `docs/README.md` for full documentation structure.
184
- ```
185
-
186
- **If KNOWLEDGE_BASE.md exists:**
187
- Update to reference new structure with quick links.
188
-
189
- ---
190
-
191
- ## Step 6: Validate
192
-
193
- ```bash
194
- # Check structure exists
195
- ls -la docs/{00-context,01-product,02-features,03-logs,04-process,archive}
196
-
197
- # Verify minimum files
198
- test -f docs/00-context/blueprint.md && echo "✓ blueprint.md"
199
- test -f docs/00-context/vision.md && echo "✓ vision.md"
200
- test -f docs/00-context/system-state.md && echo "✓ system-state.md"
201
- test -f docs/01-product/prd.md && echo "✓ prd.md"
202
- test -f docs/README.md && echo "✓ README.md"
203
-
204
- # Count files per tier
205
- find docs/00-context -name "*.md" | wc -l # >= 4
206
- find docs/03-logs -name "*.md" | wc -l # >= 5
207
- find docs/04-process -name "*.md" | wc -l # >= 3
208
- ```
209
-
210
- ---
211
-
212
- ## Blueprint: The Overarching Project Artifact
213
-
214
- `docs/00-context/blueprint.md` is the **one and only** high-level project document. It answers: what is this project, what's built, what's planned, where is it headed.
215
-
216
- **When to create:** Always. blueprint.md is the first file created in 00-context/. It is required for both Fresh and Existing modes.
217
-
218
- **Content sources:**
219
- - Root `README.md` — project identity, purpose, stats
220
- - `package.json` / `pyproject.toml` — tech stack, dependencies
221
- - Existing docs — features implemented vs planned
222
- - Code structure — what modules/packages exist
223
-
224
- **Structure:**
225
-
226
- ```markdown
227
- # [Project Name] Blueprint
228
-
229
- ## Identity
230
- [What this project IS in 2-3 sentences. Sourced from README.]
231
-
232
- ## Status
233
- | Area | Status | Notes |
234
- |------|--------|-------|
235
- | [feature/module] | implemented / in-progress / planned | [brief] |
236
-
237
- ## Architecture
238
- [High-level structure: packages, modules, entry points. No ASCII trees — use tables or flat lists.]
239
-
240
- ## Implemented
241
- [What works today. Group by feature area. Be specific.]
242
-
243
- ## Planned
244
- [What's next. Ordered by priority. Include design docs if they exist.]
245
-
246
- ## Future Direction
247
- [Where does this project want to be? North star. 3-5 bullets max.]
248
-
249
- ## Key Decisions
250
- [Major architectural choices already made. Link to decisions-log if it exists.]
251
- ```
252
-
253
- **Rules for blueprint.md:**
254
- - Keep it under 150 lines — it's an overview, not a manual
255
- - Update it when features ship or plans change
256
- - It is the FIRST document a new contributor or LLM should read
257
- - No duplication with vision.md (vision = WHY, blueprint = WHAT + WHERE)
258
-
259
- ---
260
-
261
- ## Rules
262
-
263
- **DO:**
264
- - Read files before categorizing (don't guess from filename alone)
265
- - Present plan to user before bulk changes
266
- - Archive instead of delete
267
- - Complete one section before moving to next
268
- - Populate files with real content (not empty templates)
269
- - Preserve original files in archive when consolidating
270
-
271
- **DON'T:**
272
- - Delete any files (archive instead)
273
- - Move files without reading them first
274
- - Make bulk changes without user approval
275
- - Create empty placeholder files
276
- - Skip the analysis phase for existing docs
277
-
278
- ---
279
-
280
- ## Success Criteria
281
-
282
- ✅ Mode correctly detected (fresh vs existing)
283
- ✅ For existing: categorization presented and approved
284
- ✅ All 5 tier directories created (+ archive)
285
- ✅ Minimum files in each tier
286
- ✅ Files populated with project-specific content
287
- ✅ Archive contains old/unclear docs (not deleted)
288
- ✅ docs/README.md with navigation
289
- ✅ Validation checks pass
290
-
291
- ---
292
-
293
- ## Quick Reference
294
-
295
- ### Tier Mapping
296
-
297
- | Old Location | New Location |
298
- |--------------|--------------|
299
- | guides/, howto/ | 02-features/ or 04-process/ |
300
- | reference/, api/ | 04-process/reference/ |
301
- | architecture/ | 00-context/ |
302
- | commands/ | 02-features/cli/ |
303
- | development/ | 04-process/development/ |
304
- | troubleshooting/ | 04-process/troubleshooting/ |
305
- | reports/, status/, phases/ | archive/ |
306
-
307
- ### File Templates
308
-
309
- See: `references/templates.md`