lifecycle-pull-request

Automate GitHub pull request lifecycle from draft creation to human review.

168|55|Updated Jun 3, 2025
One-click install
npx skills add https://github.com/tile-ai/TileOPs --skill lifecycle-pull-request
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lifecycle-pull-request
Source: https://github.com/tile-ai/TileOPs/tree/main/.claude/skills/lifecycle-pull-request
Command: npx skills add https://github.com/tile-ai/TileOPs --skill lifecycle-pull-request

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gh, jq, and includes scripts (resource) components.

What problem does it solve?

This Skill automates the end-to-end management of GitHub pull requests to eliminate manual polling, repetitive fixes, and ad-hoc review handling so PRs can progress from commit to human review reliably.

Core Features & Use Cases

  • Draft-first PR orchestration: Creates draft pull requests, captures PR metadata, and integrates with downstream bot reviews.
  • Blocking CI & review polling: Executes a robust poll script that aggregates CI check runs and GraphQL review threads into structured actionable JSON.
  • Deterministic review handling: Provides clear rules for replying to reviewer comments, resolving review threads via GraphQL, reproducing and fixing CI failures, and re-polling until completion.
  • Use Case: Automatically commit changes, open a draft PR, trigger Copilot/Gemini reviews, iterate on CI and review feedback, and mark the PR ready for human reviewers when all checks and threads are resolved.

Quick Start

Invoke the skill by running the lifecycle-pull-request skill with a concise task description, for example: /lifecycle-pull-request Fix failing serialization bug in config parser.

Frequently Asked Questions about lifecycle-pull-request

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate GitHub pull request lifecycle management from draft creation to review?

Automate GitHub pull request lifecycle management by creating draft PRs, polling CI check runs, parsing review threads with GraphQL, and resolving feedback deterministically. This end-to-end orchestration eliminates manual polling and ad-hoc fixes so PRs progress reliably to human review.

What is the best way to handle GitHub bot reviews and CI monitoring in a draft-first workflow?

Handling GitHub bot reviews and CI monitoring in a draft-first workflow requires a blocking poll script that aggregates CI check runs and GraphQL review threads into structured JSON. This enables deterministic reply, resolution, and re-polling until all checks pass.

How do I resolve GitHub review threads automatically using GraphQL?

Resolve GitHub review threads automatically using GraphQL by executing a blocking poll script that captures review states, then applying deterministic rules to reply to comments and resolve threads directly via GraphQL mutations until completion.

Do I need the GitHub CLI and jq installed to automate pull request lifecycle orchestration?

You need the GitHub CLI (gh) and jq installed to automate pull request lifecycle orchestration. The Skill uses gh for committing, creating PRs, and polling, while jq parses the structured JSON output returned by the blocking poll script.

Can I trigger Copilot or Gemini reviews automatically after opening a draft pull request?

Triggering Copilot or Gemini reviews automatically after opening a draft pull request is supported by the draft-first orchestration workflow. Once the draft PR is created, the Skill captures metadata and integrates with downstream bots to trigger automated reviews.

Why does my automated PR workflow fail to mark drafts ready for review after CI passes?

Automated PR workflows fail to mark drafts ready when review threads are unresolved or CI checks have not been re-polled. The Skill ensures all review threads are resolved via GraphQL and CI failures are reproduced and fixed before marking the draft ready for human reviewers.