‹ 首页

knowledge-priming

@techygarg · 收录于 1 周前

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.

适合你,如果希望所有技能都能感知项目的技术栈和架构

/ 下载安装
knowledge-priming.skill双击,或拖进 Claude 桌面版 / Cowork,即完成安装↓ .skill↓ .zip
用别的 agent?下载 .zip 解压,把文件夹放进它的技能目录
Claude Code~/.claude/skills/(项目级 .claude/skills/)
Codex CLI~/.codex/skills/
Cursor自动读取上面两处目录
其他工具见其文档的「skills」目录;两个下载是同一份文件,只是名字不同
/ 通过 npx 安装 校验哈希
npx oh-my-skill add techygarg/lattice/knowledge-priming
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- techygarg/lattice/knowledge-priming
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify techygarg/lattice/knowledge-priming
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
159GitHub stars
待重算上下文体积
镜像托管

怎么用

技能原文 SKILL.md作者撰写 · MIT · e5a5a73

Knowledge Priming

Config Resolution
  1. Look for .lattice/config.yaml in repo root.
  2. If found, check paths.knowledge_base for custom doc path.
  3. If doc exists at that path, read the full document.
  4. STOP: Apply the loaded document as ambient context before any design, implement, or review work begins.
  5. If no config, path, or doc found → 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 — guided interview (~10 questions) producing a concise document (~50 lines). Can also create .lattice/standards/knowledge-base.md manually and reference in .lattice/config.yaml under paths.knowledge_base.

Do not block. Continue without knowledge base.

What the Document Contains

| # | Section | What It Captures | |---|---------|-----------------| | 1 | Architecture Overview | App type, major components, how they 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 (5–10 max) | | 4 | Project Structure | Directory layout showing where things live | | 5 | Project Conventions | Project-specific conventions other skills cannot infer from code |

Scope Boundary

| Concern | Owned By | |---------|----------| | Coding style, naming principles, function design | clean-code atom | | Architectural layers, dependency direction | architecture atom | | Domain modeling, aggregate design | domain-driven-design atom | | Input validation, injection prevention | secure-coding atom | | Test structure, assertion quality | test-quality atom |

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

按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。