refactor SKILL.md skillA
refactor from mgiovani/cc-arsenal is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add mgiovani/cc-arsenal/refactor@git:20261005.b620662Pins git:20261005.b620662 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- mgiovani/cc-arsenal
- Path
skills/refactor/SKILL.md- Versions recorded
- 7
- Latest version
- git:20261005.b620662, committed Oct 5, 2026
- First version recorded
- Feb 6, 2026
- Size
- 11,620 bytes
- Repository stars
- 8
- License
- MIT
Restructures existing code without changing its behavior: maps callers and test coverage, adds characterization tests where coverage is thin, then applies the change in small steps verified against the full test suite after each one. Use when the user wants to refactor, extract a method or class, simplify logic, reduce duplication, improve naming, restructure modules, or pay down technical debt in code that already works. Not for adding new functionality (use implement-feature) or fixing…
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
# Refactor Refactor code safely: capture current behavior with characterization tests, then restructure it in small steps, running the full test suite after each one before moving to the next. ## Refactoring Goal $ARGUMENTS ## Core Principle: Behavior Preservation Refactoring changes code structure WITHOUT changing behavior. Every step must be verified against existing tests. If tests break, the refactoring introduced a bug: revert and retry. ## Anti-hallucination guidelines 1. Read the code first: understand all callers and dependencies before touching anything. 2. Run the full test suite before starting and again after every incremental change; results must match. 3. Where coverage is thin, capture current behavior in characterization tests before restructuring. 4. Change one small, verifiable thing at a time. Never combine steps into a single edit. 5. Refactoring changes structure, not behavior: no new features, no bug fixes. Those are separate tasks (`implement-feature`, `fix-bug`), and Phase 0's scope gate below is where this gets enforced, not just stated. 6. Never claim a structure you haven't verified by reading the actual files. …
Read the whole file at its exact version.
How to install
mdr add mgiovani/cc-arsenal/refactor@sha256:d568186eda22bc24The line at the top of this page pins the label git:20261005.b620662, 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_ohmqrapndic3slhm)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 7 versions of this file, between Feb 6, 2026 and Oct 5, 2026, about one every 40 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261005.b620662 latest | 2026-10-05 | b620662 | 11,620 B | A | view · diff |
| git:20260925.ca015cc | 2026-09-25 | ca015cc | 11,747 B | A | view · diff |
| git:20260916.0d6e629 | 2026-09-16 | 0d6e629 | 11,864 B | A | view · diff |
| git:20260727.fa2e9cf | 2026-07-27 | fa2e9cf | 11,738 B | A | view · diff |
| git:20260719.4ee8666 | 2026-07-19 | 4ee8666 | 11,862 B | A | view · diff |
| git:20260702.8f6da63 | 2026-07-02 | 8f6da63 | 21,213 B | A | view · diff |
| git:20260206.c8d6258 | 2026-02-06 | c8d6258 | 20,366 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 (11620 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
mgiovani/cc-arsenal · 8 stars · license MIT · pushed 2026-10-28 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_ohmqrapndic3slhm GET https://markdownregistry.com/api/v1/resolve?ref=mgiovani/cc-arsenal/refactor GET https://markdownregistry.com/api/v1/blob/d568186eda22bc24def678001a6b49e51303bd405727d1d6a311d22c0b78a134
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 mgiovani/cc-arsenal
Every file in mgiovani/cc-arsenal