github conorbronsdon/avoid-ai-writing v3.39.1

one hour ago

Fixed

  • The Cursor rule's frontmatter description is now derived from SKILL.md at generation time instead of being hard-coded in scripts/sync-cursor-rules.sh, where it had drifted to a shortened copy of the canonical description. The generated rule carries the full SKILL.md description with the Cursor-specific sentences appended, and the description is registered as an SSOT fact so the parity is checked in CI (#452).
  • The slash-command example in README.md quotes the opening of the SKILL.md description, and nothing checked that quote. It is now registered as an SSOT fact (skill-description-opening), so editing the canonical description fails CI until the README example is updated to match (#453).
  • The em dash rate no longer counts the separator dash in an HTML list item that opens with a <strong>, <b>, or <a> lead term of at most five words (<li><strong>Term</strong> — gloss</li>). This matches the existing Markdown - **Term** — gloss exemption. Items that share a line, as in minified HTML, get the same check. Dashes after plain text, later in the item, or outside <li> still count (#351).
  • Sentence-length uniformity no longer measures glossary entries: three or more bold-lead definitions with distinct terms (**Term:** gloss, - **Term** — gloss), wrapped lines included. A short glossary no longer reads as flat prose rhythm. A label repeated on every line, such as **Note:**, stays in the sample, as does prose around the glossary. The sample gate and threshold are unchanged (#351).
  • Remove a quadratic scan from the em dash separator carve-out. Its line-anchored ^\s* also matched U+2028 and U+2029, which are line terminators in a multiline regex, so a long run of either character was rescanned from every line start: analyzeText() took about 40 seconds on a 99 KB input (conorbronsdon/avoid-ai-writing-mcp#15). The leading indent now stops at line terminators. Matching is unchanged; U+2028, U+2029, and mixed runs are now in the bounded-time test.
  • The dev-blog-boilerplate out-of-the-box slogan and the unnecessary-hyphenation fix for "works out-of-the-box" now also match the phrase written with a Unicode hyphen (U+2010), non-breaking hyphen (U+2011), or en dash (U+2013) between the words; the suggestion still reads "works out of the box". An em dash, U+2015, or the U+2012 figure dash after "works out" is still read as a break, so the "works out" idiom stays clean (#140).
  • The preservation validator drops a leading UTF-8 byte-order mark before comparing, as it already normalizes CRLF. A file read with readFileSync(path, 'utf8') keeps the mark, so the ^--- anchor missed the frontmatter and a fence on the first line, and a rewrite of either passed. A rewrite that only adds or drops the mark is no longer reported as a frontmatter change.

Don't miss a new avoid-ai-writing release

NewReleases is sending notifications on new releases.