code-health

Analyze code complexity, test coverage, duplication, dependency freshness, and type safety.

Updated Jun 21, 2026
One-click install
npx skills add https://github.com/apexradius/agentic-os --skill code-health-apexradius
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-health
Source: https://github.com/apexradius/agentic-os/tree/main/skills/code-health
Command: npx skills add https://github.com/apexradius/agentic-os --skill code-health-apexradius

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires eslint, sonarqube, npm, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a comprehensive assessment of code quality and technical debt, allowing developers to quickly identify areas for improvement.

Core Features & Use Cases

  • Complexity Analysis: Measures the complexity of code to identify potential areas of refactoring.
  • Test Coverage: Evaluates the extent of test coverage to ensure critical paths are tested.
  • Duplication Detection: Identifies duplicated code blocks to reduce redundancy.
  • Dependency Freshness: Checks for outdated dependencies and potential security vulnerabilities.
  • Type Safety: Assesses the use of types and generics to improve code reliability.
  • Use Case: Use this Skill to evaluate the health of a codebase before a major release or when taking over a new project.

Quick Start

Run the code-health skill on your codebase to get a detailed health score and recommendations.

Frequently Asked Questions about code-health

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

FAQPage Schema
How do I assess code quality and technical debt in my codebase?

To assess code quality and technical debt, you can evaluate code complexity, test coverage, duplication, dependency freshness, and type safety to generate a detailed health score and guide refactoring efforts.

What is the best way to identify areas for refactoring before a major release?

The best way to identify refactoring areas before a release is to analyze code complexity and duplication, which pinpoints redundant code blocks and highly complex modules that require immediate attention.

Does code health analysis work with ESLint and SonarQube?

Yes, code health analysis works with ESLint and SonarQube. These tools are required dependencies for analyzing codebase issues, evaluating type safety, and detecting linting errors.

How do I check for outdated dependencies and security vulnerabilities?

To check for outdated dependencies and security vulnerabilities, you can perform a dependency freshness evaluation using npm. This process identifies outdated packages and potential security risks within your project.

Why does measuring test coverage matter for technical debt?

Measuring test coverage matters for technical debt because it evaluates the extent of your tested critical paths. Low coverage indicates untested code, representing hidden technical debt and reliability risks.

Can I evaluate type safety and generics to improve code reliability?

Yes, you can evaluate type safety and generics to improve code reliability. Analyzing type usage identifies weakly typed code blocks, ensuring your codebase maintains strong type definitions and reducing runtime errors.