code-quality

Enforce clean-code principles and project standards across codebases.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/LawrenceWebon/eins --skill code-quality-lawrencewebon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-quality
Source: https://github.com/LawrenceWebon/eins/tree/main/ph-gov-platform/.agent/skills/code-quality
Command: npx skills add https://github.com/LawrenceWebon/eins --skill code-quality-lawrencewebon

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Maintains code quality and consistency by enforcing clean-code principles and standard practices across a codebase.

Core Features & Use Cases

  • Enforces naming conventions, method and class size limits, and consistent exception handling.
  • Guides dependency injection patterns and comments for maintainability.
  • Integrates with code reviews and CI to ensure compliance before merging.

Quick Start

Run the code-quality checker on your latest changes to automatically flag violations and guide refactoring.

Frequently Asked Questions about code-quality

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

FAQPage Schema
How do I enforce clean code standards and naming conventions during code review?

To enforce clean code standards during code review, apply static analysis to detect deviations from defined guidelines, including method length limits, nesting depth, and descriptive naming conventions, guiding refactoring before merging.

What is the maximum method and class length limit for maintaining code quality?

The maximum method length for maintaining code quality is 40 lines, and the maximum class length is 200 lines. Enforcing these size limits during code creation and refactoring prevents deviations from clean-code principles.

How do I check my latest changes for clean code violations and nesting depth limits?

Run a code-quality checker on your latest changes to automatically flag clean code violations. It detects nesting depth exceeding 2 levels and guides refactoring to satisfy explicit project constraints and maintainability.

Can I integrate static analysis and quality assurance into my CI pipeline?

Yes, you can integrate static analysis and quality assurance into CI pipelines. Integrating code-quality checks ensures compliance with clean-code principles, dependency injection patterns, and testing expectations before merging.

What's the best way to guide dependency injection patterns for code maintainability?

The best way to guide dependency injection patterns is enforcing consistent exception handling and comments for maintainability during code creation and refactoring, ensuring structural compliance across the codebase.