Full-stack-skills stitch-mcp-get-screen
Retrieve full details of a specific Stitch screen including HTML code, screenshot URL, and metadata. Use when you need to export screen code, analyze generated HTML structure, or feed screen data into a framework conversion skill. Requires projectId and screenId as numeric IDs.
git clone https://github.com/partme-ai/full-stack-skills
T=$(mktemp -d) && git clone --depth=1 https://github.com/partme-ai/full-stack-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/stitch-skills/stitch-mcp-get-screen" ~/.claude/skills/partme-ai-full-stack-skills-stitch-mcp-get-screen && rm -rf "$T"
skills/stitch-skills/stitch-mcp-get-screen/SKILL.mdGet Screen Details
CRITICAL PREREQUISITE: You must ONLY use this skill when the user EXPLICITLY mentions "Stitch".
Retrieves the full details of a specific screen, including its HTML code and high-res screenshot.
Use Case
Invoke this skill when the user wants to "export" the code, view the full design details, or when the Agent needs to analyze the generated HTML structure.
Input Parameters
The skill expects you to extract the following information from the user request:
(required): The project ID. Format: Pure ID (e.g.,projectId
), no37803...
prefix.projects/
(required): The screen ID. Format: Pure ID (e.g.,screenId
), no88805...
prefix.screens/
CRITICAL: When
projectId and screenId are both available, call stitch-mcp-get-screen directly. Do NOT call stitch-mcp-get-project.
Resource Path Parsing
If the user provides a resource path or URL, use the following rules to extract
projectId and screenId:
-
Format:
web application/stitch/projects/{projectId}/screens/{screenId}- Logic: Extract
andprojectId
directly from the path segments.screenId - Example:
->web application/stitch/projects/3492931393329678076/screens/2e22a9fb99ba49ddb6ce8907a1e74d60
,projectId="3492931393329678076"
.screenId="2e22a9fb99ba49ddb6ce8907a1e74d60"
- Logic: Extract
-
Format:
projects/{projectId}/screens/{screenId}- Logic: Extract
andprojectId
from the path segments.screenId
- Logic: Extract
Agent flow:
- Recognize the user input matches one of the above formats.
- Extract
andprojectId
.screenId - Call
withget_screen
.{"projectId": "<extracted projectId>", "screenId": "<extracted screenId>"} - Use the returned
,htmlCode.downloadUrl
, and metadata for design-to-code (e.g. stitch-design-md or a framework conversion skill).screenshot.downloadUrl
Output Schema
Returns a
Screen object:
: The actual HTML/CSS code of the UI.htmlCode
: High-resolution image URL.screenshot
: Figma file asset.figmaExport
,width
,height
.deviceType
Intent Recognition & Framework Conversion
After retrieving the screen details (HTML code), check if the user's request implies converting the design to a specific frontend framework.
Logic:
- Identify Framework: Look for specific keywords in user input (e.g., "uView", "uViewPro", "Vue", "React", "Flutter").
- Locate Skill: Search for and read the corresponding skill definition file to understand the "Design Contract" or conversion rules.
-
uViewPro / uni-app: If user mentions "uView", "uViewPro" or "UniApp", you MUST load and reference the complete context from the
skill to ensure accurate code generation.stitch-uviewpro-components- References: Read
(especiallyskills/stitch-uviewpro-components/references/
andcontract.md
) for core mapping rules.tailwind-to-uviewpro.md - API: Read
for component props and event definitions.skills/stitch-uviewpro-components/api/component-api.md - Examples: Read
for correct implementation patterns.skills/stitch-uviewpro-components/examples/usage.md - Resources: Read
for design compliance.skills/stitch-uviewpro-components/resources/architecture-checklist.md
- References: Read
-
uView (Standard): If user mentions "uView" (without "Pro") or "uView 2.0", load
.stitch-uview-components- Context: Read
(contract, tailwind-to-uview),references/
,api/component-api.md
,examples/usage.md
fromresources/architecture-checklist.md
.stitch-uview-components
- Context: Read
-
Element Plus: If user mentions "Element Plus", "Element", "Vue Desktop", load
.stitch-vue-element-components- Context: Read
(contract, tailwind-to-element-plus),references/
,api/component-api.md
,examples/usage.md
fromresources/architecture-checklist.md
.stitch-vue-element-components
- Context: Read
-
Vant UI: If user mentions "Vant", "Vue Mobile", load
.stitch-vue-vant-components- Context: Read
(contract, tailwind-to-vant),references/
,api/component-api.md
,examples/usage.md
fromresources/architecture-checklist.md
.stitch-vue-vant-components
- Context: Read
-
Layui Vue: If user mentions "Layui", load
.stitch-vue-layui-components- Context: Read
(contract, tailwind-to-layui),references/
,api/component-api.md
,examples/usage.md
fromresources/architecture-checklist.md
.stitch-vue-layui-components
- Context: Read
-
Bootstrap Vue: If user mentions "Bootstrap", load
.stitch-vue-bootstrap-components- Context: Read
(contract, tailwind-to-bootstrap),references/
,api/component-api.md
,examples/usage.md
fromresources/architecture-checklist.md
.stitch-vue-bootstrap-components
- Context: Read
-
React / Tailwind: If user mentions "React" (standard), load
.stitch-react-components- Context: Read
,references/tailwind-to-react.md
,examples/usage.md
fromresources/architecture-checklist.md
.stitch-react-components
- Context: Read
-
Shadcn UI: If user mentions "Shadcn", "Next.js", "Radix", load
.stitch-shadcn-ui- Context: Read
,references/tailwind-to-shadcn.md
fromexamples/usage.md
.stitch-shadcn-ui
- Context: Read
-
Other Frameworks: Search for matching
skills and load their respectivestitch-*-components
,api
, andexamples
directories.references
-
- Apply Constraints: Use the rules defined in that framework's skill (e.g., component mappings, slot usage, unit conversion) to transform the raw HTML from Stitch into the target framework code.
Example Flow:
- User: "Get screen X and convert to uViewPro code."
- Agent:
- Call
to get HTML.get_screen - Detect intent: "uViewPro".
- Load Context: Read
,contract.md
,component-api.md
, andusage.md
fromarchitecture-checklist.md
.stitch-uviewpro-components - Generate code by applying uViewPro rules to the Stitch HTML.
- Call
Usage Example
User Input: "Give me the code for the login screen we just made."
Agent Action:
- Identify target screen.
- Call
tool with argumentsget_screen
.{"projectId": "37803...", "screenId": "88805..."}