Diagram Driven Migration Foundry
Use this skill to turn a repository or system brief into a standardized analysis and migration packet.
Core rule
Always make artifacts before making implementation claims.
The minimum artifact pack is defined in references/artifact-contract.md.
Use references/diagram-catalog.md to choose the right views.
Use references/agent-personas.md to choose who should do the work.
Use references/knowledge-base-design.md to decide what knowledge must be retrieved or generated.
Use references/foundry-alignment.md when the work needs to align to a Foundry-style SDLC and team-launch flow.
Workflow decision tree
Existing codebase to understand?
- build the repo map
- extract pseudocode and contracts
- generate the selected diagrams
- stop if the user only asked for analysis
Migration or conversion requested?
- do the analysis flow first
- generate a gap matrix and keep/adapt/rewrite/defer ledger
- map source modules to target crates/modules/services
- generate work orders and verification gates
Dashboard or operating model requested?
- define first-class objects
- define the shell, views, drill-down chain, and evidence model
- generate architecture + UX artifacts before implementation tasks
Mandatory outputs
Always produce these artifacts unless the user explicitly narrows the request:
- intake summary
- artifact manifest
- repo/module/dependency map
- pseudocode ledger
- contract inventory
- selected architecture/behavior diagrams
- work-order graph
- verification plan
- handoff/evidence bundle
For migrations, also produce:
- dependency gap matrix
- target mapping ledger
- keep/adapt/rewrite/defer decisions
- parity criteria
Diagram selection rules
- Use C4 context + container for every non-trivial system.
- Use component diagrams when a container has meaningful internal parts.
- Use code/class diagrams only for critical or complex components; prefer automated generation.
- Use sequence diagrams for runtime interactions.
- Use state machines when there is lifecycle or async state.
- Use ERD when persistence matters.
- Use DFD when data movement matters more than control flow.
- Use wireframes/screen flows/user journeys when operators need a UI surface.
Work-order rules
- One work order per bounded, independently verifiable slice.
- Explicitly declare scope, objective, dependencies, acceptance criteria, and verifier.
- Keep research, planning, implementation, and verification distinct.
Packaging workflow
- Run
scripts/init_project_packet.pyto scaffold a packet directory. - Fill the packet using the artifact contract and templates.
- Run
scripts/validate_packet.pyagainst the output directory. - Package or hand off only after validation passes.
Output structure
Use this default structure unless the user has a stricter schema:
<slug>/
project-intake.md
artifact-manifest.json
architecture/
behavior/
code/
contracts/
migration/
execution/
verify/
evidence/
release/
References
references/diagram-catalog.md— which diagrams exist and when to use themreferences/artifact-contract.md— minimum packet shapereferences/agent-personas.md— role and mindset guidancereferences/knowledge-base-design.md— what knowledge to retrieve and storereferences/foundry-alignment.md— how to align to Foundry-style SDLC, work orders, and team-launch artifacts
Assets
Use the templates in assets/templates/ when scaffolding output packets.
Source: Xellos1010/sdlc-visual-workflow-workspace — distributed by TomeVault.