SkilVaultSign inStart free

Catalogue / pr-summary

pr-summary

MITSignedUse when summarizing current PR changes for the development and product team. Analyzes all commits in the current branch, explains what broke and what the fix changes, and produces a human-readable report that can be posted as a GitHub PR comment (Markdown), a JIRA comment (ADF), or a Bugsnag commen…
---
name: pr-summary
description: "Use when summarizing current PR changes for the development and product team. Analyzes all commits in the current branch, explains what broke and what the fix changes, and produces a human-readable report that can be posted as a GitHub PR comment (Markdown), a JIRA comment (ADF), or a Bugsnag comment (plain text)."
license: MIT
metadata:
  author: "Petr Král (pekral.cz)"
---

TL;DR

Read the branch's commits and its linked tracker. Write one non-technical comment. Publish it.

  • GitHub and Bugsnag render the same two sections → What changed, then How to test.
  • `What changed` → Problem, Cause, Result, What I fixed, plus two conditional fields.
  • JIRA renders one shape on every run. Follow the deploy verdict, the four sections and the technical marker block of references/jira-shape.md. The comment has no byline.
  • `How to test` (GitHub and Bugsnag) → a scenario a human follows: every step names a concrete input and a must-hold outcome.
  • On GitHub and Bugsnag a closing line links the PR and source issue.
  • Only the delivery format differs per target: GitHub Markdown, JIRA ADF, Bugsnag plain text.
  • Prose is terse. Business "why" first, enough technical context to locate the change, nothing more.
  • No code snippets, file paths, line numbers, diff fragments.
  • Length follows the facts the report carries. There is no word budget on GitHub and Bugsnag; JIRA caps the comment at 3 000 characters.
  • Publish through the tracker-specific commands in *Publishing*. Every run posts a new comment on GitHub and JIRA and leaves the comment of an earlier run unchanged.

---

Constraints

Rules to apply

Each line states what the rule actually decides here, so its relevance is clear without opening it.

  • Apply @rules/php/core-standards.md — the package-wide prose and code standards every skill is held to.
  • Apply @rules/git/general.md — how the base branch is resolved and what the commit history this skill reads is expected to look like.
  • Apply @skills/agent-voice/SKILL.md to the prose of every comment this skill publishes, which is the sentence shape of every line this skill authors for a human to read. The length of the report follows *Length follows the facts* below and @rules/reports/general.md. Every marker, heading, field, identifier, link, and language rule stated in this skill stays unchanged.
  • Apply @rules/jira/general.md when the target is a JIRA issue. The template uses a constrained Wiki Markup source format. The canonical helper converts that source to ADF and publishes the resulting document through acli.
  • Apply @rules/reports/general.md — the published comment is written in the language of the source assignment (Czech assignment → Czech comment; English assignment → English comment). Code identifiers stay verbatim per the rule's *Scope clarifications*.
  • If the current project uses Laravel, also apply @rules/laravel/laravel.md, @rules/laravel/architecture.md, @rules/laravel/filament.md, and @rules/laravel/livewire.md — they tell the summary what a change to an Action, a Livewire component, or a Filament resource means in business terms.

What renders where

GitHub and Bugsnag carry the same structure and differ only in markup — no target gets a reduced shape, because the report carries nothing a tracker would need to omit. JIRA carries its own section order, for the reason *The JIRA shape* below states.

| Element | GitHub PR comment | JIRA comment | Bugsnag comment | |---|---|---|---| | Status line | no | the deploy verdict paragraph opens the comment | no | | Acceptance criteria | no | yes — always, as prose; each open criterion is a bullet | no | | Review findings | review-only run only, in place of How to test | yes — every run, after the criteria | review-only run only, in place of How to test | | What changed | yes — four fields, two conditional | included in What changed and what it affects | yes — four fields, two conditional | | What changed and what it affects | no | a few bullets combining changes and deployment impact, at most 600 characters | no | | How to test | yes, except a review-only run | no | yes, except a review-only run | | Test scenarios | no | yes | no | | {embedded_blocks} | conditional — exactly as the wrapper passed them | no — each question closes its criterion or finding bullet | conditional — exactly as the wrapper passed them | | Closing links line | yes | no | yes | | Length cap | none | 3 000 characters | none | | Markup | GitHub Markdown | ADF at the API boundary; the template's Wiki Markup is intermediate input only | plain text; no markup at all | | Template | templates/pr-summary-github.md | templates/pr-summary-jira.md | templates/pr-summary-bugsnag.md |

The JIRA shape

A JIRA ticket is read by the person who asked for the work, so its comment has its own shape on every run. references/jira-shape.md owns that shape, and templates/pr-summary-jira.md renders it. Apply @rules/code-review/general.md *The tracker comment carries the same verdict — in all three cases*. In the impact section a few bullets with no TL;DR label combine observable changes with what to watch after the release.

The section names are translated, the concepts are not

