testdouble/han · han-coding/skills/refactor/SKILL.md

refactor skillA

refactor is agent-read markdown (skill) from testdouble/han: 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 c.

Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.

How to install

Latest version
mdr add testdouble/han/refactor@git:20260915.ec2cb7c
Exact content
mdr add testdouble/han/refactor@sha256:e8a08c677f38ed36

Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_r3z6jh77ncts5xen.svg)](https://markdownregistry.com/a/art_r3z6jh77ncts5xen)

0 badge views in 30 days

Versions

versioncommittedcommitsizeaudit
git:20260915.ec2cb7c latest2026-09-15 ec2cb7c 12,461 BA view · diff
git:20260909.9f8a8eb2026-09-09 9f8a8eb 12,385 BA view · diff
git:20260819.52abdf42026-08-19 52abdf4 12,312 BA view · diff
git:20260818.55bdb1d2026-08-18 55bdb1d 11,760 BA view · diff
git:20260814.8b0aad62026-08-14 8b0aad6 12,200 BA view · diff
git:20260814.2ac091e2026-08-14 2ac091e 11,777 BA view · diff
git:20260731.e79299f2026-07-31 e79299f 11,648 BA view

Audit of the latest version

A  17 of 17 checks passed. Deterministic, no model, same answer every run.
  • 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

GitHub

testdouble/han · 267 stars · license MIT · pushed 2026-09-15 · 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