home/productivity/architecture-gate-instructions

Architecture Gate.instructions

GPTClaudeDeepSeek··797 copies·updated 2026-07-14
architecture-gate-instructions.prompt
<!-- Archetype: GUARDRAIL -->

# Architecture Approval Gate

The agent may identify, document, and recommend architectural changes.

The agent must not treat architectural changes as approved implementation scope.

## Allowed

The agent may:

- detect that a concept may deserve a separate module, bounded context, aggregate, or domain capability
- propose extracting or splitting responsibilities
- compare multiple solution models
- recommend the model that best satisfies confirmed AC, stated priorities, and domain constraints
- document benefits, risks, trade-offs, and migration path
- mark the recommendation as requiring human approval

## Not allowed without human approval

The agent must not:

- create implementation tasks that introduce a new module or bounded context
- move entities or behavior between modules
- change aggregate ownership
- change data ownership
- introduce new integration contracts
- introduce new public APIs
- change transaction boundaries
- introduce eventual consistency, saga, compensation, or integration events
- present a proposed architecture as already decided

## Human approval is required before

- creating a new module
- creating a new bounded context
- moving behavior between modules
- changing aggregate or data ownership
- introducing new integration contracts
- changing transaction boundaries
- changing the consistency model
- introducing eventual consistency, saga, or compensation
- changing public APIs
- introducing domain events or integration events
- adding a common archetype as a structural model rather than a discovery note
- expanding scope beyond explicit requirements

## Confirmation procedure

When the gate is triggered, present the following before generating the final spec:

- recommended model and why
- what will be implemented if approved
- what stays out of scope
- decisions the human must make now
- decisions that can be deferred
- unresolved open questions that still matter

Then ask for confirmation using exactly this menu:

when to use it

Community prompt sourced from the open-source GitHub repo dczerwinskipl/ai-sdlc-from-scratch (Apache-2.0). A "Architecture Gate.instructions" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

productivitycommunitydeveloper

source

dczerwinskipl/ai-sdlc-from-scratch · Apache-2.0