com um clique
create-draft-pr
// Create a draft pull request with conventional commit message and structured PR body targeting master branch
// Create a draft pull request with conventional commit message and structured PR body targeting master branch
Orchestrate parallel migration of Blade React components to Svelte 5. Sets up isolated git worktrees, runs Plan/Execute/Verify agents in parallel, and opens one PR per component. Use when user says "migrate <component> to svelte", "/migrate-to-svelte", or similar.
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.
Visually verify component changes in Storybook using the agent-browser CLI tool
Get agentic metrics for the `razorpay/blade` repo.
Important guidelines for writing frontend UI code. Ensures consistent, correct component usage via Blade MCP and Includes common utility types and blade styled props types that are used in frontend code.
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.
| name | create-draft-pr |
| description | Create a draft pull request with conventional commit message and structured PR body targeting master branch |
| disable-model-invocation | true |
Create a draft pull request with your changes.
/create-draft-pr <ComponentName> <brief-description>
Example:
/create-draft-pr Popover update design tokens and add new placement
/create-draft-pr Button add new variant and fix padding
# Stage all changes
git add .
# Commit with a conventional commit message
git commit -m "feat(<ComponentName>): <brief description>"
Important: Commit messages must follow Conventional Commits specification.
Commit Prefixes:
feat: - New feature or enhancementfix: - Bug fixdocs: - Documentation changesrefactor: - Code refactoringtest: - Test updateschore: - Build/tooling changesExamples:
feat(Popover): add new placement optionsfix(Button): correct padding in small variantdocs(Tooltip): update knowledgebase with new props# Push branch to remote
git push -u origin HEAD
# Create draft PR using gh cli with master as base
gh pr create --base master --draft --title "feat(<ComponentName>): <brief description>" --body "$(cat <<'EOF'
## Summary
- Updated <ComponentName> with latest Figma designs
- Added/Modified [list specific changes]
## Changes
- Updated design tokens for spacing/colors
- Added new props: [list new props if any]
- Updated knowledgebase documentation
- Updated stories
## Visual Verification
[Add screenshots from Storybook if helpful]
## Testing
- ✅ All unit tests passing
- ✅ Visual verification in Storybook
- ✅ Linting and type checks passing
## Related
Figma: [link to Figma design]
EOF
)"
blade-pr-title-check GitHub actiontype(scope): descriptionfeat(Popover): update design tokens and add new placementThe PR is created as a draft by default. Once all checks pass and you've verified everything, mark it as ready for review:
gh pr ready
After creating the PR, verify:
If any checks fail, push fixes to the same branch to update the PR:
# Make fixes
git add .
git commit -m "fix: address PR feedback"
git push
When creating the PR, include: