c_agri_trade/process/.agents/skills/up-hld-lld-generate/SKILL.md

48 lines
3.0 KiB
Markdown

---
name: up-hld-lld-generate
description: Design HLD/LLD for the remaining, non-architecturally-significant use cases by applying the validated service template from the architecture spike, rather than architecting each module independently from scratch. Use this after up-srs-derive has produced SRS/NFR requirements for the full FR set, following the up-arch-risk-spike walking skeleton. This is Stage 9 (Elaboration) of the UP-AI v1.0 Process (process/AI_Native_Unified_Process_v1.md).
---
# up-hld-lld-generate — Stage 9 (Elaboration)
## Objective
Complete HLD/LLD for all remaining modules by reusing the pattern already proven in the Stage 7 architecture spike (`up-arch-risk-spike`) — folder/module layout, internal API contract shape, tenant-scoping data-model convention, event/queue conventions — instead of re-deriving architecture decisions independently per module.
## When to invoke
- After `up-arch-risk-spike` has published `architecture_spike_report.md` with a validated service template, and `up-srs-derive` has produced SRS/NFR for the FRs in scope.
- When a new use case is added later (via an approved `CR-xxx`) and needs HLD/LLD fitted to the existing template.
## Read first
- `architecture_spike_report.md` (service template and validated patterns)
- `project_sdlc/00_process_control/architecture_risk_register.md` (which use cases are NOT architecturally significant)
- `project_sdlc/03_requirements/use_cases/` (FR-xxx with derived SRS from Stage 8)
- `process/AI_Native_Unified_Process_v1.md` §5 "Stage 9"
## Procedure
Apply the service template and validated patterns from `architecture_spike_report.md` to the remaining use cases (those NOT marked "Architecturally Significant" in `architecture_risk_register.md`).
For each remaining service/module:
- Follow the same folder/module layout, API contract shape, tenant-context propagation, and event/queue conventions already proven in the spike.
- Do not re-derive tenant isolation or integration patterns from scratch — reference the spike's decisions (`DEC-xxx`) directly.
- If a remaining use case does not fit the template, raise it back to `architecture_risk_register.md` and treat it as an unplanned architecturally significant case requiring its own mini-spike (`up-arch-risk-spike`) before proceeding here.
## Output expected
Completed `project_sdlc/04_architecture_design/hld.md`, `lld/LLD-0xx_*.md` (all services), `database_design.md`, `api_design.md`, `integration_design.md`.
## Exit criteria
Every FR resolves to an HLD component and an LLD artifact — checked by `up-traceability-gate` (Gate 9.1), which must pass before Construction begins.
## Sample invocation
> "Run up-hld-lld-generate for the remaining use cases not marked architecturally significant — apply the tenant-scoped module template from architecture_spike_report.md to the User Settings and Notification modules."
## Related skills
Previous: `up-arch-risk-spike` (Stage 7), `up-srs-derive` (Stage 8). Next: `up-traceability-gate` (Gate 9.1), then Construction begins with `up-iteration-plan` (Stage 10).