separation-of-concerns
CommunityKeep code clean by separating concerns.
Software Engineering#frontend architecture#hooks#pure functions#separation of concerns#presentation components#container pattern
Authoryanko-belov
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Mixed concerns in UI code create untestable, hard-to-maintain components. This Skill enforces the Iron Rule: never mix data fetching, business logic, and presentation in a single place.
Core Features & Use Cases
- Separated data layer: move data fetching into hooks or services.
- Pure logic layer: implement business rules and data transformations as pure functions.
- Presentation layer: build dumb UI components that render from props.
- Composition: use a container to connect layers, handle loading and errors, and compose final UI.
- Real-world use case: refactor a monolithic UserProfile component into a data hook, a formatter, a presentational card, and a container.
Quick Start
- Identify a monolithic component that fetches data, runs logic, and renders UI.
- Extract data fetching into a dedicated hook or service.
- Move business logic into pure functions that transform data.
- Create presentational components that render from props.
- Build a container to compose the layers and manage loading and error states.
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: separation-of-concerns Download link: https://github.com/yanko-belov/code-craft/archive/main.zip#separation-of-concerns 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 223,000+ vetted skills library on demand.