From lattice
Guides a progressive design workflow from context anchoring through 5 levels to an approved blueprint. Handles new features and resuming existing work.
How this skill is triggered — by the user, by Claude, or both
Slash command
/lattice:design-blueprintThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Read apply skills order:
Read apply skills order:
framework:knowledge-priming -- Load project context (tech stack, architecture, conventions) ground decisions real projectframework:context-anchoring -- Create or load feature context anchor docframework:learning-harvest -- Load prior operational learnings inform design; harvest new patterns at session end (always)framework:collaborative-judgment -- Surface real design judgment calls structured options instead silent assuming (always)framework:design-first -- Walk through 5 progressive design levelsframework:architecture -- Apply structural rules Component and Interaction levelsframework:domain-driven-design -- Apply domain modeling Component, Interaction, Contract levelsUse framework:learning-harvest Load behavior. Focus hint: "design session — focus: design patterns, reliability, structural health".
Use framework:context-anchoring set up feature living doc.
Load requirement constraints: Read requirement_doc from context doc frontmatter.
## Technical Constraints. Treat as non-negotiable — same authority as architecture rules. Surface to user before Level 1.framework:collaborative-judgment. User decides; record any change back in requirement doc ## Technical Constraints before continuing.If key use cases or success criteria unclear now, use framework:collaborative-judgment surface what needs answering before starting Level 1.
Drive through framework:design-first 5 levels sequentially. Each level, present design output, get user approval, then persist approved output into context anchor doc before advancing.
Enrichment rule: After user approves each level, use framework:context-anchoring Enrich behavior write following into context doc:
NOT advance next level until current level output persisted.
When applying architectural atoms each level, use framework:collaborative-judgment surface real design judgment calls immediately — not batch during design.
Apply architectural atoms levels where add value:
Level 1 (Capabilities):
framework:design-first.## Design: Level 1 -- Capabilities section.Level 2 (Components):
framework:architecture -- validate each component maps defined architectural layer, dependencies follow loaded architecture rules, component boundaries clear.framework:domain-driven-design -- identify aggregates, entities, value objects. Determine which components live domain layer which infrastructure.## Design: Level 2 -- Components section. Log architectural decisions (layer choices, DDD classifications) Decisions Log.Level 3 (Interactions):
framework:architecture -- validate data flows follow patterns defined loaded architecture doc and boundary crossing rules respected.framework:domain-driven-design -- define aggregate interactions, domain events. Cross-aggregate communication should use domain events eventual consistency.## Design: Level 3 -- Interactions section. Log flow decisions Decisions Log.Level 4 (Contracts):
framework:domain-driven-design -- define repository interfaces, value object types, aggregate root boundaries. Contracts should reflect tactical patterns agreed earlier levels.framework:architecture -- validate contracts respect boundary-data rules and interface ownership per loaded architecture doc.## Design: Level 4 -- Contracts section. Log contract decisions Decisions Log.After Level 4 (Contracts) approved and persisted:
Verify completeness: Context doc must now contain all four design level sections (Capabilities, Components, Interactions, Contracts) plus every decision made during design process. If any level output missing from doc, enrich now before proceeding.
Check requirement spec drift: Read requirement_doc from context doc frontmatter.
[path]. Verify before continuing."## Technical Constraints. For each divergence, write to requirement doc ## Links as a discrete file edit:
- Design override: \[field/behavior]` — changed from [X] to [Y]. Reason: [from Decisions Log].`- Design alignment: L4 consistent with requirement spec — no overrides.status: approved until this check is complete and overrides are written.Write design summary: Use framework:context-anchoring Enrich add ## Design Summary section to context doc containing:
Set approved status: Write status: approved to context doc frontmatter. STOP: discrete file edit — not prose. Without this, code-forge will not proceed.
Log completion decision: Add decision entry Decisions Log: "Design approved at Level 4. Status set to approved — ready for implementation."
Present summary user as confirmation.
Design complete. NOT proceed Level 5 (Implementation).
Use framework:learning-harvest Harvest behavior. Session context: "design session — architectural decomposition and contract definition". Synthesize and propose cross-cutting patterns from this session — decomposition approaches, architectural trade-offs, scope decisions that could inform future designs. User confirms what enters the document.
Suggest user invoke /code-forge when ready begin coding against the approved design.
npx claudepluginhub techygarg/lattice --plugin latticeGuides structured design thinking through 5 progressive levels before writing code: Capabilities, Components, Interactions, Contracts, Implementation. Use for new features, significant refactors, or module design.
Collaboratively brainstorms architecture, patterns, and trade-offs to produce a design document. Activates on 'design this', 'create a design', 'brainstorm approaches', or 'write a design doc'.
Guides design exploration before implementation, using parallel investigation agents to explore user intent, requirements, and impact. Invoked automatically for creative work.