Skip to content

Latest commit

 

History

History
54 lines (44 loc) · 4.14 KB

File metadata and controls

54 lines (44 loc) · 4.14 KB
name github-pull-request
description Implement a ready Fast Forward GitHub issue on an isolated branch, verify code, tests, and documentation impacts, and open or update the corresponding pull request. Use when an agent needs to move an issue through the GitHub implementation-to-PR workflow, or when the user asks to work through ready issues sequentially. Resolve repository or pull-request context through local git and GitHub data when needed.

Fast Forward GitHub Pull Request

Use this skill to take a Fast Forward issue from "ready to implement" to an opened or updated pull request. Default to one issue per run unless the user explicitly wants queue processing and the repository remains clean after each PR.

Workflow

  1. Resolve repository, branch, issue, and PR context. Read references/context-routing.md.
  2. Select the next ready issue, or decide to skip or stop. Read references/issue-selection.md.
  3. Implement the issue on an isolated branch, keep the write scope focused, and add a notable changelog entry when the delivered behavior, workflow, or release surface deserves one. Read references/implementation-loop.md.
  4. Draft or update the PR using repository templates when present, otherwise use the fallback structure. Read references/pr-drafting.md.
  5. Run the final gate in references/review-checklist.md before handing results to the user.

Fast Forward Defaults

  • Keep one branch and one PR per issue.
  • Branch from main or the repository integration branch, never from another feature branch.
  • When returning to main before starting a new implementation, always fetch and fast-forward from the remote before creating the next feature branch so release files, changelog state, and generated artifacts start from the latest published baseline.
  • Before pushing or reopening prior work, verify whether an earlier PR for the issue or branch is already closed. If the earlier branch has been deleted or the PR is closed, prefer opening a follow-up bug issue and publishing a new branch and PR instead of reviving the old branch name.
  • Prefer local git for checkout, commit, and push.
  • Prefer connector-backed GitHub data for issue and PR context when available.
  • Use phpunit-tests, package-readme, and sphinx-docs when the change clearly affects tests or documentation.
  • Use changelog-generator when the implementation introduces a notable user-facing or automation-facing change that SHOULD appear in release notes.
  • Never manually close an issue; rely on Closes #123 style text in the PR body.
  • Do not block waiting for merge. Open or update the PR, then report status and the next action.

Reference Guide

Need Reference
Resolve repo, branch, issue, and PR context references/context-routing.md
Choose the next issue or decide to skip references/issue-selection.md
Execute the implementation and verification loop references/implementation-loop.md
Create or update the PR body and title references/pr-drafting.md
Perform the final quality pass references/review-checklist.md

Anti-patterns

  • Do not batch unrelated issues into one branch or PR.
  • Do not create a duplicate PR if the current branch already has one.
  • Do not push new follow-up work onto a previously closed PR branch that has already been deleted upstream; open a bug issue and start a fresh branch/PR instead.
  • Do not open a PR before running the relevant verification commands.
  • Do not skip a notable changelog update when the implementation changes public behavior, release automation, or repository workflows in a way users or maintainers would expect to see called out.
  • Do not proceed to the next issue if the repository is dirty from unfinished work.
  • Do not let a vague issue body force broad implementation guesses; stop and clarify when the acceptance criteria are not actionable.