ClaudeMods
☰
KO
● 0 명 접속 중 · 조회 0 회
후원프로젝트 제출
GitHub 저장소 · 작성자 mutlumehmet

dash-guard

Claude가 prose에 em dash, en dash 또는 구두점으로 사용한 이중 하이픈을 넣어 쓰는 것을 거부하고 다시 쓸 줄을 알려 주는 Claude Code mod입니다.

mutlumehmet@mutlumehmet

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

원본 게시물 이미지1
번역 완료

이 mod 소개

dash-guard는 em dash, en dash 또는 구두점으로 사용된 이중 하이픈을 추가하는 쓰기를 차단해 prose 스타일을 지키는 Claude Code 플러그인입니다. Markdown과 텍스트 파일의 Write 및 Edit 호출, 설정한 MCP 도구 이름을 검사하지만 코드 파일, fenced code, 인라인 코드, 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
원문 / README

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.

What it does

  • Checks Write and Edit on Markdown and text files, and any MCP tool you name (a document, an email, a message).
  • Leaves code alone: code files, fenced blocks, inline code, HTML comments, and CLI flags such as git reset --hard.
  • Lines that already had a dash before the edit are not reported, so old files can still be edited.
  • /dash-guard off|on for the session.
  • It is a style rule, not a safety check: if the mod fails, the write goes through.

Settings

| 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).*$ |

What it reads and does

  • Reads: the text Claude is about to write with Write and Edit, the current file for an Edit (to tell new dashes from ones already there), and the text of MCP tools named in the tools setting.
  • Does: refuses a write that adds an em dash, an en dash or a double hyphen in prose, and tells Claude which lines to rewrite.
  • Hooks: 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.
  • Privacy: see PRIVACY.md.
  • Never: sends anything anywhere (no network calls, no telemetry).

Install

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.

Known gaps

  • Chat replies are not checked, only what is written to files and tools.
  • A shell heredoc (cat > file) goes around it.

About

Mehmet Mutlu: work that's shipped, at mehmetmutlu.dev

Made by Mehmet Mutlu, part of claude-plugins. More of his work at mehmetmutlu.dev.

License

MIT

비슷한 프로젝트