원클릭으로
update-component
Update an existing Blade component (web only) using Figma designs and knowledgebase documentation
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Update an existing Blade component (web only) using Figma designs and knowledgebase documentation
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Add React Native support (.native.tsx files) to Blade components that currently only have web implementations. Use when user says "add native support to {Component}", "migrate {Component} to native", or "/migrate-to-rn".
Resolve PR review comments by pushing code fixes or replying with explanations. Use when a PR has review comments that need to be auto-resolved.
Review blade PRs by fetching diff, checking CI status, and getting Storybook URL. Use when reviewing PRs, checking PR status, or getting preview links for razorpay/blade PRs.
Get agentic metrics for the `razorpay/blade` repo.
Perform a task end-to-end when intent is set to 'perform-task-end-to-end' by checking existence of GITHUB__RZP_SWE_AGENT_APP__APP_ID environment variable in the session.
Heal a Blade PR by fixing CI failures, missing changesets, and sanity issues. Use when a PR has failing CI or other sanity problems that need to be auto-fixed.
| name | update-component |
| description | Update an existing Blade component (web only) using Figma designs and knowledgebase documentation |
| disable-model-invocation | true |
Update an existing Blade component (web only) using Figma designs and knowledgebase documentation.
/update-component <ComponentName> <FigmaURL>
Example:
/update-component Popover https://www.figma.com/design/jubmQL9Z8V7881ayUD95ps/Blade-DSL?node-id=115756-259386
Read the knowledgebase documentation:
packages/blade-mcp/knowledgebase/components/<ComponentName>.mdRead the existing component implementation:
packages/blade/src/components/<ComponentName>/types.ts, <ComponentName>.web.tsx, index.ts, constants.ts.web.tsx filesParse the provided Figma URL to extract:
fileKey: The unique file identifier from the URL pathnodeId: From node-id= param, convert - to : (e.g., 115756-259386 → 115756:259386)Use the Figma MCP tools to get complete design information:
Tool: user-Figma → get_design_context
Arguments:
- fileKey: "<extracted-file-key>"
- nodeId: "<extracted-node-id>"
- clientLanguages: "typescript"
- clientFrameworks: "react"
- disableCodeConnect: true
Returns:
Tool: user-Figma → get_variable_defs
Arguments:
- fileKey: "<extracted-file-key>"
- nodeId: "<extracted-node-id>"
- clientLanguages: "typescript"
- clientFrameworks: "react"
Returns a JSON object with all design tokens used in the component.
Tool: user-Figma → get_screenshot
Arguments:
- fileKey: "<extracted-file-key>"
- nodeId: "<extracted-node-id>"
Returns a visual screenshot of the component for reference.
Compare the Figma design with the current implementation:
.web.tsx files)Follow this order:
types.ts) - Add new props, update existing typesconstants.ts) - Add new defaults or constants*.web.tsx) - Implement the changesindex.ts) - Export new types/components if neededpackages/blade-mcp/knowledgebase/components/<ComponentName>.md)*.stories.tsx) - Add Storybook examples for new featuresUse ReadLints tool on modified files to check for linter errors and fix them.
packages/blade/src/components/<ComponentName>/
├── __tests__/
├── _decisions/
│ └── decisions.md
├── constants.ts
├── index.ts
├── <ComponentName>.native.tsx ← IGNORE (native)
├── <ComponentName>.stories.tsx
├── <ComponentName>.web.tsx ← UPDATE THIS
└── types.ts
.web.tsx files, ignore .native.tsx