Skip to content

Sync pattern grouping and protect inline code spans - #235

Open
Scott-Emberson wants to merge 1 commit into
blader:mainfrom
Scott-Emberson:fix/doc-prompt-sync
Open

Sync pattern grouping and protect inline code spans#235
Scott-Emberson wants to merge 1 commit into
blader:mainfrom
Scott-Emberson:fix/doc-prompt-sync

Conversation

@Scott-Emberson

Copy link
Copy Markdown

Three related documentation and prompt fixes from a full-repo review:

  1. Pattern grouping drift. SKILL.md's "## Filler and hedging" heading covered patterns 23 through 35, but ten of those (26-35, e.g. §29 repeated headings, §30 previous-version prose) are not filler or hedging, and the README lists them under "Style patterns". AGENTS.md requires keeping the two files in sync, and the validator only checks numbering, so this drift passed CI. Both files now use a "More style patterns" section for 26-35 ("Filler and hedging" keeps 23-25). The README's style table is split at the same boundary so the two documents use one term.

  2. Inline code spans were rewritable in file mode. File mode's preservation list named "code blocks, YAML metadata, data, and link targets" but not inline code spans, while §14 targets -- and §19 straightens curly quotes. Humanizing a Markdown file whose prose contains git checkout -- . or a curly-quoted identifier could silently corrupt it. The list now uses AGENTS.md's own wording ("inline code spans, exact identifiers, commands, paths"), and §14 states it does not reach into code blocks, inline code spans, commands, paths, or URLs.

  3. Curly quotes in README row 26. The Before cell for pattern 26 was wrapped in curly quotes in a plain table cell, the exact artifact pattern 19 removes (row 19's curly quotes are deliberate and sit in a code span; row 26's were not). Now straight quotes.

Validator invariants checked: SKILL.md is 458 lines (limit 500), patterns 1-35 remain sequential, all 35 README rows present. No version bump here to avoid colliding with #233; happy to fold a release note into whichever lands last.

🤖 Generated with Claude Code

- SKILL.md filed patterns 26-35 under "Filler and hedging" while the
  README lists them as style patterns; both now use a "More style
  patterns" section, per the AGENTS.md sync rule.
- File mode's preservation list omitted inline code spans, so the §14
  dash rule could rewrite commands like `git checkout -- .` when
  humanizing a file. The list now matches AGENTS.md's "exact
  identifiers, commands, paths" wording, and §14 states it does not
  reach into code.
- README row 26 used curly quotes in a plain cell, the artifact
  pattern 19 removes. Now straight quotes.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant