From lattice
Generates implementation code from approved design blueprints or verbal requirements, composing architecture, clean code, DDD, security, and test quality. Use for 'implement', 'code this', or 'build it' requests.
npx claudepluginhub techygarg/lattice --plugin latticeThis skill uses the workspace's default tool permissions.
Read, apply:
Orchestrates iterative code implementation with Object Oriented Design, Clean Architecture, and API Design reviews until all approve or safety valve triggers. Use for enforcing high design standards.
Generates implementation blueprints from approved specs: proposes 2-3 approaches with trade-offs, presents designs for section-by-section approval before coding.
Guides Development phase of Double Diamond workflow using Codex and Gemini CLIs. Detects dev context/subtypes (frontend-ui, cli-tool, api-service) and enforces execution sequence.
Share bugs, ideas, or general feedback.
Read, apply:
framework:knowledge-priming -- Load proj context (stack, arch, conventions) so impl matches real proj (always)framework:context-anchoring -- Load/find context anchor doc; enrich as impl decisions made (always)framework:collaborative-judgment -- Surface real judgment calls w/ structured opts vs silent assume (always)framework:architecture -- Layer place, dep direction, struct valid (always)framework:clean-code -- Craft rails: SRP, naming, complexity, err handle (always)framework:domain-driven-design -- Aggregates, entities, VOs, domain svcs (conditional: only when touch domain folder)framework:secure-coding -- Trust bounds, injection prevent, secrets mgmt (conditional: only boundary-cross code)framework:test-quality -- AAA struct, isolation, assert quality, naming (always when write tests)Load learnings: If .lattice/learnings/review-insights.md exists, read. Use recent insights inform gen — e.g., learnings say "anemic domain models keep appear," push behavior→entities. Learnings flag "missing input valid on VOs," valid in constructors from start. Patterns from past reviews — use avoid repeat mistakes.
Use framework:context-anchoring Doc Discovery check existing context anchor doc for feature impl.
With blueprint: Extract component list, layer assigns from context anchor doc. Use L2 (Components) decisions for layer place, L3 (Interactions) for dep flow.
Without blueprint: Classify req components→arch layers using layer defs from framework:architecture. Each component, determine:
If framework:architecture no loaded layer defs (neither defaults nor custom doc resolved), warn: "No arch rules avail. Run /architecture-refiner define arch standards. Proceed w/o arch guidance." Continue w/ only remaining atom rails.
Present proposed layer assigns→user for approval before proceed.
Both cases, plan inside-out impl order following dep direction from loaded arch doc — start innermost layer (no outward deps), work outward. Each layer's deps should exist when built.
Classify each op per flow patterns in loaded arch doc (e.g., cmd vs query flows, or equiv distinction your arch style).
Present impl plan -- ordered component list, layer assigns, flow classifs -- confirm w/ user before write code.
After plan approved, ask user choose review mode:
"How review impl?"
- Layer-by-layer (rec) -- Impl each layer fully, pause for review before next. One review pt/layer.
- Full autonomy -- Impl everything end-to-end, present complete result. One review pt at end. (If blueprint exists, still pause any deviation from approved design.)
- Component-by-component -- Pause after each individual component for feedback. Max review pts.
Default layer-by-layer if user no preference.
Each component in planned order, gen code+tests together -- tests not afterthought.
Every component:
framework:architecture. Valid dep direction follows loaded arch rules.framework:clean-code self-valid during gen. Run inline checks: SRP comply, meaningful naming, low cyclomatic complexity, proper err handle, no magic vals, clean func sigs, no dead code, appropriate abstract level, clear control flow, minimal comments (code self-doc).framework:test-quality self-valid.Conditional checks per component:
framework:domain-driven-design self-valid.framework:secure-coding self-valid.Post-Gen Verification (applies every component, all review modes):
After gen each component, before present→user:
framework:collaborative-judgment protocol before show code. Don't silent resolve.Pacing -- follow user's chosen review mode:
Step checks arch coherence -- not code quality (verified per-component Step 3). After all components impl:
framework:architecture verif across all components — verify inter-component dep direction follows loaded arch rules. No layer import from layer not permitted depend.framework:secure-coding across component boundaries. Check data flowing between components crosses trust bounds safely..lattice/learnings/review-insights.md loaded Step 1, verify previously-flagged patterns not recur this impl. Past insight said "anemic domain models keep appear" -- check entities this impl have behavior.Throughout Steps 3-4, use framework:context-anchoring Enrich behavior keep living doc current:
After enrich context doc, recommend review:
"Impl complete. Recommend run
/reviewon gen code before consider feature done -- provides independent quality assess against same atom standards, catches issues generator may blind to, captures learnings future sessions."