Update section map

From lyndonkl/claude · View interactive version

Update section map is an AI agent skill from the GitHub repository lyndonkl/claude. Writes the canonical substacker shared-context/section-map.md after writer confirmation of review-artifact proposals. Atomic write with backup snapshot. Validates schema before writing. Use as the final step of a Curator run, only after writer has accepted/modified proposals. Trigger keywords — upda

How to use this skill

Skill file

Update Section Map

Workflow

After writer confirms review proposals:
- [ ] Step 1: Snapshot current section-map.md to ops/curator/snapshots/YYYY-MM-DD-section-map.md
- [ ] Step 2: Apply confirmed changes: add / rename / merge / retire / reassign
- [ ] Step 3: Sort sections by `Established` date (oldest first for stable ordering)
- [ ] Step 4: Validate schema (every post in exactly one section or unassigned; every section has promise; retired sections preserved)
- [ ] Step 5: Write new section-map.md
- [ ] Step 6: Update the last_updated timestamp + changelog entry

Schema validation rules

Guardrails

  1. Snapshot before every write.
  2. Validate schema before writing. If invalid, bubble error; don't write partial.
  3. Never delete retired-section entries.
  4. Changelog entry on every write (single line with YYYY-MM-DD + summary of changes).
  5. Atomic: read → snapshot → validate → write. Single operation.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.