Skip to main content
Run any Skill in Manus
with one click

architecture-fitness-functions

Stars0
Forks0
UpdatedJuly 10, 2026 at 22:42

Turn a codebase's prose architecture invariants (constitution/AGENTS.md hard rules, design-spec acceptance criteria, capability matrices) into deterministic, CI-enforced conformance tests — "architecture fitness functions" — so agents can't quietly break global invariants while every local test stays green. Covers the named invariant register, structural (build-time) vs behavioral (runtime) checks, the deterministic-not-LLM enforcement rule, grounding tests in real runtime code, and verifying drift is genuine before flagging it. Use when an agent-written or fast-moving codebase is drifting from its intended architecture, when you want to formalize "the architecture we actually want" and stop regressions in CI, or when reviewing whether a refactor preserved a system's global contracts.

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

SKILL.md
readonly