LogoClawIndex
CasesSkillsAbout
LogoClawIndex

law-of-demeter - Law of Demeter Code Refactoring

Detect chained method calls and nested property access violations in code

Tags

Updated: 2026-03-20
code qualitydesign patternssoftware architecturecode refactoringobject-oriented design

Capabilities

detect chained method callsidentify nested property accessanalyze method call chainsgenerate refactor suggestions

Typical Inputs

source code filescode snippetsmethod definitions

Typical Outputs

detected violation locationsrefactored code examplessuggested method additions

What this skill does

  • detect chained method calls
  • identify nested property access
  • analyze method call chains
  • generate refactor suggestions
  • validate code patterns

Inputs

  • source code files
  • code snippets
  • method definitions

Outputs

  • detected violation locations
  • refactored code examples
  • suggested method additions

Requirements

  • code parsing support
  • code analysis capability

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.