Sprint summary

From shopsys/shopsys · View interactive version

Sprint summary is an AI agent skill from the GitHub repository shopsys/shopsys. Generates a Czech sprint summary article from Jira sprint data (Jira MCP first, CSV fallback), publishes it to Confluence with embedded screenshots and MP4 clips, and records the clips with Playwright MCP (visible cursor, ffmpeg post-processing).

How to use this skill

Skill file

Sprint Summary

Generates a sprint summary from Jira sprint data. Prefer Jira MCP as the primary source; use a Jira CSV export only as a fallback when MCP is unavailable or missing required data. Creates a structured article in Czech suitable for Confluence. If Playwright MCP is available, it prepares screenshots/videos for relevant UI/UX tasks as side attachments.

Initial Setup

When invoked without arguments, respond:

I am ready to generate a sprint summary. Please provide:
1. Sprint number or Jira sprint identifier
2. (Optional) Path to the CSV file exported from Jira, if Jira MCP is not available
3. (Optional) Path where to save the output file

Example: /sprint-summary 192
Fallback CSV example: /sprint-summary /home/user/jira-export.csv

You can generate the CSV here: https://shopsys.atlassian.net/issues/?filter=12564
Before exporting, update the sprint number in the filter to the sprint you want to summarize.
To export the CSV, click the three dots in the top right corner and select "Export" -> "CSV - filter fields".

Expected CSV columns:
- Issue key (e.g., SSP-3614)
- Summary
- Description
- Custom field (Merge Request) - GitHub PR link

Then wait for user input.

Command Arguments

Workflow

Step 1: Load Source Data and Select Tasks

Primarily use Jira MCP. CSV export is a fallback only when Jira MCP is unavailable or does not provide the required data.

When using Jira MCP:

  1. Find the requested sprint. Do not rely on the saved filter 12564 (it points to an old sprint); query directly with sprint = "SSP Sprint #<N>" and page through all results (nextPageToken).
  2. Include only issues that were completed in that sprint.
  3. Load issue details, PR links, and comments. The Merge Request field is customfield_10031, the sprint field is customfield_10020.
  4. Use comments especially for tasks without PRs, research tasks, and unclear changes.
  5. If the user links the previous sprint article, read it first (an external wiki/external/... link is not fetchable by WebFetch; open it in the built-in browser and use get_page_text) and skip everything already described there.

Only include tasks completed in the sprint. Do not include issues that were merely assigned to or present in the sprint but not completed there.

Exclude operational/meta tasks such as sprint overhead, grooming, release management, coordination, or similar internal process tasks unless the user explicitly asks to include them.

When using CSV fallback:

  1. Read the CSV file using Read tool
  2. Expected columns:

If CSV data does not include comments, explicitly mention that Jira comments could not be checked unless Jira MCP is available.

Step 2: Categorize Tasks

Split tasks into categories based on name, description, and prefixes:

New Features:

Bug Fixes - Backend/Admin:

Bug Fixes - Storefront:

Admin Improvements:

Performance and Security:

Accessibility:

Developer Experience (DX):

Demo Data and Documentation:

Infrastructure:

Step 3: Fetch PR Details (Optional)

For key tasks (new features, major changes), get the PR title and description with the pr-diff-fetcher skill or gh pr view <n> --json title,body:

Fetch PR descriptions for these GitHub PRs from shopsys/shopsys:
- PR #{number} ({task name})
Return just the PR title and description/body.

Step 4: Generate Markdown File

Create a structured markdown in Czech. Do NOT split categories into Backend/Storefront subsections. Instead, add a platform prefix to task titles only when it is not obvious from the name:

When to add prefix:

When NOT to add prefix:

Use format "Storefront: " or "Backend: " or "Admin: " as prefix when needed.

# Shrnutí sprintu

## Nové funkce

