Create a feature branch, commit changes, push, and open a PR against pelikan-io/pelikan
Install
mkdir -p .claude/skills/pr-pelikan-io && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/13171" && unzip -o skill.zip -d .claude/skills/pr-pelikan-io && rm skill.zipInstalls to .claude/skills/pr-pelikan-io
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Create a feature branch, commit changes, push, and open a PR against pelikan-io/pelikan87 charsno explicit “when” trigger
About this skill
Create a PR from the current uncommitted changes. Handles branching, committing, pushing, and opening the PR against the upstream repo.
Arguments
The skill accepts an optional branch name argument:
- If provided, use it as the branch name (e.g.,
/pr fix-socket-perms) - If not provided, generate a descriptive kebab-case branch name from the changes
Steps
-
Verify prerequisites:
- Working directory must have uncommitted changes (staged or unstaged)
- Must not already be on a feature branch with unpushed commits for a different change
git status git diff git diff --stagedIf there are no changes, stop and tell the user.
-
Analyze the changes:
- Read the diff to understand what changed
- Check recent commit messages for style conventions:
git log --oneline -10
-
Create feature branch:
- If currently on
main, create a new branch:git checkout -b <branch-name> - If already on a feature branch, use the current branch
- If currently on
-
Stage and commit:
- Stage the relevant changed files by name (avoid
git add -A) - Write a commit message following the repo's conventional commit style (
type(scope): description) - Common types:
feat,fix,refactor,chore,docs,test - Include
Co-Authored-By: Claude Opus 4.6 <[email protected]>trailer - Use a HEREDOC for the commit message
- Stage the relevant changed files by name (avoid
-
Push to origin:
git push -u origin <branch-name> -
Open PR against upstream:
- The upstream repo is
pelikan-io/pelikan - The fork remote is
origin(determine the owner fromgit remote -v) - Use
gh pr createwith--repo pelikan-io/pelikanand--head <fork-owner>:<branch-name>
gh pr create \ --repo pelikan-io/pelikan \ --head <fork-owner>:<branch-name> \ --title "<conventional commit style title>" \ --body "$(cat <<'EOF' ## Summary <1-3 bullet points describing the changes> ## Test plan <bulleted checklist of testing done or needed> 🤖 Generated with [Claude Code](https://claude.com/claude-code) EOF )" - The upstream repo is
-
Report the PR URL to the user.
Notes
- Keep PR titles under 70 characters
- PR title should follow the same conventional commit format as the commit message
- If
cargo clippy,cargo test, orcargo fmt --checkhaven't been run yet during this session, run them before committing - Never force push or amend existing commits
- The fork owner can be determined from the origin remote URL (e.g.,
[email protected]:brayniac/pelikan→brayniac)