Install
$ agentstack add skill-coleam00-skills-piv-create-pr ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo 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.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
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 →About
Create PR: Open the Pull Request, Hand Off for Review
This is the ship step of the PIV loop: the implementation is committed on a feature branch; now open the PR so it can be reviewed (by the piv-review-pr agentic gate, then a human).
Phase 0 — Detect the base branch
Don't hardcode main. Resolve it:
- If
$ARGUMENTScontains--base, use that. - Else:
git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@' - Fallback:
git remote show origin 2>/dev/null | grep 'HEAD branch' | awk '{print $NF}' - Last resort:
main. Store as{base}.
Phase 1 — Validate git state
git branch --show-current
git status --short
git log origin/{base}..HEAD --oneline
| State | Action | |-------|--------| | On {base} | STOP: "Create a feature branch first (the ticket should be on its own branch)." | | Uncommitted changes | STOP: "Commit (or stash) before opening the PR." | | No commits ahead of {base} | STOP: "Nothing to PR." | | Existing PR for this branch (gh pr list --head $(git branch --show-current) --json url) | STOP and print the URL. | | Clean, commits ahead, no PR | PROCEED |
Phase 2 — Gather context for the body
- Project conventions: if
.claude/references/conventions.mdexists, read its## prsection — its rules
win over the default template below (sections, tone, what must be stated). That file is where a project's specifics live; this skill stays general.
- Commits:
git log origin/{base}..HEAD --pretty=format:"- %s" - Files:
git diff --stat origin/{base}..HEAD - Implementation report (if
piv-implementwrote one —.claude/reports/-report.md): pull the summary,
validation results, and documented deviations (these belong in the PR body — they tell the reviewer what was intentional).
- Linked ticket / issue: look for
ACC-…,#123,Fixes #…in the commits/branch name. - PR template: if
.github/PULL_REQUEST_TEMPLATE.mdexists, fill it; else use the default below.
Phase 3 — Push and open the PR
git push -u origin HEAD
gh pr create --base "{base}" --title "{type}: {concise description}" --body "$(cat `, then a
human approves."** This is the handoff point: the agent's loop ends at an open PR; review and merge are the gates.
## Notes
- Tool-agnostic in spirit: this skill uses GitHub (`gh`); the same motion is "open a merge request" on GitLab,
or "mark ready for review" wherever your team works. Solo with no remote? Skip the PR — commit on `{base}` and
review your own diff before moving on.
- Sets up parallel work: one branch per ticket → one PR per ticket is exactly what makes worktree parallelism
(running independent tickets at once) clean.
## Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- **Author:** [coleam00](https://github.com/coleam00)
- **Source:** [coleam00/skills](https://github.com/coleam00/skills)
- **License:** MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.