Logo di Knowledge Priming Refiner

Knowledge Priming Refiner

Community
techygarg
knowledge-priming-refiner

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'.

Panoramica

Autoretechygarg
Repositorylattice
Nome della skillknowledge-priming-refiner
Stelle
208
Fork
16
File inclusi
1
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • 1 file inclusi

    Script, modelli di documento e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da techygarg su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Knowledge Priming Refiner in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/techygarg/lattice/tree/main/skills/knowledge-priming-refiner
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/techygarg/lattice.git /tmp/lattice
mkdir -p .claude/skills
cp -r /tmp/lattice/skills/knowledge-priming-refiner .claude/skills/knowledge-priming-refiner
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Knowledge Priming Refiner in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Knowledge Priming Refiner non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Knowledge Priming Refiner non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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.

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.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Knowledge Priming Refiner?

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'.

Perché usare Knowledge Priming Refiner su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Knowledge Priming Refiner è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Knowledge Priming Refiner in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/techygarg/lattice/tree/main/skills/knowledge-priming-refiner. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Knowledge Priming Refiner?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Knowledge Priming Refiner?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Knowledge Priming Refiner: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Knowledge Priming Refiner è gratuita?

Sì. È pubblicata su GitHub da techygarg con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