#### {Task name with optional platform prefix}
- **Jira:** [SSP-XXXX](https://shopsys.atlassian.net/browse/SSP-XXXX) | **PR:** [#YYYY](https://github.com/shopsys/shopsys/pull/YYYY)
- Bullet point 1 describing the change
- Bullet point 2 describing the change

#### {Another task}
...

---

## Opravy chyb

#### {Task name}
...

---

## Vylepšení administrace

...

## Výkon a bezpečnost

...

## Přístupnost (Accessibility)

...

## Developer Experience (DX)

...

## Demo data a dokumentace

...

## Infrastruktura

...

Step 5: Format Individual Items

For each task:

  1. Heading: Use Summary from CSV or PR title (if more descriptive)
  2. Links:
  1. Description:

Additional rules:

Step 6: Save Markdown

  1. Save the markdown file
  2. Keep the markdown article clean and copy-friendly
  3. Do not automatically embed screenshots into the markdown

Step 7: Visual Attachments

After the markdown is generated, check whether Playwright MCP/browser tools are available and whether the application is reachable.

Required: when Playwright MCP is available, generate screenshots for UX-relevant tickets as part of the workflow (do not wait for a separate prompt). The default target URL is the production environment - https://cz.ssfwcc.prod.shopsys.cloud/. If production demo data turn out to be non-standard (missing demo products, changed transports), switch to the Odin review environment of the current release branch (e.g. https://cz.20-0.odin.shopsys.cloud, SK domain https://20-0.odin.shopsys.cloud/sk, admin https://20-0.odin.shopsys.cloud/admin/).

Use the tickets the user names; otherwise choose the UX-relevant tasks yourself.

When choosing tasks automatically, prefer:

Usually skip:

If the user wants visuals:

  1. Use Playwright MCP only; do not install Playwright into the project
  2. Save assets into a sibling directory next to the markdown output
  3. Default asset directory name:
  1. Naming convention:
  1. Prefer full viewport screenshots over tight crops
  2. Crop only when the full viewport is unusable or hides the relevant change
  3. Use video/GIF only for interaction-heavy changes where a screenshot is insufficient
  4. If a scenario cannot be reproduced, skip the asset and report that clearly

When assets are generated, update the markdown item only with a short textual reference, not an embedded image. Every screenshot and video gets a Czech caption (what the asset shows, one short sentence); the same caption is used later in Confluence. Use this format:

- Příloha: `sprint-summary-assets/SSP-3891-variant-parameters.png` (Výběr variant podle parametrů na detailu produktu)
- Příloha: `sprint-summary-assets/SSP-3891-variant-parameters.mp4` (video 30 s: Přepínání variant a aktualizace ceny)

This keeps the article easy to preview in IDEs and easy to copy to Confluence.

Screenshots with Playwright MCP
Video recording with Playwright MCP

Prerequisites (one-time, needs a session restart):

```

claude mcp remove playwright

claude mcp add playwright -- npx -y @playwright/mcp@0.0.40 --save-video=1440x900 --output-dir /Users/<user>/Downloads/playwright-videos

```

Recording rules:

Post-processing:

```

ffmpeg -i rec.webm -vf "scale=trunc(iw/2)2:trunc(ih/2)2,fps=25" -c:v libx264 -crf 23 -pix_fmt yuv420p -an full.mp4

ffmpeg -i full.mp4 -ss 33.5 -to 63.5 -c:v libx264 -crf 23 -pix_fmt yuv420p -an -movflags +faststart SSP-XXXX-slug.mp4

```

```

ffmpeg -i in.mp4 -filter_complex "[0:v]trim=0:28.5,setpts=PTS-STARTPTS[a];[0:v]trim=41:48,setpts=PTS-STARTPTS[b];[a][b]concat=n=2:v=1:a=0[v]" -map "[v]" -c:v libx264 -crf 23 -pix_fmt yuv420p -an -movflags +faststart out.mp4

```

```

ffmpeg -i full.mp4 -vf "select='eq(n\,500)+eq(n\,850)+eq(n\,1100)',scale=440:-1,tile=3x1" -fps_mode vfr -frames:v 1 check.png

```

Storefront selectors that proved stable:

Step 8: Present Result

  1. Display the generated markdown file path
  2. If attachments were generated, mention the asset directory
  3. Offer to open in editor (PhpStorm)
  4. Display summary:
Sprint summary has been generated.

File: {path to file}
Assets: {path to assets directory, if any}

Statistics:
- Total tasks: XX
- New features: X
- Bug fixes: X (BE: X, FE: X)
- DX improvements: X
- ...

Would you like to open the file in PhpStorm?

When Confluence or visual attachments were involved, the final report must also list:

Step 9: Confluence Workflow

Always create the Confluence article as a published page that is open to everyone in the space (isPrivate: false) when Confluence MCP is available.

Place the page under the same parent/folder as the previous sprint summary so it inherits the space's default permissions (visible to everyone in the space).

After creating the page, give the user its link and tell them it is already published and visible to everyone in the space, so they can review and edit it directly.

If Confluence MCP is unavailable, instruct the user to create the article manually in Confluence here:

https://shopsys.atlassian.net/wiki/spaces/PRG/folder/2698510337?atlOrigin=eyJpIjoiMTIzN2EwNmQyYzMyNGFiY2I1OTU1YmVkMjk4YTk1MTciLCJwIjoiYyJ9
Attachments and embedded media

Confluence MCP cannot upload attachments, so:

  1. Insert placeholders first: <div data-type="panel-info"><p>Zde nahrát screenshot <code>FILENAME</code></p></div> (use "GIF"/"video" for other types).
  2. Upload the files through a browser that is logged in to Atlassian. The REST endpoint POST /wiki/rest/api/content/{pageId}/child/attachment rejects browser sessions with "XSRF check failed" even with X-Atlassian-Token: no-check; use the legacy form instead:
  1. Read the media ids: GET /wiki/rest/api/content/{pageId}/child/attachment?limit=100&expand=extensions -> extensions.fileId.
  2. Replace every placeholder with a bordered, captioned media node (works for PNG, GIF and MP4). The border is an ADF mark that the HTML format does not carry, so do this step in ADF: load the page with getConfluencePage contentFormat: "adf", replace each placeholder panel with the node below, and write it back with updateConfluencePage contentFormat: "adf":

```json

{"type": "mediaSingle", "attrs": {"layout": "center", "width": 760, "widthType": "pixel"}, "content": [

{"type": "media", "attrs": {"type": "file", "id": "{fileId}", "collection": "contentId-{pageId}", "alt": "{filename}", "width": 1440, "height": 900},

"marks": [{"type": "border", "attrs": {"size": 2, "color": "#091e4224"}}]},

{"type": "caption", "content": [{"type": "text", "text": "Výběr variant podle parametrů na detailu produktu"}]}

]}

```

  1. Re-uploading a file with the same name creates a new attachment version; the page picks it up automatically (the media id in the body changes) and the page version does not change. Only the caption may need an update.

If attachment upload is not possible, keep the placeholders and clearly tell the user which local files need to be uploaded manually, together with the caption for each file and a reminder to turn on the border.

Safe page updates

updateConfluencePage replaces the whole body, so it silently overwrites edits the user made in the editor meanwhile.

Step 10: Distribution Instructions

Once the article is ready, always instruct the user with the following steps:

  1. Verify the article contents (and optionally have a colleague review it).

When adding or replacing screenshots and videos manually, give each one a caption describing what it shows and turn on its border (select the media -> "Border" in the toolbar), so all media in the article look the same. When recording videos manually, keep the mouse cursor visible (enable "show cursor" and ideally click highlighting in the screen recorder).

  1. Once satisfied with the contents, create a public link for the Confluence page.
  2. Send that public link together with the three newsletter highlights below to the marketing department so they can announce the new sprint summary by e-mail to subscribers.
Newsletter highlights for marketing

At the end of the final response to the user, always include a separate Czech block titled „3 lákadla do newsletteru pro marketing“, ready to copy and send to marketing with the article link. This is a handoff for the newsletter announcement, not an extra section in the Markdown or Confluence article.

Only prepare the handoff; do not send it to marketing automatically.

Rules for Describing Changes

  1. Write in Czech - the entire article including technical terms (where it makes sense)
  2. Use bullet points - not paragraphs
  3. Be concise - each bullet is a short, scannable statement
  4. Focus on impact - what it means for users/developers
  5. Omit internal details - implementation details only if relevant
  6. Keep technical terms - do not translate GraphQL, API, Docker, etc.
  7. Keep article copy-friendly - references to attachments are allowed, embedded media is not the default output

Cleaning Jira Markup

When processing Description field, remove or convert Jira-specific markup:

Example Output

# Shrnutí sprintu

## Nové funkce

#### Upřesnění výpočtu lhůty pro odstoupení od smlouvy
- **Jira:** [SSP-3576](https://shopsys.atlassian.net/browse/SSP-3576) | **PR:** [#4317](https://github.com/shopsys/shopsys/pull/4317)
- Administrátor může nyní importovat státní svátky pro vybranou zemi a domény
- Lhůta pro odstoupení se automaticky posouvá na první pracovní den při víkendu/svátku
- Nová možnost označit den jako "Den pracovního volna" v nastavení

#### Storefront: Podpora onClick na komponentě Tag
- **Jira:** [SSP-3743](https://shopsys.atlassian.net/browse/SSP-3743) | **PR:** [#4322](https://github.com/shopsys/shopsys/pull/4322)
- Doplněn onClick handler pro napojení na GTM

---

## Opravy chyb

#### Formulář se neskryje po odeslání
- **Jira:** [SSP-3674](https://shopsys.atlassian.net/browse/SSP-3674) | **PR:** [#4303](https://github.com/shopsys/shopsys/pull/4303)
- Po odeslání se nyní skryje/vyčistí formulář na kontaktní stránce a stránkách osobních údajů
- Příloha: `sprint-summary-assets/SSP-3674-contact-form-state.png` (Vyčištěný kontaktní formulář po odeslání)

#### Admin: Chyba ve vyhledávání rozšířeného filtru
- **Jira:** [SSP-3748](https://shopsys.atlassian.net/browse/SSP-3748) | **PR:** [#4334](https://github.com/shopsys/shopsys/pull/4334)
- Opraveno dvojité volání requestu při použití našeptávání

---

## Výkon a bezpečnost

#### Storefront: Optimalizace broadcast channel
- **Jira:** [SSP-2013](https://shopsys.atlassian.net/browse/SSP-2013) | **PR:** [#4327](https://github.com/shopsys/shopsys/pull/4327)
- Při více otevřených záložkách se query na košík volá pouze jednou

Playbook: scripted scenario with visible cursor

Run inside browser_evaluate (Playwright MCP 0.0.40). Adjust selectors and timings per scenario.

async () => {
  const sleep = (ms) => new Promise(r => setTimeout(r, ms));
  const cursor = document.createElement('div');
  cursor.innerHTML = '<svg width="28" height="28" viewBox="0 0 24 24"><path d="M4 2 L4 20 L8.5 15.5 L11.5 22 L14 21 L11 14.5 L17.5 14.5 Z" fill="#111" stroke="#fff" stroke-width="1.5" stroke-linejoin="round"/></svg>';
  cursor.style.cssText = 'position:fixed;left:700px;top:500px;z-index:2147483647;pointer-events:none;transition:left .7s ease,top .7s ease;filter:drop-shadow(0 1px 2px rgba(0,0,0,.5))';
  document.body.appendChild(cursor);
  const ripple = document.createElement('div');
  ripple.style.cssText = 'position:fixed;width:34px;height:34px;border-radius:50%;border:3px solid #2563eb;z-index:2147483646;pointer-events:none;opacity:0;transform:translate(-50%,-50%) scale(.4);transition:opacity .35s,transform .35s';
  document.body.appendChild(ripple);
  const moveTo = async (el) => {
    const r = el.getBoundingClientRect();
    const x = r.left + r.width / 2, y = r.top + r.height / 2;
    cursor.style.left = (x - 3) + 'px'; cursor.style.top = (y - 2) + 'px';
    await sleep(750);
    el.dispatchEvent(new MouseEvent('mouseover', {bubbles: true}));
    await sleep(1000);
    return {x, y};
  };
  const clickWithCursor = async (el) => {
    const {x, y} = await moveTo(el);
    ripple.style.left = x + 'px'; ripple.style.top = y + 'px';
    ripple.style.opacity = '1'; ripple.style.transform = 'translate(-50%,-50%) scale(1)';
    el.click();
    await sleep(350);
    ripple.style.opacity = '0'; ripple.style.transform = 'translate(-50%,-50%) scale(.4)';
  };
  await sleep(2500);
  await clickWithCursor(document.querySelector('button[aria-label^="Odstranit z porovnání produkt 47"]'));
  await sleep(700);
  const undo = [...document.querySelectorAll('button')].find(b => b.textContent.trim() === 'Vrátit zpět');
  if (undo) await clickWithCursor(undo);
  await sleep(4000);
  return 'done';
}

Typing into inputs: use the native value setter plus input/change events so React/Stimulus controllers react:

Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, 'value').set.call(input, text); input.dispatchEvent(new Event('input', {bubbles: true})).

Audience

Target audience of the article:

Write so that the article is understandable for non-technical colleagues, but also contains enough technical details for developers.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.