refactor-clean SKILL.md skillA
This file is byte-identical to the first copy the registry indexed. Same content hash, so the same checks give both the same grade.
refactor-clean from dzhng/duet-agent is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add dzhng/duet-agent/refactor-clean@git:20261014.0781e46Pins git:20261014.0781e46 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- dzhng/duet-agent
- Path
.agents/skills/refactor-clean/SKILL.md- Versions recorded
- 7
- Latest version
- git:20261014.0781e46, committed Oct 14, 2026
- First version recorded
- Jul 8, 2026
- Size
- 12,505 bytes
- Repository stars
- 50
- License
- Apache-2.0
Refactor cleanly instead of layering sediment. Use for rename requests, stale or misleading names, legacy leftovers, changed scope, or when a change reveals duplicated concepts, local adapters, obsolete owners, redundant inputs or guards, compatibility wrappers, parallel abstractions, an over-large module that has accreted many responsibilities, or "just tack this on" pressure in any code area.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Clean Refactoring Replace the old shape with the simpler shape the codebase would want if it were designed today. Refactoring is not adding a compatibility layer beside the problem; it is moving ownership until every concept has exactly one clear home. That cuts both ways: merging N duplicated owners into one, and splitting one over-loaded module into the several owners it was hiding. ## Workflow 1. Sweep names in every touched path, even when no structural refactor is needed. Ask whether each name describes the concept's current scope. Rename misleading files, symbols, imported bindings and shared exports immediately; update every consumer, test, doc and agent instruction in the same pass. Keep scenario names only for scenario-specific code, then search again for stale references. 2. Name the concept that lacks one clear owner — duplicated across several owners, or several concepts fused into one over-loaded module. Identify the thing(s) that should each have one owner: environment, pricing rule, geometry source, state machine, data contract, renderer phase, API shape, UI state, or test oracle. …
Read the whole file at its exact version.
How to install
mdr add dzhng/duet-agent/refactor-clean@sha256:fc7835430a0816efThe line at the top of this page pins the label git:20261014.0781e46, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_eybil5ao5sijriom)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 7 versions of this file, between Jul 8, 2026 and Oct 14, 2026, about one every 16 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261014.0781e46 latest | 2026-10-14 | 0781e46 | 12,505 B | A | view · diff |
| git:20261001.435c84c | 2026-10-01 | 435c84c | 12,468 B | A | view · diff |
| git:20261001.a17b424 | 2026-10-01 | a17b424 | 11,538 B | A | view · diff |
| git:20260801.997418f | 2026-08-01 | 997418f | 9,815 B | A | view · diff |
| git:20260717.934babf | 2026-07-17 | 934babf | 6,024 B | A | view · diff |
| git:20260708.94557eb | 2026-07-08 | 94557eb | 6,024 B | A | view · diff |
| git:20260708.f6fb4c4 | 2026-07-08 | f6fb4c4 | 4,835 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (12505 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
dzhng/duet-agent · 50 stars · license Apache-2.0 · pushed 2026-10-21 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_eybil5ao5sijriom GET https://markdownregistry.com/api/v1/resolve?ref=dzhng/duet-agent/refactor-clean GET https://markdownregistry.com/api/v1/blob/fc7835430a0816ef6721379753a63456f7b099fc329461560937a4b37d8dc375
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from dzhng/duet-agent
Every file in dzhng/duet-agent