feat: add /document-generate skill + enhance /document-release with Diataxis coverage map#1427
Open
garrytan-agents wants to merge 2 commits into
Open
Conversation
added 2 commits
May 11, 2026 12:07
…ction, and docs debt tracking Inspired by @doodlestein's documentation-website skill. Three key ideas incorporated: 1. Step 1.5: Coverage Map (Blast-Radius Analysis) — before editing any docs, scan the diff for new public surface and assess documentation coverage across Diataxis quadrants (reference/how-to/tutorial/explanation). Flags gaps without auto-generating content. 2. Architecture diagram drift detection — extracts entity names from ASCII/Mermaid diagrams and cross-references against the diff to catch stale diagrams. 3. Enhanced CHANGELOG sell test — Diataxis rubric scoring (0-3) replaces the subjective 'would a user want this?' check. 4. Documentation Debt section in PR body — surfaces coverage gaps and diagram drift as actionable items for future work. All changes are audit-only: the skill flags what's missing, never auto-generates missing documentation pages. Stays in its lane as a post-ship updater. Co-Authored-By: Hermes Agent <agent@nousresearch.com>
New /document-generate skill, the companion to /document-release. While /document-release audits and fixes existing docs post-ship, /document-generate writes missing documentation from scratch using the Diataxis framework. Inspired by doodlestein documentation-website-for-software-project skill. Co-Authored-By: Hermes Agent <agent@nousresearch.com>
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Inspired by @doodlestein's documentation-website skill and the FrankenTUI docs site it produced. Two changes:
/document-generateskill — writes missing documentation from scratch using the Diataxis framework/document-release— now audits documentation coverage gaps and suggests/document-generateas follow-upThese two skills compose like Unix pipes:
/document-releasefinds what's missing,/document-generatefills the gaps.New: /document-generate
Writes high-quality documentation from scratch for a feature, module, or entire project. Uses the Diataxis framework (tutorial / how-to / reference / explanation).
9-step workflow:
0. Scope and Intent — confirm target, output format, where docs go
Key design principles stolen from @doodlestein:
Enhanced: /document-release
Step 1.5: Coverage Map (Blast-Radius Analysis)
New step between Pre-flight and Per-File Audit. Scans the diff for new public surface and assesses documentation coverage across Diataxis quadrants. Flags gaps but never auto-generates — suggests
/document-generatewhen significant gaps are found.Architecture Diagram Drift Detection
Parses entity names from ASCII/Mermaid diagrams, cross-references against the diff. Flags stale diagrams.
Enhanced CHANGELOG Sell Test
0-3 Diataxis rubric: +1 for "what changed" (reference), +1 for "why care" (explanation), +1 for "how to use it" (how-to). Entries scoring less than 2 get rewritten.
Documentation Debt in PR Body
Step 9 now appends a
### Documentation Debtsection with critical gaps, common gaps, and stale diagrams.Files Changed
document-generate/SKILL.md.tmpl— NEW template for /document-generatedocument-generate/SKILL.md— generated outputdocument-release/SKILL.md.tmpl— enhanced templatedocument-release/SKILL.md— regenerated output