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

pr-draft-summary

Skill257 starsChanged 3 months agoMITView on GitHub

Create the required PR-ready summary block, branch suggestion, title, and draft description for openai-guardrails-python after runtime, tests, examples, build/test configuration, or behavior-impacting docs change.

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

8 rules. 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 6

    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. Very specific:

    Run after applicable final review and verification when the task changed src/guardrails/, mcp_server/, tests/, examples/, build/test …

    line 14
  2. Distinctive:

    Run for eligible local-only or uncommitted work even when the user did not ask to open a pull request.

    line 15
  3. Distinctive:

    Do not ask the user for information that can be derived from the repository.

    line 34
  4. Distinctive:

    If there are no task changes and no commits ahead of the base, report that no code changes were detected and do not emit the PR block.

    line 39
  5. Distinctive:

    Keep the current non-main, non-detached branch when it already describes the task.

    line 44
  6. Distinctive:

    Use an imperative title with a conventional prefix when useful.

    line 47
  7. Very specific:

    Start the description with This pull request adds ..., fixes ..., improves ..., or updates ....

    line 48
  8. Distinctive:

    Keep the block tight and avoid repeating the same information in multiple sections.

    line 71

“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

Purpose

Produce a concise, copy-ready branch suggestion, PR title, and description for OpenAI Guardrails Python. This skill creates text only. It never authorizes creating a branch, committing, pushing, opening a pull request, or mutating GitHub.

When to trigger

  • Run after applicable final review and verification when the task changed src/guardrails/, mcp_server/, tests/, examples/, build/test configuration, or behavior-impacting docs.
  • Run for eligible local-only or uncommitted work even when the user did not ask to open a pull request.
  • Skip for repository metadata, editorial docs, conversation-only work, or when the user explicitly asks not to include a PR draft.

Inputs to collect automatically

  • Current branch: git branch --show-current.
  • Repository state: git status --short.
  • Untracked files: git ls-files --others --exclude-standard.
  • Staged and unstaged paths and statistics.
  • Base reference: the branch upstream when configured, otherwise local main, otherwise origin/main.
  • Merge base and commits ahead of that base.
  • Latest local release tag when compatibility context matters; label it potentially stale when remote tags were not refreshed.
  • Category signals:
    • Runtime: src/guardrails/, mcp_server/.
    • Tests: tests/.
    • Examples: examples/.
    • Docs: docs/, mkdocs.yml.
    • Build/test configuration: pyproject.toml, uv.lock, Makefile, .github/.

Do not ask the user for information that can be derived from the repository.

Workflow

  1. Resolve the base and inspect committed, staged, unstaged, and untracked task content.
  2. If there are no task changes and no commits ahead of the base, report that no code changes were detected and do not emit the PR block.
  3. Classify the work as feature, fix, refactor/performance, docs-with-impact, or repository tooling.
  4. Flag backward-compatibility risk only when the diff changes a released public API, external configuration, persisted data, serialized state, or wire protocol.
  5. Summarize the complete change in one to three sentences. Include untracked deliverables because ordinary diff statistics omit them.
  6. Choose a branch name:
    • Keep the current non-main, non-detached branch when it already describes the task.
    • Otherwise suggest feat/<slug>, fix/<slug>, docs/<slug>, or chore/<slug>.
    • Never suggest HEAD.
  7. Use an imperative title with a conventional prefix when useful.
  8. Start the description with This pull request adds ..., fixes ..., improves ..., or updates ....
  9. Explain the motivation, complete behavioral change, and compatibility considerations. Do not list tests unless the user asks.
  10. Normalize GitHub references: #123 for this repository and owner/repo#123 for another repository. Remove Markdown-linked issue/PR labels, bare issue/PR URLs, local paths, Codex citations, and app directives.
  11. Return the following block in English.

Output format

# Pull Request Draft

## Branch name suggestion

git checkout -b <kebab-case branch>

## Title

<single-line imperative title>

## Description

<copy-ready description beginning with "This pull request ...">

Keep the block tight and avoid repeating the same information in multiple sections.

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.