code-quality-check

Automate pre-commit code quality checks and generate violation reports.

6|1|Updated Nov 8, 2025
One-click install
npx skills add https://github.com/LEEI1337/phantom-neural-cortex --skill code-quality-check-leei1337
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-quality-check
Source: https://github.com/LEEI1337/phantom-neural-cortex/tree/main/.claude/skills/code-quality-check
Command: npx skills add https://github.com/LEEI1337/phantom-neural-cortex --skill code-quality-check-leei1337

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a structured checklist to ensure code quality before commits, covering SOLID principles, clean-code guidelines, error handling, performance, security, testing, and documentation.

Core Features & Use Cases

  • SOLID Principles: Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, Dependency Inversion.
  • Clean Code Rules: readable names, small functions, limited parameters, no magic numbers, DRY, purposeful comments.
  • Error Handling: catch errors, meaningful messages, proper logging.
  • Performance: avoid N+1 queries, proper indexing, caching, lazy loading.
  • Security: input validation, output sanitization, secrets in env vars.
  • Testing: unit tests, edge cases, mocks, coverage targets.
  • Documentation: public APIs documented, examples provided.

Quick Scan

  • Run quick checks for TODOs, TODO/FIXME markers, and hardcoded credentials.
  • Run linter and tests to ensure quality gates pass.

Frequently Asked Questions about code-quality-check

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

FAQPage Schema
How do I automate code quality checks before committing code?

Automate code quality checks by running pre-commit verification that scans for SOLID principle violations, clean code issues, error handling gaps, performance problems, security flaws, insufficient test coverage, and missing documentation. The Skill produces a structured report of violations with suggested remediations integrated into your linting, testing, and CI workflows.

What code quality aspects does a pre-commit check cover?

Pre-commit checks cover SOLID principles, clean code rules like naming and function size, error handling and logging, performance optimization, security validation and sanitization, unit test coverage, and API documentation. Quick scans also flag TODOs, FIXME markers, and hardcoded credentials before linting and tests run.

Can I use code quality checks with my existing linting and testing workflow?

Yes. Code quality checks integrate with your existing linting, testing, and CI workflows as pre-commit hooks. They apply verification rules, produce structured violation reports, and suggest remediations alongside your current tools without replacing them.

How do I catch security issues and performance problems during code review?

Security checks validate input, sanitize output, and ensure secrets use environment variables. Performance checks detect N+1 queries, verify proper indexing and caching, and flag lazy-loading gaps. Both are applied during pre-commit verification and reported in the structured quality report.

What happens if code quality checks find violations?

The Skill produces a structured report listing all violations organized by category—SOLID, clean code, error handling, performance, security, testing, and documentation—with suggested remediations for each. Violations block commit until addressed or explicitly overridden.

Do I need to configure individual checks or use a preset checklist?

The Skill provides an explicit structured checklist covering SOLID principles, clean-code guidelines, error handling, performance, security, testing, and documentation. This checklist applies automatically during pre-commit verification without requiring per-check configuration.