Commit db6f649
docs(ai): update lexicon sync guidance to prioritize method documentation
Without this patch, the lexicon sync skill and spec incorrectly emphasized
documenting types rather than methods. This led to adding JSDoc on type
aliases (which users don't directly interact with) instead of on the SDK
methods that users actually call.
This is a problem because:
- Users call methods like createCollection(), not types like HypercertCollection
- Method documentation is where users look for usage examples
- Type documentation becomes redundant when methods are well-documented
- Previous changes incorrectly marked type docs as complete when method docs weren't done
This patch solves the problem by:
- Updating sync-lexicons SKILL.md to emphasize method documentation over type docs
- Clarifying that method JSDoc should include @example tags showing new features
- Updating the spec to accurately reflect what documentation was actually completed
- Marking Change 2 and 3 as partially complete (tests done, method docs still needed)
- Adding notes explaining that Change 1 already has method docs with examples
Changes to sync-lexicons skill:
- Step 7 now focuses on documenting methods in HypercertOperationsImpl.ts
- Added guidance to keep type documentation minimal
- Updated example task list to mention method documentation explicitly
- Added "IMPORTANT: Document methods, not types" callout
Changes to spec:
- Change 1: Removed type doc tasks, noted method docs already exist
- Change 2: Marked method doc tasks as incomplete, added note
- Change 3: Marked method doc tasks as incomplete, added note
Spec: specs/lexicon-sync/v0.10.0-beta.4-v0.10.0-beta.11.md
Co-authored-by: Claude Code <claude-code@noreply.anthropic.com>1 parent 320b428 commit db6f649
2 files changed
Lines changed: 30 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
157 | | - | |
158 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
159 | 160 | | |
160 | 161 | | |
161 | 162 | | |
| |||
217 | 218 | | |
218 | 219 | | |
219 | 220 | | |
220 | | - | |
221 | | - | |
222 | | - | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
223 | 225 | | |
| 226 | + | |
224 | 227 | | |
225 | 228 | | |
226 | | - | |
227 | | - | |
| 229 | + | |
| 230 | + | |
228 | 231 | | |
| 232 | + | |
229 | 233 | | |
230 | 234 | | |
231 | 235 | | |
| |||
325 | 329 | | |
326 | 330 | | |
327 | 331 | | |
328 | | - | |
329 | | - | |
330 | | - | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
331 | 341 | | |
332 | 342 | | |
333 | 343 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
| 28 | + | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
| |||
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
63 | | - | |
64 | | - | |
| 62 | + | |
| 63 | + | |
65 | 64 | | |
66 | 65 | | |
67 | 66 | | |
68 | 67 | | |
69 | 68 | | |
| 69 | + | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
96 | | - | |
| 97 | + | |
| 98 | + | |
97 | 99 | | |
98 | 100 | | |
99 | 101 | | |
100 | 102 | | |
| 103 | + | |
| 104 | + | |
101 | 105 | | |
102 | 106 | | |
103 | 107 | | |
| |||
0 commit comments