Knowledge Priming

SkillDocs & knowledge

Load project-specific context -- tech stack, architecture overview, directory layout, trusted sources, and conventions -- so that all skills operate with awareness of what this project actually is. Use when a knowledge base document exists, or when the user asks about the project's tech stack, architecture, conventions, framework, directory layout, or says 'tell me about this project', 'what are we using?', 'what's our stack?', or 'what framework is this?'. Use the knowledge-priming-refiner to create a knowledge base document.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Knowledge Priming skill

What this skill tells your AI

The instructions your AI receives, as published by techygarg/lattice in skills/knowledge-priming/SKILL.md and read by ahel’s review.

Config Resolution

  1. Look for .lattice/config.yaml in the repo root.
  2. If found, check paths.knowledge_base for a custom document path.
  3. If a document exists at that path, read the full document.
  4. STOP: Apply the loaded document as ambient context before any design, implementation, or review work begins.
  5. If a path is configured but no document exists at it → tell the user which configured path is missing, then see "When No Document Exists".
  6. If there is no config file or no paths.knowledge_base key → see "When No Document Exists".

When No Document Exists

Inform the user:

No project knowledge base found. AI skills will operate from generic assumptions about tech stack, architecture, and conventions.

To create one, trigger knowledge-priming-refiner — a guided interview (~10 questions) producing a concise document (~50 lines).

You can also create .lattice/standards/knowledge-base.md manually and reference it in .lattice/config.yaml under paths.knowledge_base.

Do not block. Continue without the knowledge base.

What the Document Contains

#SectionWhat It Captures
1Architecture OverviewApp type, major components, how they interact
2Tech Stack and VersionsSpecific technologies with version numbers, including "not X" clarifications
3Curated Knowledge SourcesOfficial docs, trusted blogs, internal references (5–10 max)
4Project StructureDirectory layout showing where things live
5Project ConventionsProject-specific conventions other skills cannot infer from code

Scope Boundary

ConcernOwned By
Coding style, naming principles, function designclean-code atom
Architectural layers, dependency directionarchitecture atom
Domain modeling, aggregate designdomain-driven-design atom
Input validation, injection preventionsecure-coding atom
Test structure, assertion qualitytest-quality atom

Knowledge priming answers "what are we working with?" — not "how should we write?"

Signals

GitHub stars
190
Forks
13
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
knowledge-priming
Source
github.com/techygarg/lattice