In short.
Refactoring is a Markdown skill for developers using AI coding assistants to clean up existing code, but the supplied evidence does not demonstrate whether assistants follow its rules successfully. Its entry point prioritizes a mini guide and reserves the full reference for harder decisions; a separate nano guide addresses tight context. The guidance favors small, reviewable changes, tests of existing behavior and explicit stopping points. Assistant compatibility, practical effectiveness and operating costs are unknown.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete captured refactoring folder: SKILL.md, refactoring.md, refactoring.mini.md and refactoring.nano.md, plus the repository-level LICENSE outside that folder. Other repository folders, external materials and later revisions are excluded. The assessment concerns the supplied text only. Nothing was installed, executed or tested; host loading, assistant compliance and behavior preservation in actual code remain unassessed.
The overview
identity
The resource is the refactoring folder in ciembor/agent-rules-books. SKILL.md names the skill refactoring and describes Martin Fowler-inspired improvements to code structure while preserving observable behavior. Its accompanying files are refactoring.md, refactoring.mini.md and refactoring.nano.md.
Original folder: [https://github.com/ciembor/agent-rules-books/tree/main/refactoring]. This report concerns revision 893a88a6fce3a80c565bf39ac65021b43a8b2990.
assessment
Its clearest use is guiding an assistant through bounded cleanup or preparing awkward code for a feature. It provides concrete first moves, including renaming unclear concepts, extracting coherent functions, isolating side effects and simplifying conditionals.
The stopping rules are useful: address the structural problem blocking the current change, then stop before further cleanup becomes speculative. Whether these instructions produce safer or clearer patches in practice is not assessed.
users
The intended audience is developers using assistants to modify existing code, review cleanup or prepare features and bug fixes. Beginners get a structured checklist, but still need to understand what their code currently does and how to check it.
Experienced developers get a broader catalog of transformations and design problems, including unclear ownership, repeated branching, exposed mutation and classes with several reasons to change. The files do not provide language-specific walkthroughs or a tutorial on building a test suite.
capabilities
The rules guide behavior-preserving changes: restructuring code while keeping outputs, errors and externally visible effects unchanged. They cover naming, extraction, moving behavior toward its owner, simplifying conditionals, encapsulating mutable data and removing unnecessary abstractions.
They also guide the surrounding work: establish a safety net, use characterization tests to capture unclear existing behavior, keep patches small, separate structural edits from intended behavior changes and preserve existing error semantics. These are instructions for the consuming assistant, not executable transformations supplied by the folder.
Using it
requirements
Intended use requires a way to supply Markdown instructions and their referenced files to an assistant. Applying the verification guidance also requires access to the relevant code and suitable checks of its current behavior.
The files specify no supported assistant list, minimum application version, programming-language restriction, installation directory or hardware requirement. No particular test framework is required by the text. Compatibility with any named host is unknown.
mechanism
SKILL.md directs the consuming assistant to read refactoring.mini.md before design or code decisions, then consult refactoring.md only when the mini rules are insufficient. The full reference expands the same discipline into a catalog of transformations, testing guidance and review questions.
The nano file describes itself as an always-on option for tight context, but SKILL.md does not reference it. Its use therefore requires a separate configuration or manual choice. No mechanism for enforcing compliance or proving behavior preservation is supplied.
setup
For the documented skill entry point, keep all four files together with their original names so the relative references from SKILL.md remain usable. Supply that folder through your assistant's supported instruction or skill mechanism and confirm it can access the mini and full files.
The files provide no host-specific installation command or registration procedure. The full refactoring.md can also be read directly as a standalone reference; a copy of that file alone does not include the skill entry point or compact variants.
example
A hypothetical use is preparing an order-pricing function for a future discount feature. Ask the assistant to capture current totals and error behavior in tests, extract a mixed-in validation phase as a small structural change, and keep the new discount logic in a separate patch.
This illustrates characterization tests, phase separation and preparatory refactoring. It was not executed, and no resulting code or passing tests are demonstrated.
Assessment & evidence
limitations
The captured folder contains instruction documents, with no executable refactoring engine, test suite or worked before-and-after code example. It provides no measured evidence of defect reduction, behavior preservation, patch quality or assistant compliance.
Several decisions remain dependent on project knowledge: whether duplication represents the same concept, where ownership belongs and when an abstraction is justified. The nano guide allows a verification gap to be recorded, but recording that gap does not establish that a change is safe.
reasoning
The guidance connects each structural change to a current obstacle, which gives reviewers a concrete question: did this edit make the requested work easier without changing behavior? Its warnings against speculative interfaces, vague utility modules and unnecessary hierarchies help constrain the scope of cleanup.
There is a wording difference worth understanding. The full reference uses directive language about preparatory refactoring before feature work, while the mini guide qualifies that advice with whether it makes the feature safer or simpler. Because SKILL.md prioritizes the mini guide, that qualification is central to the documented entry path.
alternatives
The documented options within this resource are the mini guide for the normal entry path, the full reference for detailed tradeoffs and the nano guide for tight context. Nano sacrifices catalog detail; the full reference provides more decision support but more text to read.
The evidence contains no comparisons with other skills or IDE refactoring tools. It does not establish which option performs better for a particular assistant, language or repository.
evidence
The source evidence comprises all four files in the refactoring folder and the repository-level LICENSE at commit 893a88a6fce3a80c565bf39ac65021b43a8b2990. A revision-specific entry point is [https://raw.githubusercontent.com/ciembor/agent-rules-books/893a88a6fce3a80c565bf39ac65021b43a8b2990/refactoring/SKILL.md].
These documents establish the written guidance, file relationships and stated licence. They contain no runtime logs, benchmark results or demonstrated assistant sessions. Runtime behavior and successful code transformations remain unassessed.
Access & freshness
costs
The MIT licence grants permission to use the material free of charge. This does not establish the total cost of using it with an assistant: subscription fees, API charges, compute requirements and developer time are unknown.
The compact variants provide shorter instruction text, but no token measurements, model prices or demonstrated cost savings are supplied.
rights
SKILL.md declares MIT licensing, and the repository-level LICENSE supplies the terms. It names Maciej Ciemborowicz as the 2026 copyright holder and permits use, copying, modification, publication, distribution, sublicensing and sale.
Copies or substantial portions must retain the copyright and permission notices. The licence supplies the material as is and disclaims warranties and liability. Licence source: [https://raw.githubusercontent.com/ciembor/agent-rules-books/893a88a6fce3a80c565bf39ac65021b43a8b2990/LICENSE].
freshness
The files were captured on 2026-11-16 at 12:52:32.783 UTC from revision 893a88a6fce3a80c565bf39ac65021b43a8b2990. That is a capture timestamp, not an established publication or commit date.
The supplied files provide no release version or change history for this folder. Later revisions and the present contents of the main branch are outside this snapshot.
actions
Begin with one bounded cleanup and confirm your assistant can access the mini guide. Identify the outputs, errors and visible effects that must remain unchanged, then establish suitable checks before structural edits.
Review whether the patch removes a specific obstacle, keeps behavior changes separate and stops before speculative cleanup. Consult the full reference for difficult ownership or abstraction decisions. Where verification is incomplete, identify the unchecked behavior explicitly rather than treating the instructions as proof.
