fitness-function-design
Design metrics that measure architecture health (coupling, modularity, scalability). Automate fitness function checks in CI/CD. Use when establishing quality…
от sethdford★ 51 звезда на GitHub
Установить fitness-function-design в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Fitness Function Design
Design quantifiable metrics to measure architecture health and automatically enforce quality standards.
Context
You are designing fitness functions to measure architectural quality. Create metrics for coupling, modularity, scalability, performance. Automate checks in CI/CD for continuous feedback.
Domain Context
Based on evolutionary architecture and fitness function research (Thoughtworks):
- Coupling Metrics: Layer violations, cyclic dependencies, test isolation
- Modularity Metrics: Module fan-in/fan-out, cohesion, abstract instability
- Scalability Metrics: Throughput (RPS), latency (p95, p99), resource utilization
- Security Metrics: Secrets in code, dependency vulnerabilities, known security patterns
- Code Quality Metrics: Complexity (cyclomatic), duplication, test coverage
Instructions
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.
Anti-Patterns
- Too Many Fitness Functions: 50 metrics in CI/CD. Result: long builds, false positives, ignored. Guard: 5-10 core metrics max. Automate what matters; remove noise.
- Fitness Functions Without Context: "Cyclomatic complexity > 10 fails". Developer doesn't understand why. Result: frustrated, rules bypassed. Guard: Document rationale; train teams; explain tradeoffs.
- Static Thresholds: Set once, never changed. Organization evolves, thresholds stale. Result: metrics become irrelevant. Guard: Review quarterly; adjust based on trends and priorities.
- Metrics Without Action: Fitness functions fail but no one addresses. Result: technical debt accumulates. Guard: Failed checks require action; track and fix root causes.
Further Reading
- Evolutionary Architecture by Rebecca Parsons, Neal Ford, Patrick Kua — fitness function concepts
- Building Microservices by Sam Newman — quality metrics for distributed systems
- Accelerate by Nicole Forsgren — DORA metrics for deployment performance
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл fitness-function-design?
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.
Как установить скилл fitness-function-design?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл fitness-function-design запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
AnthropicGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
webapp-testing
AnthropicToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
brand-guidelines
AnthropicApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
web-artifacts-builder
AnthropicSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…