Zum Inhalt springen
Skillpedia
Dokumentation10k · #11877

egm-bootstrap

Was er macht

Dieser Skill erstellt und prüft README-Dateien für die Ordner eines Code-Projekts, damit jeder Teil seine Aufgabe klar beschreibt. Er ist für Teams gedacht, die die Methode Elephant and Goldfish nutzen.

Wann du ihn nutzt

  • ✓Wenn für die Ordner eines Projekts README-Dateien geschrieben oder aktualisiert werden müssen.
  • ✓Wenn die README jedes Ordners dem Format Elephant and Goldfish entsprechen soll.
  • ✓Wenn du eine übergeordnete README willst, die die Teile darunter zusammenfasst.

Link zum Skill

https://github.com/google/elephant-goldfish-model/blob/main/distributions/claude/skills/egm-bootstrap/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/google/elephant-goldfish-model/blob/main/distributions/claude/skills/egm-bootstrap/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Lege in jedem Ordner dieses Projekts eine README-Datei an und halte dich dabei an das Format Elephant and Goldfish.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Die KI startet für jeden Ordner getrennte Prüfer, schreibt oder korrigiert die README und fasst die Ergebnisse in einem übergeordneten Index zusammen. Die Prüfer arbeiten in frischen Kontexten, damit sie Annahmen finden, die der Autor übersehen hat.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von 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. true if 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)

  1. No Code Generation: You are strictly limited to documentation. Do not write or refactor any functional source code.
  2. 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.
  3. 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.
  4. 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.
  5. Subagent Delegation: Spawn sub-orchestrator workers in parallel.
  6. 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

  1. Inspect the repository root for package/build manifests:
    • Node.js / TypeScript: 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
    • C/C++ / Make: Makefile -> make test
    • Bazel: BUILD / BUILD.bazel -> bazel test //...
    • None found: <test-command>
  2. Record as VerificationCommand to populate generated README contracts.

Step 1: Startup Branching Control

  1. Check the is_worker input parameter.
  2. If is_worker is true, jump directly to Step 4: Sub-Orchestrator Worker Flow to process the assigned sub_tree_root.
  3. If is_worker is false or unset, proceed as the Root Orchestrator to Step 2: Incremental Scoping & Safety Gate.

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

  1. **Incremental BFS Discov
Häufige Fragen

Was ist das Modell Elephant and Goldfish?

Es ist eine Entwurfsmethode. Ein dauerhafter Hauptkontext arbeitet mit frisch gestarteten Prüfern zusammen, die versteckte Annahmen aufdecken.

Mit welchen Werkzeugen funktioniert er?

Er ist für Agenten-Werkzeuge gedacht, die Unteragenten starten können, etwa Claude Code, Codex oder Antigravity.

Was ist eine Peanut- oder Hay-Datei?

Eine Peanut ist die README eines einzelnen Paketblatts. Eine Hay ist eine übergeordnete README, die die Teile darunter auflistet.

Details

Originalbeschreibung des Autors

Bootstrap directory README.md files across a repository subtree.

repo: google/elephant-goldfish-model

Beliebtheit

GitHub-Sterne
10k
Platz im Ranking
#11877
Lizenz
Apache-2.0
Aktualisiert
2.11.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills