convention-law-of-demeter

Community

Limit knowledge, reduce coupling.

AuthorsunLeee
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Law of Demeter prescribes that an object should talk only to its direct collaborators, preventing chains like a.b.c.d and reducing tight coupling and fragile designs.

Core Features & Use Cases

  • Enforces shallow object interactions to improve maintainability and testability.
  • Reduces knowledge of internal structures by providing simple interfaces or facades.
  • Use Case: refactor deeply nested calls in a service layer to interact with direct dependencies only.

Quick Start

Refactor code to replace chained calls with direct access to the needed collaborators or via a small facade.

Dependency Matrix

Required Modules

None required

Components

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-law-of-demeter
Download link: https://github.com/sunLeee/optimization/archive/main.zip#convention-law-of-demeter

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.