Architectural Agent Contract

0•

Enforces strict architectural patterns and behavioral guarantees for AI agents to ensure code integrity and maintainability.

The Agent Contract skill establishes a non-negotiable framework for Claude, ensuring it adheres to high-level design principles like Screaming Architecture and Vertical Slices. By defining rigid dependency directions—from Controllers to Services to Repositories—and mandating specific quality gates, this skill prevents architectural drift and technical debt. It includes a robust escalation protocol that forces the agent to stop and seek human clarification whenever it encounters ambiguity, policy violations, or the need for new dependencies, making it an essential tool for teams requiring deterministic and reviewable AI-generated code.

Key Features

01Screaming Architecture & Vertical Slice enforcement
020 GitHub stars
03Automated quality gates for compilation and test passing
04Mandatory traceability for every code decision and assumption
05Strict dependency direction validation (Controller → Service → Repository)
06Defined escalation triggers for human-in-the-loop clarification

Use Cases

01Maintaining architectural consistency across complex .NET backend services
02Onboarding AI agents to projects with strict compliance and documentation standards
03Preventing business logic leakage into controllers or data access layers