diff-remove

diff-remove is a skill for Claude Code from davekilleen/Dex. It costs 49 tokens per session (1,070 once invoked), scanned A, original, MIT.

A removal tool for DexDiff workflows, which are shared descriptions of how work is done in Dex. It deletes the selected workflow's generated skills and configuration while leaving personal data intact.

In plain words
What is it for?
Use it to undo a previously adopted workflow.
Why use it?
It removes an adopted workflow without requiring you to clean up its generated files manually. Your stored data is not removed.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths; mentions CLAUDE.md.

Good fit Use it to undo a previously adopted workflow.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/davekilleen/dex/diff-remove
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add davekilleen/Dex --skill diff-remove
Clone the repo
git clone --depth 1 https://github.com/davekilleen/Dex

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for diff-remove

README.md
[![agentmods](https://agentmods.dev/badge/skills/davekilleen/dex/diff-remove/github.svg)](https://agentmods.dev/skills/davekilleen/dex/diff-remove)
Your own site
<a href="https://agentmods.dev/skills/davekilleen/dex/diff-remove"><img src="https://agentmods.dev/badge/skills/davekilleen/dex/diff-remove/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for diff-remove

Your own site · 80×15
<a href="https://agentmods.dev/skills/davekilleen/dex/diff-remove"><img src="https://agentmods.dev/badge/skills/davekilleen/dex/diff-remove.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,070 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00049 $0.01070
Opus 5.5 $0.00020 $0.00428
Sonnet 5.5 $0.00010 $0.00214
Haiku 4.5 $0.00005 $0.00107

Measured 1mo ago against content hash b52e2ae07741, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

diff-remove scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/diff-remove/SKILL.md · 138 lines

How it starts

The opening of the file, as written. The whole thing — 138 lines — stays where its author put it; the contents beside it link to each section on GitHub.

What This Command Does

In plain English: Undo a DexDiff adoption. Removes the skills, CLAUDE.md sections, and templates that were created when you adopted a workflow. Your data (meeting notes, people pages, etc.) is never deleted.

When to use it:

  • You adopted a workflow and want to remove it
  • You want to clean up before re-adopting an updated version

How to run it:

/diff-remove meeting-prep
/diff-remove

Arguments

$ARGUMENTS — The diff ID of the workflow to remove. This is the id field from the methodology YAML, logged during adoption.

If no argument is provided, list all installed diffs and let the user pick:

You have these adopted workflows:

  meeting-prep    — "Meeting Prep Ritual" (adopted 2026-03-28)
  deal-review     — "Deal Review Ritual" (adopted 2026-03-25)

Which one would you like to remove?

To get the list, read all JSON files in both adoption locations:

  • .dex/adoptions/ - single-workflow adoptions from /diff-adopt
  • System/.dex/adoptions/profiles/ - whole-profile adoptions from /diff-adopt-profile (these are profile-level records; removing one means removing the skills generated for that profile's workflows, then deleting the profile log)

Process

Step 1: Find the Adoption Log

Read .dex/adoptions/$ARGUMENTS.json. If it is not there and $ARGUMENTS looks like a handle, check System/.dex/adoptions/profiles/$ARGUMENTS.json instead.

If the file doesn't exist:

No adoption record found for "$ARGUMENTS".

This means either:
- It was never adopted via /diff-adopt
- It was already removed
- The adoption log was deleted

I can't safely remove it without knowing what was created.
If you want to manually clean up, check .claude/skills/ for related skill folders.

Stop here. Do not attempt to guess what to delete.

Step 2: Parse the Log

Extract:

  • files_created — every file created during adoption
  • folders_created — every folder created
  • claude_md_sections — every CLAUDE.md section title added

Read the full file on GitHub · 138 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 138 lines · 49 tokens per session scan A b52e2ae07741

Subscribe to this mod's changes

diff-remove is a skill published in the GitHub repository davekilleen/Dex (508 stars, last pushed yesterday), licensed MIT. It adds 49 tokens to every session and 1,070 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.