Make your agents prove their work with GitHub templates

All of my personal repos share the same GitHub templates: four for issues and one for pull requests. Agents use them for every issue and PR they open, and the templates are written for agent-driven work. Chat sessions are ephemeral. Issues and PRs aren’t, so that’s where the spec, the proof and everything out of scope end up. Before that, my agents made up their own formats for issues and PRs, and it was all over the place.

Mapping issue types to templates

The important part is that my gh skill maps the types of issues to the templates, since agents don’t automatically pick these up on their own:

| Type                  | Path                                |
| --------------------- | ----------------------------------- |
| Pull Request          | `.github/pull_request_template.md`  |
| Feature               | `.github/ISSUE_TEMPLATE/feature.md` |
| Bug                   | `.github/ISSUE_TEMPLATE/bug.md`     |
| Chore, refactor, docs | `.github/ISSUE_TEMPLATE/task.md`    |
| Capture               | `.github/ISSUE_TEMPLATE/capture.md` |

Without this mapping, you get whatever structure the agent feels like that day.

Issues

I have one template for features, one for bugs and one for tasks (chores, refactors, docs). The feature template is the one agents fill in most:

## Outcome

<!-- What is the goal?  What should change, and why? -->

## Acceptance criteria

<!-- Checkable finish condition(s); preserve behavior for refactors. -->

## Verification

<!-- What evidence proves this change was successful? -->

## Non-goals

<!-- Optional: adjacent work someone might assume is included, but isn't. -->

## Constraints and dependencies

<!-- Optional: relevant boundaries, decisions, and related work. -->

The issue is the spec. Whichever agent picks it up, in whatever session, starts from the same outcome and the same definition of proof, instead of whatever was said in a chat that’s long gone.

The bug template’s comments do the steering. Expected behavior says “state uncertainty instead of guessing”, so the agent doesn’t invent what the code was supposed to do, and “No proposed fix is required” keeps a bug report from turning into a half-planned fix.

Capture

The fourth template is for friction-free capture of inbox items: ideas and observations to be triaged later. Its only instruction is to capture the original input verbatim, so the issue keeps my words instead of the agent’s summary of them.

Pull requests

<!-- Include Closes #N only when this PR fully resolves that issue; otherwise remove it. -->
Closes #NNN

## Summary

<!-- What changes and why. -->

## Changes

<!-- Meaningful decisions or review context, not a file-by-file inventory. Omit if Summary suffices. -->

## Verification

<!-- Checks actually run and their results, independent review, and relevant before/after screenshots or UI evidence. State limitations. -->

## Plan deviations

<!-- Link the published plan when present. Explain material deviations and/or out-of-scope changes and why; omit if none. -->

## Observations

<!-- Problems noticed outside this PR's scope and left unfixed: what, where, and impact. Link the issue if already tracked; the user decides what becomes a new one. Omit if none. -->

## Workflow feedback

<!-- Optional: concrete friction, its impact, and a supported improvement or issue link. Omit if none. -->

The PR isn’t where the work gets checked. Verification is defined in the issue, as well as during any kind of planning in the agent session. Before anything becomes a PR, my review skill runs a compliance review in a separate context (did it do what was planned, and only that?) alongside a normal code review. The PR is the durable record of what those found. Verification lists the checks that actually ran and what they couldn’t cover. Plan deviations is where out-of-scope changes get explained.

Observations is for everything the agent noticed and didn’t fix. Without somewhere to put it, the agent either fixes it in the same PR or drops it. Here it gets written down, and I get to decide what gets promoted to an issue.

Screenshots with gh --attach

For any visual fixes or changes, I make the agent also prove its work by attaching screenshots or videos. My gh skill asks for before and after on any change to existing behavior:

Default to screenshots when issues are primarily cosmetic (layout, design, etc), and default to videos when a behavior flow can be demonstrated and would help illustrate a bug or a behavior change. For PRs with fixes and changes for existing functionality, before AND after screenshots or videos are required.

For capturing them, I recommend the Playwright CLI and its skills. They cover taking screenshots and recording videos of a browser session, so the agent can produce the evidence on its own.

Attaching them used to mean a trip to the browser. GitHub CLI 2.99.0 added a repeatable --attach flag to gh issue and gh pr (create, edit and comment), so an agent can open the PR and upload the evidence in one command:

gh pr create --body-file pr.md --attach ./before.png --attach ./after.png

Agents won’t reach for the flag unless you tell them it exists, so it’s one line in the skill: “gh CLI now supports multiple --attach arguments on issues, PRs, and comments.”

  • agents
  • claude-code
  • github