convention-rule-of-three
CommunityRefactor after the third repetition.
Software Engineering#refactoring#code-quality#best-practices#design-patterns#dry-principle#duplicate-code
AuthorsunLeee
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Rule of Three provides a disciplined guideline to refactor duplicated logic after it appears three times, reducing maintenance costs and preventing code rot.
Core Features & Use Cases
- Detect duplicated logic across modules and prompt refactoring.
- Promote extracting common preprocessing, validation, or normalization into reusable utilities.
- Improve consistency, readability, and maintainability across codebases and teams.
Quick Start
Spot repeated patterns after the third occurrence and refactor them into shared utilities.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: convention-rule-of-three Download link: https://github.com/sunLeee/optimization/archive/main.zip#convention-rule-of-three Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.