Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions tools/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading