بنقرة واحدة
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 ويثبّتها لك.
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.
استنادا إلى تصنيف SOC المهني
| 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