Agent skill

Knowledge Priming Refiner

by techygarg in techygarg/lattice

Facilitate a structured conversation to create a project-specific knowledge base document.

MITAuto-check passedKnowledge Management

Install Knowledge Priming Refiner

skills CLI
$ npx skills add techygarg/lattice --skill knowledge-priming-refiner -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install techygarg/lattice knowledge-priming-refiner --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/techygarg/lattice.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/knowledge-priming-refiner .claude/skills/knowledge-priming-refiner && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
knowledge-priming-refiner
GitHub stars
198
Token cost
~1.9k tokens
SKILL.md length
917 words
Files
2 (incl. assets)
Skills in repo
33
Repo updated
First seen
Licence
MIT

At a glance

Facilitate a structured conversation to create a project-specific knowledge base document.

  • Works in 3 steps: Read .lattice/config.yaml -- does… → If yes, read that file. Ask the user → If no config or no existing document,…
  • The user says set up knowledge base
  • SKILL.md covers Purpose, What This Produces, Scope Boundary and Before You Begin, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Knowledge Priming Refiner is an agent skill from techygarg/lattice. Facilitate a structured conversation to create a project-specific knowledge base document. Produces a knowledge-base.md that primes AI with the project's tech stack, architecture, trusted sources, and project structure. Use when the user says 'set up knowledge base', 'prime the project', 'onboard AI', 'create knowledge base', 'set up project context', or 'configure AI context'.

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including assets (for example `assets/template.md`).

It sits in Knowledge Management, covering Knowledge bases. The repository describes itself as: Install engineering discipline into any AI coding assistant. Composable skills for design, implementation, review, and team standards. Better process, not just better prompts. The licence is MIT.

When your agent uses it

  • The user says set up knowledge base
  • Prime the project
  • Create knowledge base
  • Set up project context

Example prompts

  • “set up knowledge base”
  • “prime the project”
  • “onboard AI”
  • “/knowledge-priming-refiner”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Read .lattice/config.yaml -- does paths.knowledge_base point to a file?
  2. If yes, read that file. Ask the user
  3. If no config or no existing document, proceed with the full interview flow.

What it can do on your machine

Read from SKILL.md and the folder at commit 4d6c35f. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Knowledge Priming Refiner loads about 1.9k tokens when it runs. Until then it costs about 102 tokens; SKILL.md has 917 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~102
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from techygarg/lattice at commit 4d6c35f, republished under its MIT licence (© techygarg). 917 words, ~1,886 tokens.

Download SKILL.mdSave it as .claude/skills/knowledge-priming-refiner/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
knowledge-priming-refiner
description
Facilitate a structured conversation to create a project-specific knowledge base document. Produces a knowledge-base.md that primes AI with the project's tech stack, architecture, trusted sources, and project structure. Use when the user says 'set up knowledge base', 'prime the project', 'onboard AI', 'create knowledge base', 'set up project context', or 'configure AI context'.

Knowledge Priming Refiner

Purpose

This refiner facilitates a structured conversation to create a project-specific knowledge base document. The document captures the project's identity -- its tech stack, architecture, directory layout, and the trusted sources that shaped how the team works. Think of it as answering one question: "What does AI need to know about this project to avoid defaulting to generic internet patterns?"

This is not about how to write good code -- that is handled by the clean-code atom (coding principles), architecture atom (structural rules), and domain-driven-design atom (domain modeling). Knowledge priming covers what those skills cannot know: which framework, which version, which docs to trust, and how the repo is organized.

What This Produces

  • Output: .lattice/standards/knowledge-base.md (or custom path from .lattice/config.yaml -> paths.knowledge_base)
  • Mode: Override is the standard approach -- every project's knowledge base is unique, so there are no generic defaults to overlay on. Overlay mode is available for selective revisions of an existing document.
  • Config key: paths.knowledge_base in .lattice/config.yaml
  • Template: Read ./assets/template.md for the full document structure and interview guidance comments
  • Consumed by: The knowledge-priming atom loads this document via config resolution and provides it as ambient project context to all skills and molecules

Scope Boundary

Knowledge priming captures project identity and technical context. It deliberately excludes concerns covered by other skills:

ConcernWhere It BelongsNot In Knowledge Priming
Language idioms (error handling, type system, naming, testing patterns, DI)language-idioms documentNo language-level patterns or idioms
Coding style, naming principles, function designclean-code atomNo code examples, no naming rules
Architectural layers, dependency directionarchitecture atomNo structural rules
Domain modeling, aggregate designdomain-driven-design atomNo DDD patterns
Code-level anti-patterns (god functions, deep nesting)clean-code atomNo coding anti-patterns

If you find yourself writing content that teaches how to write code, it belongs in one of the atoms above, not here. Knowledge priming answers "what are we working with?" -- not "how should we write?"

Before You Begin

Check for existing documents

Before starting the interview:

  1. Read .lattice/config.yaml -- does paths.knowledge_base point to a file?
  2. If yes, read that file. Ask the user:
    • "You already have a knowledge base document. Would you like to revise it (update specific sections), start fresh (new interview), or add to it?"
    • Revise: Load the existing document, walk through only the sections the user wants to change.
    • Start fresh: Proceed with the full interview flow below.
  3. If no config or no existing document, proceed with the full interview flow.
