Automated summary
Automates branching, committing, pushing, and opening a pull request against the upstream pelikan-io/pelikan repo from uncommitted changes.
Strengths
- Runs the whole git flow end to end (status, diff, branch, commit, push, gh pr create) without manual steps
- Infers commit style from the last 10 commit messages and applies the repo's conventional commit format
- Runs cargo clippy, cargo test, and cargo fmt --check if they haven't already been run in the session
- Avoids git add -A by staging named changed files, and derives a descriptive kebab-case branch name
Limitations
- Upstream repo pelikan-io/pelikan and the Rust cargo checks are hardcoded, so it does not transfer to other projects as-is
- Assumes a fork/upstream workflow with an origin remote owned by the contributor
- Disallows force push and amend, so a bad commit that was already pushed cannot be fixed by the skill
Use it when you have uncommitted changes in a pelikan fork and want to open a clean PR against upstream quickly, optionally supplying a branch name.
Don't use it on a different repository, to update an existing PR, or to rewrite already-pushed commit history.
Security analysis
CautionThe skill performs legitimate developer workflow operations (branch, commit, push, open PR) using git and gh. There is no obfuscation, no curl|sh, no destructive deletion, and no exfiltration of secrets or tokens. However, it does execute state-changing network operations (git push, gh pr create) and commits changes automatically, so it warrants caution rather than a clean 'safe' rating.
- •Runs git and gh commands that push commits and open PRs against a remote repository (pelikan-io/pelikan) without prior confirmation prompt
- •Automatically commits all relevant changes and pushes to origin, which is a state-changing network operation
- •Instructs committing with a fixed co-author trailer, which may be unwanted in some repos
Examples
/pr/pr fix-socket-permsOpen a pull request for my uncommitted changes against pelikan-io/pelikanname: pr description: Create a feature branch, commit changes, push, and open a PR against pelikan-io/pelikan
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 <noreply@anthropic.com>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.,
git@github.com:brayniac/pelikan→brayniac)
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/create-a-pr-with-git-and-github-cli-mrwak8p7/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/create-a-pr-with-git-and-github-cli-mrwak8p7' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/create-a-pr-with-git-and-github-cli-mrwak8p7/download' --output '.skill-downloads/create-a-pr-with-git-and-github-cli-mrwak8p7/SKILL.md.part' && mv '.skill-downloads/create-a-pr-with-git-and-github-cli-mrwak8p7/SKILL.md.part' '.skill-downloads/create-a-pr-with-git-and-github-cli-mrwak8p7/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/create-a-pr-with-git-and-github-cli-mrwak8p7/SKILL.md' && test -s '.skill-downloads/create-a-pr-with-git-and-github-cli-mrwak8p7/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/pr' && cp -R '.skill-downloads/create-a-pr-with-git-and-github-cli-mrwak8p7' '.claude/skills/pr'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/create-a-pr-with-git-and-github-cli-mrwak8p7'openskills read 'create-a-pr-with-git-and-github-cli-mrwak8p7'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/create-a-pr-with-git-and-github-cli-mrwak8p7/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.