lightweight-design-analysis

Analyze class or module code for design quality across eight dimensions.

Updated Mar 3, 2026
One-click install
npx skills add https://github.com/igoyetche/send-to-kindle --skill lightweight-design-analysis-igoyetche
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lightweight-design-analysis
Source: https://github.com/igoyetche/send-to-kindle/tree/main/.claude/skills/lightweight-design-analysis
Command: npx skills add https://github.com/igoyetche/send-to-kindle --skill lightweight-design-analysis-igoyetche

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the challenge of ensuring high-quality code design by providing a systematic, evidence-based analysis of code across critical dimensions, helping developers identify and fix design flaws before they become costly problems.

Core Features & Use Cases

  • Comprehensive Analysis: Evaluates code across 8 key design dimensions: Naming, Object Calisthenics, Coupling & Cohesion, Immutability, Domain Integrity, Type System, Simplicity, and Performance.
  • Evidence-Based Findings: Provides specific, actionable recommendations with exact file:line references and code examples, avoiding vague suggestions.
  • Use Case: When refactoring a complex class, invoke this skill to get a detailed report on potential design improvements, such as identifying an anemic domain model or excessive feature envy, along with concrete code examples for fixes.

Quick Start

Analyze the provided 'Order.ts' file for design improvements.

Frequently Asked Questions about lightweight-design-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze code for design quality improvements at the class level?

To analyze code design quality, evaluate class or module structures across dimensions like naming, coupling, and domain integrity. This process identifies design flaws such as anemic domain models or excessive feature envy, providing structured reports with severity levels and file:line references for actionable refactoring.

What is object calisthenics and how does it improve clean code?

Object calisthenics is a code design discipline evaluated during analysis to enforce strict coding standards, such as single level of abstraction and no properties. Assessing object calisthenics improves clean code by highlighting structural complexity, which helps developers refactor toward better domain-driven design and immutability.

How do I identify an anemic domain model when refactoring?

Identify an anemic domain model by analyzing domain integrity and coupling within your classes. A rigorous code design analysis flags when data and behavior are improperly separated, providing specific file:line references and concrete code examples to fix the model during refactoring.

Can I use this code analysis approach for modules without external dependencies?

Yes, this code analysis approach works for modules without external dependencies. It systematically evaluates internal code flow, type system, and simplicity to provide evidence-based findings, requiring no external libraries to assess design patterns or immutability within your source files.

What's the best way to get actionable recommendations for code refactoring?

The best way to get actionable refactoring recommendations is through evidence-based code analysis that outputs structured reports. By evaluating coupling, immutability, and performance with exact file:line references, developers receive concrete code examples to fix identified design flaws rather than vague suggestions.