Logo de Knowledge Priming Refiner

Knowledge Priming Refiner

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

Visão geral

Publicado portechygarg
Repositóriolattice
Nome da habilidadeknowledge-priming-refiner
Estrelas
208
Forks
16
Arquivos incluídos
1
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    Habilidades de IA são Markdown simples, não código específico de um provedor, por isso funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • 1 arquivos incluídos

    Scripts, modelos de documentos e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente leitura e nunca são executados.

  • Código aberto

    Publicada por techygarg no GitHub. Leia o conteúdo-fonte antes de instalar.

Instalação

Instale a habilidade de IA Knowledge Priming Refiner no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL da pasta da habilidade exibida abaixo e confirme.
    https://github.com/techygarg/lattice/tree/main/skills/knowledge-priming-refiner
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Nova habilidade → Via URL GitHub, depois cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse 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
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Knowledge Priming Refiner em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Knowledge Priming Refiner automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Knowledge Priming Refiner não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo 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.

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Knowledge Priming Refiner faz?

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

Por que usar Knowledge Priming Refiner no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. Knowledge Priming Refiner é escrito em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. O TypingMind usa suas próprias chaves de API, então o pagamento é feito diretamente aos provedores, em vez de uma assinatura por licença de usuário, e suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Knowledge Priming Refiner no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/techygarg/lattice/tree/main/skills/knowledge-priming-refiner. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Knowledge Priming Refiner?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Knowledge Priming Refiner?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Knowledge Priming Refiner com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Knowledge Priming Refiner é gratuita?

Sim. A habilidade é publicada no GitHub por techygarg sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, modelos de documento ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas para chamar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA fornece conhecimento e um processo ao modelo: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver todos

Crie seu próprio espaço de IA agora

Inscreva-se na nossa newsletter para receber novidades sobre recursos e futuros sorteios 👇