thread-repo-bootstrap

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Thread Repo Bootstrap

线程仓库引导初始化

Use this skill to make a fresh directory eligible for thread work.
使用本skill可以让全新目录具备线程工作能力。

Core Rule

核心规则

If
threads/_template/
does not exist, initialize the repo thread system first. When invoked by
thread-orchestrator
with auto bootstrap enabled, return control so the same round can continue into thread bootstrap or thread advance.
如果
threads/_template/
不存在,请先初始化仓库线程系统。当
thread-orchestrator
调用本功能且启用了自动引导初始化时,请归还控制权,以便同一轮流程可以继续执行线程引导初始化或线程推进操作。

Workflow

工作流程

  1. Check whether
    threads/_template/
    already exists.
  2. If not, create
    threads/_template/
    .
  3. Create the minimum template set:
    • memory.md
    • interrupt.md
    • memory-proposal.md
    • platform-memory-proposal.md
  4. Confirm the directory now has repo-level thread capability.
  5. Return control to
    thread-orchestrator
    or hand off to
    thread-bootstrap
    .
  1. 检查
    threads/_template/
    是否已存在。
  2. 若不存在,则创建
    threads/_template/
    目录。
  3. 创建最小模板集:
    • memory.md
    • interrupt.md
    • memory-proposal.md
    • platform-memory-proposal.md
  4. 确认当前目录现在已具备仓库级别的线程运行能力。
  5. 将控制权归还给
    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
    threads/_template/
    is missing.
  • 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