stitch::manage-design-system
できること
このスキルは、Google Stitchプロジェクトのデザインシステムを管理します。これは今後の画面の見た目を決めます。プロジェクト全体で一貫した画面が欲しいデザイナーやチーム向けです。
使う場面
- ✓新しいStitchのプロジェクトを始め、一定のビジュアルスタイルを決めたいとき。
- ✓既存のStitchの画面からデザインシステムを取り出したいとき。
- ✓プロジェクトの画面に、デザインシステムを適用したいとき。
スキルのリンク
https://github.com/google-labs-code/stitch-skills/blob/main/plugins/stitch-design/skills/manage-design-system/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“Stitchでダークブルーのテーマと Interフォントのデザインシステムを作り、私のプロジェクトの画面に適用してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このスキルは、プロジェクトと画面を見つけ、そのデザインの詳細を読みます。そして、そこから、またはあなたが書いた説明から、デザインシステムを作るか更新します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Design-System
Create a "source of truth" for your project's design language to ensure consistency across all future screens.
[!NOTE] Refer to your system prompt for instruction on handling MCP tool prefixes for all tools mentioned in this skill (e.g.,
get_screen,create_design_system_from_design_md,apply_design_system).
📥 Retrieval
To analyze a Stitch project, you must retrieve metadata and assets using the Stitch MCP tools:
- Project lookup: Use
list_projectsto find the targetprojectId. - Screen lookup: Use
list_screensfor thatprojectIdto find representative screens (e.g., "Home", "Main Dashboard"). - Metadata fetch: Call
get_screenfor the target screen to getscreenshot.downloadUrlandhtmlCode.downloadUrl. - Asset download: Use
read_url_contentto fetch the HTML code.
🧠 Synthesis from Description
If you need to extract a design system from existing screens, use the design-md skill (in the stitch-utilities plugin).
If there are no existing screens (new project), or the user provides a direct description (e.g., "dark theme, blue and purple, rounded, Inter font"):
- Map the user's vague terms to precise values using the design mappings (see
design-mdskill institch-utilitiesorgenerate-designskill). - Select concrete hex codes, font families, and roundness values.
- Generate the
DESIGN.mdfile (refer to thedesign-mdskill institch-utilitiesfor structure). - Proceed to the "Create or Update Design System in Stitch" step below.
📝 Output Structure
The DESIGN.md file should follow the structure defined in the design-md skill (in the stitch-utilities plugin).
🚀 Create or Update Design System in Stitch
After generating .stitch/DESIGN.md, make sure to also create or update the
design system in Stitch.
Two-step design system creation:
[!WARNING] Checkpoint — User Confirmation Required. Before uploading, you MUST pause and ask the user for confirmation. Present a summary of the design system you are about to create (display name, key colors, fonts, and roundness) and wait for explicit approval before proceeding. Do NOT upload until the user confirms.
- Upload
DESIGN.md:Option A (Recommended - Uploader Script): Use the modified
upload-to-stitchPython script which natively handles.mdfiles. It base64-encodes the markdown file in-process and sends it to the/v1/projects/{projectId}/screens:batchCreateendpoint, bypassing output token limits.python3 stitch-skills/plugins/stitch-design/skills/upload-to-stitch/scripts/upload_to_stitch.py \ --project-id <PROJECT_ID> \ --file-path /path/to/DESIGN.md \ --api-key <API_KEY> \ --generated-by <GENERATED_BY>Set
<GENERATED_BY>to identify the skill or tool that produced theDESIGN.md. Use the calling skill name when invoked from another skill (e.g.stitch::code-to-design), or the agent/tool name for standalone use (e.g.Gemini,Claude Code). If omitted, the script defaults toUserUploadedDesignMd.This returns the
sourceScreenID and thescreenInstanceID.Option B (Direct MCP Tool): If the
DESIGN.mdis small (under ~5KB), you can call theupload_design_mdMCP tool directly, passing the base64-encoded design markdown content asdesignMdBase64.
- Create Design System: Call the
create_design_system_from_design_mdtool immediately after the upload, passing theprojectIdand theselectedScreenInstance(containing theidandsourceScreenreturned from the upload step).
Once the upload script and create_design_system_from_design_md have both completed,
Stitch holds the design tokens at the project level — you do NOT need to repeat
them in generation prompts.
🎨 Apply Design System to Screens
Use apply_design_system to apply a design system to existing screens.
[!IMPORTANT]
selectedScreenInstancesmust contain onlyidandsourceScreen— do NOT include position/dimension fields (x,y,width,height) or the request will fail with "invalid argument". Get the screen instance IDs fromget_project.
{
"projectId": "...",
"assetId": "...",
"selectedScreenInstances": [
{
"id": "...",
"sourceScreen": "projects/.../screens/..."
}
]
}
How to get the required IDs:
- Call
get_projectto retrieve `screenInstance
よくある質問
書いた説明から始められますか?
はい。新しいプロジェクトでは、ダークテーマや青といった説明を、正確な値に変えられます。
デザインシステムは何に使われますか?
画面全体で、色、フォント、角丸を一貫させるために使われます。
既存の画面が必要ですか?
いいえ。新しいプロジェクトは、テキストの説明だけから始めることができます。
詳細
作者による元の説明
Manage design systems in Stitch using MCP tools. Includes retrieval of assets, creating/updating design systems in Stitch, and applying them to screens.
人気
- GitHubのスター
- 8.7k
- ランキング
- #12345
- ライセンス
- Apache-2.0
- 更新日
- 2026/8/17
コメント
- …
このリポジトリの他のスキル
stitch::react-components
8.7kエージェントが、Stitchのデザインを ReactとViteのコンポーネントに変換し、既存のコンポーネントを最新のデザインに合わせて更新し、チェックも行えるよう支援します。
stitch::react-native
8.7kエージェントが、StitchのWebデザインをスマホアプリ用のReact Nativeコンポーネントに変換したり、既存のモバイル画面を新しいデザインに合わせて更新したりできるよう支援します。
react-vite-dashboard
8.7kエージェントが、Stitchのデザインからデータの多いReactとViteのダッシュボードを作り、TanStack Queryと、DESIGN.mdファイルのデザイントークンを使えるよう支援します。
shadcn-ui
8.7kエージェントが、RadixまたはBase UIとTailwind CSSで作られたコピー型のUI部品、shadcn/uiを見つけ、インストールし、カスタマイズできるよう支援します。
似ているスキル
brand-discovery
280k構造化されたインタビューを通じて、ブランドのアイデンティティを明確にするのを支援します。ブランドの目的、ターゲット層、個性をまとめた完全なガイドを作成します。
brand-voice
280k実際のブランドの文章に基づいて、ライティングプロフィールを作成します。コンテンツやコミュニケーションで一貫性と信頼性のある文体を保てるようにします。
design-md
260kブランドの色、フォント、スタイルを、AIツールが読める形で一覧にしたDESIGN.mdファイルを書き、確認し、書き出す方法をエージェントに教えます。