obsidian-project-bootstrap
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseObsidian Project Bootstrap
Obsidian Project Bootstrap
Bootstrap a project knowledge base for the current repository.
为当前仓库初始化一个项目知识库。
Role in the workflow
工作流中的角色
This is a supporting skill.
Use as the main workflow authority. Use this skill only when a repository still needs its initial binding or rebuild.
obsidian-project-memory这是一项支持性Skill。
以作为主要工作流权限。仅当仓库仍需初始绑定或重建时才使用此Skill。
obsidian-project-memoryWhen to use
使用场景
- The user says “start a new research project”.
- The user has an existing repo with code plus Markdown and wants an Obsidian knowledge base generated automatically.
- detects a research-project candidate but no existing binding.
obsidian-project-memory
- 用户说“启动一个新的研究项目”。
- 用户拥有包含代码和Markdown的现有仓库,希望自动生成Obsidian知识库。
- 检测到研究项目候选对象,但不存在现有绑定。
obsidian-project-memory
Required input
必要输入
Resolve the vault path from one of:
- explicit user input,
- .
OBSIDIAN_VAULT_PATH
从以下任一来源解析vault路径:
- 用户明确输入,
- 环境变量。
OBSIDIAN_VAULT_PATH
Procedure
流程
- Identify the repository root.
- Run a preflight detect step first:
bash
python3 "${CLAUDE_PLUGIN_ROOT}/skills/obsidian-project-memory/scripts/project_kb.py" detect --cwd "$PWD" - Only if the repo is unbound and should be imported, run bootstrap:
bash
python3 "${CLAUDE_PLUGIN_ROOT}/skills/obsidian-project-memory/scripts/project_kb.py" bootstrap --cwd "$PWD" --vault-path "$OBSIDIAN_VAULT_PATH" - Verify that bootstrap created at least:
.claude/project-memory/registry.yaml.claude/project-memory/<project_id>.mdResearch/{project-slug}/00-Hub.mdResearch/{project-slug}/01-Plan.mdResearch/{project-slug}/Knowledge/Source-Inventory.mdResearch/{project-slug}/Knowledge/Codebase-Overview.md
- If the imported project still lacks real background or experiment context, switch to an agent-first pass:
- read the most informative repo docs and code entry points,
- synthesize durable notes into ,
Knowledge/,Papers/,Experiments/, orResults/,Writing/ - avoid placeholder notes.
- Summarize the created knowledge base and the next recommended canonical notes to fill in.
- 识别仓库根目录。
- 首先运行预检检测步骤:
bash
python3 "${CLAUDE_PLUGIN_ROOT}/skills/obsidian-project-memory/scripts/project_kb.py" detect --cwd "$PWD" - 仅当仓库未绑定且需要导入时,运行初始化引导:
bash
python3 "${CLAUDE_PLUGIN_ROOT}/skills/obsidian-project-memory/scripts/project_kb.py" bootstrap --cwd "$PWD" --vault-path "$OBSIDIAN_VAULT_PATH" - 验证初始化引导至少创建了以下内容:
.claude/project-memory/registry.yaml.claude/project-memory/<project_id>.mdResearch/{project-slug}/00-Hub.mdResearch/{project-slug}/01-Plan.mdResearch/{project-slug}/Knowledge/Source-Inventory.mdResearch/{project-slug}/Knowledge/Codebase-Overview.md
- 如果导入的项目仍缺少实际背景或实验上下文,切换至Agent优先流程:
- 读取信息最丰富的仓库文档和代码入口点,
- 将持久化笔记整合到、
Knowledge/、Papers/、Experiments/或Results/目录中,Writing/ - 避免使用占位符笔记。
- 总结已创建的知识库,以及下一步建议补充的标准笔记。
Notes
注意事项
- The bootstrap process imports structure and summaries, not raw datasets, caches, checkpoints, or the whole code tree.
- Ignore ,
.git,.venv, caches, checkpoints, binaries, and other heavy artifacts.node_modules - The default vault is compact: ,
00-Hub.md,01-Plan.md,Knowledge/,Papers/,Experiments/,Results/,Writing/,Daily/.Archive/ - If is unavailable in the current shell, use the system Python interpreter that can run
python3and say so explicitly.project_kb.py
- 初始化引导过程仅导入结构和摘要,不导入原始数据集、缓存、检查点或整个代码树。
- 忽略、
.git、.venv、缓存、检查点、二进制文件和其他大型工件。node_modules - 默认vault结构紧凑:包含、
00-Hub.md、01-Plan.md、Knowledge/、Papers/、Experiments/、Results/、Writing/、Daily/。Archive/ - 如果当前shell中无法使用,请使用能够运行
python3的系统Python解释器,并明确说明这一点。project_kb.py
References
参考资料
- - preflight decisions, failure modes, and post-bootstrap verification
references/BOOTSTRAP-RUNBOOK.md
- - 预检决策、故障模式和初始化引导后验证
references/BOOTSTRAP-RUNBOOK.md