agentleFS
OpenAIKnown publisheropenai/openai-guardrails-js/.agents/skills/pr-draft-summary/SKILL.md

pr-draft-summary

Skill104 starsChanged 3 months agoMITView on GitHub

Draft a Guardrails PR from its complete final diff and carry out authorized CI and review follow-up, including stacked PRs and takeovers.

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 7 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read AGENTS.md for review, release-note, and remote-action rules.

    line 9
  2. Very specific:

    Keep a user-selected branch.

    line 21
  3. Distinctive:

    Do not include unrelated local notes.

    line 22
  4. Distinctive:

    Use a concise imperative title.

    line 28
  5. Very specific:

    Use native GitHub references (#123 or owner/repo#123).

    line 38
  6. Distinctive:

    Keep local paths, reviewer transcripts, internal diagnostics, and app directives out of the external description.

    line 40
  7. Distinctive:

    Before any push or PR update, complete the repository's final review and applicable verification.

    line 45
  8. Distinctive:

    Stop repeated retries when there is no new evidence or progress.

    line 63
  9. Distinctive:

    When addressing feedback, inspect the whole affected diff, push the reviewed fix, then reply to the particular review thread explaining the …

    line 70

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

PR Draft Summary

Describe the complete final change, including internal tooling and docs PRs. Read AGENTS.md for review, release-note, and remote-action rules. Drafting alone does not authorize submission or messages; retain explicit user authorization already given for the task.

Establish the actual PR scope

Inspect the current branch, target, merge base, all branch commits, staged and unstaged changes, and relevant untracked deliverables. Use the intended target, not a feature branch's tracking configuration. For an explicit stack, compare against the previous PR's branch and list the required predecessor. Check the combined stack separately for integration and scope drift.

Keep a user-selected branch; suggest an unused codex/<topic> name when needed. Do not include unrelated local notes. If the diff is empty, report that fact rather than inventing a PR. Reconcile the summary with the final diff after fixes.

Draft the title and body

Lead with the concrete problem or missing capability and resulting behavior. Use a concise imperative title. Include only details needed to review the change:

  • What changes and why; relevant compatibility or migration requirements.
  • Actual tests/checks run, results, and material coverage limitations.
  • Changeset impact when it helps clarify release behavior.
  • For takeovers, the source PR and verified attribution; for split takeovers, identify the slice without claiming the entire original PR is complete.
  • For stacks, the predecessor and ordered stack position. Explain that the incremental diff is against that predecessor.

Use native GitHub references (#123 or owner/repo#123). Add issue-closing syntax only when the final change fully resolves that issue and closure is intended. Keep local paths, reviewer transcripts, internal diagnostics, and app directives out of the external description. Do not claim a check or approval that did not run.

Submit and follow up when authorized

Before any push or PR update, complete the repository's final review and applicable verification. Push only the intended branches and create PRs with explicit bases. Do not rewrite another author's branch, merge, or close a source PR merely because a replacement exists.

Monitor CI and CodeQL on the current head of every submitted PR. Both workflows filter PR targets to main, so higher stack entries may have no automatic runs. Inspect .github/workflows/ci.yml and .github/workflows/codeql.yml; when needed, dispatch each workflow on each affected stack branch and verify that every run's head SHA matches the PR. Require both workflows to pass before reporting the head as green or requesting review. Missing checks are not passing checks. Report an unavailable trigger or blocked run rather than weakening CI or modifying branch protection.

Fix and re-push only failures introduced/worsened by the change or narrowly necessary to its outcome, repeating the required review/checks before updates. Retry evidenced transient failures; report unrelated failures separately. Stop repeated retries when there is no new evidence or progress.

Once current-head CI and CodeQL pass, request review in root #sdk-reviews as required by AGENTS.md and authorized for the task. For a stack, one message can list all PRs in dependency order; do not post it as a thread reply. If messaging is unavailable, report the blocker and provide the prepared request without claiming it was sent.

When addressing feedback, inspect the whole affected diff, push the reviewed fix, then reply to the particular review thread explaining the correction and resolve it. Do not resolve feedback that remains unaddressed. If an earlier stack branch changes, reconcile dependent branches within the authorized scope and revalidate affected PR heads before reporting the stack as green.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.