Architectural Fitness Functions

•
35
•

Monitors and enforces long-term architectural health through periodic automated checks of system coupling, complexity, and structural integrity.

This skill implements the principles of Evolutionary Architecture within the Claude Code workflow, providing a framework for periodic 'fitness functions' that detect system-wide degradation. Unlike standard linting that gates individual changes, these functions monitor long-term trends such as increasing module coupling, layer boundary violations, and complexity hotspots. By integrating tools like dependency-cruiser, ArchUnit, and custom metrics, this skill helps developers identify 'architectural drift'—the slow accumulation of small violations that eventually lead to technical debt—and ensures the system remains healthy as it evolves.

Key Features

01Automated layer boundary and circular dependency verification
02Tracking of afferent/efferent coupling and instability indices
03Hotspot detection correlating code churn with cognitive complexity
04Test coverage monitoring across specific architectural layers
05Agent-interpreted trend analysis for proactive drift detection
0635 GitHub stars

Use Cases

01Preventing 'spaghetti code' in large-scale applications by enforcing strict dependency directions
02Onboarding new teams to existing architectures by codifying and enforcing structural rules
03Identifying high-risk code hotspots that require refactoring before they become maintenance burdens