njt2810/claude-code-framework/pr

Claude Code and agent skill by njt2810/claude-code-framework

Trust tier 3
  • community
Source check pending

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/pr

SKILL.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:

  1. Check current branch
  • Run: git rev-parse --abbrev-ref HEAD
  • If on main or master: STOP. Say "You're on the main branch — no PR can be opened. Did you forget to create a feature branch?"
  1. 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)"
  1. Check there are commits ahead of main
  • Run: git log main..HEAD --oneline (or master..HEAD)
  • If empty: STOP. Say "No commits on this branch beyond main — nothing to PR."
  1. 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)"
  1. Run the linter (if configured)
  • If errors: report and ask "Linter has errors. Fix before PR? (yes/no)"
  1. 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

  1. Push the current branch with upstream tracking:
  • git push -u origin {current_branch}
  1. Report: "Branch pushed: {branch_name}"

Step 3 — Build PR Description

Build the PR body from these sources (in order of priority):

  1. Feature spec if it exists at wiki/decisions/{branch_name}.md or wiki/decisions/{feature-name}.md
  2. Bug description if this is a fix branch — pull from the first commit message
  3. Commits on the branch — git log main..HEAD --format='- %s'

Format the PR body as:

markdown
## Summary
{One-paragraph summary derived from spec or commits}
## Changes
{Bulleted list of commits since main}
## Test Plan
-[ ] Tests pass locally
-[ ] Linter passes
-[ ] {Each DONE-WHEN checklist item from the spec, if available}
-[ ] Manual smoke test in the local dev environment
## Spec
{Link to wiki/decisions/{name}.md if it exists}
## Notes for Reviewer
{Anything specific the reviewer should pay attention to}
🤖 Generated with Claude Code Framework

Step 4 — Create PR

  1. Detect base branch (usually main, fall back to master):
  • git remote show origin | grep 'HEAD branch' → that's the base
  1. 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
  1. 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 )" ``

  1. If a reviewer username was passed as argument:
  • Add: --reviewer {username}
  1. 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:

PR opened: {PR_URL}
Branch: {branch_name}
Base: {base_branch}
Commits: {N} commits ahead of {base_branch}
Files: {file_count} changed
Reviewer: {Code Reviewer findings being prepared}
Next steps:
1. Wait for Code Reviewer findings (delegating now)
2. Address findings → push fixes to the same branch
3. When ready: merge via `gh pr merge --squash --delete-branch`

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/njt2810/claude-code-framework/pr/badge)](https://verified-skill.com/skills/njt2810/claude-code-framework/pr)

Something wrong with this skill or its page? Tell us.