Codebase Health is a diagnostic tool specifically designed to bridge the gap between human-written code and AI-driven development. It scans your repository for 'complexity hotspots'—files that are too large or structures that are too deeply nested for Claude and other AI agents to process effectively within their context windows. By providing an Agent Readiness Score and identifying specific architectural anti-patterns, the skill helps developers maintain a modular, maintainable codebase that AI agents can navigate, understand, and modify with significantly higher precision and lower error rates.
主な機能
01Supports CI/CD integration with configurable error thresholds to prevent code quality regression.
02Identifies files exceeding optimal line-of-code (LOC) thresholds for LLM context windows.
03146 GitHub stars
04Calculates a proprietary Agent Readiness Score (0-100) based on AI compatibility metrics.
05Generates detailed reports in multiple formats including JSON for automation and Markdown for documentation.
06Detects structural anti-patterns such as barrel files, generic naming, and deep directory nesting.
ユースケース
01Auditing a legacy repository to prepare for an AI-augmented development workflow.
02Prioritizing refactoring tasks by identifying the largest and most complex files in a project.
03Implementing automated CI gates to ensure new code remains modular and agent-friendly.