Repository navigation
Move convention-writing guidance out of the app's CONVENTIONS.md - #106
Merged
Merged
Conversation
docs/CONVENTIONS.md is read by agents looking for the rules that apply
to their task, so guidance on how to write a convention cost every reader
tokens it didn't need. The template now holds a title and one line;
generate-conventions and wrap-up carry the entry shape and glob rules
themselves.
The template also claimed `{rb,erb}` brace alternation works in the
paths globs. The hook splits the list on commas, so it doesn't; both
skills now say so.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are recorded for the change moving convention-writing guidance into the relevant skills.
No open issues 🎉
What changed in this PR
Moves convention-writing guidance from generated application docs into the skills that write conventions, reducing unnecessary context for agents reading those docs.
Changes:
- Simplifies the conventions template to a title and reading instruction.
- Adds entry-format guidance to both writing skills and warns against comma-containing brace globs.
- Bumps all three affected skill versions.
| File | Description |
|---|---|
| skills/wrap-up/SKILL.md | Inlines entry-format and comma-separation guidance; bumps version. |
| skills/scaffold-docs/templates/CONVENTIONS.template.md | Removes authoring guidance from the generated index. |
| skills/scaffold-docs/SKILL.md | Bumps version for the template change. |
| skills/generate-conventions/SKILL.md | Updates filtering, entry-format, and glob guidance; bumps version. |
Review effort: Balanced
gavinomelia
approved these changes
Dec 2, 2026
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.
Moves the guidance on writing conventions out of the app's
docs/CONVENTIONS.mdand into the skills that write conventions.Why
Agents read
docs/CONVENTIONS.mdto find the conventions that apply to their task. The template opened with "What belongs in a convention file" and an explanation of thepathsglobs, which every one of those reads loaded without needing it. Onlygenerate-conventionsandwrap-upneed it, and both currently tell the agent to go read it in the app.Changes
scaffold-docs:CONVENTIONS.template.mdis now a title and "Read the entries below, then the files relevant to the task." The app generator in Add rolemodel:agent_docs and run it from core_setup rolemodel_rails#233 writes the same opening.generate-conventions: step 1 reads the index and the existing conventions without relying on a section that's no longer there. Step 3 adds "restates the implementation" to its reasons to drop a candidate, the one part of the old section the skill didn't already cover. Step 5 now gives the entry's shape and the glob rules.wrap-up: gives the entry's shape and the comma rule in one line, instead of pointing at the section.Fix
The template said
{rb,erb}brace alternation works inpathsglobs.surface_conventions.rbsplits the list on every comma before matching, so{rb,erb}turns into two broken globs. Both skills now say brace alternation breaks and to list each glob separately.Versions bumped:
generate-conventions1.2,wrap-up3.2,scaffold-docs1.1.🤖 Generated with Claude Code