Skip to content

docs: turn Extension UI skill into an MMDS gateway - #138

Merged
georgewrmarshall merged 13 commits into
mainfrom
codex/update-extension-ui-storybook-mcp
Sep 2, 2026
Merged

docs: turn Extension UI skill into an MMDS gateway#138
georgewrmarshall merged 13 commits into
mainfrom
codex/update-extension-ui-storybook-mcp

Conversation

@georgewrmarshall

@georgewrmarshall georgewrmarshall commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Description

Refines the MetaMask Extension overlay for ui-development to match the MetaMask Agentic Design System strategy: the skill becomes a thin, stable consumer gateway rather than a hand-written MMDS knowledge copy that goes stale after each release.

The overlay now:

  • States that MMDS is the default source for Extension components, tokens, and documented patterns, with intentional custom UI allowed when documented.
  • Separates Create and Review workflows so agents query current Storybook guidance before building or reviewing UI.
  • Routes primary knowledge through Context Forge’s preconfigured storybook-broker-mcp (list-all-documentation, get-documentation, get-documentation-for-story).
  • Defines an ordered fallback when the broker is unavailable: installed @metamask/design-system-react types, Extension-facing styling packages (@metamask/design-system-tailwind-preset, @metamask/design-tokens), the consumer Tailwind configuration, repository usage examples, release guidance, and the MMDS source repo.
  • Removes the stale ui/pages/design-system/design-system.stories.tsx reference and avoids static component inventories, deprecated-name lists, or MCP setup instructions in the skill itself.
  • Keeps durable Extension constraints (Tailwind/no new SCSS, reuse existing UI, accessibility/localization) and leaves generic coding, scaffolding, and PR mechanics to their own skills.

This implements the Foundation “refine MetaMask Skills into a thin router” work from the agentic design system strategy. Storybook MCP remains the preferred delivery mechanism for current MMDS guidance; the skill encodes the Extension workflow and boundaries.

Strategy context:

Related MMDS work: MetaMask/metamask-design-system#1465

Tracking:

Type of Change

  • New skill
  • Skill improvement/update
  • Bug fix
  • Documentation update
  • Other (please describe):

Skill Details (if adding a new skill)

Provider Name:
Skill Name:
Brief Description:

Checklist

  • I have read the CONTRIBUTING.md guidelines
  • My skill follows the SKILL_TEMPLATE.md format
  • I have tested this skill with an AI agent
  • My skill does not contain any secrets, private keys, or sensitive data
  • I have added appropriate documentation
  • My changes don't break existing skills