The headings and field labels above are this skill's canonical concepts, written in English because the skill itself is. The rendered comment follows the assignment language per @rules/reports/general.md, headings and field labels included — a Czech assignment renders Co se změnilo / Problém / Příčina / Výsledek / Co jsem opravil / Vedlejší přínos / Na jiný ticket / Jak otestovat, and a Czech JIRA ticket renders Akceptační kritéria / Nálezy z kontroly kódu / Testovací scénáře / Co se změnilo a co to ovlivní / Technická značka pro AI agenty, with the scenario labels Předpoklad: / Kroky: / Očekávaný výsledek: / Výsledek testu:. Never publish an English heading above assignment-language prose; that is the bilingual mixing the rule bans.

What changed — four required fields, two conditional ones (GitHub and Bugsnag)

Required, always rendered, in this order. On JIRA this content joins the deployment impact in What changed and what it affects instead — see *The JIRA shape* above:

  • Problem — what the reader's own world looked like when it was broken: who hit it, on what, what they saw instead. Name the scale when it is known (how many attempts, over how long, how many accounts).
  • Cause — why it happened. One mechanism, stated so a non-developer follows it. This is where a missing or partially met acceptance criterion is named in prose, never as a verdict field.
  • Result — what the cause actually cost: the number, the runtime, the silent failure it produced. When a failure was silent, say why it was silent.
  • What I fixed — a bullet list, one bullet per change the reader can observe. Each bullet states the new behaviour and, where a number exists, the before-and-after.

Conditional — render only when it has content, never as an empty field:

  • Side benefit — an improvement the fix produces that the assignment never asked for (load removed from a shared system, a class of failure that can no longer happen).
  • Filed separately — a genuinely unrelated defect found during the work and filed on its own ticket. Name the ticket and state that it is linked.

How to test — a scenario, not a checklist of tests

How to test is what a human does, in the application's own domain. It is never a list of automated tests and never a code-level instruction. It renders on GitHub and Bugsnag; JIRA renders its corresponding Test scenarios (*The JIRA shape* above).

  • Every step names concrete inputs: the account, the URL, the entity name, the value typed in.
  • Every step states an explicit must-hold outcome — what the tester must see for the step to pass.
  • Order the steps by what matters. When one step is the important one, say so in that step.
  • When the change is reachable only behind a test parameter — a feature flag, an ENV switch, a query-string parameter, a request header, an A/B variant, a beta toggle, or an allow-listed account — the first step enables it, naming the exact toggle and the value required. There is no separate metadata line for it on any target; the toggle lives inside the step that enables it.
  • Cover the regression too: name the neighbouring flows the tester should exercise to confirm nothing else moved.
  • A review-only run replaces the section. See *Review-only run* below.
  • Caller-supplied steps win. When the caller passes pre-authored steps derived from designed test scenarios, use those steps as passed — never compressed, never rewritten. The caller's scenarios are the source of truth for this section.

An unmet criterion addresses the author

When the assignment verdict names a criterion that is not met or partially met, the comment states why and mentions the author of the changes (@rules/code-review/general.md *The author of the changes is the account that pushed the pull request*).

  • State why. Each unmet criterion names what the change does not do and what the review observed that shows it, in plain prose.
  • Mention the author once, after the unmet criteria, on GitHub and Bugsnag. One sentence asks the author to confirm the claim and fix the gap, or to refute it in a reply. It follows the embedded blocks. A JIRA comment carries no such sentence (references/jira-shape.md item 2).
  • The mention syntax is the tracker's own.
  1. GitHub: @<login> of the pull request's author.login.
  2. Bugsnag: the author's name as plain text, because the helper carries no mention.
  • Every criterion met: no mention. The author stays internal information.

Review-only run — Review findings in place of How to test

A review-only run (/report-code-review) passes review-only together with the findings of the published GitHub pull-request comment. Then:

  • Skip step 7. Render no How to test section on GitHub or Bugsnag. A test-parameter toggle has no step to live in, so it is not rendered either.
  • Render `Review findings` in the position of `How to test`. The section retells the points of the technical GitHub report that must be resolved, so a non-technical reader knows what to do and can respond to it. A JIRA comment carries the section on every run already, in the shape *The JIRA shape* above defines; the bullets below apply to all three targets.
  • List only what must be resolved before the merge. This skill is the one owner of the rule; the wrappers and the templates only point here.
  1. Two kinds of point are listed: a defect (a finding of the technical report with evidence that blocks the merge) and an open question that needs an answer.
  2. Every such point is listed. Read the whole technical report, and leave out none of the points that must be resolved.
  3. A point that needs no action is not listed: a resolved point, a deferred point, and an informational point. This holds on every target. The review carries no other out-of-scope point and no follow-up proposal (@rules/code-review/general.md *What a code review checks, and nothing else*), so none is listed.
  4. An assumption, a hypothesis, or an unverified suspicion is never listed (@rules/general/general.md *Verified statements only*). Such a point stays in the technical report, under ## Needs verification and on the Not verified: line. The one exception is on JIRA (*The JIRA shape*): a security point that needs verification and blocks the merge (@rules/code-review/general.md S1–S3) is the first Review findings bullet, named as a blocker, without the detail of the suspicion.

Preview shortened. The full SKILL.md is in the pack.