feat(ui): add component-scaffold skill for MetaMask Mobile#52
Merged
NicolasMassart merged 4 commits intoJun 16, 2026
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a new component-scaffold UI skill scoped to the MetaMask Mobile repo, intended to guide agents in scaffolding new React Native components that follow repository conventions (file placement, MMDS usage, styling, i18n, testing, and exports).
Changes:
- Introduces the
component-scaffoldskill definition (name/description). - Adds MetaMask Mobile–specific scaffolding guidance, checklist, and copy/paste templates.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
domains/ui/skills/component-scaffold/skill.md |
Registers the new component-scaffold skill with frontmatter metadata. |
domains/ui/skills/component-scaffold/repos/metamask-mobile.md |
Provides MetaMask Mobile–specific scaffolding rules, templates, and checklist for new RN components. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…elopment skill hierarchy
…eraction and styling
…t to clarify recommendations on types and test IDs
joaoloureirop
approved these changes
Jun 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes https://consensyssoftware.atlassian.net/browse/MCWP-470
Description
Adds the
component-scaffoldskill for the MetaMask Mobile repository. The skill teaches agents how to scaffold a new React Native component following all repo conventions: directory placement, required file set, MMDS design-system layer, styling patterns (twClassName / Box enums), i18n, relative imports, testIds, test quality, barrel registration, and bottom-sheet specifics. Includes a full scaffold checklist and copy-paste file templates.Type of Change
Skill Details (if adding a new skill)
Provider Name: MetaMask Mobile
Skill Name: component-scaffold
Brief Description: Scaffolds a new React Native component for MetaMask Mobile following all repo conventions (file structure, MMDS design system, i18n, tests, testIds, barrel exports).
Note
Marked as stable (implicit default): the skill is grounded in existing codebase patterns and the evaluation shows ≥95% correctness across 4 models and 5 prompts, providing sufficient evidence to skip the experimental gate.
Checklist
Testing
Evaluated with an automated harness: 4 models × 5 prompts, judged by
claude-opus-4-8-thinking-highusing an 11-criterion rubric derived directly from the skill.Prompts (increasing difficulty)
useElevatedSurface+ gesture-handlerScrollView)renderWithProvider)Results
Attached evidence
eval-explainer.md— methodology and how to read the resultsmetrics.md— full scored matrix across all models and criteriadataset.md— generated code + judge rationale per runAdditional Context
The evaluation harness scripts are not published yet, only the result in the above archive.
Reference implementations in metamask-mobile: