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

dashless

Claude의 응답, Write/Edit 도구 내용, git commit / gh pr 메시지에서 em dash와 en dash를 반영하기 전에 제거하고 상태 줄에 개수를 표시하는 Claude Code 플러그인입니다.

0xGondarxyz@0xGondarxyz

0xGondarxyz/claude-code-mods/tree/main/dashless

번역 완료

이 mod 소개

dashless

Claude가 작성하는 내용이 반영되기 전에 em dash를 제거합니다. TypeScript 약 80줄입니다.

| 위치 | 수정되는 내용 | | --- | --- | | Write 도구 | 파일 내용 | | Edit 도구 | new_string만 해당 (old_string은 파일과 일치해야 하므로 건드리지 않음) | | Bash | git commit과 gh pr / gh issue의 create, edit, comment만 해당하며 다른 명령은 그대로 실행 | | 응답 | 저장하기 전 Claude 응답의 텍스트 블록 |

재작성 규칙:

| 입력 | 출력 | | --- | --- | | 단어 사이의 em dash | 쉼표로 구분된 형태 | | 줄 시작의 em dash | 제거하고 들여쓰기는 유지 | | 줄 끝의 em dash | 제거 | | 공백이 있는 en dash | 쉼표로 구분된 형태 | | 숫자 범위의 en dash | 변경하지 않음 | | --force, -- file | 변경하지 않음 |

상태 줄에는 누적 개수 dashless: 3 em dashes fixed가 표시됩니다.

버리는 git 저장소에서 같은 프롬프트를 두 번 실행해 테스트했습니다(파일 작성, 커밋, em dash가 하나 들어간 문장으로 답하기를 각각 수행). 플러그인이 없을 때는 em dash 4개가 반영되었고, 플러그인을 켜면 0개였습니다.

테스트 실행: claude plugin test dashless

설치

먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.

claude plugin marketplace add 0xGondarxyz/claude-code-mods
claude plugin install dashless
원문 / README

dashless

Removes em dashes from what Claude writes, before it lands. About 80 lines of TypeScript.

| Where | What gets fixed | | --- | --- | | Write tool | the file content | | Edit tool | new_string only (old_string must match the file, so it is never touched) | | Bash | only git commit and gh pr / gh issue create, edit, comment; every other command runs as is | | Replies | text blocks in Claude's responses, before they are stored |

Rewrite rules (<code>—</code> is the em dash, <code>–</code> the en dash):

<!-- Dashes in this file are HTML entities on purpose. With literal characters, dashless rewrites its own examples whenever Claude edits this file. -->

| Input | Output | | --- | --- | | <code>a — b</code>, <code>a—b</code> | a, b | | <code>— item</code> at line start | item (indentation kept) | | <code>done —</code> at line end | done | | <code>note: — x</code> | note: x | | <code>a – b</code> (spaced en dash) | a, b | | <code>1990–2000</code> (range) | unchanged | | --force, -- file | unchanged |

The status line shows a running count: dashless: 3 em dashes fixed.

Tested by running the same prompt twice in a throwaway git repo (write a file, commit it, reply with a sentence, each with an em dash). Without the mod 4 em dashes landed; with it, 0.

Run its tests: claude plugin test dashless

비슷한 프로젝트