Scan the repository

Look for signals that inform the conversation:

  • package.json / Cargo.toml / go.mod / pyproject.toml: What languages, frameworks, and versions are in use?
  • Directory structure: How is the project organized? Monorepo, single app, modules?
  • Existing docs: README, ADRs, contributing guides, architecture docs?
  • Config files: Linter configs, formatter configs, CI pipeline files -- these reveal conventions.

Share relevant findings with the user at the start: "I noticed your project uses [X framework] with [Y structure]. I'll use that as context for our conversation."

Facilitation Approach

  • One section at a time. Walk through the 5 sections sequentially.
  • Show examples first. For each section, explain what it captures, show a concrete example, then ask the user.
  • Record the user's content, not the discussion. The output document reads as a reference.
  • Encourage specificity. "Fastify 4.x" is useful; "modern framework" is not. Version numbers matter because APIs change between versions.
  • Keep it lean. Target under 3 pages / ~50 lines of focused content. Every token competes for context window space.
Show full SKILL.md (359 more words)Show less

Section-by-Section Interview Guide

Read ./assets/template.md and follow the <!-- INTERVIEW GUIDANCE: --> comments for each section.

The 5 sections
#SectionWhat It Captures
1Architecture OverviewBig picture: what kind of application, 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 the team relies on (5-10 max)
4Project StructureDirectory layout showing where things live
5Project ConventionsBrief project-specific conventions that other skills cannot infer (optional, slim)
Cross-section awareness
Described inInformsHow
§1 -- Architecture§4 -- Project StructureArchitecture style shapes directory layout
§2 -- Tech Stack§5 -- Project ConventionsStack choices may imply project-specific conventions
§2 -- Tech Stack§3 -- Curated SourcesEach technology has authoritative docs worth curating

Output Assembly

  1. YAML frontmatter: mode: override (or overlay for selective)
  2. Preamble text (from template)
  3. All sections with the user's content
  4. Sections the user skipped get a <!-- TODO: Fill in during next revision --> comment
  5. Strip all <!-- INTERVIEW GUIDANCE: --> comments from the output

Determine output path:

  1. If .lattice/config.yaml exists and has paths.knowledge_base, use that path.
  2. Otherwise, default to .lattice/standards/knowledge-base.md.

Update config:

  1. If .lattice/config.yaml does not exist, create it with paths.knowledge_base pointing to the output file.
  2. If it exists but lacks the key, add it. Preserve existing content.

Document Quality Checks

Before writing the final document, verify:

  • Content is specific, not generic ("Fastify 4.x" not "modern framework")
  • Tech stack entries include version numbers where applicable
  • "Not X" clarifications steer AI away from common defaults that do not apply
  • Curated sources are limited to 5-10 high-value entries
  • No coding guidelines (naming rules, code examples, anti-patterns) -- those belong in other skills
  • Document stays under ~50 lines of focused content (excluding headings and formatting)
  • Would a new developer find this useful for understanding what this project is?
  • Not a redirect stub — fewer than 3 of the 5 sections populated, or body primarily points to another file → STOP before writing. Say: "This knowledge base is mostly a pointer and won't prime sessions effectively. Should we inline the key content from [referenced file] instead?" Do not write a redirect-only document.

© techygarg, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (assets) in skills/knowledge-priming-refiner of techygarg/lattice.

  • SKILL.md
  • assets/template.md

Open the folder on GitHubat commit 4d6c35f

Compare with similar skills

Knowledge Priming Refiner next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Knowledge Priming Refiner compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Knowledge Priming Refiner this skilltechygarg/lattice198—~1.9kAutomated safety check: PassMIT
Capture Conversationoutline/outline41k—~474Automated safety check: PassCustom licence
Project CairniBlinkQ/project-cairn2352 repos~861Automated safety check: PassMIT
LLM Wiki Knowledge GraphEgonex-AI/Understand-Anything86k1 repos~1.5kAutomated safety check: PassMIT
Find And Citeoutline/outline41k—~537Automated safety check: PassCustom licence
Xhs Virtual Productchenjin-cmd/xhs-virtual-product727—~862Automated safety check: PassMIT

