solid-principles_skill

This skill analyzes Python code to apply and validate SOLID principles, highlighting violations and offering actionable refactor suggestions for maintainable
  • Python

2

GitHub Stars

1

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill pluginagentmarketplace/custom-plugin-software-design --skill solid-principles

  • SKILL.md6.4 KB

Overview

This skill applies and validates SOLID principles in object-oriented code to identify design issues and suggest concrete improvements. It provides a compliance score, lists violations per principle, and can optionally show example fixes for detected problems. The skill is language-aware and configurable for strictness and focus areas.

How this skill works

The analyzer parses the provided code into an AST and inspects structural and behavioral indicators tied to each SOLID principle (SRP, OCP, LSP, ISP, DIP). It reports violations with locations, severity, and actionable suggestions, and computes a numeric compliance score along with per-principle metrics. Options let you focus on selected principles, adjust validation strictness, and include example refactorings.

When to use it

  • Assess design quality during code reviews or refactoring planning
  • Validate new implementations against SOLID before merging
  • Identify responsibility or dependency problems in legacy or monolithic classes
  • Measure progress after refactorings by tracking compliance score over time
  • Enforce architectural guidance in CI pipelines or automated checks

Best practices

  • Start with relaxed analysis to get broad insights, then increase strictness for targeted cleanup
  • Run focused checks on one principle when addressing a specific smell (e.g., ISP for large interfaces)
  • Use suggestions as a starting point; review proposed refactorings to fit domain constraints
  • Split large files into modules before analyzing to avoid context overflow errors
  • Combine automated results with manual review for behavioral issues not detectable statically

Example use cases

  • Detect a god class violating SRP and get concrete extraction suggestions (services, repositories)
  • Find switch/type checks that indicate OCP violations and propose strategy/template pattern opportunities
  • Spot overridden methods that break LSP and highlight pre/postcondition mismatches
  • Locate large interfaces or unused methods to guide ISP-driven interface segregation
  • Reveal direct instantiation and missing abstractions to recommend dependency inversion via constructor injection

FAQ

The skill supports common OO languages: TypeScript, JavaScript, Python, Java, C#, Go, and Ruby.

What does strictness control?

Strictness adjusts detection sensitivity: relaxed finds obvious issues, normal balances precision and recall, strict flags subtle or borderline design smells.

How large can the code input be?

Inputs should be between 10 and 50,000 characters; very large modules should be split to avoid context overflow.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational
solid-principles skill by pluginagentmarketplace/custom-plugin-software-design | VeilStrat