egm-bootstrap
하는 일
이 스킬은 코드 프로젝트의 폴더마다 README 파일을 만들고 점검해서, 각 부분의 역할이 분명히 설명되도록 합니다. Elephant and Goldfish 설계 방법을 쓰는 팀을 위한 것입니다.
사용하는 경우
- ✓프로젝트 폴더에 README 파일을 새로 쓰거나 업데이트해야 할 때.
- ✓각 폴더의 README가 Elephant and Goldfish 형식에 맞기를 원할 때.
- ✓하위 부분을 요약하는 상위 README가 필요한 경우.
스킬 링크
https://github.com/google/elephant-goldfish-model/blob/main/distributions/claude/skills/egm-bootstrap/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 프로젝트의 모든 폴더에 Elephant and Goldfish 형식을 따르는 README 파일을 추가해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
AI는 폴더마다 별도의 검토 도우미를 실행하고, 각 README를 쓰거나 고친 뒤, 결과를 상위 색인으로 묶습니다. 검토 도우미는 새 맥락에서 작업하므로 작성자가 놓친 가정을 찾아낼 수 있습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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.
Overview
This skill automates the creation, correction, formatting, and correctness
verification of Elephant-and-Goldfish Model (EGM) compliant README.md files
across a directory tree. It establishes clear architectural contracts
(interfaces, invariants, and side effects) for both human developers and AI
assistants.
- Peanuts: Leaf-level Component Package READMEs containing specific file contracts.
- Hay: Parent-level Repository Blueprints that roll up child interface contracts into high-altitude indexes.
Delegation
A Goldfish runs in a fresh context with no conversation history. Spawn each
subagent with your harness's subagent tool (Antigravity: invoke_subagent; Claude Code: Agent; Codex: spawn_agent). Each subagent is defined in agents/<file>.md, and its
frontmatter name (for example egm-zoom-out) is the subagent type to request
where your harness registers named subagents. Otherwise spawn a general-purpose
subagent and tell it to read that persona file first. Pass the prompt verbatim
and wait for the report. If your harness cannot nest subagents,
use direct dispatch instead of the synthesizer. See docs/harnesses.md.
If your harness has no subagent tool, run the scout steps inline.
Inputs
path: The target root directory path to bootstrap (Required).is_worker: Internal parameter.trueif executing as a worker Sub-Orchestrator (Optional, default:false).sub_tree_root: Internal parameter. The root path of the assigned subtree partition (Optional).target_filename: Target contract filename to generate or update (Optional, default:"README.md"). Supports alternate blueprint filenames such as"EGM.md"when pre-existing human-maintained READMEs must not be modified.
Execution Constraints (CRITICAL)
- No Code Generation: You are strictly limited to documentation. Do not write or refactor any functional source code.
- VCS Isolation: Do not perform any version control commits (
git commit,git add). All filesystem changes must be written locally using standard file-writing tools. Tracking and submitting is deferred to the human user. - Temporary File Isolation: Parallel workers sharing the workspace must perform all status tracking, check-pointing, and log writing in independent, worker-specific directories outside the project repository workspace.
- Tool Usage (CRITICAL): Use your shell, file-reading, file-writing, and file-editing tools for directory discovery and contract/README
generation. Adhere to clean Markdown formatting directly during generation
(standard headers, tables, and fenced code blocks). If a project markdown
formatter (e.g.
npx prettier --write) is explicitly configured in the repository, it may optionally be invoked. - Subagent Delegation: Spawn sub-orchestrator workers in parallel.
- Mandatory Safety Gate (CRITICAL): If you discover more than 15 subdirectories, you MUST immediately request user approval (using a structured question tool, if your harness has one, or plain chat) before proceeding with full-tree execution or unbounded subagent spawning.
Workflow
Step 0: Ecosystem & Verification Discovery
- Inspect the repository root for package/build manifests:
- Node.js / TypeScript:
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 - C/C++ / Make:
Makefile->make test - Bazel:
BUILD/BUILD.bazel->bazel test //... - None found:
<test-command>
- Node.js / TypeScript:
- Record as
VerificationCommandto populate generated README contracts.
Step 1: Startup Branching Control
- Check the
is_workerinput parameter. - If
is_workeristrue, jump directly to Step 4: Sub-Orchestrator Worker Flow to process the assignedsub_tree_root. - If
is_workerisfalseor unset, proceed as the Root Orchestrator to Step 2: Incremental Scoping & Safety Gate.
Step 2: Incremental Scoping & Safety Gate (Root Orchestrator)
- **Incremental BFS Discov
자주 묻는 질문
Elephant and Goldfish 모델은 무엇인가요?
지속되는 메인 맥락과 새 맥락의 검토자를 짝지어, 숨은 가정을 찾아내는 설계 방법입니다.
어떤 도구와 함께 쓸 수 있나요?
Claude Code, Codex, Antigravity처럼 하위 에이전트를 시작할 수 있는 에이전트 도구를 위해 작성되었습니다.
Peanut이나 Hay 파일은 무엇인가요?
Peanut은 하나의 리프 패키지를 위한 README이고, Hay는 그 아래 부분을 색인하는 상위 README입니다.
상세 정보
작성자의 원본 설명
Bootstrap directory README.md files across a repository subtree.
인기도
- GitHub 스타
- 10k
- 순위
- #11877
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
egm-brainstorm
10k에이전트가 질문과 비판적 검토를 통해 막연한 아이디어를 명확하고 검토된 콘셉트 요약으로 바꾸도록 돕습니다.
egm-draft
10k합의된 콘셉트 요약이나 메모를 바탕으로 설계 문서를 한 섹션씩 쓰도록 돕습니다.
egm-drift-report
10k설계 문서를 코드와 대조해, 코드가 문서의 설명과 더 이상 맞지 않는 부분을 찾습니다.
egm-resolve
10k설계 문서의 검토 결과를 하나씩 처리하며, 명확한 수정은 적용하고 나머지는 사용자에게 묻습니다.
비슷한 스킬
technical-documentation
394k에이전트가 명확한 기술 문서와 에이전트 지침 파일을 작성하고 검토하도록 도와, 사람과 AI 도구가 쉽게 따를 수 있게 합니다.
architecture-decision-records
280k에이전트가 프로젝트 구조에 관한 중요한 결정을 기록하도록 합니다. 선택의 이유를 이해하고 변경 이력을 명확히 유지하는 데 도움이 됩니다.
code-tour
280k에이전트가 정확한 파일과 줄 번호를 참조하는 단계별 코드 안내를 만들도록 합니다. 소개, 설명, 리뷰에 유용합니다.