diff --git a/public/llms.txt b/public/llms.txt index 783cdb5..0c4c0c2 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 — + 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..1ea893d 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 setup.

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..3bc520d --- /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. Two steps, + an optional third, 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:

+ +

+ 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);