arch-constraint-guard

Enforce architectural constraints from CONSTRAINTS.md during code edits and PRs.

20|3|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/DVNghiem/FlowDeck --skill arch-constraint-guard
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: arch-constraint-guard
Source: https://github.com/DVNghiem/FlowDeck/tree/main/src/skills/arch-constraint-guard
Command: npx skills add https://github.com/DVNghiem/FlowDeck --skill arch-constraint-guard

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Block edits that violate architectural boundaries, team rules, service contracts, or domain-layer separation. Reads rules from .codebase/CONSTRAINTS.md.

Core Features & Use Cases

  • Enforces architectural boundaries before writes or edits.
  • Validates forbidden paths, layer dependencies, and contract changes.
  • Generates clear violation reports with actionable guidance for remediation.

Quick Start

Inspect a proposed change and ensure it complies with the defined constraints before merging.

Frequently Asked Questions about arch-constraint-guard

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce architectural constraints before code edits are merged?

To enforce architectural constraints before code edits, apply a static analysis guard that reads rules from a CONSTRAINTS.md file, validates target paths, checks imports against layer rules, and blocks edits violating boundaries before merging.

What is architectural boundary enforcement and how does it prevent improper layer dependencies?

Architectural boundary enforcement prevents improper layer dependencies by evaluating code edits against predefined rules, detecting forbidden paths and contract violations, and generating precise remediation guidance to maintain codebase separation.

How do I validate service contracts and forbidden paths during a code review?

Validate service contracts and forbidden paths during code review by applying an architectural constraint check that compares proposed edits against defined constraints, detects violations, and reports actionable remediation guidance.

Can I use static analysis to block edits that violate domain layer separation in my codebase?

Yes, you can block edits violating domain layer separation by applying a static analysis constraint guard that reads architectural rules, validates imports and paths, and prevents writes breaking layer dependencies or service contracts.

What is the best way to define codebase governance rules for automated code review?

Define codebase governance rules by documenting forbidden paths, layer dependencies, and service contracts in a constraints file, enabling an automated guard to evaluate edits and report violations with remediation guidance.