---
description: Generate architecture tests for all standards configured in this project. Run after `agency-standards init`.
allowed-tools: Read, Write, Glob, Grep, Bash
---

Generate architecture tests for this project.

## Project context
!`agency-standards context`

## Standards to enforce
!`agency-standards standards prompts`

## Instructions

For each standard listed above:

1. Generate a pytest architecture test file at the output path shown for that standard.
2. The file must begin with exactly these two lines (substituting the real standard ID):
   ```
   # GENERATED by agency-standards | standard: <standard-id>
   # --- CUSTOM (preserved on update) ---
   ```
3. Use static analysis only — Python `ast` module or plain file scanning. Do not require external libraries beyond `pytest`.
4. Collect **all** violations before failing; report each with a clear, actionable message including the offending file path and line number where possible.
5. Adapt the test to the actual project structure shown in the project context above (real source dirs, test dirs, file patterns).
6. Keep each test file focused on one standard.

After writing all test files, also create or update `CLAUDE.md` to document the conventions each standard enforces.

Finally, run `pytest tests/architecture/ -v` to verify the generated tests work.
