refactor SKILL.md skillA

refactor from lusona/ai-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add lusona/ai-skills/refactor@git:20261031.61ec6da

Pins git:20261031.61ec6da in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
lusona/ai-skills
Path
plugins/lusona/skills/refactor/SKILL.md
Versions recorded
3
Latest version
git:20261031.61ec6da, committed Oct 31, 2026
First version recorded
Oct 24, 2026
Size
4,930 bytes
Repository stars
3
License
MIT

Refactor implemented product code in bounded increments while preserving observable behavior and compatibility. Use when existing code has a concrete structural problem; use implement for new behavior and bug fixes.

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

Apply [core loading rules](../../README.md#loading-rules) for your role, including all
required shared sections unless their current text is already supplied or loaded.
Read linked procedures only when their operation applies.
Persona: maintenance engineer, focused on simpler structure with stable observable behavior.
Work on existing implementation.

Save the agreement, substantive planning, and refactoring evidence even for small refactors
without a separate save request. Reuse the owner. Direct work without a spec may use
[notes](../../templates/notes.md) and remain untracked; retain agreement, decisions, explicit
TDD/source, checks/evidence, and handoff under [retention](../../references/retention.md).
If creating a spec, use relevant sections of [the change record](../../templates/spec.md) under
[naming](../../references/naming.md). A clear authorized request does not require Specify first. Use existing
execution records in place. Do not create a product-wide cleanup backlog from incidental findings.

- Inspect the working tree, relevant implementation, callers, and tests. Preserve unrelated
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add lusona/ai-skills/refactor@sha256:924306c3c7374a17

The line at the top of this page pins the label git:20261031.61ec6da, 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.

Badge

mdr badge

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

0 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 3 versions of this file, between Oct 24, 2026 and Oct 31, 2026, about one every 3 days.

versioncommittedcommitsizeaudit
git:20261031.61ec6da latest2026-10-31 61ec6da 4,930 BA view · diff
git:20261030.ebca32b2026-10-30 ebca32b 4,447 BA view · diff
git:20261024.215cdfd2026-10-24 215cdfd 4,420 BA view

Audit of the latest version

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 (4930 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

lusona/ai-skills · 3 stars · license MIT · pushed 2026-11-03 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_uqqaolllkbyiohsj
GET https://markdownregistry.com/api/v1/resolve?ref=lusona/ai-skills/refactor
GET https://markdownregistry.com/api/v1/blob/924306c3c7374a173c337306b2dba40b15a325f74ecba1590211b1bb2389897b

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 lusona/ai-skills

AGENTS.md AGENTS.md file
lusona/ai-skills · AGENTS.md
git:20261024.215cdfd · audit A · 3 stars
CLAUDE.md CLAUDE.md file
lusona/ai-skills · CLAUDE.md
git:20261024.215cdfd · audit B · 3 stars
architect SKILL.md skill
lusona/ai-skills · plugins/lusona/skills/architect/SKILL.md · Resolve consequential technical decisions about boundaries, contracts, and ownership for a product or change. Interview…
git:20261030.ebca32b · audit A · 3 stars
batch SKILL.md skill
lusona/ai-skills · plugins/lusona/skills/batch/SKILL.md · Coordinate explicitly authorized unattended work on selected queue items through definition, architecture…
git:20261027.d7e0702 · audit A · 3 stars
experiment SKILL.md skill
lusona/ai-skills · plugins/lusona/skills/experiment/SKILL.md · Test an intervention or compare alternatives through a bounded empirical trial with declared evaluation criteria and…
git:20261030.ebca32b · audit A · 3 stars
explore SKILL.md skill
lusona/ai-skills · plugins/lusona/skills/explore/SKILL.md · Explore ideas, decisions, scenarios, and long-term possibilities through discussion and tradeoffs. Use before choosing…
git:20261030.ebca32b · audit A · 3 stars
frame-product SKILL.md skill
lusona/ai-skills · plugins/lusona/skills/frame-product/SKILL.md · Develop product vision, audience, problem, outcomes, and boundaries. Use for initial product definition or a change in…
git:20261101.84a8911 · audit A · 3 stars
implement SKILL.md skill
lusona/ai-skills · plugins/lusona/skills/implement/SKILL.md · Implement an authorized bounded change with adaptive planning, explicit TDD, and verification. Also use for explicit…
git:20261031.61ec6da · audit A · 3 stars
investigate SKILL.md skill
lusona/ai-skills · plugins/lusona/skills/investigate/SKILL.md · Reproduce a bug or resolve a bounded technical uncertainty using evidence and small experiments. Use whenever a cause…
git:20261030.ebca32b · audit A · 3 stars
map-capabilities SKILL.md skill
lusona/ai-skills · plugins/lusona/skills/map-capabilities/SKILL.md · Map capability coverage, dependencies, and delivery order toward a product vision. Use when these need clarification or…
git:20261101.84a8911 · audit A · 3 stars
measure SKILL.md skill
lusona/ai-skills · plugins/lusona/skills/measure/SKILL.md · Establish magnitude, quality, cost, or change with comparable observations that inform a bounded decision. Use for…
git:20261030.ebca32b · audit A · 3 stars
review SKILL.md skill
lusona/ai-skills · plugins/lusona/skills/review/SKILL.md · Review a specified diff against intended behavior, repository standards, and failure cases. Report concrete defects and…
git:20261030.ebca32b · audit A · 3 stars

Every file in lusona/ai-skills

Other files named refactor

refactor SKILL.md skill
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…
git:20261023.af359db · audit A · 70,648 stars
refactor SKILL.md skill
sethgammon/citadel · skills/refactor/SKILL.md · Safe multi-file refactoring with automatic rollback. Establishes a type/test baseline, plans all changes, executes…
git:20260611.0f3f8e7 · audit A · 929 stars
refactor SKILL.md skill
dcouple/pane · main/src/services/paneChatBundle/skills/refactor/SKILL.md · Post-PR refactor pass. Sizes the diff against the remote default branch, fans out refactor-simple (and refactor-deep on…
git:20260924.c3bd4b5 · audit A · 601 stars
refactor SKILL.md skill
greenfield-inc/pane · main/src/services/paneChatBundle/skills/refactor/SKILL.md · Post-PR refactor pass. Sizes the diff against the remote default branch, fans out refactor-simple (and refactor-deep on…
git:20260924.c3bd4b5 · audit A · 600 stars
refactor SKILL.md skill
rsmdt/the-startup · plugins/start/skills/refactor/SKILL.md · Refactor, simplify, or clean up code for improved maintainability without changing business logic
git:20261011.48bd3ee · audit A · 577 stars
refactor SKILL.md skill
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…
git:20261021.71bc1e4 · audit A · 450 stars
refactor SKILL.md skill
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…
git:20261026.1b5f59a · audit A · 450 stars
refactor SKILL.md skill
justxor/claude-code-pro-course · starter-kit/.claude/skills/refactor/SKILL.md · Безопасный рефакторинг маленькими шагами без изменения поведения. Используй, когда просят отрефакторить, упростить…
git:20260930.76c4189 · audit A · 334 stars

Browse by kind, by grade A, or by owner.