Gh pr writing

From wordbricks/onequery · View interactive version

Gh pr writing is an AI agent skill from the GitHub repository wordbricks/onequery. Write and update GitHub PR titles and PR bodies with repository templates and local conventions. Use when creating PRs with `gh pr create`, revising PR text, choosing a conventional title prefix (for example `feat(web):`), or ensuring ticket suffix rules.

How to use this skill

Skill file

GH PR Writing

Workflow

  1. Inspect changed files (git show --name-only --oneline HEAD or git diff --name-only).
  2. Choose title type and scope from the mapping below.
  3. Build title in Conventional Commit PR style.
  4. Run bun run format manually before commit/push to avoid push-time formatter diffs.
  5. Load PR template from .github/pull_request_template.md when present.
  6. Fill the template with concrete user-facing behavior, implementation details, and executed validation commands.
  7. Create or update the PR using gh pr create or gh pr edit.

Title Rules

Type And Scope Mapping

See the following example:

When multiple scopes are touched, choose the dominant user impact scope.

PR Body Rules

Commands

# Inspect latest commit

git show --name-only --oneline HEAD

# Format before push

bun run format

# Create PR from template body file

gh pr create --base main --head <branch> --title "<title>" --body-file <body.md>

# Update title/body later

gh pr edit <pr-number-or-url> --title "<title>" --body-file <body.md>
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.