LogoClawIndex
CasesSkillsAbout
LogoClawIndex

structural-design-principles - Apply structural design principles across paradigms

Use composition, the Law of Demeter, Tell Don't Ask, and encapsulation when designing modules and components.

Tags

Updated: 2026-10-06

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • Apply composition over inheritance
  • Minimize coupling between modules
  • Delegate logic to owners
  • Encapsulate data and behavior
  • Avoid deep object chains
  • Maintain clear boundaries

Inputs

  • Module designs
  • Component designs
  • Source code

Outputs

  • Design guidance
  • Refactoring recommendations

Requirements

    Source

    • Spec: SKILL.md

    ClawIndex

    OpenClaw Skills & Use Case Index

    ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

    Index

    Skills·
    Cases

    Meta

    About·
    Disclaimer·
    Email·
    GitHub
    © 2026 ClawIndex All Rights Reserved.
    software design
    composition
    encapsulation
    coupling
    modularity
    functional programming
    object-oriented programming
    Apply composition over inheritance
    Minimize coupling between modules
    Delegate logic to owners
    Encapsulate data and behavior
    Module designs
    Component designs
    Source code
    Design guidance
    Refactoring recommendations