agent-repo-init

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Agent Repo Init

Agent仓库初始化

Initialize a new project from this repository template with two modes.
通过两种模式从此仓库模板初始化新项目。

Modes

模式

  • quick
    : Fast scaffold with clean copy and minimal setup.
  • full
    :
    quick
    plus runtime profile setup (
    .env
    , mission, context profile, init report) and optional
    git init
    .
  • quick
    :快速搭建,仅复制干净文件并完成基础配置。
  • full
    :在
    quick
    模式基础上,增加运行时配置设置(
    .env
    、任务、上下文配置、初始化报告)及可选的
    git init
    操作。

Run via Script

通过脚本运行

Use the portable script in this skill directory:
bash
python skills/agent-repo-init/scripts/init_project.py \
  --project-name my-agent \
  --destination-root /absolute/path \
  --mode quick
Full mode example:
bash
python skills/agent-repo-init/scripts/init_project.py \
  --project-name my-agent \
  --destination-root /absolute/path \
  --mode full \
  --llm-provider openai \
  --enable-mcp \
  --disable-swarm \
  --enable-docker \
  --init-git
使用此技能目录中的可移植脚本:
bash
python skills/agent-repo-init/scripts/init_project.py \
  --project-name my-agent \
  --destination-root /absolute/path \
  --mode quick
完整模式示例:
bash
python skills/agent-repo-init/scripts/init_project.py \
  --project-name my-agent \
  --destination-root /absolute/path \
  --mode full \
  --llm-provider openai \
  --enable-mcp \
  --disable-swarm \
  --enable-docker \
  --init-git

Expected Output

预期输出

  • New project at
    <destination_root>/<project_name>
  • Clean copy without local runtime state
  • Initialization report at
    artifacts/logs/agent_repo_init_report.md
  • Script is self-contained and does not import project
    src/
    modules
  • 新项目将创建在
    <destination_root>/<project_name>
    路径下
  • 不包含本地运行时状态的干净副本
  • 初始化报告位于
    artifacts/logs/agent_repo_init_report.md
  • 脚本为独立文件,不会导入项目
    src/
    模块

Notes

注意事项

  • Keep destination outside the current template repository.
  • For
    full
    mode, review
    .context/agent_runtime_profile.md
    after generation.
  • 请将目标路径设置在当前模板仓库之外。
  • 对于
    full
    模式,生成后请查看
    .context/agent_runtime_profile.md
    文件。