🥚 egg
A project scaffolding tool for AI agents and humans.

Full API documentation →
egg turns reusable templates into reviewed project changes. Define macros in
config.yml, put ___MACRO_NAME___ placeholders in files or directories, then
let a person or an agent preview, apply, and roll back the generated result.
Table of Contents
Features
- 🧩 Typed template engine — native placeholders and Stencil files support
simple replacements, conditionals, and loops.
- ⚙️ Programmable lifecycle —
pre_hatch/post_hatch shell steps run
around generation, and later steps can reference earlier outputs.
- 🔁 Reversible transactions — every scaffold can be previewed, applied,
and rolled back or discarded, so nothing you generate is one-way.
- 🤖 Agent integration surface — Agent Skills, Claude Code/Codex plugins,
an MCP server, and
--json output give assistants a structured way in.
Quick Start for Agents
Install the plugin for your agent, then ask it to create or hatch templates.
Claude Code
/plugin marketplace add Ryu0118/Egg
/plugin install egg@egg
Codex
Add the marketplace, then install the plugin:
codex plugin marketplace add Ryu0118/Egg
codex plugin add egg@egg
To develop against a local clone instead, point the marketplace at the checkout:
git clone https://github.com/Ryu0118/Egg
codex plugin marketplace add ./Egg
codex plugin add egg@egg
APM (Agent Package Manager)
With APM, one command installs both skills
into any supported harness (Claude Code, Copilot, Cursor, Codex, and more) and
pins them in apm.lock.yaml:
apm install Ryu0118/Egg
GitHub CLI (gh skill)
GitHub CLI v2.90.0+
ships a gh skill command (alias: gh skills). It pins to the latest release
tag and records provenance (repo, ref, tree SHA) in the installed SKILL.md:
gh skill install Ryu0118/Egg egg-template --agent claude-code
gh skill install Ryu0118/Egg egg-cli-guide --agent claude-code
Run gh skill install Ryu0118/Egg without a skill name for interactive
selection, and use --agent / --scope to control where skills land.
skills CLI (npx skills)
The skills CLI installs into the
shared .agents/skills/ directory used by many agents:
npx skills add Ryu0118/Egg --all
Use --list to inspect available skills first, or -a claude-code to target
a specific agent.
The plugin provides:
egg-cli-guide for CLI commands, the preview/apply/rollback flow, and declaring/syncing templates via eggs.yml.
egg-template for creating and updating config.yml templates.
- MCP server configuration for structured tool calls.
Quick Start for Humans
egg template create --name SwiftPackage --description "A minimal Swift package" --location project
Add macros to .eggs/SwiftPackage/config.yml and use them in file names,
directory names, or file contents.
name: SwiftPackage
description: A minimal Swift package
macros:
- name: ___MODULE_NAME___
description: The Swift module name
type: string
validate: "^[A-Z][A-Za-z0-9]*$"
hatch:
output: "."
.eggs/SwiftPackage/
├── config.yml
└── Sources/
└── ___MODULE_NAME___/
└── ___MODULE_NAME___.swift
For conditional or repeated content, use Stencil files. The .stencil
extension is removed after rendering:
// Sources/App.swift.stencil -> Sources/App.swift
{% for module in ___MODULES___ %}
import {{ module }}
{% endfor %}
When the generated file uses {{ }} for its own purposes — a GitHub Actions
workflow, a Helm chart, a Jinja2 or Handlebars template — wrap that text in
{% raw %} … {% endraw %} so Stencil emits it verbatim instead of resolving it
as an undefined variable: