Context
PR #65 shipped C4 Mermaid diagram templates (#50). The /handover skill already generates a structured assessment when adopting an external repo into the ApexStack portfolio. This issue wires up auto-generation of a stub L2 container diagram alongside the existing assessment output.
User Story
As a CTO adopting a new repo into my ApexStack portfolio, I want /handover <project> to produce a starter projects/<name>/architecture/container.md file with detected containers pre-filled (from package.json, Dockerfile, docker-compose.yml, etc.), so I don't have to manually open the template and re-type what's obvious from the repo's surface.
Acceptance Criteria
Out of Scope
- L1 context auto-gen (L1 requires external-system knowledge the repo doesn't always expose)
- L3+ diagrams (see follow-up for Structurizr DSL)
- Non-Mermaid formats
- Perfect accuracy — this is a starting point, not a final diagram
Related
Context
PR #65 shipped C4 Mermaid diagram templates (#50). The
/handoverskill already generates a structured assessment when adopting an external repo into the ApexStack portfolio. This issue wires up auto-generation of a stub L2 container diagram alongside the existing assessment output.User Story
As a CTO adopting a new repo into my ApexStack portfolio, I want
/handover <project>to produce a starterprojects/<name>/architecture/container.mdfile with detected containers pre-filled (frompackage.json,Dockerfile,docker-compose.yml, etc.), so I don't have to manually open the template and re-type what's obvious from the repo's surface.Acceptance Criteria
/handoverwritesprojects/<name>/architecture/container.mdalongside the existingprojects/<name>/handover-assessment.mdpackage.jsonwith Next.js / React / Express → Web App / API containersdocker-compose.ymlservices → one container per serviceDockerfileat repo root → one Container with detected base imagedrizzle.config.ts,prisma/schema.prisma,DATABASE_URLin.env.example) →ContainerDbprojects/<name>/architecture/container.mdalready exists, skip (don't overwrite)Out of Scope
Related
docs/agdr/AgDR-0003-mermaid-c4-for-diagrams.md