Similar skills

  • Capture Conversation

    outline/outline

    Save the current conversation, a decision, or a set of notes as a document in an Outline collection; use when the user wants to keep what was discussed in their knowledge base.

    41k GitHub stars~474 tokensUpdated today
    Knowledge ManagementAuto-check passed
  • Project Cairn

    iBlinkQ/project-cairn

    Standardize how an AI-collaboration project turns work into reusable knowledge.

    235 GitHub starsUsed in 2 repos~861 tokens
    Knowledge ManagementAuto-check passed
  • LLM Wiki Knowledge Graph

    Egonex-AI/Understand-Anything

    Detects a Karpathy-pattern LLM wiki and builds an interactive knowledge graph with entities, implicit relationships and topic clusters.

    86k GitHub starsUsed in 1 repo~1.5k tokens
    Knowledge ManagementAuto-check passed
  • Find And Cite

    outline/outline

    Answer questions from the Outline knowledge base with quotes and links to the source documents; use when the user asks what the team knows, documented, or decided about a topic.

    41k GitHub stars~537 tokensUpdated today
    Knowledge ManagementAuto-check passed
  • Xhs Virtual Product

    chenjin-cmd/xhs-virtual-product

    This skill helps plan, select, produce, and market Xiaohongshu (RED) virtual/digital products — templates, knowledge bases, test tools, study materials.

    727 GitHub stars~862 tokensUpdated 8 days ago
    Knowledge ManagementAuto-check passed
  • Openkb

    VectifyAI/OpenKB

    A skill your agent uses when the user asks about content in their OpenKB knowledge base — research topics, concepts compiled from their documents, cross-document synthesis — or mentions openkb, an…

    4.7k GitHub starsUsed in 1 repo~2k tokens
    Knowledge ManagementAuto-check: warnings

More from techygarg/lattice

All 33 skills in this repo
  • Architecture Compass

    techygarg/lattice

    Architectural thinking partner for an existing repository — scans the codebase, conducts a structured interview, agrees on current architectural state and recommended direction, and produces a…

    198 GitHub stars~4.4k tokensUpdated 2 days ago
    Auto-check passed
  • Lattice Init

    techygarg/lattice

    Guided setup and upgrade-check experience for Lattice projects -- scans the repository, detects existing configuration and outdated conventions, suggests refiners and available upgrades in priority…

    198 GitHub stars~3.3k tokensUpdated 2 days ago
    Auto-check passed
  • Skill Align

    techygarg/lattice

    Audit and fix all Lattice documentation, README, docs/, PROJECT.md, GitHub issue templates, and CLAUDE.md to ensure they are fully aligned with the current skill inventory.

    198 GitHub stars~2k tokensUpdated 2 days ago
    Auto-check passed
  • Skill Validate

    techygarg/lattice

    Validate any Lattice SKILL.md against all tier conventions — atoms, molecules, and refiners.

    198 GitHub stars~1.5k tokensUpdated 2 days ago
    Auto-check passed
  • Architecture Refiner

    techygarg/lattice

    Facilitate a structured conversation to define architecture principles for a repository.

    198 GitHub stars~3.7k tokensUpdated 2 days ago
    Auto-check passed
  • Clean Code Refiner

    techygarg/lattice

    Facilitate a structured conversation to define clean code principles for a repository.

    198 GitHub stars~3k tokensUpdated 2 days ago
    Auto-check passed

Questions about Knowledge Priming Refiner

What does Knowledge Priming Refiner do?

Facilitate a structured conversation to create a project-specific knowledge base document. Knowledge Priming Refiner is an agent skill from techygarg/lattice. Facilitate a structured conversation to create a project-specific knowledge base document.

When should I use Knowledge Priming Refiner?

Knowledge Priming Refiner fits situations like: the user says set up knowledge base; prime the project; create knowledge base; set up project context.

How do I install Knowledge Priming Refiner in Claude Code?

Run `npx skills add techygarg/lattice --skill knowledge-priming-refiner -a claude-code`. Or copy the skill folder (skills/knowledge-priming-refiner in techygarg/lattice) into .claude/skills/knowledge-priming-refiner in your project. Claude Code loads it when a task matches its description.

How do I install Knowledge Priming Refiner in Codex?

Run `npx skills add techygarg/lattice --skill knowledge-priming-refiner -a codex`. Or copy the skill folder (skills/knowledge-priming-refiner in techygarg/lattice) into .agents/skills/knowledge-priming-refiner in your project. Codex loads it when a task matches its description.

Can I use Knowledge Priming Refiner in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add techygarg/lattice --skill knowledge-priming-refiner -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/knowledge-priming-refiner, .gemini/skills/knowledge-priming-refiner, .github/skills/knowledge-priming-refiner and .opencode/skills/knowledge-priming-refiner in your project.

What does Knowledge Priming Refiner need to run?

SKILL.md names no scripts, command-line tools or credentials: Knowledge Priming Refiner is instructions for the agent only.

Does Knowledge Priming Refiner access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Knowledge Priming Refiner safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Knowledge Priming Refiner use?

Knowledge Priming Refiner is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Knowledge Priming Refiner use?

About 1.9k tokens (SKILL.md is roughly 7.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Knowledge Priming Refiner?

Skills that share tags, products or a category with Knowledge Priming Refiner: Capture Conversation (outline/outline, 41k stars), Project Cairn (iBlinkQ/project-cairn, 235 stars), LLM Wiki Knowledge Graph (Egonex-AI/Understand-Anything, 86k stars) and Find And Cite (outline/outline, 41k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Knowledge Priming Refiner?

techygarg (a GitHub user) maintains it in techygarg/lattice, which has 198 GitHub stars. The repository holds 33 skills in this directory. The repository was last updated on October 6, 2026.

Source: techygarg/lattice on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.