refactor SKILL.md skillA
refactor from testdouble/han is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add testdouble/han/refactor@git:20260915.ec2cb7cPins git:20260915.ec2cb7c in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- testdouble/han
- Path
han-coding/skills/refactor/SKILL.md- Versions recorded
- 7
- Latest version
- git:20260915.ec2cb7c, committed Sep 15, 2026
- First version recorded
- Jul 31, 2026
- Size
- 12,461 bytes
- Repository stars
- 334
- License
- MIT
Restructure existing code without changing its behavior, through a test-gated refactoring loop: a named target, a green suite over that target before any edit, a planned sequence of small named refactorings, and the full suite re-run after every step. Use when the user wants to refactor, restructure, clean up, simplify, or improve the design of existing code, or to apply refactoring recommendations from a code-review or architectural-analysis report. This skill changes code; it does not review…
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
## Project Context
- git installed: !`which git 2>/dev/null || echo "not installed"`
- current branch: !`git branch --show-current 2>/dev/null || echo unknown`
- working tree: !`git status --porcelain 2>/dev/null | head -5`
- CLAUDE.md: !`find . -maxdepth 1 -name "CLAUDE.md" -type f`
- project-discovery.md: !`find . -maxdepth 3 -name "project-discovery.md" -type f`
- personal config directory: !`bash "${CLAUDE_PLUGIN_ROOT}/scripts/han-config-dir.sh" 2>/dev/null || echo "$HOME/.claude"`
- project .han/config.md: !`cat .han/config.md 2>/dev/null || echo ""`
As your first action, use the Read tool on `.han/config.md` inside the `personal config directory` path above. A read
that returns no file is no personal configuration: continue silently. When that file or the `project .han/config.md`
probe supplies content, apply it per [config-rule.md](../../references/config-rule.md), which governs precedence
between the two files, relative-path resolution, and what to do with a file that reads but cannot be used.
## Constraints (read before anything else)
This skill restructures existing production and test code in your working tree. It is an execution skill, not a document
…Read the whole file at its exact version.
How to install
mdr add testdouble/han/refactor@sha256:e8a08c677f38ed36The line at the top of this page pins the label git:20260915.ec2cb7c, 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_r3z6jh77ncts5xen)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 7 versions of this file, between Jul 31, 2026 and Sep 15, 2026, about one every 8 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260915.ec2cb7c latest | 2026-09-15 | ec2cb7c | 12,461 B | A | view · diff |
| git:20260909.9f8a8eb | 2026-09-09 | 9f8a8eb | 12,385 B | A | view · diff |
| git:20260819.52abdf4 | 2026-08-19 | 52abdf4 | 12,312 B | A | view · diff |
| git:20260818.55bdb1d | 2026-08-18 | 55bdb1d | 11,760 B | A | view · diff |
| git:20260814.8b0aad6 | 2026-08-14 | 8b0aad6 | 12,200 B | A | view · diff |
| git:20260814.2ac091e | 2026-08-14 | 2ac091e | 11,777 B | A | view · diff |
| git:20260731.e79299f | 2026-07-31 | e79299f | 11,648 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 (12461 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
testdouble/han · 334 stars · license MIT · pushed 2026-11-01 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_r3z6jh77ncts5xen GET https://markdownregistry.com/api/v1/resolve?ref=testdouble/han/refactor GET https://markdownregistry.com/api/v1/blob/e8a08c677f38ed36139ffd3febba763b53cd47f1168175cafa1fc87656e47064
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.