From lattice
Loads project-specific context from knowledge base: tech stack, architecture overview, directory layout, trusted sources, conventions. Primes skills for project-aware responses; guides creation if missing.
npx claudepluginhub techygarg/lattice --plugin latticeThis skill uses the workspace's default tool permissions.
AI default = internet average. No project context → guesses framework, invents conventions, generic code not match stack. Knowledge priming fix: load concise project identity doc before design/implement/review.
Facilitates structured conversation to generate knowledge-base.md priming AI with project tech stack, architecture, trusted sources, and structure. Triggers on 'set up knowledge base', 'prime project', or similar phrases.
Scans codebase to auto-generate CLAUDE.md project config and .rune/ state files for full context in AI coding sessions. Use on new repos or missing/stale context.
Generates codebase knowledge bases using templates for architecture diagrams (Mermaid), concept maps, module breakdowns, and more. Supports single-project and monorepo structures for project documentation.
Share bugs, ideas, or general feedback.
AI default = internet average. No project context → guesses framework, invents conventions, generic code not match stack. Knowledge priming fix: load concise project identity doc before design/implement/review.
Not teach code principles (clean-code), structure rules (architecture), domain modeling (domain-driven-design). Answer different question: "What is this project?" -- tech stack, architecture style, directory layout, trusted docs, conventions other skills not infer from code.
.lattice/config.yaml in repo rootpaths.knowledge_base for custom doc pathNo embedded defaults. Every project identity unique -- no sensible generic default for "what your project." Knowledge base doc created by knowledge-priming-refiner skill or hand-written.
If no knowledge base doc found during config resolution, inform user:
No project knowledge base found. Without it, AI skills work from generic assumptions about tech stack, architecture, conventions.
To create one, trigger knowledge-priming-refiner skill -- guided interview (~10 questions) that produces concise document (~50 lines). Once created, every Lattice skill use it as ambient context.
Can also create
.lattice/standards/knowledge-base.mdmanually and reference in.lattice/config.yamlunderpaths.knowledge_base.
Message informational, not blocking. All skills continue work without knowledge base -- just operate without project-specific context.
Knowledge base doc from knowledge-priming-refiner has 5 sections:
| # | Section | What It Captures |
|---|---|---|
| 1 | Architecture Overview | Big picture: what kind application, major components, how interact |
| 2 | Tech Stack and Versions | Specific technologies with version numbers, including "not X" clarifications |
| 3 | Curated Knowledge Sources | Official docs, trusted blogs, internal references team relies on (5-10 max) |
| 4 | Project Structure | Directory layout showing where things live |
| 5 | Project Conventions | Brief project-specific conventions other skills not infer |
Doc intentionally lean -- under 50 lines focused content. Every token compete for context window, so knowledge base capture what matter most, omit what other skills already handle.
When knowledge base doc loaded, become ambient context for all skills. Any molecule compose this atom load first, before design/implement/review work. Examples how used:
Knowledge base always-on context. Unlike conditional atoms (DDD, secure-coding, test-quality) activate based on what code touched, knowledge base apply every interaction because project identity always relevant.
Knowledge priming capture project identity + technical context. Deliberately exclude concerns covered by other atoms:
| Concern | Where It Belongs | Not Here |
|---|---|---|
| Coding style, naming principles, function design | clean-code atom | No code examples, no naming rules |
| Architectural layers, dependency direction | architecture atom | No structural rules |
| Domain modeling, aggregate design | domain-driven-design atom | No DDD patterns |
| Input validation, injection prevention | secure-coding atom | No security rules |
| Test structure, assertion quality | test-quality atom | No testing patterns |
If content teach how write code, belong in atoms above. Knowledge priming answer "what we working with?" -- not "how should write?"
This atom composed by all three molecules:
design-blueprint -- load knowledge base at start ground design in real tech stack + architecturecode-forge -- load knowledge base inform implementation decisions, framework-specific patterns, directory placementreview -- load knowledge base evaluate changes against project-specific conventions + stack constraintsWhen composed by molecule, knowledge base loaded once at beginning, remain active throughout workflow. When used standalone, load on first reference to project context.