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: