page-component-decomposition
CommunityDecompose pages into testable components.
Software Engineering#frontend#testability#component design#permission boundaries#state ownership#responsibility separation#data fetching co-location
Authormachenjie
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It prevents frontend pages from turning into giant, hard-to-test components by enforcing clear responsibilities, correct state ownership, and side-effect boundaries.
Core Features & Use Cases
- Responsibility-first decomposition: Enforces exactly one primary responsibility per component to reduce coupling and improve testability.
- State ownership and reset clarity: Keeps state at the nearest component that can update, validate, and reset it correctly to avoid prop drilling and unclear lifecycle behavior.
- Side-effect and permission boundaries: Prohibits data fetching, navigation, and authorization checks inside presentational components so behavior stays visible and testable.
Quick Start
Ask for a component decomposition plan for your page by describing the current component’s responsibilities, where state is stored, and which parts fetch data, validate inputs, or perform permission checks.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: page-component-decomposition Download link: https://github.com/machenjie/rd-skills/archive/main.zip#page-component-decomposition 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.