nextjs-app/ai-src/skills/github-pr-workflow/SKILL.md
Use only when the user explicitly asks to create/open a GitHub pull request after a finished feature, or explicitly invokes this skill. Handles final verification, git status review, commit/push, and pull request creation with the GitHub CLI (`gh`).
npx skillsauth add Adrienenjalbert/flex-carrer-hub github-pr-workflowInstall 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.
Use this skill only if at least one is true:
Do not use this skill automatically just because code changes exist.
Publish a finished feature to GitHub with a clean PR workflow using:
gitghRemote currently expected in this repo:
origin [email protected]:Adrienenjalbert/flex-carrer-hub.gitOptimize for a reviewer who is checking AI-generated PRs and wants:
These priorities override convenience.
Mandatory rule:
If the branch contains unrelated work, do not create the PR until scope is reduced or the user explicitly decides otherwise.
Default base branch:
mainException:
Do not guess this dependency. Use a non-main base only when:
The PR should contain only the files needed for the finished feature.
Do not include:
Before creating a PR, confirm all are true:
Check:
git status --shortgit diff --statgit diff for changed files if neededGoal:
Use verification-checklist logic.
Default checks for code changes:
pnpm checkpnpm typecheckpnpm buildAlso run when relevant:
pnpm smokepnpm seo:auditIf checks are skipped or failing, say so explicitly before PR creation.
Check:
Useful commands:
git branch --show-currentgit status -sbgit rev-parse --abbrev-ref --symbolic-full-name @{upstream} when usefulStage only intended files.
Use:
git add <paths>git commit -m "<type>: <summary>"Commit rules:
Use:
git push -u origin <branch> if upstream is missinggit pushghPreferred flow:
gh pr create --fill --base <base-branch> --head <branch>If --fill is weak, provide explicit title/body:
gh pr create --base <base-branch> --head <branch> --title "<title>" --body "<body>"Base branch rule:
main by defaultKeep the PR body practical and short.
Include:
Also include, when useful:
mainSuggested structure:
## Summary
- ...
## Verification
- `pnpm check`
- `pnpm typecheck`
- `pnpm build`
## Notes
- ...
main base branch unless explicitly required by stacked feature work or the user says so.git add . blindly in a dirty tree.When done, report:
If blocked, report the exact blocker:
gh auth missingdevelopment
Use when finishing a code change, validating generated code, or deciding which repo checks must run before presenting work in this repo.
tools
Use when creating or editing Career Hub tool pages, calculator pages, tool metadata, tool registry entries, or tool-specific support sections in this repo.
data-ai
Use when editing public pages, metadata, canonical URLs, structured data, sitemaps, robots rules, or any SEO-sensitive behavior in this repo.
development
Use when refactoring existing code, moving files, normalizing structure, or improving architecture without changing user-visible behavior in this repo.