Repository navigation
feat: add /document-generate skill + enhance /document-release with Diataxis coverage map - #1427
Closed
garrytan-agents wants to merge 5 commits into
Closed
garrytan-agents wants to merge 5 commits into
garrytan-agents wants to merge 5 commits into
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 <[email protected]>
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 <[email protected]>
5 tasks done
CI's check-freshness step ran gen:skill-docs and found llms.txt stale — the index wasn't regenerated when /document-generate was added in the preceding commit. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Main brought in the Non-ASCII characters directive in the AskUserQuestion Format resolver (scripts/resolvers/preamble/generate-ask-user-format.ts). Regenerating document-generate/SKILL.md propagates the new section into the generated output. check-freshness should now pass. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
6 of 8 tasks
Owner
|
Moving to base-repo branch so eval CI can access secrets. Continuing in #1477. |
BenjaminDSmithy
added a commit
to BenjaminDSmithy/gstack
that referenced
this pull request
Jun 4, 2026
…mmits Before filing each CLEAN commit (i.e. not bucketed EXACT_DUP / OVERLAP / SIBLING), invoke `codex review` for independent second opinion. Codex CLI uses a different model family (OpenAI vs Claude) so signal is genuinely independent — catches structural bugs the author missed during write-up. Skill is optional: if `codex` CLI not on PATH, emit soft warning and continue. Don't block on tool availability. Severity escalation: P0/P1 findings bump commit from CLEAN to OVERLAP (don't file as new PR until addressed). P2 stays CLEAN with author discretion (fix-before-file or document in PR body). Real-world motivating case (2026-05-26): two CLEAN-bucketed PRs to garrytan/gbrain (garrytan#1427 synopsis doc truncate, garrytan#1428 models doctor args[0]) both had codex-caught P2 issues: garrytan#1427: env-overridable cap not folded into computeCorpusGeneration hash → different caps produced same corpus_generation → cache invalidation broken. garrytan#1428: `gbrain models doctor --help` regressed into network probe run instead of usage print (ternary ordering bug). Both fixed pre-merge as follow-up commits. Net cost avoided: 2 review ping-pong cycles + 2 fix PRs after upstream caught it.
BenjaminDSmithy
added a commit
to BenjaminDSmithy/gstack
that referenced
this pull request
Jun 10, 2026
…mmits Before filing each CLEAN commit (i.e. not bucketed EXACT_DUP / OVERLAP / SIBLING), invoke `codex review` for independent second opinion. Codex CLI uses a different model family (OpenAI vs Claude) so signal is genuinely independent — catches structural bugs the author missed during write-up. Skill is optional: if `codex` CLI not on PATH, emit soft warning and continue. Don't block on tool availability. Severity escalation: P0/P1 findings bump commit from CLEAN to OVERLAP (don't file as new PR until addressed). P2 stays CLEAN with author discretion (fix-before-file or document in PR body). Real-world motivating case (2026-05-26): two CLEAN-bucketed PRs to garrytan/gbrain (garrytan#1427 synopsis doc truncate, garrytan#1428 models doctor args[0]) both had codex-caught P2 issues: garrytan#1427: env-overridable cap not folded into computeCorpusGeneration hash → different caps produced same corpus_generation → cache invalidation broken. garrytan#1428: `gbrain models doctor --help` regressed into network probe run instead of usage print (ternary ordering bug). Both fixed pre-merge as follow-up commits. Net cost avoided: 2 review ping-pong cycles + 2 fix PRs after upstream caught it.
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