capability-assess-code-quality

Assesses code quality metrics and generates reports with complexity, coverage, and maintainability scores.

Updated Mar 31, 2026
One-click install
npx skills add https://github.com/learnn-com/engineering-kb --skill capability-assess-code-quality-learnn-com
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: capability-assess-code-quality
Source: https://github.com/learnn-com/engineering-kb/tree/main/.skills/capability-assess-code-quality
Command: npx skills add https://github.com/learnn-com/engineering-kb --skill capability-assess-code-quality-learnn-com

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Evaluating codebase health objectively is difficult without consistent metrics. This Skill automates code quality assessment by measuring complexity, size, test coverage, duplication, and maintainability, then producing a structured report with prioritized recommendations. ## Core Features & Use Cases - Multi-Metric Analysis: Measures cyclomatic and cognitive complexity, function/file size, test coverage, code duplication, and a composite maintainability index (0-100). - Idempotent Re-Assessment: Detects existing quality reports, checks staleness via git diff, and only re-assesses when the codebase has changed. - Hotspot Detection & Recommendations: Flags files exceeding multiple thresholds and generates prioritized, actionable improvement suggestions. - Use Case: Before a code review, run an assessment on a changed module to identify functions with cyclomatic complexity above 10 and files over 300 lines, then feed the hotspots into the review discussion. ## Quick Start Ask the AI to assess the code quality of the current project and generate a report with complexity, coverage, and maintainability metrics.

Frequently Asked Questions about capability-assess-code-quality

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

FAQPage Schema
How do I assess code quality metrics for a codebase?▼

Invoke the assessment with an optional scope and path to measure cyclomatic complexity, function length, test coverage, duplication, and a maintainability index. The output is a structured report classifying each metric against thresholds with hotspots and recommendations.

What metrics are included in a code quality report?▼

The report covers cyclomatic and cognitive complexity, lines of code per file and function, line/function/branch test coverage, code duplication ratio, and a composite maintainability index scored 0-100. Each metric is classified against defined thresholds.

Can I limit the quality assessment to specific files or directories?▼

Yes, pass a path argument to restrict analysis to a specific file, directory, or package, and a scope argument to select metric groups like complexity or coverage. Omitting both assesses the full codebase.

Does the code quality assessment modify my source files?▼

No, the assessment is read-only. It inspects code and runs existing test commands for coverage data but never modifies files, making it safe to run at any point in the development workflow.

What happens if no coverage tool is available during assessment?▼

The assessment degrades gracefully by skipping test coverage metrics and noting 'Coverage: SKIPPED — no coverage tool detected' in the report. Other metric groups like complexity and size are still collected normally.

Why does re-running the assessment skip the full analysis?▼

The skill is idempotent: it detects an existing quality report and checks staleness using git diff. If the codebase is unchanged, it confirms the existing report instead of re-assessing; if files changed, it proceeds with a fresh assessment.