You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `examples-manifest.json` is the central registry for all scripts. **Every new script MUST be added here.**
277
+
The `examples-manifest.json` is the central registry for all production scripts. Only files with `@status production` in their JSDoc header are included.
270
278
271
279
### Manifest Entry Format
272
280
```json
@@ -279,8 +287,9 @@ The `examples-manifest.json` is the central registry for all scripts. **Every ne
279
287
```
280
288
281
289
### After Adding a Script
282
-
1. Add entry to `examples-manifest.json`
283
-
2. CI/CD automatically regenerates `SHELLY_MJS.md` on merge
290
+
1. Add the standard JSDoc header with `@status production`
291
+
2. CI/CD checks run on PR: headers, sync, and status validation
292
+
3. After merge: `sync-manifest-md.py` syncs the manifest, `sync-manifest-json.py` regenerates `SHELLY_MJS.md`
284
293
285
294
---
286
295
@@ -303,6 +312,7 @@ main ←── dev ←── feature/xyz
303
312
-`git commit` - Always ask before committing
304
313
-`git merge` - Always ask before merging
305
314
-`git push` - Always ask before pushing
315
+
- Every commit request must follow the rules in this `AGENTS.md` file.
306
316
307
317
Example prompts:
308
318
- "Changes are ready. May I commit them?"
@@ -335,7 +345,6 @@ Example prompts:
335
345
- Detailed bullet point 1
336
346
- Detailed bullet point 2
337
347
338
-
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- `--check-sync` — Verifies every `@status production` file on disk has
600
+
a corresponding manifest entry and vice-versa
601
+
- **This is the same check that CI runs on pull requests**
602
+
603
+
#### 4. Report results
604
+
605
+
After all steps complete, report to the user:
606
+
- Total number of manifest entries
607
+
- Any files added, removed, or fixed
608
+
- Final pass/fail status from the integrity check
609
+
- If any issues remain that cannot be auto-fixed, list them clearly
610
+
611
+
### Common Issues and Fixes
612
+
613
+
| Issue | Cause | Fix |
614
+
|-------|-------|-----|
615
+
| `TODO: Add title` in manifest | `sync-manifest-md.py` ran without `--extract-metadata` | Change `@status` to `draft`, re-sync, change back to `production`, re-sync with `--extract-metadata` |
616
+
| Missing header | New script without JSDoc | Add the standard two-header block to the file |
617
+
| Sync mismatch | File on disk but not in manifest | Run `sync-manifest-md.py --extract-metadata` |
618
+
| Manifest entry but no file | File was deleted or renamed | Run `sync-manifest-md.py --remove-missing` |
619
+
| Windows path error in `sync-manifest-json.py` | Backslash path passed as argument | Use `./examples-manifest.json` (forward slashes) |
0 commit comments