.cursor/skills/create-draft-pr/SKILL.md
Create a draft pull request with conventional commit message and structured PR body targeting master branch
npx skillsauth add razorpay/blade create-draft-prInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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:
testing
This rule helps in writing and running unit tests for components of blade design system
documentation
Generate bi-weekly announcement posts for Blade Design System updates by analyzing changelog entries from the past two weeks
development
This rule helps in writing API decisions for new components of blade design system
tools
Visually verify component changes in Storybook using the agent-browser CLI tool