Intent-Driven Engineering — TeamBrain™ Framework
Before writing code, read:
/intent/architecture.intent.md— Why this system exists and what it must never compromise./intent/constraints.md— The architectural rules derived from intent.
If these files are missing or incomplete, stop. Resolve intent before building.
repo/
├── intent/
│ ├── architecture.intent.md ← Start here. Always.
│ └── constraints.md ← Rules derived from intent
│
├── src/ ← Application source code
├── infra/
│ └── intent-aligned-architecture.md ← Cloud decisions traced to intent
├── prompts/
│ └── system.prompt.md ← AI operating instructions (version controlled)
├── tests/
└── README.md
Paste the contents of /prompts/system.prompt.md into your AI session before asking for code, architecture, or infrastructure recommendations.
This ensures the AI operates inside declared constraints — not as a generic code generator.
This repo enforces the following checks on every PR:
-
/intent/architecture.intent.mdexists and is non-empty -
/intent/constraints.mdexists and is non-empty - No secrets detected in committed files
- Infrastructure drift check passes (if applicable)
PRs that fail intent checks are blocked from merge.
If you believe a constraint must be violated to ship:
- Do not silently work around it.
- Open a PR that names the violation explicitly.
- Get approval from the intent owner listed in
architecture.intent.md. - Document the exception and remediation deadline in
constraints.md.
Intent is not permanent. It must be revisited when trigger conditions are met.
See the trigger conditions listed in /intent/architecture.intent.md.
Built on the TeamBrain™ Intent-Driven Engineering Framework.