mutlumehmet/claude-plugins/tree/main/plugins/dash-guard

一个 Claude Code mod:拒绝 Claude 写入带有 em dash、en dash 或作为标点使用的双连字符的 prose,并告诉 Claude 要重写哪些行。
mutlumehmet/claude-plugins/tree/main/plugins/dash-guard

dash-guard 是一个通过阻止引入 em dash、en dash 或作为标点的双连字符来约束 prose 风格的 Claude Code 插件。它会检查 Markdown 和文本文件上的 Write、Edit 调用,以及你配置的 MCP 工具名称,同时保留代码文件、围栏代码、行内代码、HTML 注释和 CLI flags 不变。编辑前已经存在的 dash 不会再次报告,因此旧文件仍可编辑。它提供 /dash-guard off|on 会话开关,可配置禁止的 dash 类型与 MCP 工具正则表达式,不进行网络调用或遥测,并附带 Claude Code 2.1.287 或更高版本的安装说明。
请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。
claude plugin marketplace add mutlumehmet/claude-plugins claude plugin install dash-guard
A Claude Code mod that refuses prose Claude writes with an em dash, an en dash or a double hyphen used as punctuation, and tells Claude which lines to rewrite. Part of claude-plugins.
git reset --hard./dash-guard off|on for the session.| Setting | Default | What it does |
|---|---|---|
| banned | all three | Comma separated: em, en, double |
| tools | empty | A regular expression of MCP tool names to check too, such as ^mcp__notion__.*(create\|update).*$ |
tools setting.tool.call on Write, Edit and the matching MCP tools may refuse that one call; it never changes a call's input. command.run answers its own /dash-guard command and no other.Needs Claude Code 2.1.287 or later (mods). Tested on 2.1.289.
/plugin marketplace add mutlumehmet/claude-plugins
/plugin install dash-guard@mehmetmutlu
A mod runs inside Claude Code with your permissions. Read the code before you install any mod.
Settings are asked for at install, or later with /plugin configure dash-guard@mehmetmutlu.
cat > file) goes around it.Made by Mehmet Mutlu, part of claude-plugins. More of his work at mehmetmutlu.dev.