skills/skill-scancommitpr/SKILL.md
Scan repo for all changes, group them into logical commits, push to GitHub, and optionally create a pull request. Only creates a PR when the user explicitly asks for one.
npx skillsauth add hasna/skills skill-scancommitprInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill performs the full scan/commit/push workflow and additionally offers to create a pull request on GitHub.
IMPORTANT: Only create a PR if the user explicitly asked for one. If the user just said "commit" or "push", do NOT create a PR.
Follow ALL steps from the scancommitpush workflow:
git rev-parse --git-dir. If not a repo, stop.git diff --name-only --diff-filter=U. If any, stop and report.git branch --show-current. Warn on detached HEAD.git remote -v. If none, stop.git rev-parse --abbrev-ref @{upstream} 2>/dev/null. Note if missing.git status (no -uall flag) — note staged, unstaged, untracked.git diff --stat — unstaged summary.git diff --cached --stat — staged summary.Group by priority:
When in doubt, split. Lockfiles go with their package.json. Test files go with the code they test.
For each group, in dependency order:
git add <file1> <file2> — NEVER git add .<type>: <imperative summary, max 72 chars>
<optional WHY body>
Co-Authored-By: Claude <[email protected]>
Types: feat, fix, refactor, docs, test, chore, style, perfgit log --oneline -1.git push -u origin <branch>git pushList all commits with hashes, types, summaries, and file counts.
Only proceed if the user explicitly requested a PR.
User says "commit" or "push" -> Phase 1 ONLY, no PR
User says "commit and push" -> Phase 1 ONLY, no PR
User says "commit and create a PR" -> Phase 1 + Phase 2
User says "push and open a PR" -> Phase 1 + Phase 2
User says "create a PR" -> Phase 1 + Phase 2
User says "PR" or "pull request" -> Phase 1 + Phase 2
If the user did NOT ask for a PR, stop after Phase 1. Do NOT ask "would you like me to create a PR?" — just stop.
Current branch should NOT be main or master. If it is, warn: "You are on the main branch. PRs are typically created from feature branches. Proceed anyway?"
Find base branch:
git rev-parse --verify origin/main 2>/dev/null && echo "main" || git rev-parse --verify origin/master 2>/dev/null && echo "master"
If neither exists, ask the user.
Check for existing PR: gh pr list --head <current-branch> --state open. If PR exists: "A PR already exists for this branch: <url>. New commits have been pushed to it." Stop.
Get full diff: git log --oneline <base>..HEAD — ALL commits on this branch, not just new ones.
Analyze all commits to understand the full PR scope.
Draft PR title:
Draft PR body:
## Summary
<1-3 bullet points: what and why>
## Changes
<Key changes, grouped logically>
## Test plan
<Testing steps checklist>
Generated with [Claude Code](https://claude.ai/code)
gh pr create --title "<title>" --body "$(cat <<'EOF'
<PR body>
EOF
)"
Handle errors:
gh not installed: "Install GitHub CLI: brew install gh or https://cli.github.com"gh auth login"Do NOT add labels, reviewers, or assignees unless asked. Do NOT auto-merge.
Committed and pushed to <branch>:
1. <hash> <type>: <summary> (N files)
2. <hash> <type>: <summary> (N files)
Total: X commits, Y files changed
Pull Request created:
Title: <title>
URL: <url>
Base: <base> <- <branch>
| Situation | Action |
|-----------|--------|
| On main/master | Warn, ask before creating PR |
| PR already exists | Report URL, don't create duplicate |
| gh not installed | Provide install instructions |
| gh not authenticated | Tell user to run gh auth login |
| No diff between branch and base | "No differences. Nothing to PR." |
| Draft PR requested | Use gh pr create --draft |
| Specific reviewers requested | Use --reviewer flag |
| Fork workflow | Use gh pr create --head <user>:<branch> |
All scancommitpush safety rules apply, plus:
tools
Generate hosted voiceover variants and short jingles
tools
Generate premium video highlight packages with clip plans, captions, thumbnails, chapter markers, social copy, edit decisions, and manifest metadata.
testing
Generate high-quality articles using parallel AI agents. Supports research, writing, and optional cover image generation. Write single articles or batch process multiple topics with configurable parallelism.
testing
Generate videos using OpenAI Sora, Minimax Hailuo, Gemini Veo, or Seedance through the hosted Skills runtime with provider-cost pricing.