Cognitive Load
CommunityShrink cognitive load, boost code clarity.
Software Engineering#readability#composition#code-quality#cognitive-load#guard-clauses#early-returns
AuthorFlorinPopaCodes
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Cognitive Load provides a framework to minimize extraneous mental effort in code and design. It teaches how to reduce working memory load by simplifying conditionals, guarding against deep nesting, and favoring composition over inheritance.
Core Features & Use Cases
- 13 Principles: Extract complex conditionals, use early returns, prefer composition over inheritance, and keep modules deep rather than frivolously shallow.
- Guard Clauses: Flatten nested logic to improve readability.
- Self-describing Codes: Prefer descriptive statuses over numeric codes.
- Framework-Agnostic: Keep business logic separate from framework glue.
- Code Review Guidance: Use cognitive-load checklist to audit code for readability.
Quick Start
Run a cognitive-load audit on a function, refactor to remove nested conditionals, extract named booleans, and replace deep inheritance with composition.
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: Cognitive Load Download link: https://github.com/FlorinPopaCodes/claude-marketplace/archive/main.zip#cognitive-load 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.