njt2810/claude-code-framework/pr
Claude Code and agent skill by njt2810/claude-code-framework
- community
Checking that the SKILL.md file is still in the repository.
TRIGGER when: the user wants to open a pull request, ship a feature branch, create a PR, push to GitHub for review, or finalize work on a branch. DO NOT TRIGGER when: the user is on the main/master branch (no PR possible), the user hasn't committed their changes yet (push has nothing to publish), or the user just wants to push without a PR (use plain git push).
Install
npx vskill@latest install njt2810/claude-code-framework/prSKILL.md
The same SKILL.md was published earlier as njt2810/claude-code-framework/pr.
Open Pull Request
When to Use
When the user is on a feature or fix branch and wants to push it and open a PR on GitHub. Standard outcome of /new-feature and /bug-fix workflows.
Procedure
Step 1 — Pre-PR Checks
Before pushing, verify the branch is ready:
- Check current branch
- Run:
git rev-parse --abbrev-ref HEAD - If on
mainormaster: STOP. Say "You're on the main branch — no PR can be opened. Did you forget to create a feature branch?"
- Check for uncommitted changes
- Run:
git status --porcelain - If output is non-empty: ask "You have uncommitted changes. Commit them before opening the PR? (yes/no)"
- Check there are commits ahead of main
- Run:
git log main..HEAD --oneline(ormaster..HEAD) - If empty: STOP. Say "No commits on this branch beyond main — nothing to PR."
- Run the full test suite
- Detect test command from package.json / pyproject.toml / etc.
- Run with timeout 600000ms
- If tests fail: report the failures and ask "Tests are failing. Fix before PR, or open as draft? (fix/draft/cancel)"
- Run the linter (if configured)
- If errors: report and ask "Linter has errors. Fix before PR? (yes/no)"
- Scan for debug code and secrets
- Grep for:
console.log,print(,debugger,TODO HACK,FIXME URGENT - Grep for likely secrets: API keys, tokens, passwords
- If found: list them and ask "Found potential debug/secret code. Review before PR? (yes/no)"
Step 2 — Push Branch
- Push the current branch with upstream tracking:
git push -u origin {current_branch}
- Report: "Branch pushed: {branch_name}"
Step 3 — Build PR Description
Build the PR body from these sources (in order of priority):
- Feature spec if it exists at
wiki/decisions/{branch_name}.mdorwiki/decisions/{feature-name}.md - Bug description if this is a fix branch — pull from the first commit message
- Commits on the branch —
git log main..HEAD --format='- %s'
Format the PR body as:
Step 4 — Create PR
- Detect base branch (usually
main, fall back tomaster):
git remote show origin | grep 'HEAD branch'→ that's the base
- Build PR title from the most descriptive commit or the feature spec name:
- For features:
feat: {feature name} - For bug fixes:
fix: {bug description} - Keep under 70 characters
- Create the PR using
gh pr create:
`` gh pr create \ --base {base_branch} \ --head {current_branch} \ --title "{title}" \ --body "$(cat <<'EOF' {body from Step 3} EOF )" ``
- If a reviewer username was passed as argument:
- Add:
--reviewer {username}
- Capture the PR URL from output
Step 5 — Delegate to Code Reviewer
Delegate to the Code Reviewer subagent:
"A new PR has been opened: {PR_URL}. Review the changes in branch {branch_name} (diff against {base_branch}). Check for: security vulnerabilities, error handling gaps, complexity that could be simplified, test coverage for new code paths, and any code that doesn't match project conventions in wiki/conventions.md.
Post your findings as a structured report. Do NOT comment on the PR directly — the Lead Engineer will translate your findings for the user."
Step 6 — Report
Output:
Pitfalls
- Pushing to main directly bypasses this entire workflow — main should have branch protection
- Forgetting to run tests before PR means broken PRs that waste reviewer time
- Auto-creating PRs without a spec means the PR description is just "added thing" — useless for reviewers
- Not delegating to Code Reviewer after PR creation skips the quality gate
- Force-pushing to a PR branch is OK during review, but never force-push to main
Verification
- PR URL is returned and accessible
- All tests passed before push
- Linter passed before push
- PR description includes spec link or generated summary from commits
- Code Reviewer has been delegated to and is preparing findings
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/pr/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/njt2810/claude-code-framework/pr)