skills/gh-pr-publish/SKILL.md
Create, update, and publish GitHub pull requests with a clean title, durable body, branch hygiene, validation notes, and safe push/PR gates. Use when opening a PR, updating a PR description, preparing a draft PR, or publishing local changes to GitHub.
npx skillsauth add shipshitdev/library gh-pr-publishInstall 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.
Inputs:
Outputs:
Creates/Modifies:
External Side Effects:
Confirmation Required:
Delegates To:
commit-summary to create a Conventional Commitgh-fix-ci when PR checks failrelease-pr-gates / release for trunk-based releasesgh-project-board when the PR must be added to a project boardVerify GitHub and git context:
gh auth status -h github.com
gh repo view --json nameWithOwner,defaultBranchRef,url
git status -sb
git branch --show-current
git remote -v
Protect default branches:
feat/<slug>, fix/<slug>, chore/<slug>).Inspect work before writing:
git diff --stat
git diff --cached --stat
git log --oneline --decorate -10
If unrelated files are present, list them and get approval before staging.
Commit only after approval:
git add <approved-paths>
git diff --staged --stat
git commit -m "<message>"
Build the PR body from evidence:
Not run with reasonPreserve useful existing body sections when updating an open PR.
Find or create the PR:
gh pr list --head <branch> --state open --json number,url,baseRefName
gh pr create --base <base> --head <branch> --draft --title "<title>" --body-file <body-file>
gh pr edit <number> --title "<title>" --body-file <body-file>
Default to draft unless the user asked for ready review or the repo convention clearly requires ready PRs.
Push only after approval:
git push -u origin <branch>
Report:
--body-file; do not pass escaped markdown inline.--fill as the final body if the diff needs context.Closes #123 only when the issue is truly
resolved by the PR.A focused mode (invoked as /pr tidy) that makes an already-open PR easy for a
reviewer to read, by rewriting its description — not its commits. Use it when a PR
is correct but hard to review.
Steps:
Read the PR's current diff and body:
gh pr view <number> --json title,body,files,additions,deletions
gh pr diff <number> --name-only
Rewrite the description so a reviewer can navigate the change quickly:
Update the body only, after showing the rewrite:
gh pr edit <number> --body-file <body-file>
Scope and gates:
development
TypeScript refactoring and modernization guidelines from a principal specialist perspective. This skill should be used when refactoring, reviewing, or modernizing TypeScript code to ensure type safety, compiler performance, and idiomatic patterns. Triggers on tasks involving TypeScript type architecture, narrowing, generics, error handling, or migration to modern TypeScript features.
tools
Resolves TypeScript and JavaScript problems across type-level programming, performance, monorepo management, migration, and modern tooling. Invoke when diagnosing "type instantiation excessively deep" errors, migrating JS to TS, configuring strict tsconfig, debugging module resolution, or choosing between Biome/ESLint/Turborepo/Nx.
tools
Turborepo monorepo build system guidance. Triggers on: `turbo.json`, task pipelines, `dependsOn`, caching, remote cache, the `turbo` CLI, `--filter`, `--affected`, CI optimization, environment variables, internal packages, monorepo structure, and package boundaries. Use when the user configures tasks or workflows, creates packages, sets up a monorepo, shares code between apps, runs changed packages, debugs cache behavior, or works in an `apps/` plus `packages/` workspace.
tools
Provides Tailwind CSS v4 performance optimization and best practices guidelines. Triggers when writing, reviewing, or refactoring Tailwind CSS v4 code; when working with Tailwind configuration, @theme directive, utility classes, responsive design, dark mode, container queries, or CSS generation optimization.