thread-repo-bootstrap
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseThread Repo Bootstrap
线程仓库引导初始化
Use this skill to make a fresh directory eligible for thread work.
使用本skill可以让全新目录具备线程工作能力。
Core Rule
核心规则
If does not exist, initialize the repo thread system first. When invoked by with auto bootstrap enabled, return control so the same round can continue into thread bootstrap or thread advance.
threads/_template/thread-orchestrator如果不存在,请先初始化仓库线程系统。当调用本功能且启用了自动引导初始化时,请归还控制权,以便同一轮流程可以继续执行线程引导初始化或线程推进操作。
threads/_template/thread-orchestratorWorkflow
工作流程
- Check whether already exists.
threads/_template/ - If not, create .
threads/_template/ - Create the minimum template set:
memory.mdinterrupt.mdmemory-proposal.mdplatform-memory-proposal.md
- Confirm the directory now has repo-level thread capability.
- Return control to or hand off to
thread-orchestrator.thread-bootstrap
- 检查是否已存在。
threads/_template/ - 若不存在,则创建目录。
threads/_template/ - 创建最小模板集:
memory.mdinterrupt.mdmemory-proposal.mdplatform-memory-proposal.md
- 确认当前目录现在已具备仓库级别的线程运行能力。
- 将控制权归还给或移交到
thread-orchestrator流程。thread-bootstrap
Rules
规则
- Never skip repo bootstrap in an empty directory and jump straight into thread advancement.
- Never rewrite existing templates silently; initialize only what is missing unless a human explicitly asks for migration.
- Treat repo bootstrap as the prerequisite layer below thread bootstrap.
- Do not convert missing repo bootstrap into a blocked outcome when the caller explicitly allows auto bootstrap.
- 切勿在空目录中跳过仓库引导初始化,直接跳转到线程推进步骤。
- 切勿静默覆写已有模板;仅初始化缺失的内容,除非人工明确要求进行迁移。
- 将仓库引导初始化视为线程引导初始化的前置基础层。
- 当调用方明确允许自动引导初始化时,不要将缺失的仓库引导初始化判定为阻塞结果。
Env Defaults
环境变量默认值
THREAD_ORCHESTRATOR_REQUIRE_REPO_BOOTSTRAP=true
Fallback behavior:
- If env vars are absent, require repo bootstrap whenever is missing.
threads/_template/
THREAD_ORCHESTRATOR_REQUIRE_REPO_BOOTSTRAP=true
降级行为:
- 若不存在对应的环境变量,当缺失时,默认要求执行仓库引导初始化。
threads/_template/
When To Load Reference
何时加载参考文档
Load thread-repo-bootstrap-rules.md when you need exact repo initialization rules.
当你需要确切的仓库初始化规则时,请加载thread-repo-bootstrap-rules.md。
Scripts
脚本
scripts/init_thread_repo.py
scripts/init_thread_repo.py