egm-bootstrap
यह क्या करती है
यह स्किल कोड प्रोजेक्ट के फ़ोल्डरों के लिए README फ़ाइलें बनाती और जाँचती है, ताकि हर हिस्से के काम का साफ़ विवरण हो। यह Elephant and Goldfish डिज़ाइन तरीका अपनाने वाली टीमों के लिए है।
कब इस्तेमाल करें
- ✓जब किसी प्रोजेक्ट के फ़ोल्डरों में README फ़ाइलें लिखनी या अपडेट करनी हों।
- ✓जब आप चाहते हैं कि हर फ़ोल्डर का README Elephant and Goldfish फ़ॉर्मेट में हो।
- ✓जब आप चाहते हैं कि ऊपर का README नीचे के हिस्सों का सार दे।
Skill का लिंक
https://github.com/google/elephant-goldfish-model/blob/main/distributions/claude/skills/egm-bootstrap/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“कृपया इस प्रोजेक्ट के हर फ़ोल्डर में README फ़ाइलें जोड़िए, Elephant and Goldfish फ़ॉर्मेट के अनुसार।”
हर हफ़्ते 5 नई skills, 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
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
egm-brainstorm
10kयह आपके एजेंट को सवालों और समीक्षा के ज़रिए एक कच्चे विचार को साफ़ और जाँचे हुए कॉन्सेप्ट सारांश में बदलने में मदद करती है।
egm-draft
10kयह आपके एजेंट को सहमत कॉन्सेप्ट या आपके नोट्स से डिज़ाइन दस्तावेज़ एक-एक हिस्से में लिखने में मदद करती है।
egm-drift-report
10kयह डिज़ाइन दस्तावेज़ों की तुलना कोड से करके पता लगाती है कि कोड अब दस्तावेज़ों से कहाँ अलग हो गया है।
egm-resolve
10kयह डिज़ाइन दस्तावेज़ की समीक्षा टिप्पणियों को निपटाने में मदद करती है। साफ़ सुधार लागू होते हैं, बाकी पर आपसे पूछा जाता है।
मिलती-जुलती skills
technical-documentation
394kयह आपके एजेंट को साफ़ तकनीकी डॉक्स और एजेंट निर्देश फ़ाइलें लिखने और जांचने में मदद करती है, ताकि लोग और AI टूल उन्हें आसानी से समझ सकें।
architecture-decision-records
280kयह आपके एजेंट को project structure से जुड़े ज़रूरी फैसलों को दर्ज करने देता है। इससे पता चलता है कि कोई चुनाव क्यों किया गया, और बदलावों का साफ़ इतिहास बना रहता है।
code-tour
280kआपके एजेंट को exact file और line references के साथ step-by-step code walkthrough बनाने देता है। intro, explanations और reviews के लिए उपयोगी है।