generate-architecture
Generate the host repository ARCHITECTURE.md by composing one or more selected templates from ./.architecture/.
SKILL.mdskills/generate-architecture/SKILL.md
GitHubWhen to use
Use when ../ARCHITECTURE.md is missing or when the user wants to regenerate it after changing the repo architecture mix.
Workflow
- If
../ARCHITECTURE.mdis missing, ask the user which templates from./.architecture/apply unless they already selected them. The existence of project context does not select an architecture. - Support multiple templates for mixed-stack repositories.
- Record task-specific selection evidence under
<project-root>/.hephaera/.cache/tasks/<task>/when a task exists; keep the authoritative contract at the project root. - Generate
../ARCHITECTURE.mdfrom the selected templates using concise read directives by default (for exampleRead \./.hephaera/.architecture/DOTNET.md` instructions`) to avoid oversized files. - Use inline mode only when the user explicitly asks for fully embedded template content.
- Treat
../ARCHITECTURE.mdas the authoritative architecture contract afterward.
Commands
./commands/generate-architecture.sh "<TEMPLATE1>" ["TEMPLATE2" ...]./commands/generate-architecture.sh --inline "<TEMPLATE1>" ["TEMPLATE2" ...]