thread-bootstrap
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseThread Bootstrap
Thread Bootstrap
Use this skill to create a new thread when a goal should not be attached to an existing thread.
当目标不应该关联到现有线程时,使用此skill创建新线程。
Core Rule
核心规则
Allocate a stable once, initialize from , and stop before doing any goal work.
thread-idthreads/_template/一次性分配稳定的,从初始化,在执行任何目标相关工作前停止。
thread-idthreads/_template/Workflow
工作流
- Confirm already exists.
threads/_template/ - If the template root is missing, stop and hand off to .
thread-repo-bootstrap - Decide whether the goal belongs in an existing thread.
- If new thread is required, generate .
<topic-slug>-tNN - Create or checkout .
thread/<thread-id> - Copy and
threads/_template/memory.md.threads/_template/interrupt.md - Fill only the minimum bootstrap fields.
- Write the first stop point into .
interrupt.md
- 确认已存在。
threads/_template/ - 如果模板根目录缺失,停止流程并移交到处理。
thread-repo-bootstrap - 判定目标是否属于现有线程。
- 如果需要新建线程,生成格式ID。
<topic-slug>-tNN - 创建或切换到分支。
thread/<thread-id> - 复制和
threads/_template/memory.md文件。threads/_template/interrupt.md - 仅填写最基础的引导字段。
- 将第一个停止节点写入。
interrupt.md
Rules
规则
- Use by default.
THREAD_BOOTSTRAP_ID_STYLE=slug-tNN - Use to decide whether to switch branches automatically.
THREAD_BOOTSTRAP_AUTO_CHECKOUT=true - Use when set; otherwise use the repo default.
THREAD_BOOTSTRAP_TEMPLATE_ROOT=threads/_template - Repo bootstrap is a hard prerequisite; do not invent template files ad hoc during thread bootstrap.
- Never rename a thread after creation.
- Never add proposal or execution content beyond bootstrap state.
- 默认使用配置。
THREAD_BOOTSTRAP_ID_STYLE=slug-tNN - 使用配置判定是否自动切换分支。
THREAD_BOOTSTRAP_AUTO_CHECKOUT=true - 若设置了则使用该路径,否则使用仓库默认路径。
THREAD_BOOTSTRAP_TEMPLATE_ROOT=threads/_template - 仓库引导是硬性前置条件,请勿在线程引导过程中临时创建模板文件。
- 线程创建后请勿重命名。
- 请勿添加超出引导状态的提案或执行内容。
When To Load Reference
何时加载参考文档
Load thread-bootstrap-rules.md when you need exact ID allocation, template, or branch rules.
当你需要准确的ID分配、模板或分支规则时,加载thread-bootstrap-rules.md。
Scripts
脚本
scripts/allocate_thread_id.pyscripts/bootstrap_thread.py
scripts/allocate_thread_id.pyscripts/bootstrap_thread.py