Ryuu's Skills

no-em-dash

Blocks em and en dashes in the files an agent writes.

The dash guard runs inside skills hook post-tool-use after a file edit. It reads the written file back from disk, strips fenced code, inline code and URLs, and blocks when an em dash (U+2014) or an en dash (U+2013) remains, naming the file and the first five lines that carry one. The block asks for a rewrite with a comma, colon, parenthesis or full stop.

In Codex the edit arrives as an apply_patch call, either the tool or a shell command that runs it, and every file the patch touches is checked.

When It Stays Silent

  • The file is not one it reads. It checks .md, .ts, .tsx, .js, .jsx, .css, .json, .sh, .py and .html only.
  • The path matches AGENT_HOOKS_SKIP (Configuration).
  • The dash sits in a fenced block, in inline code or in a URL.
  • AGENT_HOOKS=0 is set.

On this page