.cursor/skills/draft-pr/SKILL.md
Commit changes, push to feature branch, and create draft PR
npx skillsauth add washingtonguilhardes/example.hr-module 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.
Persona: Execute this task as the @developer subagent.
Load the persona characteristics from .rulesync/subagents/developer.md before proceeding.
Commit changes (conventional commits), push to feature branch, create draft PR with description.
Pre-commit: - git status to see changes - List modified/added/deleted files - Ask: "Proceed with PR for these changes?"
Quality checks: - pnpm lint && pnpm typecheck - If fails: report errors, ask fix first - DO NOT proceed if checks fail unless explicitly instructed
Commit details: - Ask: type (feat/fix/docs/refactor/perf/test/chore), scope (e.g. messaging, ui), description, breaking changes? (add !)
Commit message: - Format: <type>[scope][!]: <description> - Examples: feat(perf): rearchitect function for time complexity, feat(api)!: change API response format
Commit: - git add . (or specific files) - Commit with message - Show hash and message
Branch strategy: - Check: git branch --show-current - If main/dev: suggest feat/<short-desc>, ask create? - Create/checkout if approved - If already feature branch: proceed
Push: - First: git push -u origin <branch> - Subsequent: git push origin <branch> - Show result - If fails: report error, ask how to proceed
PR description: - Read template: .rulesync/templates/pr-description-template.md - Follow structure exactly - Fill: changes (from git diff), commit message, test results, docs updates, related issues/specs - Include screenshots if UI changes
Create draft PR: - Detect base branch: gh repo view --json defaultBranchRef -q '.defaultBranchRef.name' - Do NOT assume main - Ask: "Create draft PR on GitHub targeting <detected-base>?" - If yes + GitHub MCP: mcp_github_create_pull_request, draft: true, base = detected branch - If no MCP: Provide description for copy-paste, instructions: "Visit https://github.com/<org>/<repo>/compare/<base>...<branch>"
Summary: - Commit hash/message - Branch pushed - PR URL or creation instructions - Follow-up: Run /review, request reviews, link issues, mark ready when appropriate
Create todos at task start:
draft-pr-pre-commit - "Review changes and confirm proceeding with PR"draft-pr-quality-checks - "Run quality checks (lint, typecheck)"draft-pr-commit-details - "Gather commit details (type, scope, description, breaking changes)"draft-pr-commit - "Create commit with conventional commit message"draft-pr-branch-strategy - "Verify/create feature branch"draft-pr-push - "Push branch to remote"draft-pr-description - "Generate PR description from template"draft-pr-create - "Create draft PR on GitHub"draft-pr-summary - "Generate summary with commit, branch, and PR info"Update status: Mark in_progress when starting each, completed when done.
testing
Analyze distributed traces to find blocking queries, N+1 patterns, and missing tRPC encapsulation, then produce prioritized fixes
testing
required reading for all test/spec files or test related queries.
testing
Transform Product Brief into Technical Specification
development
Detect drift between code implementations and specification documents