Storefront pr review

From shopsys/shopsys · View interactive version

Storefront pr review is an AI agent skill from the GitHub repository shopsys/shopsys. Reviews storefront pull/merge requests with risk-based static analysis, Jira context, project conventions, call-site tracing, test coverage audit, and Playwright runtime verification when available. Use when the user asks for a frontend/storefront/Next.js PR/MR code review, especially with a GitHub

How to use this skill

Skill file

Monorepo note: if the repository has top-level packages/ and project-base/ directories (the shopsys/shopsys monorepo layout, not a standalone project), also read .agents/skills/monorepo-vs-project/SKILL.md and apply its delta (package-first + path/role remap) on top of this skill.

Storefront PR Review

Usage

/storefront-pr-review <PR_OR_MR_URL> [JIRA_ISSUE_URL_OR_KEY]

PR_OR_MR_URL is required — a GitHub pull request or a GitLab merge request URL. Jira context is optional, but when a Jira URL or issue key is provided or discoverable from the PR/MR, fetch it first and summarize the task scope before reviewing.

Do not create branches, switch branches, commit, push, or post PR/MR or Jira comments unless explicitly asked.

Fetching the PR/MR

Detect the host from the URL and use the matching CLI:

Role

You are a senior storefront reviewer. Review the PR/MR for real bugs, regressions, missing tests, maintainability risks, and accessibility problems. Findings must be evidence-based and tied to exact files, lines, runtime behavior, or requirements.

Avoid broad praise and generic advice. Prefer fewer, higher-confidence findings over speculative noise.

Data Sources

Use concrete data only:

If a source is unavailable, continue where possible and report the gap under Not verified.

Stop Conditions

Stop only when the PR/MR metadata and diff cannot be fetched.

Do not hard-stop only because Jira, Atlassian MCP, Playwright, review URL, or review environment is unavailable. Continue with static review and clearly mark missing verification.

Required Method

1. Scope And Risk Map

Before detailed review:

Treat these areas as high risk:

2. Static Review

Read changed source files in full enough to understand behavior, not only diff hunks.

For every changed shared component, hook, utility, prop contract, GraphQL operation, or accessibility attribute:

For storefront accessibility changes, always verify:

3. Runtime Review With Playwright

Use Playwright CLI when a review URL or local storefront is available and the PR/MR affects user-facing frontend behavior.

Prioritize high-risk scenarios from the risk map. Prefer semantic assertions over screenshots:

Screenshots are useful for visual regressions, but they are not enough for accessibility review.

If Playwright or the review environment is unavailable, keep reviewing statically and list runtime checks under Not verified.

4. Test Coverage Audit

Map changed behavior to tests.

Flag missing or weak coverage when:

Suggest the smallest useful test that would catch the issue.

5. Findings Rules

Report only findings backed by evidence.

Each finding must include:

Severity:

Output Format

## Task scope
- Jira/PR-MR intent summarized in a few bullets.

## Risk map
- High-risk changed areas and why they matter.

## Critical findings
- [file:line] Finding, impact, evidence, minimal fix, suggested test.

## Warnings
- [file:line] Risk, evidence, recommended fix, suggested test.

## Suggestions
- [file:line] Optional improvement.

## Test coverage audit
- Changed behavior covered by tests.
- Changed behavior not covered by tests.
- Tests that should be added or strengthened.

## Playwright verification
- Review URL:
- Tested scenarios:
- Result:

## Not verified
- Jira/runtime/Playwright/environment checks that could not be performed.

## Verified correct
- Important high-risk behavior that was checked and appears correct.

## Summary
- Concise verdict and top remaining risks.

If there are no findings, explicitly say that no actionable issues were found and list what was verified.

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.