agentleFS
markoblogomarkoblogo/abvx-agent-skills/skills/pr-write/SKILL.md

pr-write

Skill16 starsChanged 5 months agoMITView on GitHub

Create or update a concise GitHub pull request for an already verified code change. Use when the user asks to open or file a PR, or invokes pr-write. Do not publish a PR when the user only asks for draft wording.

2 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. About 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    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:

    Before updating an existing PR branch, inspect auto-merge and merge-queue state.

    line 17
  2. Distinctive:

    Read the repository template and recent titles for conventions.

    line 21
  3. Distinctive:

    If the authorized creation requires committing and pushing this task's change, do so on a task-owned non-default branch after verification.

    line 23
  4. Distinctive:

    Use accurate model/harness attribution only when repository policy requires it.

    line 35
  5. Distinctive:

    Check the whole draft and attachments for secrets, private local paths, customer data and private transcript excerpts.

    line 37
  6. Very specific:

    Use the connected GitHub tools when sufficient, otherwise authenticated gh.

    line 41
  7. Distinctive:

    Verify the returned PR URL and head/base.

    line 45
  8. Very specific:

    Do not post unsolicited comments, resolve reviews, enable auto-merge, merge, create a release, or start indefinite monitoring.

    line 47

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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 Write

Explain the concrete problem and resulting behavior. Match the repository's PR template and conventions. A request for text alone authorizes drafting only.

Verify the final scope

Before updating an existing PR branch, inspect auto-merge and merge-queue state. If either can merge it automatically, stop updates unless changing that state is authorized. Never disable it silently or promise no merge while it remains enabled.

Resolve the repository, current branch, actual target base and complete diff, including relevant untracked files. Check for an existing PR before creating one. Never stage, commit or include unrelated user work.

Read the repository template and recent titles for conventions. Confirm intended behavior with appropriate evidence, and distinguish pre-existing failures. Do not claim tests ran when they did not.

If the authorized creation requires committing and pushing this task's change, do so on a task-owned non-default branch after verification. Inspect exactly what is staged first. Do not rewrite unrelated commits or push the default branch.

Write

Lead the title and description with the problem and resulting behavior, not an inventory of files. Use a concrete before/after example where it helps. For small changes, one or two sentences and a validation line are sufficient.

Include:

  • why the change matters and what now happens;
  • verification actually observed, with material gaps;
  • source PR/contributor credit when continuing another person's work.

Use accurate model/harness attribution only when repository policy requires it. Follow the user's language and formatting preferences; do not force an emoji signature. Never invent a model name.

Check the whole draft and attachments for secrets, private local paths, customer data and private transcript excerpts. Do not upload private logs to prove a public claim.

Publish only the requested artifact

Use the connected GitHub tools when sufficient, otherwise authenticated gh. Pass multiline bodies as structured text, or save a UTF-8 body file and use --body-file; never interpolate body text into shell code.

Honor an explicit draft request. Otherwise create a normal PR when verification is sufficient and the repository expects it; use a draft with an honest blocker if the task calls for preserving incomplete work. For a wording-only request, return the text without creating or changing anything.

Verify the returned PR URL and head/base. Update the existing PR rather than creating a duplicate. Attach the PR to the current Codex task if that host exposes an attachment tool.

Do not post unsolicited comments, resolve reviews, enable auto-merge, merge, create a release, or start indefinite monitoring. If explicitly asked to watch CI, continue with pr-ci-watch or its native equivalent.

Report

Return the PR link or clearly labelled draft text, head/base, publication/draft state and concise validation. State any remaining gap.

Provenance

Adapt t3dotgg/tstack file-pr and its comment-formatting discipline. Keep factual attribution and concise writing while removing mandatory model signatures and emoji.

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.