From 0d64bb2fa964c08cfbdc370d53139a98908b2496 Mon Sep 17 00:00:00 2001
From: Nathan Rover
Date: Wed, 29 Jul 2026 15:02:12 -0400
Subject: [PATCH 1/2] Make the agent get-started path primary: /start hub, nav
entry, hero CTA
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
A first-time visitor previously had to find the footer to learn how to put
Pegma in a coding agent. This makes the cold-start path primary navigation:
- New /start install hub owning the story in four steps: install the skill
(.claude / .grok / .agents directories, rules-file paste for Cursor/Codex),
point at catalog.json as the source of truth, optionally wire the MCP
endpoint, then assemble — first prompt, scaffold-cf-minimal, green recipes.
No versions hardcoded; no invented composition snippets.
- "Get started" nav item and a primary homepage CTA ("Use Pegma with your
coding agent") so discovery no longer depends on the footer.
- /examples and /skill lead-ins link back to the hub; llms.txt gains a
Get started section; footer keeps the power-user links plus /start.
- Fix compressHTML whitespace loss at text/inline-tag boundaries in the
copy this change touches (the footer previously rendered
"Agents:install skill ·skill.md").
Co-Authored-By: Claude Fable 5
---
public/llms.txt | 9 +++
src/layouts/Base.astro | 16 ++---
src/pages/examples.astro | 4 +-
src/pages/index.astro | 4 ++
src/pages/skill.astro | 6 +-
src/pages/start.astro | 135 +++++++++++++++++++++++++++++++++++++++
src/styles/global.css | 21 +++++-
7 files changed, 182 insertions(+), 13 deletions(-)
create mode 100644 src/pages/start.astro
diff --git a/public/llms.txt b/public/llms.txt
index 783cdb5..614644d 100644
--- a/public/llms.txt
+++ b/public/llms.txt
@@ -16,6 +16,13 @@ The stack runs in production behind retiregolden.org (Azure). This site
deploys on Cloudflare from a public repo (pegma-dev/pegma.dev) as the second
reference environment.
+## Get started
+
+- [Get started](https://pegma.dev/start): put Pegma in a coding agent in three
+ steps — install the skill (skill.md), fetch catalog.json for facts and pins,
+ optionally wire the MCP endpoint — then assemble from the scaffold or a green
+ recipe.
+
## Components
- [Spine](https://github.com/pegma-dev/spine): @pegma/spine — shared
@@ -105,6 +112,8 @@ status, design decisions, and non-goals.
## Site
+- [Get started](https://pegma.dev/start): the install hub — skill, catalog,
+ optional MCP, first prompt.
- [The stack](https://pegma.dev/stack): every component — owns, refuses,
status, links.
- [Roadmap](https://pegma.dev/roadmap): the aggregate view; status compiled
diff --git a/src/layouts/Base.astro b/src/layouts/Base.astro
index c5276f7..c537b8f 100644
--- a/src/layouts/Base.astro
+++ b/src/layouts/Base.astro
@@ -10,6 +10,7 @@ const { title, description } = Astro.props;
const path = Astro.url.pathname.replace(/\/$/, '') || '/';
const nav = [
{ href: '/', label: 'Home' },
+ { href: '/start', label: 'Get started' },
{ href: '/stack', label: 'The stack' },
{ href: '/roadmap', label: 'Roadmap' },
{ href: '/examples', label: 'Examples' },
@@ -59,18 +60,15 @@ const nav = [
diff --git a/src/pages/examples.astro b/src/pages/examples.astro
index a4989d3..cb32b1a 100644
--- a/src/pages/examples.astro
+++ b/src/pages/examples.astro
@@ -152,7 +152,9 @@ const pendingRecipes = RECIPE_BACKLOG.filter(
Full composition recipes are synthetic on purpose (fictional product shapes).
Machine-readable metadata lives in
catalog.json. Agents should fetch the
- catalog rather than inventing package sets.
+ catalog rather than inventing package sets — these examples assume your agent
+ has the assembly skill and catalog installed;
+ the get-started page covers that in three steps.
diff --git a/src/pages/index.astro b/src/pages/index.astro
index 24de042..52e63a4 100644
--- a/src/pages/index.astro
+++ b/src/pages/index.astro
@@ -17,6 +17,10 @@ const withCompiledStatus = await Promise.all(components.map(compileComponentStat
probes, structured logging — that a host application composes. Independent packages, one set
of shared contracts, and honest limits stated up front.
+
+ Use Pegma with your coding agent
+ Browse the stack
+
Pegma is in early 0.x development. Some packages are published, none are stable,
and every component says so. What is stable is the approach — and everything below is public,
diff --git a/src/pages/skill.astro b/src/pages/skill.astro
index b6f5ee9..bbd511e 100644
--- a/src/pages/skill.astro
+++ b/src/pages/skill.astro
@@ -15,8 +15,10 @@ import Base from '../layouts/Base.astro';
catalog.json — not in the skill.
- Canonical raw markdown (copy or fetch):
- https://pegma.dev/skill.md
+ Canonical raw markdown (copy or
+ fetch): https://pegma.dev/skill.md.
+ New to Pegma? The get-started page walks the whole
+ path — skill, catalog, optional MCP, first prompt.
diff --git a/src/pages/start.astro b/src/pages/start.astro
new file mode 100644
index 0000000..1f446bf
--- /dev/null
+++ b/src/pages/start.astro
@@ -0,0 +1,135 @@
+---
+import Base from '../layouts/Base.astro';
+---
+
+
+
+ Use Pegma with your coding agent
+
+ Pegma is assembled, not hand-installed: you teach your agent — Claude Code,
+ Cursor, Codex, Grok Build, or anything that reads a markdown skill — how to
+ compose @pegma/* packages, and it does the wiring. Three steps,
+ then a first prompt.
+
+
+ An untrained agent will regenerate sessions, identity, and rate limits from
+ scratch. A trained one composes tested packages and pins exact versions.
+ The whole difference is one markdown file and one JSON URL.
+
+
+
+
+ 1. Install the assembly skill
+
+ The skill is a short judgment document — assemble over generate, explicit
+ composition root, refusals as hard constraints. It deliberately
+ holds no package versions; those live in the catalog
+ (step 2). There is no universal skill registry, so use whichever path your
+ tool supports. The document is plain markdown either
+ way: https://pegma.dev/skill.md
+
+
+ Skills directory (Claude Code, Grok Build, and similar)
+
+ Tools in this family treat a project directory
+ containing SKILL.md (with YAML frontmatter — keep it) as an
+ installable skill. From your project root:
+
+ mkdir -p .claude/skills/pegma
+curl -fsSL https://pegma.dev/skill.md -o .claude/skills/pegma/SKILL.md
+ mkdir -p .grok/skills/pegma
+curl -fsSL https://pegma.dev/skill.md -o .grok/skills/pegma/SKILL.md
+
+ Tools that use a generic agent directory follow the same shape, for
+ example .agents/skills/pegma/SKILL.md.
+
+
+ Rules file (Cursor, Codex, and similar)
+
+ If your tool reads project rules or custom instructions instead of a
+ skills directory, paste the body of skill.md into
+ that file — a Cursor project rule, an AGENTS.md, or the
+ agent's system instructions. Keep the catalog URL in the text so the agent
+ re-fetches facts instead of caching versions in the prompt.
+
+
+ Longer notes — plugin wrappers and per-tool details — are on
+ the skill page.
+
+
+
+
+ 2. Point at the catalog
+
+ https://pegma.dev/catalog.json is
+ the machine-readable source of truth: components, exact npm pins when
+ known, what each package owns and refuses, adapters, and
+ recipe intents with fixture citations. The skill tells the agent to fetch
+ it at the start of every assembly task — versions are never hardcoded in
+ the skill, so a stale skill install cannot pin stale packages.
+
+
+ Nothing to configure here. Just don't defeat it: if you paste the skill
+ into a rules file, leave the catalog URL intact.
+
+
+
+
+ 3. Optional: wire the MCP server
+
+ The same catalog facts are available as MCP tools over Streamable HTTP
+ at https://pegma.dev/api/mcp — public reads, no auth, no
+ private data plane. Useful when your agent prefers tool calls over
+ fetching JSON:
+
+ {`{
+ "mcpServers": {
+ "pegma": {
+ "url": "https://pegma.dev/api/mcp"
+ }
+ }
+}`}
+
+ Clients without native remote MCP can proxy
+ with npx mcp-remote https://pegma.dev/api/mcp. Tool list and
+ details are on the skill page. Skipping this step is
+ fine — the catalog URL alone is enough.
+
+
+
+
+ 4. Assemble something
+ Hand your agent a real task. A good first prompt:
+ Assemble a Cloudflare Worker with passkey accounts using Pegma.
+Fetch https://pegma.dev/catalog.json first. Pin exact versions.
+Do not invent passwords.
+
+ That exercises the whole path: the skill's judgment, the catalog's pins,
+ a green recipe
+ (accounts on a Cloudflare-shaped
+ host), and a refusal — Identity is passkeys-first and refuses
+ passwords outright.
+
+ Two starting points, both CI-tested:
+
+ -
+ Scaffold — an empty-ish Cloudflare-shaped composition
+ root to
+ modify:
recipes/scaffold-cf-minimal. Wiring happens in one explicit place; pin versions from the catalog.
+
+ -
+ Green recipes — full composition fixtures on
+ the examples page, each quoting its tested
+ source. Agents should quote these rather than invent wiring.
+
+
+
+ Related: skill install notes · catalog.json · examples · the stack · llms.txt
+
+
+
diff --git a/src/styles/global.css b/src/styles/global.css
index 6ecd87e..086a3fa 100644
--- a/src/styles/global.css
+++ b/src/styles/global.css
@@ -109,7 +109,8 @@ pre code {
.site-header nav {
display: flex;
- gap: 1.4rem;
+ flex-wrap: wrap;
+ gap: 0.5rem 1.4rem;
font-size: 0.95rem;
}
@@ -170,6 +171,24 @@ pre code {
margin: 0 0 1.5rem;
}
+.cta-row {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.75rem;
+ margin: 0 0 1.75rem;
+}
+
+a.primary-button {
+ display: inline-block;
+ text-decoration: none;
+ padding: 0.65rem 0.9rem;
+ border: 1px solid var(--ink);
+ border-radius: 0.4rem;
+ background: var(--ink);
+ color: var(--paper);
+ font-weight: 650;
+}
+
.notice {
border: 1px solid var(--line);
border-left: 4px solid var(--slate);
From 74959ad55e366c3e60f6e5199bc0d7ba80481c90 Mon Sep 17 00:00:00 2001
From: Nathan Rover
Date: Wed, 29 Jul 2026 15:32:24 -0400
Subject: [PATCH 2/2] Drop the inaccurate "three steps" count from get-started
copy
The /start page has four numbered sections (skill, catalog, optional MCP,
assemble), so "three steps" conflicted with what the reader sees. The lede
now says "Two steps, an optional third, then a first prompt"; examples and
llms.txt drop the count entirely.
Co-Authored-By: Claude Fable 5
---
public/llms.txt | 4 ++--
src/pages/examples.astro | 2 +-
src/pages/start.astro | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/public/llms.txt b/public/llms.txt
index 614644d..0c4c0c2 100644
--- a/public/llms.txt
+++ b/public/llms.txt
@@ -18,8 +18,8 @@ reference environment.
## Get started
-- [Get started](https://pegma.dev/start): put Pegma in a coding agent in three
- steps — install the skill (skill.md), fetch catalog.json for facts and pins,
+- [Get started](https://pegma.dev/start): put Pegma in a coding agent —
+ install the skill (skill.md), fetch catalog.json for facts and pins,
optionally wire the MCP endpoint — then assemble from the scaffold or a green
recipe.
diff --git a/src/pages/examples.astro b/src/pages/examples.astro
index cb32b1a..1ea893d 100644
--- a/src/pages/examples.astro
+++ b/src/pages/examples.astro
@@ -154,7 +154,7 @@ const pendingRecipes = RECIPE_BACKLOG.filter(
catalog.json. Agents should fetch the
catalog rather than inventing package sets — these examples assume your agent
has the assembly skill and catalog installed;
- the get-started page covers that in three steps.
+ the get-started page covers that setup.
diff --git a/src/pages/start.astro b/src/pages/start.astro
index 1f446bf..3bc520d 100644
--- a/src/pages/start.astro
+++ b/src/pages/start.astro
@@ -11,8 +11,8 @@ import Base from '../layouts/Base.astro';
Pegma is assembled, not hand-installed: you teach your agent — Claude Code,
Cursor, Codex, Grok Build, or anything that reads a markdown skill — how to
- compose @pegma/* packages, and it does the wiring. Three steps,
- then a first prompt.
+ compose @pegma/* packages, and it does the wiring. Two steps,
+ an optional third, then a first prompt.
An untrained agent will regenerate sessions, identity, and rate limits from