refactoring
Skill2.9k starsChanged 3 months agoMITView on GitHub
Apply Martin Fowler-inspired refactoring rules when improving existing code structure while preserving observable behavior.
39 other projects use a version of this.
Trending
More talk lately.about the whole repository
Most recently taken up by
- kapadias/nonnatheir own version, first seen Oct 1, 2026
- jablonkai/skillstheir own version, first seen Oct 1, 2026
- fabiandistler/agentstheir own version, first seen Sep 30, 2026
- wormeyman/wormeyman-skillstheir own version, first seen Sep 25, 2026
- dan-the-dev/xp-developer-skillstheir own version, first seen Sep 23, 2026
- syanga/astacktheir own version, first seen Sep 20, 2026
Who's talking about ciembor/agent-rules-books
- @camilleroux.com“Des règles prêtes à l'emploi pour Codex, Cursor et Claude Code, inspirées des grands classiques du génie …”Bluesky · May 7, 2026 · 3 likes
- rjmurillo/ai-agents“Add Claude rules: refactoring (safe structural change, separate from features)”GitHub · Apr 25, 2026 · 2 reactions
- rjmurillo/ai-agents“Add Claude rules: working-with-legacy-code (characterization tests, seams, safe edits)”GitHub · Apr 25, 2026 · 2 reactions
- rjmurillo/ai-agents“Add Claude rules: unified-software-engineering (conflict resolution + forbidden patterns)”GitHub · Apr 25, 2026 · 2 reactions
- rjmurillo/ai-agents“chore(rules): always-on instruction budget is 218KB (~54k tokens) on a single .py edit”GitHub · Jul 27, 2026 · 1 reactions
The biggest 5 of 36 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 36
Talked about on GitHub and Bluesky (36 times).
On GitHub · 35
- Apr 25, 2026Add Claude rules: refactoring (safe structural change, separate from features) — rjmurillo/ai-agents2 reactions · 7 comments
- Apr 25, 2026Add Claude rules: working-with-legacy-code (characterization tests, seams, safe edits) — rjmurillo/ai-agents2 reactions · 7 comments
- Apr 25, 2026Add Claude rules: unified-software-engineering (conflict resolution + forbidden patterns) — rjmurillo/ai-agents2 reactions · 6 comments
- Jul 27, 2026chore(rules): always-on instruction budget is 218KB (~54k tokens) on a single .py edit — rjmurillo/ai-agents1 reaction · 4 comments
- Apr 25, 2026Add Claude rules: enterprise-patterns (repository, unit-of-work, service layer) — rjmurillo/ai-agents1 reaction · 5 comments
30 more on GitHub
- Apr 25, 2026Add Claude rules: philosophy-of-software-design (deep modules, information hiding) — rjmurillo/ai-agents1 reaction · 4 comments
- Apr 25, 2026Add Claude rules: data-intensive-applications (consistency, schema evolution, idempotency) — rjmurillo/ai-agents1 reaction · 5 comments
- Oct 3, 2026agent-skills.github.ciembor.agent-rules-books: v0.6 → refs/tags/v0.6 — sudosubin/agents.nix0 reactions
- Sep 26, 2026[Candidate] ciembor/agent-rules-books/clean-code - clean-code — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 26, 2026[Candidate] ciembor/agent-rules-books/clean-architecture - clean-architecture — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 26, 2026[Candidate] ciembor/agent-rules-books/a-philosophy-of-software-design - a-philosophy-of-software-design — ProSkillsMD/proskills0 reactions · 1 comment
- Sep 26, 2026agent-skills.github.ciembor.agent-rules-books: init at 0.6 — sudosubin/agents.nix0 reactions
- Sep 25, 2026refactoring: polish disciplines, drop ADR pointer, add eval prompts — fabiandistler/agents0 reactions · 2 comments
- Sep 14, 2026Audit candidate: ciembor/agent-rules-books — xiaolai/nlpm0 reactions · 3 comments
- Aug 11, 2026[P2][Analytics] Separate analytics route concerns (SRP violation) — xodapi/kognitika0 reactions · 1 comment
- Aug 11, 2026[P3][API] Make analytics module registry extensible (OCP violation) — xodapi/kognitika0 reactions · 1 comment
- Aug 11, 2026[P2][Storage] Replace direct Prisma imports with repository interfaces (DIP violation) — xodapi/kognitika0 reactions · 1 comment
- Aug 11, 2026[P2][API] Refactor saveCompletedGame transaction script (SRP violation) — xodapi/kognitika0 reactions · 1 comment
- Aug 11, 2026[P2][API] Separate game route into application services (SRP violation) — xodapi/kognitika0 reactions
- May 29, 2026Define a modern AI instructions structure for Copilot, Codex, and other agent tools — mykola-lp/prep-tracker0 reactions · 5 comments
- May 15, 2026🤖 Auto-Add Skills with OpenCode: 1 new skill(s) — Keith-CY/my-crazy-skills0 reactions
- May 15, 2026🤖 Auto-Add Skills with OpenCode: 1 new skill(s) — Keith-CY/my-crazy-skills0 reactions
- May 15, 2026🤖 Auto-Add Skills with OpenCode: 1 new skill(s) — Keith-CY/my-crazy-skills0 reactions
- May 14, 2026🤖 Auto-Add Skills with OpenCode: 1 new skill(s) — Keith-CY/my-crazy-skills0 reactions
- May 14, 2026🤖 Auto-Add Skills with OpenCode: 1 new skill(s) — Keith-CY/my-crazy-skills0 reactions
- May 14, 2026🤖 Auto-Add Skills with OpenCode: 1 new skill(s) — Keith-CY/my-crazy-skills0 reactions
- May 13, 2026🤖 Auto-Add Skills with OpenCode: 1 new skill(s) — Keith-CY/my-crazy-skills0 reactions
- May 13, 2026🤖 Auto-Add Skills with OpenCode: 1 new skill(s) — Keith-CY/my-crazy-skills0 reactions
- May 13, 2026🤖 Auto-Add Skills with OpenCode: 1 new skill(s) — Keith-CY/my-crazy-skills0 reactions
- May 12, 2026🤖 Auto-Add Skills with OpenCode: 1 new skill(s) — Keith-CY/my-crazy-skills0 reactions
- May 12, 2026🤖 Auto-Add Skills with OpenCode: 1 new skill(s) — Keith-CY/my-crazy-skills0 reactions
- May 12, 2026🤖 Auto-Add Skills with OpenCode: 1 new skill(s) — Keith-CY/my-crazy-skills0 reactions
- May 11, 2026🤖 Auto-Add Skills with OpenCode: 1 new skill(s) — Keith-CY/my-crazy-skills0 reactions
- May 11, 2026🤖 Auto-Add Skills with OpenCode: 1 new skill(s) — Keith-CY/my-crazy-skills0 reactions
- May 11, 2026🤖 Auto-Add Skills with OpenCode: 1 new skill(s) — Keith-CY/my-crazy-skills0 reactions
On Bluesky · 1
- May 7, 2026Des règles prêtes à l'emploi pour Codex, Cursor et Claude Code, inspirées des grands classiques du génie logiciel — Clean Code, DDD,… — @camilleroux.com3 likes and reposts
Used with
Projects with it also use performance, ci-cd and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
pluginagentmarketplaceSkillperformance
Optimize application performance through caching strategies, load balancing, database scaling, and monitoring. Build systems handling thousands of concurrent users.
Also in 7 projects that use this
JohnJBorenSkillci-cd
CI/CD pipeline design, GitHub Actions, testing automation, and deployment strategies
Also in 4 projects that use this
MicrosoftSkillerror-handling
统一错误处理系统。在添加 API 端点、修改错误处理、添加前端 API 调用、编写错误相关测试时使用。
Also in 6 projects that use this
CloudAI-XSkilldatabase-design
Designs database schemas, indexing strategies, query optimization, and migration patterns for SQL and NoSQL databases. Use when designing tables, optimizing queries, fixing N+1 problems, planning migrations, or when asked about database performance, normalization, ORMs, or data modeling.
Also in 5 projects that use this
MicrosoftSkillapi-design
Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.
Also in 14 projects that use this
AnthropicSkilldocumentation
Write and maintain technical documentation. Trigger with "write docs for", "document this", "create a README", "write a runbook", "onboarding guide", or when the user needs help with any form of technical writing — API docs, architecture docs, or operational runbooks.
Also in 8 projects that use this
Other versions39 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 39
- databrickslabs/ontobricks★ 393same name
- extra-org/extra★ 113same name
- 312362115/claude★ 107same name
- DevelopersGlobal/ai-agent-skills★ 69same name
- andreaswasita/copilot-agents-dojo★ 54same name
- dan-the-dev/xp-developer-skills★ 30same name
- nimadorostkar/Claude-Skills-collection★ 28same name
- krzysztofsurdy/code-virtuoso★ 22same name
- s-hiraoku/synapse-a2a★ 16same name
- vshrinath/virtual-product-factory★ 16same name
29 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository13 other files it gives its agents.
- a-philosophy-of-software-designSkill
- clean-architectureSkill
- clean-codeSkill
- code-completeSkill
- designing-data-intensive-applicationsSkill
- domain-driven-design-distilledSkill
- domain-driven-designSkill
- implementing-domain-driven-designSkill
- patterns-of-enterprise-application-architectureSkill
- refactoring-guruSkill
- release-itSkill
- the-pragmatic-programmerSkill
- working-effectively-with-legacy-codeSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 34 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Use this skill when a task involves behavior-preserving code improvement, code smells, small refactoring steps, test-backed cleanup, or …
- Distinctive: line 11
Before making design or code decisions, read and apply refactoring.mini.md.
“Common” is measured: kept by at least 6 in 10 of the 34 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Refactoring Skill
Use this skill when a task involves behavior-preserving code improvement, code smells, small refactoring steps, test-backed cleanup, or separating refactoring from feature changes.
Before making design or code decisions, read and apply refactoring.mini.md. Use refactoring.md only as a deeper reference when the mini rules are not enough for the current refactoring tradeoff.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

