From b50899c933702b11f4e4d69de581acceea8eeb5f Mon Sep 17 00:00:00 2001 From: bryan-getthread Date: Thu, 10 Sep 2026 14:57:12 -0600 Subject: [PATCH] Document and enforce the em dash rule The sweep in #15 landed the prose changes but not the rule behind them: a `git checkout .` while redoing the description pass reverted these three files before the commit, so descriptions were clean with nothing stopping the next one. tools/validate.py now fails a `description` containing an em dash (verified: exit 2 on a seeded one), CONTRIBUTING.md carries the rule and the prompt-block exemption, and TEMPLATE.md no longer models a dash in the line an author copies. Co-Authored-By: Claude Opus 5 --- CONTRIBUTING.md | 18 ++++++++++++++++++ TEMPLATE.md | 2 +- tools/validate.py | 9 +++++++++ 3 files changed, 28 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ab16025..1e9aa4f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -81,6 +81,24 @@ metadata; they are never named in the prompt. **One prompt may take several acti "show me before you send/close", "when in doubt, do nothing", result-cap honesty, "never invent data". +## Punctuation: em dashes sparingly + +**The em dash is not a default joiner.** Use a comma for an aside, a colon before an +explanation or a list, a period when the clause can stand alone, and parentheses for a +genuine parenthetical. Keep a dash only where the break itself is the point. + +This applies to a skill's `description` and its **When to use** / **Run it** prose, which the +docs generator copies into the page's meta description and body copy. A sweep took those from +1,060 dashes to 503 across the library, and `tools/validate.py` **fails a `description` that +contains one**: a description is a single trigger sentence and never needs the break. A dash +introducing a list almost always wanted to be a colon, e.g. `Summarize a client's support +health for a period: volume trend, recurring issues, noisy assets, SLA performance`. + +**Prompt blocks are exempt and were deliberately left alone.** The prompt is the artifact a +partner pastes into Super Magic, and repunctuating 5,000 lines of working instructions to suit +a style rule risks changing what the agent does. Write new prompts to the rule; do not sweep +old ones. + ## The 3,000-character limit **A prompt block may not exceed 3,000 characters.** Super Magic caps skill instructions and diff --git a/TEMPLATE.md b/TEMPLATE.md index aee09bb..2e8de2c 100644 --- a/TEMPLATE.md +++ b/TEMPLATE.md @@ -6,7 +6,7 @@ your copy. --> --- name: Short Title Case Name -description: When to reach for this skill, in one line — this is the trigger the agent matches. +description: When to reach for this skill, in one line. This is the trigger the agent matches. No em dash: see CONTRIBUTING.md -> Punctuation. category: One of the existing folders in skills/ tools: [search_tickets, add_ticket_note] # metadata for validation — do NOT name these in the prompt connectors: [] # e.g. [NinjaOne]; [Zapier: Microsoft Teams]; [] if native-only diff --git a/tools/validate.py b/tools/validate.py index bcd57dd..f4cba6f 100644 --- a/tools/validate.py +++ b/tools/validate.py @@ -213,6 +213,15 @@ def check(path: Path, all_slugs: set[str], all_categories: set[str], errs.append("`name:` is empty") if not fm["description"]: errs.append("`description:` is empty") + # An em dash in a description is always avoidable: it is one trigger sentence, and + # sync_skills.py copies it verbatim into the docs page's meta description, where a + # dash reads as filler. House rule is em dashes sparingly (CONTRIBUTING.md -> + # Punctuation); the description is the one place it is a hard no. + if "\u2014" in fm["description"]: + errs.append( + "description: contains an em dash -- use a comma, colon or period " + "(see CONTRIBUTING.md -> Punctuation: em dashes sparingly)" + ) if fm["scope"] not in SCOPES: errs.append(f"scope: {fm['scope']!r} -- must be one of {sorted(SCOPES)}") if fm["flow"] not in FLOWS: