/claude-resources:pr [target-branch]from claude-resources
Creates a pull request with automatic base-branch detection from conversation context, git history, or repository default. Confirms details before pushing.
Ships in claude-resources. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Create a pull request with automatic base branch detection from conversation history, git log, or repository default.
/pr - Create PR with auto-detected base branch/pr <target-branch> - Create PR targeting the specified branchgit status
git branch --show-current
Ensure you're on a feature branch (not main/master/develop).
Priority order for base branch detection:
<target-branch> is provided, use it directlySearch the current conversation for clues about the base branch:
# Fetch latest remote refs
git fetch origin
# Find merge-base with candidate branches
for branch in main master develop staging; do
git merge-base HEAD origin/$branch 2>/dev/null && echo "Found: $branch"
done
# Check which branch has the closest merge-base
# The branch with most recent common ancestor is likely the parent
# Get the default branch
gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name'
gh pr list --head $(git branch --show-current)
If PR exists, ask user if they want to view or update it.
# Get commits
git log origin/<base-branch>..HEAD --oneline
# Get file changes
git diff origin/<base-branch>..HEAD --stat
Before creating, confirm:
<branch-name><base-branch> (with detection method: "specified", "from conversation", "auto-detected", or "default")# Push if needed
git push -u origin $(git branch --show-current)
# Create PR
gh pr create \
--base <base-branch> \
--title "<title>" \
--body "$(cat <<'EOF'
## Summary
<description>
## Changes
- <change 1>
- <change 2>
## Test Plan
<testing instructions>
EOF
)"
Display:
The command uses this logic to find the base branch:
gh repo viewIf detection is ambiguous, ask the user to clarify before creating the PR.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub takazudo/claude-resources --plugin claude-resources84 skills in this plugin
/bambu-3mfCreate/edit Bambu Studio 3MF projects from a saved printer template. Use for Bambu/H2D printable parts, plate arrangement, 3MF revisions, or print settings, even when the input is STL/STEP./big-planPlan work as one epic plus child GitHub issues, with review and verification. Use for /big-plan, implementation planning/decomposition, UI brainstorming that should end in a plan (-pr), or issue sweeps (-is/-isask)./cclogsLoad recent prototypes, plans, logs and artifacts from the repo-scoped cclogs dir to continue earlier work. Use for /cclogs, or whenever the user refers to a prior session's prototype/plan/report as if it exists./claudemd-refactorRefactor CLAUDE.md files: analyze the setup and split a large root CLAUDE.md into directory-scoped files. Use for 'refactor/split/organize CLAUDE.md' or when the root CLAUDE.md is too large./claude-resources-sharePublish ~/.claude resources (skills, commands, hooks, scripts, CLAUDE.md) to the public claude-resources mirror. Use for 'share claude resource', 'sync settings', or 'export to claude-resources'./cleanup-resourcesEnd-of-workflow audit of touched GitHub issues, PRs and branches (close/keep/delete) plus a sweep of stale build temp dirs. Use after /big-plan, /x-as-pr, /x-wt-teams, or for 'cleanup resources' / 'clean disk'.Other plugins' skills for the same job