Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

egm-bootstrap

БесплатноБез исполняемых скриптовНе проверен

Bootstrap directory README.md files across a repository subtree.

googleот google★ 24 364 звезды на GitHub

Об этом скилле

EGM Peanuts and Hay Bootstrap (egm-bootstrap)

When running in Codex or ChatGPT Work, first read Codex integration. In Claude Code or Cowork, read ${CLAUDE_PLUGIN_ROOT}/docs/claude.md first.

Automates creating, updating, and verifying Elephant-and-Goldfish Model (EGM) README.md contracts (Interface, Invariants, Side Effects) across a directory tree: Peanuts (leaf package contracts) and Hay (parent blueprint indexes).

Inputs

  • path: Target root directory to bootstrap (Required).
  • is_worker: Internal; true when running as a Sub-Orchestrator (default: false).
  • sub_tree_root: Internal; subtree partition root path.
  • target_filename: Contract filename to generate or update (default: "README.md", or e.g. "EGM.md" when preserving human-written READMEs).

Execution Constraints (CRITICAL)

  1. Delegation & Plugin-Root Paths: Read the Plugin-Root Resource Paths and Subagent Delegation (Goldfish Isolation) sections of execution instructions (Claude Code: ${CLAUDE_PLUGIN_ROOT}/resources/execution_instructions.md; pathless <SKILL>: ~/.gemini/config/plugins/egm/resources/execution_instructions.md). Do not apply the egm-brainstorm/egm-draft/egm-review or drafting-only sections here. If file tools cannot read it, apply inline delegation: spawn fresh-context subagents (invoke_subagent / Agent / spawn_agent), use direct dispatch if nesting is unsupported (see harnesses.md), or run scout steps inline if no subagent tool exists.
  2. No Code Generation & VCS Isolation: Strictly limited to documentation (README.md / target_filename). Do not write or refactor functional source code, and do not perform version control commits (git add, git commit). Write all changes locally using standard file-writing tools; tracking and submitting stay with the human user.
  3. Temporary File Isolation: Each worker keeps its status, checkpoint, and log files in its own directory outside the workspace (host scratch or mktemp -d), never a fixed, shared path. If neither exists, skip them.
  4. Tool Usage & Formatting: Use shell and file tools for discovery and contract generation following README templates with clean Markdown (headers, tables, fenced blocks; optionally invoke a configured repo formatter like npx prettier --write).
  5. Subagent Delegation: Spawn sub-orchestrator workers in parallel (capped at 5).
  6. Mandatory Safety Gate (> 15 Subdirectories): If BFS discovery finds more than 15 subdirectories, pause immediately and request user approval (via structured single-select question tool if available, or plain chat) before proceeding with full-tree execution or spawning workers.

Workflow

Step 0: Ecosystem & Verification Discovery

Inspect the repo root manifest to record VerificationCommand:

  • Node/TS (package.json): npm test (or pnpm test / yarn test)
  • Rust (Cargo.toml): cargo test | Go (go.mod): go test ./... | Python (pyproject.toml/pytest.ini/setup.py): pytest
  • .NET / C# (*.sln/*.slnx/*.csproj): dotnet test
  • Make (Makefile): make test | Bazel (BUILD/BUILD.bazel): bazel test //... | None: <test-command>

Step 1: Startup Branching

If is_worker is true, jump to Step 4 for sub_tree_root. Otherwise run Step 2.

Step 2: Incremental Scoping & Safety Gate (Root Orchestrator)

  1. BFS Discovery: Map path level-by-level via a queue (never recursive find or ls -R). Keep intermediate folders and build manifests (package.json, Cargo.toml, go.mod, pyproject.toml, *.sln, *.csproj, Makefile, BUILD). Ignore symlinks, hidden/system directories (e.g., .git, .antigravity, node_modules, venv, dist, build, third_party), and patterns in .gitignore / .egmignore.
  2. Safety Gate & Spawning Approval (> 15): When running directory count exceeds 15, pause and ask via single-select gate (is_multi_select: false):
    • question: "The target directory tree contains more than 15 subdirectories. This is a large execution scope: up to 5 parallel workers, and at least one scout per code directory (one per ~1,500 lines of source). Do you want to proceed with full-tree bootstrapping?"
    • options: ["Yes, proceed with full tree bootstrapping", "No, abort execution"] Wait for the user; abort immediately if declined.
  3. Bottom-Up Post-Pruning:
    • Recognized Source / Schema Extensions: Systems (.c, .cc, .cpp, .cxx, .h, .hh, .hpp, .rs, .go, .zig, .lean, .f, .f90, .f95, .f03, .f08, .hs), Managed (.java, .kt, .scala, .cs, .razor, .cshtml, .fs, .vb), Scripting (.py, .rb, .php, .lua, .sh, .bash, .ps1, .psm1, .psd1, .r, .R, .ex, .exs), Web/Mobile (.ts, .tsx, .js, .jsx, .mjs, `
Полный SKILL.md на GitHub

Установить egm-bootstrap в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

TEST.mdagents/openai.yamlassets/icon.svgreferences/templates.mdreferences/worker-return.schema.jsontest_scenarios.yaml

FAQ

Что делает скилл egm-bootstrap?

Bootstrap directory README.md files across a repository subtree.

Как установить скилл egm-bootstrap?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл egm-bootstrap запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить egm-bootstrap с