Design metrics that measure architecture health (coupling, modularity, scalability). Automate fitness function checks in CI/CD. Use when establishing quality gates or measuring architectural degradation.
How this skill is triggered — by the user, by Claude, or both
Slash command
/architecture-governance:fitness-function-designThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Design quantifiable metrics to measure architecture health and automatically enforce quality standards.
Design quantifiable metrics to measure architecture health and automatically enforce quality standards.
You are designing fitness functions to measure architectural quality. Create metrics for coupling, modularity, scalability, performance. Automate checks in CI/CD for continuous feedback.
Based on evolutionary architecture and fitness function research (Thoughtworks):
Identify Key Quality Attributes: What matters most? Scalability? Security? Testability? Maintainability? Pick 3-4.
Define Metrics for Each Attribute: Scalability: p99 latency < 200ms, peak RPS capacity. Security: zero secrets in code, all dependencies scanned. Testability: > 80% test coverage, no untestable dependencies.
Set Thresholds: Below threshold: pass. Above: fail (blocks merge). Make thresholds achievable but stretch. Too strict: teams bypass. Too loose: no effect.
Automate Checks: Integrate into CI/CD. Run on every PR. Parse test coverage reports, dependency scanners, performance benchmarks. Fail PR if fitness functions breach.
Monitor and Adjust: Track metrics over time. Are they trending right? Do developers understand why they matter? Adjust thresholds based on feedback and organizational priorities.
npx claudepluginhub sethdford/claude-skills --plugin architect-governanceDesigns architectural fitness functions as GC rules for periodic checks of system-wide properties like layer boundaries, coupling trends, complexity hotspots, and test coverage decline.
Enforces .NET architectural boundaries using NetArchTest and ArchUnitNET fitness functions for dependencies, layers, and performance. Generates test code and validates rules.
Architecture review skill assessing structural integrity, coupling, cohesion, resilience, and evolutionary fitness. Used by review orchestrators, not invoked directly.