Orchestrate pr creation

From lightspeedwp/.github · View interactive version

Orchestrate pr creation is an AI agent skill from the GitHub repository lightspeedwp/.github. Assembles and validates a caller-supplied PR data object (title, body, head, base, labels) before it is submitted. Use after branch name validation and template routing, once the caller has prepared the PR content.

How to use this skill

Skill file

orchestrate-pr-creation

Orchestrates PR creation by assembling PR data and validating it.

When to use this skill

After validate-branch-name and route-pr-template, once the PR's title, body, head, base and labels are ready to be assembled into a single PR object for submit-pr.

Input

{
  pr: object,                     // { owner, repo, title, body, head, base, labels }
  aiFeedback: array,              // optional: AI review feedback
  triggerWorkflow: boolean,       // optional
  createFeedbackResponse: boolean, // optional
  parseFrontmatter: boolean,      // optional
}

Behaviour

Output

Failures return a single error:

{ success: false, error: string }

Successes return the assembled PR and orchestration metadata:

{
  success: true,
  pr: object,
  frontmatter: object | null,
  feedbackResponseCreated: boolean,
  workflowRequested: boolean,
}

Usage

import { orchestratePrCreation } from "./scripts/orchestrate-pr-creation.js";

const result = await orchestratePrCreation({
  pr: { owner, repo, title, body, head, base, labels },
});
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.