/cc-arsenal:git-create-pr [--base branch] [--draft]from cc-arsenal
Creates a GitHub Pull Request from the current branch with conventional commit format, pre-filled PR template, and browser preview. Validates clean tree and branch preconditions before pushing.
Ships in cc-arsenal. 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.
Read when SKILL.md points to them.
Create a GitHub Pull Request following conventional commits, pre-filled with the repo's PR template, and opened in the browser for final review.
Every PR bullet must map to an actual commit or diff hunk: drop claims you can't back with evidence in git log or git diff.
Invariant: never mutate the user's files to satisfy a precondition. If a check in step 1 fails, report it and stop. Do not run git checkout, git restore, git reset, git stash, or git clean against the user's tracked files to "fix" a dirty tree, and do not switch branches to route around a main/master check, those are the user's decisions, not this skill's. The only git commands this skill runs against the working tree are read-only until step 7's git push.
Validate preconditions (run this before anything else, including branch analysis)
git status --porcelain. Any output means it's dirty.
git status --porcelain output and tell the user to commit or stash their changes first, e.g. Working tree has uncommitted changes: M README.md. Commit or stash before opening a PR. Do not proceed to step 2, and do not touch the listed files.gh (brew install gh): confirm gh auth status succeeds, else stop and tell the user to run gh auth login.git branch --show-current.
main or master: stop immediately. Tell the user there's no feature branch to open a PR from, e.g. Currently on main — check out a feature branch first. Do not proceed.git log origin/<base>..HEAD --oneline. If empty, stop and say there's nothing to open a PR for.ABC-123 from feature/ABC-123_description)Determine base branch
--base/-b argument if providedgh repo view --json defaultBranchRef -q .defaultBranchRef.namemain if detection failsAnalyze changes
git log origin/<base>..HEAD --format="%h %s" for commitsgit diff origin/<base>...HEAD --stat for file changesgit log + one diff --stat already summarizes. Only reach for a subagent if the diff is too large to fit in context.Generate PR title (conventional commit format, max 72 chars)
type(scope): [TICKET-123] description or type(scope): description if no ticketfeat, fix, docs, style, refactor, perf, test, build, ci, chorefeat(auth): [ABC-123] add OAuth2 login support, fix(api): resolve null pointer in user endpointFill PR template
.github/pull_request_template.md and fill it without changing its structure## Summary
[Brief description]
## Changes
- [Bullet points from commits]
## Testing
- [ ] Tests added/updated
- [ ] Manual testing completed
BODY_FILE="/tmp/pr-body-$(date +%s).md"Ask for confirmation
.github/workflows/*.yml) and tests haven't been verified locally this session, suggest running the cc-arsenal:ci-local skill first (via the Skill tool where available, otherwise run the workflow's gating steps locally by hand): cheaper to catch a failure now than after the PR is openCreate PR? (y/n/e to edit): (accept y/yes/n/no/e/edit)e, ask for custom title/bodyPush and create PR (after confirmation)
# Push first — required before gh pr create can reference the branch
git push -u origin $(git branch --show-current)
# BODY_FILE is the file written in step 5
gh pr create \
--title "type(scope): [TICKET] description" \
--body-file "$BODY_FILE" \
--base <determined-base-branch> \
--web
--reviewer, --assignee, or --label with --web: they conflict. The user adds those in the web UI.--base branch / -b branch: target branch, defaults to repo default--draft / -d: adds --draft to gh pr creategit-create-pr # uses repo default base branch
git-create-pr --base develop # target a specific base branch
git-create-pr --draft # create as draft PR
git-create-pr -b develop -d # both
After pushing, the PR opens in the browser pre-filled with title and body. Add reviewers/labels there.
Precondition failure (dirty tree, stop before any analysis):
Working tree has uncommitted changes:
M README.md
Commit or stash before opening a PR. Not proceeding.
No git checkout, git push, or gh pr create runs after this: the turn ends here.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
pull-request, github-cli, conventional-commits, git-workflow
52 skills in this plugin
/agent-browserHeadless browser automation CLI optimized for AI agents: drives a real browser via accessibility-tree snapshots and @e1-style refs for ~93% less context than raw DOM tools. Use whenever a task needs to interact with a live web page: click, fill forms, log in, extract text or data, take screenshots, test a running web app, or scrape a site. Triggers on 'automate the browser', 'fill this form', 'click the button', 'take a screenshot of the page', 'log into', 'scrape this site', 'test my web app', 'headless browser'. Not for Playwright test-suite authoring or CDP/service-worker work needing the full JS API: use Playwright directly. Not for driving the user's own already-open, logged-in Chrome tab: use claude-in-chrome for that./anything-to-skillTurns a docs site, local folder, PDF or book, YouTube video, playlist or channel, or a topic into a source-grounded, token-efficient agent skill (hub SKILL.md, sectioned references, INDEX, evals), and can compact it into a lean expert skill. Use for "make a skill from these docs", "turn this channel into a skill". Not for a skill from your own description (use create-skill), improving one (use improve-skill) or finding third-party skills (use find-skills)./ci-generateGenerate a production-ready CI/CD pipeline config (GitHub Actions, GitLab CI, CircleCI, or Jenkins) by discovering the project's actual stack, test/build commands, and dependencies. Use when setting up CI for a new project, adding a missing workflow file, or asked to create/generate a pipeline, workflow, or `.gitlab-ci.yml`/`Jenkinsfile`. Not for writing a Dockerfile itself (see docker-init), this only wires CI stages around one. Not for running existing CI checks locally (use ci-local), this skill only authors the pipeline file itself./ci-localRun the checks a GitHub Actions workflow would run, locally, when Actions is unavailable or out of quota. Parses .github/workflows/*.yml, extracts the jobs/steps that gate merges (lint, typecheck, test, build), translates them to local commands respecting the workflow's pinned node/python versions and env, executes them sequentially, and reports a parity table of what passed locally vs. what can't be replicated (service containers, secrets, matrix dimensions) and why. Activates on "CI quota", "Actions is down/unavailable", "run CI locally", "verify like CI would", "run the pipeline on my machine", or a pre-push request to check a branch the way CI checks it. Not for generating a new workflow file (use ci-generate), not for debugging why a specific CI run failed on GitHub (use fix-bug or review-code), and not for the release/hotfix gating process itself (use gitflow), this skill only produces the local stand-in when the real thing isn't reachable./clotho-researchFind what a change will actually touch before planning it — the existing code that must change, the prior art worth copying, and the risks that will bite. Trigger on "what would this change touch", "research this before we plan it", or an automated pre-planning step. Reports files, sources, and risks; it never proposes an implementation and never edits anything. Not for auditing dependencies (use review-deps), not for writing the plan itself (use project-planner), and not for reviewing code that already exists (use review-code)./codex-imagegenGenerates images and polished raster art (logos, mascots, hero images, icons, characters, sprite sheets, illustrations, product mockups) by driving Codex CLI's $imagegen skill. This is the default image generator, use it for any request to generate or create an image or visual asset, including "generate an image", "create a hero image", "make a mascot", "design a logo", "draw an icon", "generate a sprite sheet", or "make an illustration". Requires the `codex` CLI installed and authenticated (ChatGPT auth). Not for architecture, flow, or sequence diagrams (use docs-diagram).npx claudepluginhub mgiovani/ai-arsenal --plugin cc-arsenal