What problem does it solve? Architecture rules written in prose (agent root files, ADRs, code review comments) get violated repeatedly because nothing enforces them automatically. This Skill turns those prose rules into deterministic, automated tests — fitness functions — that detect violations at test time instead of relying on reviewers remembering the rules. ## Core Features & Use Cases - Rule-to-Test Conversion: Promotes any documented architecture rule into an automated test following the pattern: Rule → Detector → Assert → actionable failure message with file, line, and fix suggestion. - Five Rule Families: Covers layer dependency direction, single gateway for dangerous operations, forbidden patterns, hardcoded secrets, and mandatory output contracts. - Stack-Agnostic Examples: Provides working implementations for Python/pytest (ast + regex), Swift (Python scanner scripts or SwiftLint custom rules), Kotlin (Konsist or Detekt), and Node/TypeScript (dependency-cruiser, ESLint). - Use Case: Your team keeps finding domain code importing the API layer in reviews. Use this Skill to write a pytest fitness function that parses imports with the ast module and fails CI with exact file:line violations, so the rule is enforced on every commit. ## Quick Start Ask the agent to convert the architecture rule "domain must not import outer layers" into an automated fitness function test for my Python project.