egm-bootstrap
БесплатноБез исполняемых скриптовНе проверенBootstrap directory README.md files across a repository subtree.
от 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;truewhen 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)
- 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 theegm-brainstorm/egm-draft/egm-reviewor 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. - 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. - 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. - 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). - Subagent Delegation: Spawn sub-orchestrator workers in parallel (capped at 5).
- 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(orpnpm 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)
- BFS Discovery: Map
pathlevel-by-level via a queue (never recursivefindorls -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. - 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.
- 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, `
- Recognized Source / Schema Extensions: Systems (
Установить egm-bootstrap в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл egm-bootstrap?
Bootstrap directory README.md files across a repository subtree.
Как установить скилл egm-bootstrap?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл egm-bootstrap запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic