Safe refactoring approach with test coverage first.
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
# Refactoring
When refactoring code:
## Before Starting
1. Ensure tests exist for code being refactored
2. Run tests to establish baseline (must pass)
3. If test coverage is low, ADD TESTS FIRST
## During Refactoring
- Make ONE type of change at a time
- Keep tests green after EACH change
- Commit frequently with clear messages
## Refactoring Types
- **Extract**: Pull code into new function/class
- **Inline**: Remove unnecessary indirection
- **Rename**: Improve naming clarity
- **Move**: Relocate to better home
- **Simplify**: Reduce complexity
## After Refactoring
- All tests must still pass
- Behavior must be unchanged
- Review diff for unintended changes
The line at the top of this page pins the label git:20260522.817c2c7, 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.
A 17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the 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 (760 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
eltmon/overdeck · 35 stars · license MIT · pushed 2026-11-07 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_vhzu4i5bsvdhdddi
GET https://markdownregistry.com/api/v1/resolve?ref=eltmon/overdeck/refactor
GET https://markdownregistry.com/api/v1/blob/e735883c27a8ce38459972a13cae3188dbee94e1f5740dc4befe899362159042
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.
eltmon/overdeck · integrations/grok-bot/skills/overdeck/SKILL.md · Watch and steer Overdeck, the user's orchestrator for AI coding agents. Use when the user asks about their coding…
eltmon/overdeck · integrations/openclaw/skills/overdeck/SKILL.md · Watch and steer Overdeck, the user's orchestrator for AI coding agents. Use when the user asks about their coding…
eltmon/overdeck · integrations/shared/SKILL.md · Watch and steer Overdeck, the user's orchestrator for AI coding agents. Use when the user asks about their coding…
eltmon/overdeck · src/lib/caveman/skills/caveman-review/SKILL.md · Ultra-compressed code review comments. Cuts noise from PR feedback while preserving the actionable signal. Each comment…
eltmon/overdeck · src/lib/caveman/skills/caveman/SKILL.md · Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical…
eltmon/overdeck · sync-sources/dev-skills/pan-dashboard-restart/SKILL.md · Safely restart the Overdeck dashboard server (production Node 22 dist) using a detached process. Use when pan up / pan…
eltmon/overdeck · sync-sources/dev-skills/pan-skill-installer/SKILL.md · Install an external skill or Claude Code plugin into Overdeck's bundled distribution so pan sync ships it to every…
eltmon/overdeck · sync-sources/dev-skills/pan-swarm/SKILL.md · Start or operate a foreman-driven Overdeck swarm with gated dispatch, merge, observation, and recovery commands.
code-yeongyu/oh-my-openagent · packages/shared-skills/skills/refactor/SKILL.md · Guides a refactor, cleanup, or restructure with the right decomposition. Use when the user asks to refactor, simplify…
greenfield-inc/pane · main/src/services/paneChatBundle/skills/refactor/SKILL.md · Quality pass on a branch against its remote default branch. Runs a simple analysis (conventions and smells) and, on…
dcouple/pane · main/src/services/paneChatBundle/skills/refactor/SKILL.md · Quality pass on a branch against its remote default branch. Runs a simple analysis (conventions and smells) and, on…
rsmdt/the-startup · plugins/start/skills/refactor/SKILL.md · Refactor, simplify, or clean up code for improved maintainability without changing business logic
boshu2/agentops · skills/refactor/SKILL.md · Restructure or clean up code with no behavior change, proved by before-and-after checks. Use when: asked to clean up…
boshu2/agentops · plugin/skills/refactor/SKILL.md · Restructure or clean up code with no behavior change, proved by before-and-after checks. Use when: asked to clean up…