Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions public/llms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 —
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
Expand Down Expand Up @@ -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
Expand Down
16 changes: 7 additions & 9 deletions src/layouts/Base.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
Expand Down Expand Up @@ -59,18 +60,15 @@ const nav = [
</main>
<footer class="site-footer">
<div class="wrap">
{/* Whitespace at text↔inline-tag boundaries must stay on one line:
compressHTML eats a newline+indent next to a tag, joining the words. */}
<p>
MIT-licensed and built in the open by RetireGolden, LLC. Source for this site:
<a href="https://github.com/pegma-dev/pegma.dev">pegma-dev/pegma.dev</a> — it deploys on
Cloudflare, the ecosystem's second reference environment.
MIT-licensed and built in the open by RetireGolden, LLC. Source for this
site: <a href="https://github.com/pegma-dev/pegma.dev">pegma-dev/pegma.dev</a> —
it deploys on Cloudflare, the ecosystem's second reference environment.
</p>
<p>
Agents:
<a href="/skill">install skill</a> ·
<a href="/skill.md">skill.md</a> ·
<a href="/catalog.json">catalog.json</a> ·
<a href="/api/mcp">MCP</a> ·
<a href="/llms.txt">llms.txt</a>
Agents: <a href="/start">get started</a> · <a href="/skill">install skill</a> · <a href="/skill.md">skill.md</a> · <a href="/catalog.json">catalog.json</a> · <a href="/api/mcp">MCP</a> · <a href="/llms.txt">llms.txt</a>
</p>
</div>
</footer>
Expand Down
4 changes: 3 additions & 1 deletion src/pages/examples.astro
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ const pendingRecipes = RECIPE_BACKLOG.filter(
Full composition recipes are synthetic on purpose (fictional product shapes).
Machine-readable metadata lives in
<a href="/catalog.json"><code>catalog.json</code></a>. 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 <a href="/start">get-started page</a> covers that setup.
</p>
</section>

Expand Down
4 changes: 4 additions & 0 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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.
</p>
<p class="cta-row">
<a class="primary-button" href="/start">Use Pegma with your coding agent</a>
<a class="secondary-button" href="/stack">Browse the stack</a>
</p>
<p class="notice">
Pegma is in early <code>0.x</code> development. Some packages are published, none are stable,
and every component says so. What is stable is the approach — and everything below is public,
Expand Down
6 changes: 4 additions & 2 deletions src/pages/skill.astro
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ import Base from '../layouts/Base.astro';
<a href="/catalog.json"><code>catalog.json</code></a> — not in the skill.
</p>
<p class="notice">
Canonical raw markdown (copy or fetch):
<a href="/skill.md"><code>https://pegma.dev/skill.md</code></a>
Canonical raw markdown (copy or
fetch): <a href="/skill.md"><code>https://pegma.dev/skill.md</code></a>.
New to Pegma? The <a href="/start">get-started page</a> walks the whole
path — skill, catalog, optional MCP, first prompt.
</p>
</section>

Expand Down
135 changes: 135 additions & 0 deletions src/pages/start.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
---
import Base from '../layouts/Base.astro';
---

<Base
title="Get started — Pegma"
description="Put Pegma in your coding agent: install the assembly skill, point at catalog.json, optionally wire MCP, then assemble from a scaffold or a green recipe."
>
<section class="hero">
<h1>Use Pegma with your coding agent</h1>
<p class="lede">
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 <code>@pegma/*</code> packages, and it does the wiring. Two steps,
an optional third, then a first prompt.
</p>
<p class="notice">
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.
</p>
</section>

<section class="example">
<h2>1. Install the assembly skill</h2>
<p>
The skill is a short judgment document — assemble over generate, explicit
composition root, refusals as hard constraints. It deliberately
holds <strong>no package versions</strong>; 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: <a href="/skill.md"><code>https://pegma.dev/skill.md</code></a>
</p>

<h3>Skills directory (Claude Code, Grok Build, and similar)</h3>
<p>
Tools in this family treat a project directory
containing <code>SKILL.md</code> (with YAML frontmatter — keep it) as an
installable skill. From your project root:
</p>
<pre><code>mkdir -p .claude/skills/pegma
curl -fsSL https://pegma.dev/skill.md -o .claude/skills/pegma/SKILL.md</code></pre>
<pre><code>mkdir -p .grok/skills/pegma
curl -fsSL https://pegma.dev/skill.md -o .grok/skills/pegma/SKILL.md</code></pre>
<p>
Tools that use a generic agent directory follow the same shape, for
example <code>.agents/skills/pegma/SKILL.md</code>.
</p>

<h3>Rules file (Cursor, Codex, and similar)</h3>
<p>
If your tool reads project rules or custom instructions instead of a
skills directory, paste the body of <a href="/skill.md">skill.md</a> into
that file — a Cursor project rule, an <code>AGENTS.md</code>, 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.
</p>
<p>
Longer notes — plugin wrappers and per-tool details — are on
the <a href="/skill">skill page</a>.
</p>
</section>

<section class="example">
<h2>2. Point at the catalog</h2>
<p>
<a href="/catalog.json"><code>https://pegma.dev/catalog.json</code></a> is
the machine-readable source of truth: components, exact npm pins when
known, what each package owns and <strong>refuses</strong>, 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.
</p>
<p>
Nothing to configure here. Just don't defeat it: if you paste the skill
into a rules file, leave the catalog URL intact.
</p>
</section>

<section class="example">
<h2>3. Optional: wire the MCP server</h2>
<p>
The same catalog facts are available as MCP tools over Streamable HTTP
at <code>https://pegma.dev/api/mcp</code> — public reads, no auth, no
private data plane. Useful when your agent prefers tool calls over
fetching JSON:
</p>
<pre><code>{`{
"mcpServers": {
"pegma": {
"url": "https://pegma.dev/api/mcp"
}
}
}`}</code></pre>
<p>
Clients without native remote MCP can proxy
with <code>npx mcp-remote https://pegma.dev/api/mcp</code>. Tool list and
details are on the <a href="/skill">skill page</a>. Skipping this step is
fine — the catalog URL alone is enough.
</p>
</section>

<section class="example">
<h2>4. Assemble something</h2>
<p>Hand your agent a real task. A good first prompt:</p>
<pre><code>Assemble a Cloudflare Worker with passkey accounts using Pegma.
Fetch https://pegma.dev/catalog.json first. Pin exact versions.
Do not invent passwords.</code></pre>
<p>
That exercises the whole path: the skill's judgment, the catalog's pins,
a green recipe
(<a href="/examples#cf-passkey-accounts">accounts on a Cloudflare-shaped
host</a>), and a refusal — Identity is passkeys-first and refuses
passwords outright.
</p>
<p>Two starting points, both CI-tested:</p>
<ul>
<li>
<strong>Scaffold</strong> — an empty-ish Cloudflare-shaped composition
root to
modify: <a href="https://github.com/pegma-dev/pegma.dev/tree/main/recipes/scaffold-cf-minimal"
><code>recipes/scaffold-cf-minimal</code></a
>. Wiring happens in one explicit place; pin versions from the catalog.
</li>
<li>
<strong>Green recipes</strong> — full composition fixtures on
the <a href="/examples">examples page</a>, each quoting its tested
source. Agents should quote these rather than invent wiring.
</li>
</ul>
<p>
Related: <a href="/skill">skill install notes</a> · <a href="/catalog.json">catalog.json</a> · <a href="/examples">examples</a> · <a href="/stack">the stack</a> · <a href="/llms.txt">llms.txt</a>
</p>
</section>
</Base>
21 changes: 20 additions & 1 deletion src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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);
Expand Down
Loading