AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Quick Pr

skill-2ykwang-agent-skills-quick-pr · by 2ykwang

Split a minor change from the current work into a separate worktree and open a PR without interrupting your flow. Requires Claude Code (uses EnterWorktree, ExitWorktree, AskUserQuestion).

No reviews yet
0 installs
25 views
0.0% view→install

Install

$ agentstack add skill-2ykwang-agent-skills-quick-pr

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-2ykwang-agent-skills-quick-pr)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Quick Pr? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Quick PR

Split an unrelated minor change (convention fix, typo, config tweak) from the current working tree into an independent PR — without leaving the current branch.

This is a Claude Code skill. It requires Claude Code built-in tools: EnterWorktree, ExitWorktree, and AskUserQuestion.

Use this skill when

  • A small fix (typo, lint, config) is mixed into a larger feature branch
  • The user wants to ship a trivial change immediately without polluting the current PR
  • The user says "quick PR", "split this out", or "ship this separately"

Do not use this skill when

  • The change is part of the current feature work
  • The user only wants a PR description (use /write-pr instead)
  • The change requires review or testing beyond a simple visual check

Input

$ARGUMENTS

Argument interpretation:

  • File path (e.g., src/config.py) — extract the current diff for that file and apply it in the worktree
  • Description text (e.g., "fix typo in README") — make the edit directly in the worktree
  • Empty — ask the user what to split out

Tools

Fetch these tools via ToolSearch before use:

| Purpose | Tool | |---------|------| | Enter isolated worktree | EnterWorktree | | Exit/remove worktree | ExitWorktree | | Ask the user | AskUserQuestion |

Procedure

Step 1: Determine Change Scope

File path arg: Run git diff HEAD -- , show the diff. Description arg: Propose which files to modify and how. Empty arg: Ask what to split out.

Use AskUserQuestion to confirm the scope before continuing.

Step 2: Choose Branch Name and Commit Message

Check the project's commit style: git log --oneline -10.

Propose up to 5 candidates for each:

  • Branch: kebab-case, prefix fix/ chore/ docs/ feat/
  • Commit: match dominant pattern (Conventional Commits, ticket prefix, etc.); default to Conventional Commits if unclear

Use AskUserQuestion with the numbered options. User picks or writes their own.

Step 3: Choose Base Branch, Create Worktree, Apply Changes

git fetch origin

Detect the default branch as the recommended base:

git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null

Fallback: check which of main, master, develop exists.

Gather recent remote branches as additional candidates:

git for-each-ref --sort=-committerdate refs/remotes/ \
  --format='%(refname:short)' | grep -v HEAD | head -5

Use AskUserQuestion to pick the base branch. Present the detected default as the recommended option, followed by the recent branches. User can write their own. This base is reused as the PR target in Step 4.

Use EnterWorktree to create a worktree based on the chosen base branch. Then rename the branch:

git branch -m 

File-based mode: Before entering the worktree, note the original worktree path. After entering, copy the changed file from the original path:

cp / /

Description-based mode: Make the edit directly in the worktree.

Step 4: Commit, Push, Create PR

git add 
git commit -m ""

Use AskUserQuestion to confirm push. On approval:

git push -u origin 

Build the PR body inline (do not delegate to another skill):

  1. Check templates in parallel:
  • .github/PULL_REQUEST_TEMPLATE.md
  • .github/pull_request_template.md
  • docs/pull_request_template.md
  • PULL_REQUEST_TEMPLATE.md
  • .github/PULL_REQUEST_TEMPLATE/ directory
  1. Template exists: preserve structure exactly. Fill sections from the diff. Leave unfillable sections (Screenshots, Related Issues) with their original placeholders.
  1. No template:

```markdown ## Summary

## Changes

```

  1. PR title: match gh pr list --state merged --limit 5 --json title 2>/dev/null. Fallback to git log --oneline -10. Default to Conventional Commits if unclear.

Use AskUserQuestion with the draft title + body + target branch (defaults to the base from Step 3). Do not run gh pr create until approved.

gh pr create --base  --title "" --body ""

Step 5: Confirm and Clean Up

Show PR created: .

Use AskUserQuestion: "Remove the worktree?"

  • YesExitWorktree with action: "remove", discard_changes: true

(safe — the commit is already on origin from Step 4)

  • NoExitWorktree with action: "keep"

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.