AgentSkillsCN

logics-bootstrapper

在新仓库中初始化 Logics 目录结构(创建 `logics/architecture`、`logics/request`、`logics/backlog`、`logics/tasks`、`logics/specs`、`logics/external`),并为空文件夹添加 `.gitkeep` 文件,以确保目录结构被纳入版本控制。当您在全新项目中搭建 Logics,或验证所需目录是否已存在时使用。

SKILL.md
--- frontmatter
name: logics-bootstrapper
description: Bootstrap the Logics directory structure in a new repository (create `logics/architecture`, `logics/request`, `logics/backlog`, `logics/tasks`, `logics/specs`, `logics/external`) and add `.gitkeep` files for empty folders so the structure stays versioned. Use when setting up Logics in a fresh project or validating that required directories exist.

Bootstrap Logics folders

Run

Create missing Logics folders (and .gitkeep files for empty dirs):

bash
python3 logics/skills/logics-bootstrapper/scripts/logics_bootstrap.py

This also creates a default logics/instructions.md if it does not exist.

Dry-run (print actions, no writes):

bash
python3 logics/skills/logics-bootstrapper/scripts/logics_bootstrap.py --dry-run

Check mode (exit non-zero if bootstrapping is needed):

bash
python3 logics/skills/logics-bootstrapper/scripts/logics_bootstrap.py --check

Specify a different repo root:

bash
python3 logics/skills/logics-bootstrapper/scripts/logics_bootstrap.py --root /path/to/repo