Automated summary
This skill pushes local commits to remote and creates a pull request with a structured summary, changes list, and test plan.
Strengths
- Automates PR creation with a standardized format (summary, changes, test plan)
- Checks for uncommitted changes and handles them gracefully
- Detects existing PRs to avoid duplicates
- Uses conventional commit types for clear PR titles
Limitations
- Requires `gh` (GitHub CLI) to be installed and authenticated
- Only works with GitHub repositories
- The generated summary quality depends on commit message clarity
Use this skill when you want to quickly push changes and create a well-structured pull request without manually writing the body.
Avoid using it if you prefer to craft the PR message manually or if you are using a repository hosted outside GitHub.
Security analysis
SafeThe skill automates a standard PR workflow using git and GitHub CLI with no destructive or exfiltrating actions. It includes safety prompts (e.g., asking before committing) and restricts itself to safe operations.
No concerns found
How this analysis is madeExamples
Push my latest commits and create a PR for the new authentication feature with a structured summary and test plan.Push my bug fix for the API response handling and create a PR with a summary and test steps.Push my refactoring changes and create a PR that includes a summary of changes and test plan based on the diff.name: pr-push description: | Push local commits to remote, check for uncommitted changes, and create a PR with structured summary, changes list, and test plan.
PR Push
Instructions
- Gather Info:
git status,git log origin/<branch>..HEAD --oneline,git remote -v - Check Uncommitted: If exist, ask user whether to commit first
- Push:
git push -u origin <current-branch> - Check Existing PR: Run
gh pr view --json url -q .url 2>/dev/nullto check if a PR already exists for this branch- If PR exists: inform user and provide the PR URL, skip PR creation
- If no PR exists: proceed to create one
- Analyze Diff: Compare branch vs base (main/master/develop)
- Create PR: Use
gh pr createwith structured body
Commands Reference
# Check commits to push
git log origin/<branch>..HEAD --oneline
# Compare with base branch
git log <base>..HEAD --oneline
git diff <base>...HEAD --stat
git diff <base>...HEAD
# Push with upstream
git push -u origin <branch>
# Check if PR already exists for current branch
gh pr view --json url -q .url 2>/dev/null
# Create PR with heredoc
gh pr create --title "<type>: <subject>" --body "$(cat <<'EOF'
## Summary
...
## Changes
- ...
## Test Plan
...
EOF
)"
PR Message Format
## Summary
Brief description of what this PR accomplishes.
## Changes
- Bullet points of specific changes
- Reference actual files/functions modified
- Group related changes together
## Test Plan
How to verify the changes work correctly.
PR Title Convention
| Type | Use Case |
|------|----------|
| feat: | New feature |
| fix: | Bug fix |
| docs: | Documentation |
| refactor: | Code restructuring |
| test: | Test changes |
| chore: | Build/config |
Guidelines
- Always write PR messages in English
- Be specific, reference actual changes from diff
- Avoid verbosity - focus on what/why
- No co-author credits or "Generated with..." tags
Edge Cases
| Situation | Action | |-----------|--------| | No commits to push | Inform user | | Push fails | Report error, suggest solutions | | Uncommitted changes | Ask user to commit first | | No base branch | Ask user which branch to compare | | PR already exists | Inform user and provide PR URL, skip creation |
Examples
Example 1: Feature PR
Title: feat(auth): add JWT token refresh mechanism
Body:
## Summary
Implement automatic JWT token refresh to prevent session expiration during active use.
## Changes
- Add `refreshToken()` method in `auth/token.go`
- Implement secure cookie storage for refresh tokens
- Add retry logic with exponential backoff
- Update auth middleware to trigger refresh
## Test Plan
1. Login and wait for token to near expiration
2. Verify automatic refresh occurs without logout
3. Check refresh token rotates correctly
Example 2: Bug Fix PR
Title: fix(api): handle empty response body gracefully
Body:
## Summary
Fix null pointer exception when API returns empty body instead of JSON.
## Changes
- Add nil check in `parseResponse()` before JSON unmarshal
- Return empty struct instead of error for 204 responses
- Add unit test for empty body case
## Test Plan
1. Send request that returns 204 No Content
2. Verify no panic, returns empty result
Example 3: Refactor PR
Title: refactor(streamer): consolidate test mocks
Body:
## Summary
Extract common mock implementations to reduce duplication across test files.
## Changes
- Move `mockGRPCStreamClient` to `mock_query.go`
- Remove 4 duplicate mock definitions
- Update all test files to use shared mock
## Test Plan
Run `make test` - all tests should pass unchanged.
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/push-pr-with-structured-summary-mmio71c8/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/push-pr-with-structured-summary-mmio71c8' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/push-pr-with-structured-summary-mmio71c8/download' --output '.skill-downloads/push-pr-with-structured-summary-mmio71c8/SKILL.md.part' && mv '.skill-downloads/push-pr-with-structured-summary-mmio71c8/SKILL.md.part' '.skill-downloads/push-pr-with-structured-summary-mmio71c8/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/push-pr-with-structured-summary-mmio71c8/SKILL.md' && test -s '.skill-downloads/push-pr-with-structured-summary-mmio71c8/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/pr-push' && cp -R '.skill-downloads/push-pr-with-structured-summary-mmio71c8' '.claude/skills/pr-push'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/push-pr-with-structured-summary-mmio71c8'openskills read 'push-pr-with-structured-summary-mmio71c8'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/push-pr-with-structured-summary-mmio71c8/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.