convention-single-abstraction
CommunityMaintain code at a single abstraction level.
Software Engineering#refactoring#abstraction#software-engineering#clean-code#code-design#single-level
AuthorsunLeee
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Single Level of Abstraction (SLA) ensures code within a function operates at a single abstraction level to improve readability and maintainability.
Core Features & Use Cases
- Enforces consistent abstraction levels across function bodies to reduce cognitive load.
- Guides refactoring by extracting low-level details into dedicated helpers while preserving high-level intent.
- Use Case: when implementing complex routines, prevent mixing high-level flow with low-level implementation details.
Quick Start
Refactor a function so it contains only one abstraction level by extracting low-level details into helpers.
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-single-abstraction Download link: https://github.com/sunLeee/optimization/archive/main.zip#convention-single-abstraction 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.