askill
pr

prSafety 95Repository

Create a well-documented GitHub pull request with quality checks, proper description, and test plan. Use when pushing a branch, creating a merge request, or preparing code for review.

1 stars
1.2k downloads
Updated 2/23/2026

Package Files

Loading files...
SKILL.md

Create Pull Request

Purpose: Create a well-documented PR with proper description and test plan Usage: /pr

Constraints

  • All tests must pass before creating PR
  • Never force push without explicit request
  • Always verify changes are committed before pushing
  • Requires gh (GitHub CLI) for PR creation
  • Flag mixed-concern PRs (feature + refactor) as candidates for splitting

Note: Command examples use npm as default. Adapt to the project's package manager per ai-assistant-protocol — Project Commands.

Workflow

Step 1: Verify Changes

MAIN=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@' || echo "main")

git status
git diff $MAIN...HEAD --stat
git log $MAIN..HEAD --oneline

Step 2: Ensure Quality

Before creating PR, run validation:

npm run typecheck
npm run lint
npm run test

Checklist:

  • All tests pass
  • No type errors
  • Linting passes
  • No hardcoded secrets or credentials in changed files
  • No insecure patterns (eval, innerHTML, raw SQL interpolation)
  • Changes are committed

Step 3: Check for Mixed Concerns

Review the diff for mixed-concern changes. If commits include both feature work and refactoring, or both bug fixes and cleanup, suggest splitting into separate PRs for faster review.

Step 4: Push Branch

git push -u origin HEAD

Step 5: Create PR

gh pr create --title "[Type]: Brief description" --body "$(cat <<'EOF'
## Summary

[1-3 bullet points describing what this PR does]

## Changes

- [Specific change 1]
- [Specific change 2]

## Test Plan

- [ ] [How to test change 1]
- [ ] [How to test change 2]

## Security

- [ ] No secrets or credentials in code
- [ ] Input validation on new endpoints/handlers
- [ ] Auth checks on protected operations
- [ ] N/A — no security-sensitive changes

## Screenshots (if applicable)

[Add screenshots for UI changes]
EOF
)"

PR Title Conventions

feat: add user authentication
fix: resolve login issue with special characters
refactor: extract validation logic
docs: update API documentation
test: add tests for auth module
chore: update dependencies

Example PR Body

## Summary

- Add JWT-based authentication to API endpoints
- Implement login and registration endpoints
- Protect existing routes with auth middleware

## Changes

- `src/middleware/auth.ts` - New auth middleware
- `src/routes/auth.ts` - Login/register endpoints
- `src/models/User.ts` - User model with password hashing

## Test Plan

- [ ] Register new user with valid credentials
- [ ] Login with correct credentials returns token
- [ ] Protected routes reject requests without token

## Breaking Changes

None - new endpoints only.

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

89/100Analyzed 2/20/2026

High-quality SKILL.md for creating GitHub pull requests. Provides comprehensive 5-step workflow with concrete commands, security checklist, PR title conventions, and example PR body. Well-structured with triggers, constraints, and clear purpose statement. Includes appropriate tags for discoverability. Minor gaps: no error handling guidance if tests fail or gh CLI unavailable. Highly actionable and reusable across projects."

95
90
85
85
90

Metadata

Licenseunknown
Version-
Updated2/23/2026
PublisherhypeJunction

Tags

apidatabasegithubgithub-actionslintingsecuritytesting