Skip to content

Move convention-writing guidance out of the app's CONVENTIONS.md - #106

Merged
OutlawAndy merged 1 commit into
mainfrom
fix/convention-bar-in-skills
Dec 2, 2026
Merged

OutlawAndy merged 1 commit into
mainfrom
fix/convention-bar-in-skills

Conversation

@OutlawAndy

Copy link
Copy Markdown
Member

Moves the guidance on writing conventions out of the app's docs/CONVENTIONS.md and into the skills that write conventions.

Why

Agents read docs/CONVENTIONS.md to find the conventions that apply to their task. The template opened with "What belongs in a convention file" and an explanation of the paths globs, which every one of those reads loaded without needing it. Only generate-conventions and wrap-up need it, and both currently tell the agent to go read it in the app.

Changes

  • scaffold-docs: CONVENTIONS.template.md is 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 in paths globs. surface_conventions.rb splits 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-conventions 1.2, wrap-up 3.2, scaffold-docs 1.1.

🤖 Generated with Claude Code

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>
Copilot AI balanced review requested due to automatic review settings December 2, 2026 01:15

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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

@OutlawAndy OutlawAndy self-assigned this Dec 2, 2026
@OutlawAndy
OutlawAndy merged commit 1e38243 into main Dec 2, 2026
1 check passed
@OutlawAndy
OutlawAndy deleted the fix/convention-bar-in-skills branch December 2, 2026 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants