agentleFS
gerrymanoimgerrymanoim/exchange_calendars/.agents/skills/pr-body-layout/SKILL.md

pr-body-layout

Skill695 starsChanged 5 days agoApache-2.0View on GitHub

Layout for the body of a pull request - a short readable summary, a statement of the agent's autonomy, the user's review declarations, and the full agent-written detail folded away. Use whenever writing or updating a PR body, description or title. Applies in addition to any other PR-writing skill, template or convention, and takes precedence over them where they conflict.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

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

    Keep the blank line after the <summary> line and the blank line before </details>, as GitHub does not render the markdown inside the fold …

    line 46
  2. Distinctive:

    Do not credit the user with work or direction that the session did not see.

    line 77
  3. Distinctive:

    Do not change the level at the user's request unless the change rests on work or direction that the session saw or that the user supplied …

    line 79
  4. Distinctive:

    If the body already follows this layout:

    line 120
  5. Distinctive:

    Keep each ticked box, unless commits made since the box was ticked make its declaration untrue (for example, new changes to the code base …

    line 123
  6. Very specific:

    If you rewrite the detail, update the <summary> label, unless the label already names your model.

    line 126

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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 body layout

In this skill, the user is the person you are working with. The user is responsible for the PR and will submit it under their name. In the PR body itself, the user is referred to as the contributor.

The layout exists because an agent-written PR body is usually too long for a reader who wants only an overview and the most important aspects of the PR. The summary at the top is the only part that most people will read, hence the summary must stand on its own. The full detail remains available in a fold at the end of the body.

The layout

In the following template, {curly braces} mark placeholders for you to replace (braces included). Angle brackets are literal HTML and stay exactly as written.

🤖 {Attribution verb} {Agent} (agent autonomy {level}/5)

### Summary

{Summary}

---
- [ ] I've reviewed/revised the PR **title** (if unticked, treat it as an agent's unchecked title).
- [ ] I've reviewed/revised the **summary** above and it covers what a reviewer needs to know (if unticked, treat it as an agent's unchecked summary).

### Agent autonomy

{one sentence, see below}

### Contributor review

I have reviewed the (tick all that apply):

{a 'full diff' checkbox for each file category that the PR changes (see section 3)}
- [ ] commit messages
- [ ] agent's detail below

<details><summary>{Provider} {Model} {Effort}</summary>

{The PR body as you would otherwise have written it, including its usual closing attribution line}

</details>

Keep the blank line after the <summary> line and the blank line before </details>, as GitHub does not render the markdown inside the fold without them.

Attribution line

The attribution line is the first line of the body. It takes the form that the template gives, in which:

  • {Attribution verb} and {level} are a verb and an autonomy level that the table below pairs.
  • {Agent} is your name, written as a link to your home page, for example [Claude Code](https://claude.com/claude-code). Omit the link if you do not know the address.

The line carries nothing else. In particular, it carries no session link.

The autonomy level describes how independently you worked. It describes the working arrangement, not the quality of anyone's work. At 5/5 you worked largely on your own, whilst at 1/5 the user did most of the work themselves.

LevelVerbUse when
5/5Generated byThe user supplied the task and little else; you made the design and implementation decisions.
4/5Built withThe user steered by adjusting plans or giving corrections; you still made most decisions and were responsible for all or nearly all of the implementation.
3/5Crafted withThe user made the key design decisions and drove several rounds of revision; you mostly carried them out.
2/5Assisted byThe user directed the implementation itself, not just the design: they specified the structure, names and logic in enough detail that you were largely transcribing their intent, or they wrote or supplied a substantial part of the change.
1/5Advised byThe user wrote or supplied most of the change themselves; you advised, reviewed, wrote minor parts, or only prepared the PR.

The verb and the level always go together, as the table pairs them. For example:

🤖 Crafted with [Claude Code](https://claude.com/claude-code) (agent autonomy 3/5)

Judge the level only from what the session saw:

  • the work done in the session, by you or by the user.
  • what the user supplied to the session, for example a file, text given in the conversation or the commits of a branch. Take what the user supplied to be the user's contribution, as the level describes the working arrangement and not who first wrote a text. As an exception, take a supplied commit that names an agent (as its author or in a Co-Authored-By trailer) to be principally that agent's work.
  • the direction that the user gave in the session. Direction is what the user decided, changed or specified. An approval of what you proposed, given without change, is not direction.

Do not credit the user with work or direction that the session did not see. If the evidence leaves you between two levels, use the higher level.

Do not change the level at the user's request unless the change rests on work or direction that the session saw or that the user supplied to the session. If you keep the level, tell the user why.

A footer added by a tool

A tool that creates or updates the PR may append a footer that resembles the attribution line, for example "Generated by Claude Code". Leave any such footer in place, and do not raise it with the user. A session link in such a footer does not break the rule that the attribution line carries no session link.

1. Summary

The summary is written for a reader who has not seen the session and will read nothing else. It states what the PR changes, why, and anything that a reviewer must know before merging (for example a risk, a migration, or a decision that the reviewer is being asked to accept). Where the summary makes more than one point, write it as a short lead-in that ends with a colon, followed by a bullet for each point. Aim for fewer than 100 words. Go past 125 words only if a reviewer would otherwise miss something that they must know, and never go past 200 words. Include an image only if one already exists at a URL and the image explains the change faster than words would.

Follow the summary with the separator, the title checkbox and the summary checkbox, exactly as shown. Leave both checkboxes unticked. The separator (---) stops the checkboxes from being read as further items of a bulleted summary. Keep the blank line before the separator (as a --- directly under a line of text turns that line into a heading).

2. Agent autonomy

Write one sentence, in your own voice, that gives the evidence behind the autonomy level that you chose. For example: "The contributor set the approach and requested two rounds of changes to the caching design; implementation and tests were written by the agent." State what you observed, not what you assume. Where the level rests on what the user supplied, say "supplied" rather than "wrote", as the session did not see the supplied work being written.

3. Contributor review

Which 'full diff' checkboxes to include depends on the file categories that the PR's diff changes (i.e. the net changes between the PR's base branch and the PR's head). Each category has a checkbox of its own:

CheckboxFiles of the category
- [ ] full diff across the code basethe package's source, including its docstrings
- [ ] full diff across the test suiteevery file under tests/
- [ ] full diff across doc filesthe README and every other file that documents the project, except the agents files
- [ ] full diff across dev filesevery other file, for example the workflows, the configuration files, pyproject.toml, the lock file and the agents files (AGENTS.md, CLAUDE.md and the skills)

If a file could belong to more than one category, the file belongs to the category that the table lists first. Include the checkbox of each category that the diff changes, in the order of the table. Include no other 'full diff' checkbox. The commit messages and agent's detail checkboxes follow the 'full diff' checkboxes and are always included.

Include the lead-in and the checkboxes exactly as shown, unticked. The checkboxes are the user's declarations, hence never tick a checkbox yourself and never remove one, except a 'full diff' checkbox that 'Updating an existing PR body' says to remove. Do not tick a checkbox even if the user tells you in conversation that they have reviewed what the checkbox declares. These rules apply to every checkbox in the body, including the title and summary checkboxes. The only exception is the checkboxes of a section that the repository's create-pr skill defines (see 'How this combines with other instructions').

4. Detail

Inside the <details> block, write the PR body that you would otherwise have written. Follow whatever other skills, templates and conventions apply to it, and end it with your usual closing attribution line, unchanged.

The <summary> label names the model that wrote the detail. It gives the provider or product family, the model name and the effort level, for example Claude Opus 5.5 Medium. State each part to the best of your knowledge - you are not required to be certain of it. If you do not know:

  • the model name, write the placeholder {Name Model here} in its place for the contributor to complete, for example Claude {Name Model here}.
  • the effort level, leave it out rather than guess.

Updating an existing PR body

If the body already follows this layout:

  • Keep the user's edits to the title and to the summary. Change the title or the summary only if later commits have made it untrue. If you change the title, untick the title checkbox. If you change the summary, untick the summary checkbox. In either case, advise the user.
  • Keep each ticked box, unless commits made since the box was ticked make its declaration untrue (for example, new changes to the code base after the user ticked "full diff across the code base"). In that case untick the box and advise the user.
  • Keep the 'full diff' checkboxes in step with the PR's diff (see section 3). If the diff changes a category that has no checkbox, add the category's checkbox, unticked. If the diff no longer changes a category, remove the category's checkbox, whether or not the checkbox is ticked, and advise the user.
  • Start from the autonomy level, verb and autonomy sentence that the body already holds, regardless of who set them, as they record the working arrangement of the sessions that you did not see. Move the level only for work done in this session, and only as far as that work's share of the whole change warrants. Change the verb to match the level. Revise the autonomy sentence such that it covers the whole history of the PR.
  • If you rewrite the detail, update the <summary> label, unless the label already names your model.

How this combines with other instructions

This skill does not replace other PR-writing skills, repo PR templates or project conventions. Use them to write the detail (section 4 above) - the whole of the body that you would otherwise have produced goes there. This skill governs the overall structure and everything outside the fold. Where anything conflicts with this skill, this skill wins.

The one exception is the repository's create-pr skill, which may define a section to place outside the fold. If it does, place the section where that skill defines, and tick the section's checkboxes only as that skill allows. In every other respect, this skill still wins.

Before submitting

Advise the user that the PR title, the 'Summary' section and the 'Contributor review' section require their attention. If you wrote the {Name Model here} placeholder in the <summary> label, also advise the user that the placeholder is for them to complete.

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.