Dedash

Removes em-dashes from text you choose, picking commas, colons, full stops or a small rewrite for each one based on the job the dash was doing.

Writing & Editingpunctuationeditingem-dashai writingby LilMGenius1.4kGitHub

What it is

Dedash is a punctuation clean-up tool for prose. Heavy use of the em-dash (the long dash) is widely read as a sign of AI-written text, and this skill removes those dashes from exactly the passage, file, selection or folder you point to, without touching anything else. It suits writers, editors and marketers polishing drafts, posts or documentation. It runs only when you call it by name, for example by typing /dedash, and never starts on its own.

It does not run a blanket find-and-replace. It reads each dash in context and decides what job it does. An aside that could be lifted out becomes commas or brackets. A phrase that renames the noun before it gets a colon or comma. A sudden turn becomes a full stop, semicolon or comma. A dash standing in for 'and', 'but' or 'because' leads to a small rewrite. It also catches look-alike characters, such as the horizontal bar and double-length dashes, and en-dashes used the same way.

Hyphens, minus signs, ranges such as 1990–2020 or London–Paris, code, links, file paths and quotations stay as they are, and it never swaps a dash for a hyphen. Dashes that look deliberate in stylised writing are reported as judgment calls instead of being changed. After editing, it rereads each changed sentence to fix awkward rhythm, then reports the scope it checked, how many dashes it found and changed, and which replacements it used.

What it can do

  • Finds every dash doing an em-dash's job in your chosen scope, including look-alike characters and some en-dashes.
  • Picks commas, brackets, colons, semicolons or full stops for each dash according to its role in the sentence.
  • Rewrites the smallest clause when a dash was standing in for a missing 'and', 'but' or 'because'.
  • Leaves hyphens, minus signs, ranges, code, links, file paths and quotations untouched.
  • Flags deliberate or ambiguous dashes as judgment calls rather than changing them blindly.
  • Reports the scope checked, how many dashes were found and changed, and the replacement used for each role.

When to use it

  • Your blog draft has a long dash in every paragraph and readers keep asking whether AI wrote it.
  • You are cleaning up a long help article and want the dashes gone without breaking code samples or links.
  • Your company style guide bans em-dashes and you have a folder of older documents to fix.
  • You want to tidy a newsletter while keeping date ranges like 2019–2024 intact.

How it works

  1. 1Takes the exact scope you name, such as a passage, file, selection or folder, and never widens it without asking.
  2. 2Locates each dash and judges the role it plays in the sentence rather than which character it is.
  3. 3Replaces each one individually with the punctuation or small rewrite that role needs, editing files in a way that keeps special characters intact.
  4. 4Rereads every changed sentence in place and fixes rhythm, stray spaces or lost connecting words.
  5. 5Reports counts, replacements by role, anything left alone and any judgment calls.

Try asking

“/dedash this blog post draft.”
“Use dedash on guide.md, but leave the date ranges alone.”
“Run dedash on the paragraph I just selected.”
“Use dedash to get rid of the long dashes in my newsletter folder.”

How to install

Install with the skills CLI (recommended)

Works with Claude Code, Codex, Cursor, OpenCode and other agents, and asks which ones to install to. Needs Node.js 22.20+. Add -g to make it available in every project.

npm
npx skills add https://github.com/LilMGenius/paperthin/tree/main/skills/depth/dedash
pnpm
pnpm dlx skills add https://github.com/LilMGenius/paperthin/tree/main/skills/depth/dedash

Install manually

Copies the skill folder into Claude Code's personal skills directory. For claude.ai, zip the dedash folder and upload it in the Skills section of Settings.

Terminal
git clone --depth 1 https://github.com/LilMGenius/paperthin.git
mkdir -p ~/.claude/skills
cp -r paperthin/skills/depth/dedash ~/.claude/skills/dedash

Then just ask in plain language, for example: “/dedash this blog post draft.”