dx-refactor-discover

dx-refactor-discover is a skill for Claude Code from dikamilo/dx-workflow. It costs 29 tokens per session (3,888 once invoked), scanned A, original, MIT.

A workflow for searching a codebase for worthwhile refactoring opportunities. Refactoring means restructuring existing code without changing its intended behavior, and this workflow presents findings for the user to choose from.

In plain words
What is it for?
Use it when you want to find structural improvements, such as making a shallow module more useful or identifying better boundaries between parts of the code. It can outline interface alternatives, but it does not write a plan or change code.
Why use it?
It helps identify design problems before anyone edits code. It separates discovery from implementation so only selected opportunities become tracked changes.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions subagents.

Good fit Use it when you want to find structural improvements, such as making a shallow module more useful or identifying better boundaries between parts of the code. It can outline interface alternatives, but it does not write a plan or change code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dikamilo/dx-workflow/dx-refactor-discover
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 dikamilo/dx-workflow --skill dx-refactor-discover
Clone the repo
git clone --depth 1 https://github.com/dikamilo/dx-workflow

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 dx-refactor-discover

README.md
[![agentmods](https://agentmods.dev/badge/skills/dikamilo/dx-workflow/dx-refactor-discover/github.svg)](https://agentmods.dev/skills/dikamilo/dx-workflow/dx-refactor-discover)
Your own site
<a href="https://agentmods.dev/skills/dikamilo/dx-workflow/dx-refactor-discover"><img src="https://agentmods.dev/badge/skills/dikamilo/dx-workflow/dx-refactor-discover/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 dx-refactor-discover

Your own site · 80×15
<a href="https://agentmods.dev/skills/dikamilo/dx-workflow/dx-refactor-discover"><img src="https://agentmods.dev/badge/skills/dikamilo/dx-workflow/dx-refactor-discover.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,888 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.00029 $0.03888
Opus 5.5 $0.00012 $0.01555
Sonnet 5.5 $0.00006 $0.00778
Haiku 4.5 $0.00003 $0.00389

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

Security

Grade A, and why

dx-refactor-discover 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.

skills/dx-refactor-discover/SKILL.md · 126 lines

How it starts

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

dx-refactor-discover

Start with no concrete target — "find me refactor opportunities." Scan the codebase for design problems worth fixing — shallow modules to turn deep, whatever the wider design lenses surface, and code that breaks the project's own structural standards — present them inline as markdown, and promote whichever the user picks into a normal container. This skill discovers and hands off — it can sketch alternative interfaces for whichever candidates the user picks, but it writes no plan.md and edits no code. When several candidates share a cause no rule covers, it proposes the missing standard, but never writes one.

Guard. If context/ isn't scaffolded (no changes/ or efforts/), stop and tell the user to run /dx-init. The candidates this run produces are ephemeral — there is no debt register; anything not promoted or recorded as a lesson leaves no trace.

1 — Load the vocabulary and the rulebook

Invoke dx-references with topic module-design — its terms (deep vs shallow, seam, leverage and locality, adapter, dependency category, the deletion test) are how every candidate is phrased, and its ## Rejected framings says which words stay out. Read foundation/glossary.md for naming (a one-line habit — no section) and foundation/lessons.md so you skip anything a prior run already rejected — "don't re-deepen X because Y", "don't migrate X to rule Y because Z" and "don't propose rule X because Z" alike.

Invoke dx-references with knowledge-layer and match context/standards/ to the scope by its domain × topic rule: a scoped run takes global/ plus the areas the scoped code belongs to; an unscoped run takes every standard that applies somewhere in the tree. From those, keep only the structural rules existing code can be checked against — where a unit lives, what it may depend on, one unit per role. A rule about how to write plans or new work, or a style nit, has nothing to find in old code.

2 — Scan

Read the full file on GitHub · 126 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 Changed · +26 lines 5ecdd0c5e86e
  2. 1mo ago Changed 88c9ba88395a
  3. 2mo ago First seen · 100 lines · 29 tokens per session scan A d893e66ba913

Subscribe to this mod's changes

dx-refactor-discover is a skill published in the GitHub repository dikamilo/dx-workflow (8 stars, last pushed 23d ago), licensed MIT. It adds 29 tokens to every session and 3,888 once invoked, about $0.0001 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-08-31.

Related

Other skills, from other repositories

agent-watchdog

Use when asked to watch, babysit, audit, review, compare, or fix another agent's work from a Codex session ID, Claude Code session/transcript, chat/thread link, PR, branch, log, or pasted run summary. Monitor until the other agent is done or blocked, reconstruct what the user asked, independently investigate the same…

BuilderIO/skills · 115 tokens

comet-verify

Comet Phase 4: Verify and Close. Invoke with /comet-verify. Verify implementation matches design, handle development branch.

rpamis/comet · 32 tokens

no-comments

Spawn Comment Sicko, fix accepted findings, and offer encodings for claimed constraints.

backnotprop/pstack · 20 tokens

graphify-dotnet

Use graphify-dotnet to generate codebase knowledge graphs, architecture snapshots, and exportable repository maps from .NET or polyglot source trees, with optional AI-enriched semantic relationships. USE FOR: graphify commands; graph JSON, HTML, SVG, Cypher, Markdown, and Obsidian exports; repository map and…

managedcode/dotnet-skills · 125 tokens

re0-merge

Review and land an external contribution the way this suite does: gate it against the thesis, land it with the author's credit intact, complete a new skill rather than merging it raw, then approve, credit, and explain before closing. Use when reviewing a pull request, as any collaborator or maintainer, not only the…

LilMGenius/paperthin · 70 tokens

prism

Split one artifact — a claim, plan, or file — across 2 to 5 independent lenses, one per genuinely distinct failure mode (correctness, security, readability, cost, adversarial-user), and return their convergence: where they agree, where they disagree, and the single next question that resolves the disagreement. Use…

LilMGenius/paperthin · 98 tokens