项目知识库管理
knowledge
初始化或更新项目知识库,实现持久化的跨会话知识捕获。用于建立或更新项目知识库。
- License 许可
- MIT
- 所属仓库
- drn/dots
- 最近更新
- 2026-11-12
- Stars
- ★ 23
- Forks
- 4
01 前言 Front Matter
- name
- knowledge
- description
- Initialize or update a project knowledge base for durable cross-session knowledge capture. Use for setting up or updating project knowledge bases.
03 SKILL.md 正文
Knowledge Base
Manage a structured knowledge base at context/knowledge/ for capturing durable facts, entities, and patterns across sessions.
Arguments
$ARGUMENTS- Subcommand:init,add <topic>,update <topic>, or omit for status
Context
- Knowledge index: !
cat context/knowledge/index.md 2>/dev/null | head -50 - Knowledge files: !
find context/knowledge -maxdepth 1 -name "*.md" 2>/dev/null | head -20 - Project root: !
git rev-parse --show-toplevel 2>/dev/null | head -1 - CLAUDE.md exists: !
find . -maxdepth 1 \( -name CLAUDE.md -o -name AGENTS.md \) 2>/dev/null | head -2
Instructions
Subcommand: init
Create the knowledge base directory and seed it with an index file.
- Create
context/knowledge/directory - Write
context/knowledge/index.mdwith this template:
# Knowledge Index
Structured knowledge for future knowledge graph ingestion. Each file covers a topic/domain.
| File | Topic | Key Entities | Last Updated |
|------|-------|-------------|-------------|
## Coverage Map
Which context files are captured in knowledge:
| Context File | Knowledge File(s) | Coverage |
|-------------|-------------------|----------|
- If the project has a
.gitignore, verifycontext/knowledge/is not ignored - Report the path created and suggest initial topics based on what is visible in the repo (CLAUDE.md, AGENTS.md, README, directory structure)
Subcommand: add <topic>
Create a new topic file and register it in the index.
- Read the existing index to avoid duplicates
- Ask what entities and facts to capture if not obvious from conversation context
- Create
context/knowledge/<topic>.mdwith a heading and structured content - Update
context/knowledge/index.md— add a row to the index table with the file name, topic description, key entities, and today's date - Report what was added
Subcommand: update <topic>
Update an existing topic file with new knowledge.
- Read
context/knowledge/index.mdto find the topic file - Read the topic file
- Propose additions or corrections as diffs
- Apply after user approval
- Update the Last Updated date in
context/knowledge/index.md
Subcommand: (no args) — status
Show the current state of the knowledge base:
- Number of topic files and total coverage
- Topics with the oldest Last Updated dates
- Coverage gaps (context files or CLAUDE.md sections not yet captured)
Knowledge File Format
Each topic file should follow this pattern:
# Topic Name
Brief description of what this file covers.
## Section
- **Entity**: Description or fact
- **Entity**: Description or fact
## Section
...
Guidelines for content:
- Use bold for entity names and key terms
- Group related facts under clear section headings
- Include specific values, names, versions — not vague summaries
- Each fact should stand alone (no "as mentioned above" references)
- Date-stamp volatile facts (pricing, team composition, versions)
What Belongs in Knowledge
- People, roles, org structure
- Technical infrastructure and architecture decisions
- Product features, business logic, domain concepts
- Integration partners, vendors, external services
- Debugging insights that will recur
- Non-obvious tool or dependency behavior
What Does NOT Belong in Knowledge
04 同仓库更多 Skills
batch-pr-review
Review a batch of pull requests together, describe every change in plain language, and build a private Claude artifact that eases human review, with a severity-tagged and verified findings list. Use when asked to review several PRs, a stack of PRs, PRs listed in a Slack thread or message, or to summarize a batch of PRs for a reviewer.
Codex 目标设置包生成
plannotator-setup-goal
为长时间运行的 /goal 工作创建经过审查的 Codex 目标设置包。当用户想把想法、待办清单、项目使命或模糊目标,转化为项目 goals slug 文件夹下的持久化目标文件时使用;包含 Plannotator 审查关卡,覆盖简报、带验收标准的叙述性计划、验证方案、阻碍项,以及最终的 /goal 提示词。
plannotator-annotate
Open Plannotator's annotation UI for a markdown file, converted HTML file, URL, or folder and then respond to the returned annotations.
Claude 技能编写
write-skill
创建或改进 Claude Code 技能/斜杠命令,遵循结构、动态上下文和安全性方面的最佳实践。用于创建新技能、改进现有技能,或学习技能编写。
会话收尾检查
wrapup
会话结束时的检查清单,用于检测遗漏事项——未提交的变更、未合并的分支、需记录的经验教训、需完成的交接——并路由到相应的技能。用于会话收尾、结束工作、一天结束,或“还有其他要记录的吗”。
文本转语音朗读
tts
使用文本转语音(text-to-speech)大声朗读文本。当用户说“读给我听”“念给我听”“大声朗读这个”“说出这个”“朗读摘要”,或要求听到某内容被朗读时使用。