Open-source skills for designing and reviewing software with AI agents
Python agent-skillsai-agentsantigravityclaude-codeclaude-code-pluginclaude-skillscodexcodex-plugincoding-agentscontext-engineeringdeveloper-toolsgeminillmmulti-agentprompt-engineeringspec-driven-development
Use shared skill icons and refine the website
n3wth9bd733568a38
diff --git a/.github/workflows/deploy-site.yml b/.github/workflows/deploy-site.ymlindex 6c30c7e..3766f99 100644--- a/.github/workflows/deploy-site.yml+++ b/.github/workflows/deploy-site.yml@@ -28,6 +28,7 @@ on:branches: [main]paths:- 'site/**'+ - 'skills/*/assets/*.svg'- '.github/workflows/deploy-site.yml'workflow_dispatch:diff --git a/site/README.md b/site/README.mdindex 9479eb8..ec7475c 100644--- a/site/README.md+++ b/site/README.md@@ -12,7 +12,11 @@ GitHub Pages.-+++++</details>@@ -34,6 +38,17 @@ GitHub Pages.components' documented custom properties. Do not restyle component boxes.- Keep skill names and commands identical to the repository README.+## Skill icons++`src/components/SkillIcon.astro` imports the canonical+`../skills/egm_*/assets/icon.svg` files with `?url`. The website and plugin packages+use these same assets; do not copy them into `public/` or redraw them in components.+Each decorative glyph is 28px inside a 40px circle using the existing surface+tokens, with an adjacent skill name or command providing its accessible label.+The workflow and skill catalog share this component. The workflow shows+Brainstorm, Draft, and Review, followed by a short handoff to the coding agent and+a separate Check for drift follow-up after implementation.+## Develop```shdiff --git a/site/screenshots/full-dark.png b/site/screenshots/full-dark.pngnew file mode 100644index 0000000..2dfb041Binary files /dev/null and b/site/screenshots/full-dark.png differdiff --git a/site/screenshots/full-light.png b/site/screenshots/full-light.pngindex a61fd81..0b02841 100644Binary files a/site/screenshots/full-light.png and b/site/screenshots/full-light.png differdiff --git a/site/screenshots/hero-dark.png b/site/screenshots/hero-dark.pngindex 0fb906f..680efc9 100644Binary files a/site/screenshots/hero-dark.png and b/site/screenshots/hero-dark.png differdiff --git a/site/screenshots/hero-light.png b/site/screenshots/hero-light.pngindex fd458ab..7c6fe6f 100644Binary files a/site/screenshots/hero-light.png and b/site/screenshots/hero-light.png differdiff --git a/site/screenshots/mobile-dark.png b/site/screenshots/mobile-dark.pngnew file mode 100644index 0000000..40f5ee2Binary files /dev/null and b/site/screenshots/mobile-dark.png differdiff --git a/site/screenshots/mobile.png b/site/screenshots/mobile.pngindex e3b4862..f7c4137 100644Binary files a/site/screenshots/mobile.png and b/site/screenshots/mobile.png differdiff --git a/site/scripts/capture.mjs b/site/scripts/capture.mjsindex 9648f26..e30f66e 100644--- a/site/scripts/capture.mjs+++ b/site/scripts/capture.mjs@@ -60,7 +60,9 @@ try {await capture({ url: `${base}/`, out: 'screenshots/hero-light.png', width: 1200, height: 600 });await capture({ url: `${base}/`, out: 'screenshots/hero-dark.png', width: 1200, height: 600, scheme: 'dark' });await capture({ url: `${base}/`, out: 'screenshots/full-light.png', width: 1000, height: 800, fullPage: true });- await capture({ url: `${base}/`, out: 'screenshots/mobile.png', width: 375, height: 812 });+ await capture({ url: `${base}/`, out: 'screenshots/full-dark.png', width: 1000, height: 800, scheme: 'dark', fullPage: true });+ await capture({ url: `${base}/`, out: 'screenshots/mobile.png', width: 375, height: 812, fullPage: true });+ await capture({ url: `${base}/`, out: 'screenshots/mobile-dark.png', width: 375, height: 812, scheme: 'dark', fullPage: true });} finally {await browser.close();server.close();diff --git a/site/src/components/Footer.astro b/site/src/components/Footer.astroindex 38ad054..7a77635 100644--- a/site/src/components/Footer.astro+++ b/site/src/components/Footer.astro@@ -3,7 +3,6 @@const repo = 'https://github.com/google/elephant-goldfish-model';const links = [- { label: 'GitHub', href: repo },{ label: 'Apache 2.0', href: `${repo}/blob/HEAD/LICENSE` },{ label: 'Privacy', href: 'https://policies.google.com/privacy' },{ label: 'Terms', href: 'https://policies.google.com/terms' },@@ -52,10 +51,9 @@ const links = [<style>.footer {- padding-block: 0 40px;+ padding-block: 0 24px;}-/* One row: legal on the left, links on the right. When the row cannot hold both,the links wrap under the legal line, both flush left. */.bar {@@ -63,8 +61,8 @@ const links = [flex-wrap: wrap;justify-content: space-between;align-items: center;- gap: 16px 40px;- padding-block-start: 28px;+ gap: 4px 24px;+ padding-block-start: 16px;}/* Same size as the links so the row reads as one line. */@@ -72,15 +70,16 @@ const links = [display: flex;flex-wrap: wrap;align-items: center;- gap: 8px 16px;- font: var(--md-sys-typescale-label-lg);+ gap: 4px 8px;+ font: var(--md-sys-typescale-label-md);+ font-weight: 400;}/* The G takes the legal line's color. */.g {flex: none;- inline-size: 16px;- block-size: 16px;+ inline-size: 14px;+ block-size: 14px;fill: currentColor;}@@ -90,11 +89,14 @@ const links = [padding: 0;display: flex;flex-wrap: wrap;- gap: 8px 24px;+ gap: 4px 20px;}li a {- font: var(--md-sys-typescale-label-lg);+ display: inline-flex;+ align-items: center;+ min-block-size: 24px;+ font: var(--md-sys-typescale-label-md);text-decoration: none;color: var(--md-sys-color-on-surface-variant);}diff --git a/site/src/components/Hero.astro b/site/src/components/Hero.astroindex 93cc313..aaadb05 100644--- a/site/src/components/Hero.astro+++ b/site/src/components/Hero.astro@@ -7,8 +7,8 @@ const prompt = 'Install https://github.com/google/elephant-goldfish-model';<section class="hero" id="top"><div class="wrap hero-inner"><h1 class="display">- Design with an elephant<br />- Review with a goldfish+ Design with an elephant.<br />+ Review with a goldfish.</h1><p class="lead">Thousands of Google engineers use this <span class="nowrap">open-source</span> plugin todiff --git a/site/src/components/Install.astro b/site/src/components/Install.astroindex 8bbfeaa..88f7fc5 100644--- a/site/src/components/Install.astro+++ b/site/src/components/Install.astro@@ -35,7 +35,7 @@ const cliPaths = [<section class="section install" id="install"><div class="wrap"><div class="section-head">- <h2 class="headline">Install the plugin</h2>+ <h2 class="headline">Install the plugin.</h2></div><div class="paths">diff --git a/site/src/components/Loop.astro b/site/src/components/Loop.astroindex c722f1e..eadae74 100644--- a/site/src/components/Loop.astro+++ b/site/src/components/Loop.astro@@ -1,77 +1,58 @@---+import SkillIcon from './SkillIcon.astro';+const steps = [{name: 'Brainstorm',- role: 'Elephant',+ icon: 'brainstorm',command: '/egm-brainstorm',body: 'Clarify a rough idea through open-ended questioning and stress-test the hypothesis into a concept brief.',},{name: 'Draft',- role: 'Elephant',+ icon: 'draft',command: '/egm-draft',body: 'Turn the brief into a living design doc under docs/designs/, section by section.',},{name: 'Review',- role: 'Goldfish',+ icon: 'review',command: '/egm-review',body: 'Fresh zero-context Goldfish subagents check completeness, clarity, self-containment, and implementation readiness.',},-];+] as const;---<section class="section loop"><div class="wrap"><div class="section-head">- <h2 class="headline">From idea to a verified spec</h2>+ <h2 class="headline">Go from an idea to a verified spec.</h2></div><ol class="steps">{- steps.map((step, i) => (+ steps.map((step) => (<li class="step">- <span class="badge badge-large">{i + 1}</span>- <div class="title-row">- <h3 class="title">{step.name}</h3>- <span class="role">{step.role}</span>- </div>- <code class="cmd">{step.command}</code>+ <span class="marker"><SkillIcon skill={step.icon} /></span>+ <h3 class="title">{step.name}</h3>+ <span class="cmd">{step.command}</span><p class="muted">{step.body}</p></li>))}- <li class="step">- <span class="badge badge-large" aria-hidden="true">- <svg viewBox="0 -960 960 960">- <path d="M647-440H160v-80h487L423-744l57-56 320 320-320 320-57-56 224-224Z"></path>- </svg>- </span>- <div class="title-row">- <h3 class="title">Build the code</h3>- <span class="role">You</span>- </div>- <span class="no-skill">No skill needed</span>- <p class="muted">- Hand the verified spec directly to your coding agent to build the feature.- </p>- </li>- <li class="step drift">- <span class="marker" aria-hidden="true">- <svg viewBox="0 -960 960 960">- <path- d="M204-318q-22-38-33-78t-11-82q0-134 93-228t227-94h7l-64-64 56-56 160 160-160 160-56-56 64-64h-7q-100 0-170 70.5T240-478q0 26 6 51t18 49l-60 60ZM481-40 321-200l160-160 56 56-64 64h7q100 0 170-70.5T720-482q0-26-6-51t-18-49l60-60q22 38 33 78t11 82q0 134-93 228t-227 94h-7l64 64-56 56Z"- ></path>- </svg>- </span>- <div class="drift-head">- <h3 class="title">Then weekly</h3>- <code class="cmd">/egm-drift-report</code>- </div>- <p class="muted">- Compare your codebase against your specs to find where they diverge.- </p>- </li></ol>+ <p class="handoff muted">+ Once you approve the spec, ask your coding agent to build it.+ </p>+ <div class="step drift">+ <span class="marker"><SkillIcon skill="drift_report" /></span>+ <div class="drift-head">+ <h3 class="title">Check for drift</h3>+ <span class="cmd">/egm-drift-report</span>+ </div>+ <p class="muted">+ After implementation, compare the code with the spec and report where they diverge.+ </p>+ </div></div></section>@@ -80,13 +61,13 @@ const steps = [background: var(--md-sys-color-surface-container-low);}- /* One continuous rule carries the sequence; each step's number sits on the line. */+ /* One continuous rule carries the sequence; each step's marker sits on the line. */.steps {list-style: none;margin: 0;padding: 0;display: grid;- grid-template-columns: repeat(4, minmax(0, 1fr));+ grid-template-columns: repeat(3, minmax(0, 1fr));row-gap: 48px;}@@ -99,99 +80,40 @@ const steps = [display: flex;flex-direction: column;gap: 10px;- padding-block-start: 32px;+ padding-block-start: 44px;padding-inline-end: 24px;border-block-start: 1px solid var(--md-sys-color-outline-variant);}- .step:nth-child(4n) {+ .steps .step:last-child {padding-inline-end: 0;}- /* Badge theming through its documented custom properties. The outline in the band- color lifts the number off the rule. */- .step :global(.badge),+ /* The outline in the band color lifts each marker off the rule. */.marker {- --label-text: var(--md-sys-typescale-label-lg);- --size: 28px;position: absolute;- inset-block-start: -14px;+ inset-block-start: -20px;inset-inline-start: 0;outline: 6px solid var(--md-sys-color-surface-container-low);- }-- /* Elephant steps (Brainstorm, Draft) and the Goldfish step (Review) use the brand marks. */- .step:nth-child(1) :global(.badge),- .step:nth-child(2) :global(.badge) {- --container-color: var(--egm-color-elephant);- --label-text-color: var(--egm-color-on-elephant);- }-- .step:nth-child(3) :global(.badge) {- --container-color: var(--egm-color-goldfish);- --label-text-color: var(--egm-color-on-goldfish);- }-- .step:nth-child(4) :global(.badge) {- --container-color: var(--md-sys-color-primary);- --label-text-color: var(--md-sys-color-on-primary);- }-- .marker {- display: grid;- place-items: center;- inline-size: 28px;- block-size: 28px;+ display: flex;+ inline-size: 40px;+ block-size: 40px;border-radius: 50%;- background: var(--md-sys-color-surface-container-low);- border: 1px solid var(--md-sys-color-outline);- color: var(--md-sys-color-on-surface);}- .step :global(.badge) > svg,- .marker > svg {- inline-size: 16px;- block-size: 16px;- fill: currentColor;+ .handoff {+ margin-block: 32px 52px;}.cmd {font-size: 0.875rem;- color: var(--md-sys-color-on-surface);- background: var(--md-sys-color-surface-container-high);- border-radius: 6px;- padding: 2px 8px;- inline-size: fit-content;- }-- /* Role sits beside the heading, not inside it, so screen readers announce the heading as just the step name. */- .title-row {- display: flex;- align-items: baseline;- gap: 8px;- }-- .role {- font: var(--md-sys-typescale-label-lg);- color: var(--md-sys-color-on-surface-variant);- }-- .no-skill {- font: var(--md-sys-typescale-label-md);- font-size: 0.875rem;- letter-spacing: 0;color: var(--md-sys-color-on-surface-variant);- border: 1px dashed var(--md-sys-color-outline);- border-radius: 6px;- padding: 2px 8px;- inline-size: fit-content;}- /* The weekly check is not a fifth step: same anatomy, laid across the whole rule. */+ /* The drift check follows implementation, laid across the whole rule. */.drift {- grid-column: 1 / -1;display: grid;- grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);+ grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);column-gap: 0;align-items: start;padding-inline-end: 0;@@ -210,33 +132,14 @@ const steps = [padding-block-start: 2px;}- @media (max-width: 1000px) {- .steps {- grid-template-columns: repeat(2, minmax(0, 1fr));- }-- .step:nth-child(4n) {- padding-inline-end: 24px;- }-- .step:nth-child(2n) {- padding-inline-end: 0;- }-- .drift {- grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);- }- }-- @media (max-width: 560px) {+ @media (width < 760px) {.steps {grid-template-columns: 1fr;- row-gap: 40px;+ row-gap: 52px;}- .step,- .step:nth-child(2n),- .step:nth-child(4n) {+ .step {+ padding-block-start: 40px;padding-inline-end: 0;}diff --git a/site/src/components/Model.astro b/site/src/components/Model.astroindex a67a42f..8bd6da8 100644--- a/site/src/components/Model.astro+++ b/site/src/components/Model.astro@@ -8,7 +8,7 @@ const essay =<section class="section" id="model"><div class="wrap"><div class="section-head">- <h2 class="headline">How the model works</h2>+ <h2 class="headline">Design with context. Review with fresh eyes.</h2><p class="lead"><a href="https://dkr.bio" target="_blank" rel="noopener">Dave Rensin</a> introduces thisapproach in{' '}@@ -43,40 +43,21 @@ const essay =</article></div>- <hr class="divider" />-- <div class="human">- <div>- <h3 class="title">You</h3>- <p class="role-sub">Final decision</p>- </div>- <p class="muted">- Agents explore options and audit drafts, while engineers make the architectural trade-offs- and approve every specification before implementation.- </p>- </div>+ <p class="approval muted">+ You make the architectural decisions and approve the spec before implementation.+ </p></div></section><style>- .pair,- .human {+ .pair {display: grid;grid-template-columns: repeat(2, minmax(0, 1fr));gap: 32px clamp(32px, 6vw, 96px);}- .pair {- padding-block-end: clamp(40px, 6vw, 64px);- }-- .human {- padding-block-start: clamp(32px, 5vw, 48px);- }-- @media (max-width: 820px) {- .pair,- .human {+ @media (max-width: 640px) {+ .pair {grid-template-columns: 1fr;}}@@ -102,9 +83,8 @@ const essay =margin-block: 2px 14px;}- .human .muted {- font: var(--md-sys-typescale-body-lg);- max-inline-size: 50ch;- text-wrap: balance;+ .approval {+ margin-block-start: 32px;+ max-inline-size: 70ch;}</style>diff --git a/site/src/components/SkillIcon.astro b/site/src/components/SkillIcon.astronew file mode 100644index 0000000..607e32e--- /dev/null+++ b/site/src/components/SkillIcon.astro@@ -0,0 +1,42 @@+---+import bootstrap from '../../../skills/egm_bootstrap/assets/icon.svg?url';+import brainstorm from '../../../skills/egm_brainstorm/assets/icon.svg?url';+import draft from '../../../skills/egm_draft/assets/icon.svg?url';+import resolve from '../../../skills/egm_resolve/assets/icon.svg?url';+import drift_report from '../../../skills/egm_drift_report/assets/icon.svg?url';+import review from '../../../skills/egm_review/assets/icon.svg?url';+import review_loop from '../../../skills/egm_review_loop/assets/icon.svg?url';++const icons = { bootstrap, brainstorm, draft, resolve, drift_report, review, review_loop };++interface Props {+ skill: keyof typeof icons;+}++const { skill } = Astro.props;+---++<span class="skill-icon" aria-hidden="true">+ <img src={icons[skill]} width="28" height="28" alt="" />+</span>++<style>+ .skill-icon {+ display: inline-grid;+ place-items: center;+ flex: none;+ inline-size: 40px;+ block-size: 40px;+ border-radius: 50%;+ background: light-dark(+ var(--md-sys-color-surface-container),+ var(--md-sys-color-surface-container-low)+ );+ }++ img {+ display: block;+ inline-size: 28px;+ block-size: 28px;+ }+</style>diff --git a/site/src/components/Skills.astro b/site/src/components/Skills.astroindex 62c4572..b5e0aae 100644--- a/site/src/components/Skills.astro+++ b/site/src/components/Skills.astro@@ -1,39 +1,53 @@---+import SkillIcon from './SkillIcon.astro';+const repo = 'https://github.com/google/elephant-goldfish-model';-// User-facing slash-command entry points from the repository Skills Catalog.+// Authoring skills first, then review skills. This is also the mobile reading order.const skills = [{name: 'Brainstorm',command: '/egm-brainstorm',- dir: 'egm_brainstorm',- body: 'Ideate before any document exists. Clarify the problem and stress-test the raw concept into a structured brief.',+ icon: 'brainstorm',+ body: 'Test an idea and write a concept brief.',},{name: 'Draft',command: '/egm-draft',- dir: 'egm_draft',- body: 'Compile a markdown design specification section by section, with the Elephant holding the full context.',+ icon: 'draft',+ body: 'Turn a brief or existing notes into a design document.',},{- name: 'Review',- command: '/egm-review',- dir: 'egm_review',- body: 'Run the multi-stage Goldfish verification pipeline: zoom out, comprehension, critic, readiness.',+ name: 'Resolve',+ command: '/egm-resolve',+ icon: 'resolve',+ body: 'Work through review findings and agree on changes.',},{name: 'Bootstrap',command: '/egm-bootstrap',- dir: 'egm_bootstrap',- body: 'Generate bottom-up documentation for an existing codebase and keep it current in sentinel blocks.',+ icon: 'bootstrap',+ body: 'Create or update documentation for an existing codebase.',+ },+ {+ name: 'Review',+ command: '/egm-review',+ icon: 'review',+ body: 'Review a design with fresh agents across five stages.',+ },+ {+ name: 'Review loop',+ command: '/egm-review-loop',+ icon: 'review_loop',+ body: 'Run a configured group of reviewers for a specific review task.',},{name: 'Drift Report',command: '/egm-drift-report',- dir: 'egm_drift_report',- body: 'Scan the syntax tree to flag where live code diverges from checked-in specs.',+ icon: 'drift_report',+ body: 'Compare checked-in documents with the current source code.',},-];+] as const;---<section class="section skills" id="skills">@@ -47,22 +61,18 @@ const skills = [<li><aclass="ripple focus-ring-outer list-item"- href={`${repo}/blob/main/skills/${skill.dir}/SKILL.md`}+ href={`${repo}/blob/main/skills/egm_${skill.icon}/SKILL.md`}target="_blank"rel="noopener"><span class="list-item-leading">- <code class="cmd">{skill.command}</code>+ <SkillIcon skill={skill.icon} /></span><span class="list-item-content">- {skill.name}+ <span>{skill.name}</span>+ <span class="cmd">{skill.command}</span><span class="list-item-supporting-text">{skill.body}</span></span>- <span class="list-item-trailing">- <svg viewBox="0 -960 960 960" aria-hidden="true">- <path d="m216-160-56-56 464-464H360v-80h400v400h-80v-264L216-160Z" />- </svg>- </span></a></li>))@@ -72,72 +82,63 @@ const skills = [</section><style>- /* An index, not a stack of cards: hairline rows, the command in its own column so the- five commands read as one aligned list, name and description beside it. List item- theming goes through the component's documented custom properties. */+ /* Keep each skill's purpose and command together in a borderless catalog. */.skills .list {+ display: grid;+ grid-auto-flow: column;+ grid-template-columns: repeat(2, minmax(0, 1fr));+ grid-template-rows: repeat(4, auto);+ gap: 16px 32px;border-radius: 0;- border-block-start: 1px solid var(--md-sys-color-outline-variant);- }-- .skills .list > li {- border-block-end: 1px solid var(--md-sys-color-outline-variant);}.skills .list-item {text-decoration: none;--container-shape: var(--md-sys-shape-corner-md);--label-text: var(--md-sys-typescale-title-lg);- --top-space: 22px;- --bottom-space: 24px;+ --top-space: 14px;+ --bottom-space: 16px;--leading-space: 8px;--trailing-space: 8px;- --between-space: 24px;- --trailing-icon-size: 22px;- align-items: baseline;- /* The package rounds a list's first and last rows by inheriting the list's own corners.- With the straight hairline above (list radius 0) that left the end rows half-square on- hover; every row's state layer now follows its own shape token on all four corners. */+ --between-space: 16px;+ align-items: flex-start;+ block-size: 100%;+ /* Keep the first and last rows' hover corners consistent with the middle rows. */border-radius: var(--container-shape);}.skills .list-item-leading {+ display: flex;+ align-items: center;flex: none;- inline-size: 15rem;+ inline-size: 40px;min-height: 0;}- .skills .list-item-trailing {- align-self: center;+ .skills .list-item-content {+ min-inline-size: 0;}.skills .list-item-supporting-text {- max-inline-size: 56ch;- margin-block-start: 2px;- text-wrap: balance;+ max-inline-size: 40ch;+ margin-block-start: 8px;+ text-wrap: pretty;}.cmd {- font-size: 0.8125rem;+ margin-block-start: 6px;+ font-size: 0.875rem;+ font-weight: 400;+ line-height: 1.55;color: var(--md-sys-color-on-surface-variant);}@media (max-width: 760px) {- .skills .list-item {- flex-wrap: wrap;- --between-space: 16px;- --top-space: 18px;- --bottom-space: 20px;- }-- .skills .list-item-leading {- inline-size: 100%;- line-height: 1.25rem;- margin-block-end: -6px;- }-- .skills .list-item-content {- flex-basis: 0;+ .skills .list {+ grid-auto-flow: row;+ grid-template-columns: 1fr;+ grid-template-rows: none;+ row-gap: 4px;}}</style>