Testing

  • node .github/scripts/lint-skill-entry.mjs — 0 errors
  • node --test test/*.test.mjs — 65 passed
  • git diff --check

Additional Context

Follow-up work deferred from this PR:

  • A separate design-system domain and metamask-design-system maintainer overlay for MMDS authoring workflows
  • Resolving the isolated SCSS example in coding-guidelines Extension overlay

georgewrmarshall and others added 11 commits August 28, 2026 16:28
Co-authored-by: George Marshall <georgewrmarshall@users.noreply.github.com>
Co-authored-by: George Marshall <georgewrmarshall@users.noreply.github.com>
Co-authored-by: George Marshall <georgewrmarshall@users.noreply.github.com>
Co-authored-by: George Marshall <georgewrmarshall@users.noreply.github.com>
Co-authored-by: George Marshall <georgewrmarshall@users.noreply.github.com>
Co-authored-by: George Marshall <georgewrmarshall@users.noreply.github.com>
Co-authored-by: George Marshall <georgewrmarshall@users.noreply.github.com>
Co-authored-by: George Marshall <georgewrmarshall@users.noreply.github.com>
Reframe the overlay as a consumer router for Create and Review workflows,
with Storybook MCP as the primary source and package or Tailwind fallbacks
when the broker is unavailable.

Co-authored-by: Cursor <cursoragent@cursor.com>
@georgewrmarshall georgewrmarshall changed the title docs: route extension UI skill through Storybook MCP docs: turn Extension UI skill into an MMDS gateway Sep 1, 2026
@georgewrmarshall georgewrmarshall self-assigned this Sep 1, 2026
This is a consumer gateway, not a second MMDS knowledge base. Do not add static
component inventories, release-specific API lists, or copied component
documentation here. Storybook MCP and the installed package provide current
knowledge; this skill provides the Extension workflow and durable constraints.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This opening frames the skill as the Extension consumer gateway from the agentic design system strategy: MMDS is the default, Storybook MCP supplies current knowledge, and the overlay only carries durable workflow constraints rather than a copied component catalog.

This skill owns MMDS alignment for product UI. Generic TypeScript and React
quality, component file scaffolding, and PR process remain separate concerns and
may be used alongside it. If a repository-specific scaffolding skill is
available, use it for file and test setup; do not duplicate its templates here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The skill boundary is intentionally narrow: MMDS alignment for product UI lives here, while coding guidelines, scaffolding, and PR workflow stay orthogonal. That keeps this overlay stable across MMDS releases without duplicating repo-specific templates or review etiquette.


When reviewing a UI diff, perform an MMDS-specific sub-review. Do not duplicate
general code-review etiquette or decide PR status; report the design-system
evidence and leave PR mechanics to the relevant workflow.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review coverage is limited to MMDS-specific evidence on the diff. The skill tells agents to report component, pattern, token, and custom-UI findings with file-level proof, but explicitly avoids owning PR status or generic review mechanics.

5. Check for new use of APIs or components marked `@deprecated` in current
package metadata or documentation. Do not maintain a deprecated-name list in
this skill; read the current replacement guidance and report a finding when
no replacement is documented.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deprecated usage is checked against the installed package and current documentation instead of a hardcoded name list in the skill. That keeps deprecation guidance current as MMDS React catches up without another stale inventory to maintain.

the installed component or token. Treat examples as usage evidence, not as
a replacement for the installed package contract.
5. A generated MMDS release manifest or repository-provided release guidance.
6. The MMDS source repository as a last resort.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fallback chain covers the Extension-facing MMDS packages and the consumer Tailwind setup, including the v3 preset versus v4 theme.css split. Repository examples are evidence only; installed package types and generated class availability remain the contract when Storybook MCP is down.

preconfigured by the agent environment. Do not install, configure, authenticate,
or invent an endpoint for it from this skill. If the server or a required tool
is unavailable, or a call fails, state that the broker could not be reached and
use the fallback below.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Storybook MCP is treated as environment-provided infrastructure from Context Forge, not something agents configure inside the skill. When the broker is missing or unreachable, the workflow requires stating that explicitly and switching to the ordered fallback rather than guessing APIs.

- Preserve accessibility, localization, and keyboard interaction requirements
shown in the relevant Storybook documentation and stories.
- Use repository-approved exception documentation when custom UI is necessary;
do not invent a new annotation format in this skill.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Custom UI exceptions defer to repository-approved annotation practice instead of inventing a new @mmds-exception format here. That leaves room for the strategy’s proposed exception model to land in Extension code or a future skill without this gateway getting ahead of product conventions.

@georgewrmarshall
georgewrmarshall marked this pull request as ready for review September 1, 2026 22:15
@georgewrmarshall
georgewrmarshall enabled auto-merge (squash) September 1, 2026 22:15
Give agents a discoverable strategy entry point in the skills repo that
links to the canonical Google Doc, FigJam board, and related tracking.

Co-authored-by: Cursor <cursoragent@cursor.com>
@georgewrmarshall
georgewrmarshall merged commit d927c1a into main Sep 2, 2026
28 checks passed
@georgewrmarshall
georgewrmarshall deleted the codex/update-extension-ui-storybook-mcp branch September 2, 2026 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants