Code Quality

Analyzes code quality including style, complexity, dead code, and type hints.

7|1|Updated Jan 14, 2026
One-click install
npx skills add https://github.com/eyadsibai/ltk --skill code-quality-eyadsibai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Code Quality
Source: https://github.com/eyadsibai/ltk/tree/main/plugins/ltk-engineering/skills/code-quality
Command: npx skills add https://github.com/eyadsibai/ltk --skill code-quality-eyadsibai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires black, flake8, isort, mypy, radon, autoflake, vulture, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenges of maintaining high code quality by automating the detection of style violations, code complexity, dead code, and type errors, ensuring a cleaner and more robust codebase.

Core Features & Use Cases

  • Style Compliance: Enforces adherence to language-specific style guides like PEP8 and Black for Python, and ESLint/Prettier for JavaScript.
  • Complexity Analysis: Measures cyclomatic and cognitive complexity, function length, and nesting depth to identify hard-to-understand code.
  • Dead Code Detection: Identifies unused imports, variables, functions, and unreachable code segments.
  • Type Hint Analysis: Validates type annotations for missing hints and type errors, improving code reliability.
  • Use Case: A developer can use this skill to automatically scan their Python project for PEP8 violations, unused imports, and functions exceeding a certain complexity threshold, receiving a report to guide refactoring efforts.

Quick Start

Run a full code quality analysis on the current project directory.

Frequently Asked Questions about Code Quality

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

FAQPage Schema
How do I check my Python project for PEP8 violations and unused imports?

To check Python projects for PEP8 violations and unused imports, you can run an automated static analysis scan. This process uses tools like Flake8 for style compliance and Vulture to identify dead code, providing a report to guide refactoring efforts.

What is cyclomatic complexity analysis and how does it improve code maintainability?

Cyclomatic complexity analysis measures the number of independent execution paths in your code to identify hard-to-understand segments. By highlighting functions with high complexity and deep nesting, it guides refactoring efforts to improve overall code maintainability.

Does this code quality analysis support type hint validation with mypy?

Yes, code quality analysis supports type hint validation with mypy. It automatically validates type annotations to detect missing hints and type errors, which improves code reliability and ensures a more robust codebase.

Can I automatically detect dead code and unreachable segments in my codebase?

Yes, you can automatically detect dead code and unreachable segments in your codebase. The analysis identifies unused imports, variables, functions, and unreachable code segments using specialized static analysis tools like Vulture and autoflake.

What is the best way to enforce Black formatting and isort import sorting?

The best way to enforce Black formatting and isort import sorting is through an automated code quality scan. This process checks style compliance against language-specific guides, ensuring a cleaner codebase and consistent formatting across the project.

Are there limitations to automated static analysis for detecting code complexity?

Automated static analysis for detecting code complexity is limited to measurable syntactic metrics like function length and nesting depth. It cannot evaluate contextual design flaws or runtime performance issues, so manual review is still necessary for comprehensive maintainability assessment.