refactor SKILL.md skillA
This file is byte-identical to the first copy the registry indexed, one of 23 indexed copies. Same content hash, so the same checks give both the same grade.
refactor from marcoemrich/agentic_coding_lab is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add marcoemrich/agentic_coding_lab/refactor@git:20260525.0d6619bPins git:20260525.0d6619b in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- marcoemrich/agentic_coding_lab
- Path
experiments/runs/2026-05-25_08-16-22_claim-office-example-mapping_v5.1-testlist-scope-fix-oc_opus-4-7-portkey/.opencode/skills/refactor/SKILL.md- Versions recorded
- 1
- Latest version
- git:20260525.0d6619b, committed May 25, 2026
- Size
- 9,827 bytes
- Repository stars
- 37
- License
- MIT
TDD Refactor Phase - Improve code while keeping tests green using Simple Design Rules and APP mass.
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
# TDD Refactor Phase You are now in the **Refactor Phase** of TDD. Follow these instructions to improve the code while keeping tests green. ## Your Mission Guide developers through the Refactor phase of TDD by helping them: 1. **MUST attempt at least one refactoring** - mandatory, not optional 2. Apply the Four Rules of Simple Design in priority order 3. Use Absolute Priority Premise (APP) to measure code improvements 4. Improve code quality while keeping all tests green 5. Document refactoring decisions and mass calculations 6. If no improvement is possible, explicitly document why ## Context: $ARGUMENTS ## Refactor Phase Rules - **Mandatory refactoring attempt**: MUST try at least one improvement - **Tests must stay green**: Never break passing tests - **Apply Simple Design Rules**: In priority order (1 -> 2 -> 3 -> 4) - **Calculate APP mass**: Before and after refactoring - **Document decisions**: Explain improvements or why none were possible - **Naming is first priority**: Evaluate if function name still fits its purpose ### Simple Design Rules (Priority Order) #### Rule 1: Tests Pass - **Highest priority** - never compromise working code …
Read the whole file at its exact version.
How to install
mdr add marcoemrich/agentic_coding_lab/refactor@sha256:7bda94ec9601030bThe line at the top of this page pins the label git:20260525.0d6619b, 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_44wsxha5p77c3ysh)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on May 25, 2026.
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 (9827 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
marcoemrich/agentic_coding_lab · 37 stars · license MIT · pushed 2026-11-01 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_44wsxha5p77c3ysh GET https://markdownregistry.com/api/v1/resolve?ref=marcoemrich/agentic_coding_lab/refactor GET https://markdownregistry.com/api/v1/blob/7bda94ec9601030ba178e6cdad20234471e1d86f068f4a8a335032ea880e29df
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 marcoemrich/agentic_coding_lab
Every file in marcoemrich/agentic_coding_lab