dedash
Replaces em-dashes and misuse of dashes with proper punctuation based on grammatical context.
Install
mkdir -p .claude/skills/dedash && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/17565" && unzip -o skill.zip -d .claude/skills/dedash && rm skill.zipInstalls to .claude/skills/dedash
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Remove em-dashes and the dashes standing in for them from a user-owned scope, reading each occurrence in context and choosing the punctuation or wording that fits.Key capabilities
- →Locate dashes acting as em-dashes within a user-defined scope
- →Replace em-dashes with commas or parentheses for parenthetical asides
- →Substitute em-dashes with colons or commas for appositives
- →Change em-dashes to full stops, semicolons, or commas for abrupt turns
- →Rewrite sentences where em-dashes stand in for missing conjunctions
- →Report on changes made and any judgment calls
How it works
The skill finds dashes functioning as em-dashes within a specified scope. It then replaces each instance with appropriate punctuation or rewording based on its grammatical role in the sentence, while preserving hyphens and ranges.
Inputs & outputs
When to use dedash
- →Polishing technical documentation
- →Cleaning up README files
- →Editing copy for professional standards
About this skill
Remove em-dashes and the dashes standing in for them from the scope the user names, one occurrence at a time, while leaving hyphens, ranges, and deliberate marks alone.
Goal
Replace each em-dash that should not remain with the mark or wording its clause actually needs. Target any dash doing an em-dash's job, whatever its exact character: U+2014 and its longer or repurposed look-alikes all read the same on the page. The user owns the scope: a passage, field, file, selection, or tree. Do not widen it without asking.
Workflow
- FIND: Take the exact scope from the user and locate every dash doing an em-dash's job in it, judged by the role it plays in the sentence, not its codepoint: any mark that sets off an aside, an appositive, an abrupt turn, or a missing conjunction. The em-dash (U+2014) is the common one; the horizontal bar (U+2015) and the two- and three-em dashes (U+2E3A, U+2E3B) read the same and count. The en-dash (U+2013) is the boundary case: it counts when it joins clauses where an em-dash would fit, but stays when it spans a range's endpoints, numeric or not (
1990–2020, theLondon–Parisroute). A dash doing a non-em job (a hyphen, a minus, a range) stays. Surface anything genuinely ambiguous as a judgment call rather than changing it blindly. - REPLACE per role: Choose per occurrence by grammatical role:
- Parenthetical aside: commas or parentheses when the dashed material can be lifted out of the sentence.
- Appositive: a colon or comma when the dashed material renames, defines, or expands the noun before it.
- Abrupt turn: a full stop, semicolon, or comma when the dash marks a pivot, interruption, or restart.
- False-conjunction break: rewrite the sentence when the dash stands in for a missing "and", "but", "because", "so", or another real connective.
- LEAVE-ALONE: Unless the user explicitly includes them and the context proves them wrong, leave untouched:
- hyphenated compounds, minus signs, and negative numbers
- ranges such as
1-10,1–10, orLondon–Paris; a range dash is not an em-dash - code, diffs, command output, identifiers, serialized data, URLs, paths, anchors, and query strings
- quoted or clearly deliberate em-dashes in stylized prose; these surface as judgment calls, never as blind mutations
- RE-READ: Read every changed sentence in place. Fix awkward rhythm, dangling punctuation, doubled spaces, and connector loss introduced by the replacement. If the sentence now needs wording instead of punctuation, rewrite the smallest clause that solves it.
- REPORT: State the scope checked, how many dashes were found and changed, which replacements were used by role, and anything left alone or surfaced as a judgment call.
Rules
- Never do blanket replacement. The same glyph can require different punctuation in different clauses.
- Never replace an em-dash with a hyphen as the cleanup.
- Mutate with edit-safety: edit unicode-safe (
PYTHONUTF8=1) and replace each dash per occurrence, never a blanket sweep; if the scope contains no such dash, report a MISS rather than changing nearby punctuation. - Preserve the user's voice. This skill removes a mark where requested; it does not flatten style outside the user-owned scope.
Verification
Before finishing, confirm:
- The scope stayed exactly user-owned.
- Every replacement was selected per occurrence by grammatical role.
- Leave-alone cases stayed untouched or were reported as judgment calls.
- The report includes counts and any judgment calls.
When not to use it
- →When blanket replacement of dashes is desired
- →When replacing an em-dash with a hyphen
- →When the scope contains code, diffs, or serialized data
Limitations
- →Does not widen the user-owned scope without asking
- →Leaves hyphenated compounds, minus signs, and ranges untouched
- →Does not mutate quoted or clearly deliberate em-dashes blindly
How it compares
This skill performs context-aware replacement of em-dashes based on grammatical role, ensuring correct punctuation and preserving meaning, unlike a simple find-and-replace operation.
Compared to similar skills
dedash side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| dedash (this skill) | 0 | 21d | No flags | Intermediate |
| humanizer | 90 | 6mo | No flags | Beginner |
| docs-write | 22 | 5mo | No flags | Beginner |
| ad-creative | 33 | 1mo | Review | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by LowyShin
View all by LowyShin →You might also like
humanizer
davila7
Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases. Credits: Original skill by @blader - https://github.com/blader/humanizer
docs-write
metabase
Write documentation following Metabase's conversational, clear, and user-focused style. Use when creating or editing documentation files (markdown, MDX, etc.).
ad-creative
alirezarezvani
When the user needs to generate, iterate, or scale ad creative for paid advertising. Use when they say 'write ad copy,' 'generate headlines,' 'create ad variations,' 'bulk creative,' 'iterate on ads,' 'ad copy validation,' 'RSA headlines,' 'Meta ad copy,' 'LinkedIn ad,' or 'creative testing.' This is pure creative production — distinct from paid-ads (campaign strategy). Use ad-creative when you need the copy, not the campaign plan.
content-research-writer
ComposioHQ
Assists in writing high-quality content by conducting research, adding citations, improving hooks, iterating on outlines, and providing real-time feedback on each section. Transforms your writing process from solo effort to collaborative partnership.
humanizer-zh
op7418
去除文本中的 AI 生成痕迹。适用于编辑或审阅文本,使其听起来更自然、更像人类书写。 基于维基百科的"AI 写作特征"综合指南。检测并修复以下模式:夸大的象征意义、 宣传性语言、以 -ing 结尾的肤浅分析、模糊的归因、破折号过度使用、三段式法则、 AI 词汇、否定式排比、过多的连接性短语。
doc-coauthoring
anthropics
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.