/octomux:create-prfrom octomux
Creates GitHub pull requests from octomux tasks with auto-detected branch, base, and conventional commit titles. Generates structured PR bodies with What/Why/Testing sections and links Jira tickets or GitHub issues from branch names.
Ships in octomux. 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 GitHub pull request directly using gh pr create. The octomux dashboard will auto-detect the PR within 30 seconds.
Identify the task branch and repo:
octomux get-task <task-id>
branch, repo_path, and base_branch. The task's base_branch is the PR base branch. If not set, default to main.Gather context for the PR description:
Use the task's base_branch as <base>:
git -C <worktree> log <base_branch>..HEAD --oneline
git -C <worktree> diff <base_branch>...HEAD --stat
Check if branch is pushed and push if needed:
# Check if remote tracking branch exists
git -C <repo_path> ls-remote --heads origin <branch>
If the branch is not pushed yet, push it:
git -C <repo_path> push -u origin <branch>
If already pushed, check if local is ahead and push any new commits:
git -C <worktree> status -sb # check if ahead of remote
git -C <repo_path> push origin <branch> # push if ahead
Draft the PR title and body, then confirm with the user:
Title: Conventional commit format, under 70 chars, min 10 char description:
<type>(<scope>): <description>
Types: feat, fix, chore, refactor, docs, test, perf
Examples: feat(hooks): add permission prompt tracking, fix(terminal): clean up orphaned tmux sessions
Body: Must include all three sections — What, Why, and Testing:
## What
<Description of what this PR does — summarize the changes>
## Why
<Explanation of why this change is needed — the motivation>
Resolves <link>
## Testing
<How this was tested — commands run, manual verification, etc.>
Linking tickets/issues:
Resolves #<issue-number>[A-Z][A-Z0-9]+-\d+ (e.g., feat/PROJ-123-... -> PROJ-123); numeric branches resolve to GitHub issues (fix/42-... -> #42).Resolves lineIMPORTANT: Present the title and body to the user and WAIT for their confirmation before creating the PR. Do NOT create the PR without explicit user approval. The user may want to adjust the title, description, or add context.
After user confirms, create the PR using gh:
gh pr create \
--head <branch> \
--base <base_branch> \
--title "<title>" \
--body "<body>" \
--repo <repo_path>
Report — Print the PR URL. The octomux dashboard will auto-detect and link it to the task within ~30 seconds via the PR poller.
/pr/preview, /pr) — create directly with gh for better context and speedgh pr create fails with "already exists", the PR was likely already createdbranch set (created automatically when octomux starts the task)--repo flag with the repo path so gh knows which repo to targetWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
pull-request, github-cli, octomux, pr-creation, git-workflow
20 skills in this plugin
/add-agentUse when you need to attach a new Claude Code agent (new tmux window) to an existing running octomux task, sharing the task's worktree and cwd/add-pluginUse when installing, disabling, enabling, or troubleshooting a third-party octomux plugin — the manifest row shape, octomux plugins list/disable/enable, reading octomux doctor output, and recovering a broken boot with --safe-mode./configure-harnessUse when configuring which coding-agent harness octomux launches — per-task --model, harness selection, settings.harnesses.<id>, resolveFlags/validateSettings, and registering an additional harness via a plugin./create-pluginUse when authoring a new octomux plugin package — package layout, the apply(ctx) export, choosing a registrar, shipping kind presets, testing locally, and confirming with octomux doctor./create-taskUse when creating an octomux task to dispatch autonomous Claude Code agents for building features, fixing bugs, or any code changes/implementImplement a Jira ticket — fetches ticket, checks for existing plan, creates worktree branch, runs implementation with verification. Usage - /implement IN-XXXnpx claudepluginhub shreypaharia/octomux --plugin octomuxOther plugins' skills for the same job