Skip to content
Back to skills

Tester Cookbook

ASecurity

Use when preparing a concise QA report for an internal tester from a JIRA task and its linked pull requests — focused on what the tester should report back to the dev team — and posting it as a JIRA comment.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 26, 2026
developmentrustgophpawstestingcode-reviewgitapi

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add pekral/ai-olympus --skill tester-cookbook --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tester Cookbook?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Tester Cookbook
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/pekral-tester-cookbook/badge)](https://www.skillsdirectory.com/skills/pekral-tester-cookbook)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: tester-cookbook
description: "Use when preparing a concise QA report for an internal tester from a JIRA task and its linked pull requests — focused on what the tester should report back to the dev team — and posting it as a JIRA comment."
license: MIT
metadata:
  author: "Petr Král (pekral.cz)"
---

## Constraints
- Apply `@rules/php/core-standards.md`
- Apply `@rules/git/general.md`
- Apply `@rules/jira/general.md` — compose with the supported intermediate source and publish real ADF through the canonical helper
- Apply `@rules/reports/general.md` — the cookbook JIRA comment must be written in the language of the JIRA task description (e.g. `ACME-*` tasks → Czech). Do not mix languages within a single comment; UI-visible labels stay verbatim as they appear in the admin screen.
- Apply `@skills/agent-voice/SKILL.md` to the prose of every comment this skill publishes. Every marker, heading, field, identifier, link, and language rule stated in this skill stays unchanged.
- Read-only relative to the codebase. The skill never modifies code; it only publishes a JIRA comment.
- Never change the JIRA task status — per `@rules/jira/general.md`, status transitions are handled by humans only.
- The audience is an internal QA tester who is not a programmer. Everything in the report must be verifiable by clicking in the application, opening a report screen, reading a delivered email/SMS, or checking the account balance. Anything that cannot be verified that way belongs in the dev-team report as a flag for the development team, not as a tester action.
- **Forbidden vocabulary** in the comment body — replace with a UI-visible label before publishing:
  - infrastructure: `queue`, `lambda`, `SQS`, `ENV`, `.env`, `config`, `feature flag` (use *switch in Administration*), `job`, `dispatch`, `retry`, `polling`, `telemetry`, `log`, `Bugsnag`, `Slack` (unless the Slack notification is what the tester reads), `AWS`, `payload`, `endpoint`, `API v2` (unless that exact wording appears in the UI).
  - code identifiers: `enum`, `class`, `namespace`, `repository`, `action`, `table`, `column`, DB column name, migration, route, status code, event name, listener.
- **No code identifiers in the comment.** When the PR diff references a code-level value (for example `CampaignDeliveryEvent::SMS_ACCEPTED`), translate it to the exact label the tester sees in the UI (*"status *Waiting for delivery* in the campaign report"*).
- **No credentials.** When a test account is required, refer to it by its tester-facing alias (*"use test account `qa-demo-1` — ask devs for access if you don't have it"*), never quote a password or API key.
- **Concrete inputs.** Replace generic phrasing with the literal value the tester should type. Instead of *"use a valid number"* write *"use the test number `+420600000000`"*.
- Validate the final comment **before** publishing: it must not contain any forbidden token, any Markdown heading (`#`), any fenced code block (` ``` `), or any Markdown table (`|`).

## Use when
- A JIRA task plus one or more linked GitHub pull requests need a short, tester-facing QA report.
- The expected delivery is a single ADF-formatted JIRA comment posted to the originating task.
- The dev team needs a clear, concrete list of symptoms the tester should report back if observed; the tester optionally needs a brief click-path to reach the affected area.

## Inputs
- `JIRA_KEY` — required. The JIRA task that owns the assignment (e.g. `ACME-1234`).
- `PR_NUMBER` — optional. A specific linked pull request to focus on; when omitted, use every PR linked from the JIRA task.

## Required approach

### 1. Load JIRA context
- Load the task via `skills/code-review-jira/scripts/load-issue.sh <KEY|URL>` — never call `acli` directly. For the full task context in one pass (description, all comments, attachments, recursively-loaded linked issues, and an inventory of external URLs), run `skills/code-review-jira/scripts/gather-issue-context.sh <KEY|URL>` instead. If the loader is unavailable (missing tool, exit code 2/3), fall back to the JIRA MCP server.
- Read `summary`, `descriptionText`, every entry in `comments[]`, and the linked-PR list off the resulting JSON document. When `attachmentsFetch` is set or `descriptionMediaRefs` / `mediaRefs` is not empty, run `download-attachments.sh` and read only the `safe/` files that the manifest of that fetch lists (`@rules/jira/general.md` *Attachments*).

### 2. Load each linked PR for impact analysis
- **Repository ownership (hard gate).** This historical gate is now API access verification. Follow `@rules/general/general.md` *Repository verification*: run `<skills>/_shared/assert-current-repo.sh <URL>` once per repository, or reuse its successful result. Exit `0` confirms API access with write permission. Every non-zero exit stops work on that repository. Exit `4` means no write permission; exit `5` means the API check failed. Compare no local remotes and create no clone or helper export.
- For every linked PR (or the explicitly provided `PR_NUMBER`), call `skills/code-review-github/scripts/load-issue.sh <URL>` — always with the full PR URL (build it from the repo's `origin` remote when only `PR_NUMBER` is given; the loader rejects bare numbers). Never call `gh pr view` directly.
- The PR diff is **input-only**. Its contents must not appear in the comment. From the diff, extract exclusively:
  - which screen / section / report the change is visible in;
  - which entity states the tester will see in the UI (*Delivered*, *Invalid number*, *Waiting*, …);
  - which business rule changed (*credits are charged only for valid recipients*, …);
  - which notifications the user or admin receives (email / SMS / push / in-app banner).
- Never copy class names, file paths, ENV keys, queue names, job names, enum cases, status codes, DB column names, AWS service names, or Bugsnag references into the comment.

### 3. Map every change from code to UI
For each impact identified in step 2, look up the corresponding visible label inside the application:
- **State changes** — locate the localization string for the status and use the rendered text in the comment.
- **Feature toggles** — find the switch label in the admin screen and write that label (e.g. *NovaSMS API version*), never the feature key (e.g. `novasms_sms_version`).
- **Internal-only changes (no UI footprint)** — surface them in the dev-team report ("ask dev team to confirm X"); do not invent UI steps the tester cannot perform.

### 4. Compose the comment
Render the comment from `skills/tester-cookbook/templates/test-report-jira.md`, which owns the order of the lines and sections and which of them are present. Compose it in the supported intermediate source format. The canonical helper converts the result to ADF. Publish only the part above the `=== END OF COMMENT BODY` line of the template.

**Fill the metadata lines:**

- *Authors:* the real change author(s), resolved here — this skill owns the algorithm, no other skill resolves authorship for it:
    1. Collect the commit authors with `git log --pretty='%an <%ae>' base..HEAD | awk 'NF' | sort -u`.
    2. When PR metadata is available, also collect the loader's `author` value and the unique `commits[].authors[]` set.
    3. On a JIRA target, prefer the JIRA-account display name when the loader's user lookup — or `assignee` / `reporter` matching the committer — resolves one. Otherwise prefer the GitHub handle `@handle`. Otherwise fall back to the git `Name <email>` form.
    4. List the identities comma-separated in commit order, deduped.
  Never list the agent / publishing identity. When authorship cannot be determined, write *Authors: unknown — git history did not yield a recognisable identity*.
- *Available behind:* the test parameter that the verified change is reachable behind (admin switch label _NovaSMS API version_, query {{?preview=1}}, feature toggle, allow-listed account). Name the switch label exactly as it appears in the admin UI when one exists (per the forbidden-vocabulary rule — UI labels, not feature keys). A gate with no UI footprint, such as an environment setting, goes to the dev-team report instead.

**Fill the body sections:**

- **Brief steps to reach the result** — at most a handful of bullets, each one a single click-path line, just enough for the tester to land on the affected screen. No precondition tables, no scenario enumeration, no edge-case matrices. When *Available behind* is set, the **first** bullet must be the click-path that enables the gating switch. Example: *"Open Administration → switches → enable *NovaSMS API version v2* → Campaigns → new SMS campaign → send to test number `+420600000000` → open *Recipient status* on the campaign detail."*
- **What to report back to the dev team** — concrete visible symptoms the tester should flag if observed, written so the tester only needs to recognise them in the UI. Each bullet is one symptom, framed in plain language: *"contacts stuck in status *Waiting* for over an hour"*, *"credits charged even for contacts marked *Invalid number*"*, *"the SMS arrived but the report shows *Not delivered*"*, *"the *NovaSMS API version* switch is missing from the admin screen"*. Never list error codes, never mention Bugsnag, never reference internal class or queue names.

### 5. Compose the JIRA source for ADF conversion
- Headings: `h2.`, `h3.` (never `#`).
- Bullets: `*`. Numbered lists: `#`.
- Bold: `*bold*`. Italic: `_italic_`.
- UI labels (button names, menu items) are bold (*Open Campaigns*), **not** wrapped in `{{...}}` — `{{...}}` reads as code and disrupts a non-technical reader.
- Use `{{...}}` only for literal strings the tester types verbatim, e.g. the test phone number `{{+420600000000}}`.
- No code fences (` ``` `), no Markdown headings, no Markdown tables. The full conversion cheatsheet lives in `@rules/jira/general.md`.

### 6. Pre-publish validation
Before sending the comment, scan the body for every forbidden token listed in **Constraints**. When a forbidden token is found, either:
- replace it with the UI label discovered in step 3, or
- rewrite the affected line as a dev-team-report bullet ("ask dev team to confirm …").

Repeat until the body is clean. **Do not publish a comment that still contains forbidden vocabulary.**

### 7. Publish the comment
- Send through `skills/code-review-jira/scripts/upsert-comment.sh --create <KEY|URL> <report-file>`. The helper converts the source to ADF, appends the `_cr-comment:actor=<actor-digest>_` marker, creates a new comment, and applies the ADF to it through `acli jira workitem comment update --body-adf`. The `--create` flag is mandatory: the report shares the `cr-comment` namespace with the code-review report, and without the flag the helper rewrites the newest code-review report (`@rules/jira/general.md`). On exit code 2/3 follow `@rules/code-review/general.md` *A retry identifies the comment of this run*.
- Fall back to the JIRA MCP server only when `acli` is unavailable, appending the same `_cr-comment:actor=<actor-digest>_` marker line to the ADF payload — an agent marker per `@rules/code-review/general.md` *Authorship trust*, on this fallback as on the helper.
- Never change the JIRA task status.

## Related skills (to disambiguate)
- `@skills/pr-summary/SKILL.md` — the non-technical comment for a PR, JIRA ticket, or Bugsnag error (*What changed* / *How to test*; on JIRA the verdict, the review findings, and *What changed*). Different audience (project managers, not QA testers), and it credits no authors — this skill resolves its own.
- `@skills/interactive-testing/SKILL.md` — interactive browser-driven validation. Different flow: an agent walks through scenarios live in a browser instead of producing written instructions for a human tester.

## Output
- A single ADF-formatted JIRA comment posted to the originating task.
- A short chat summary listing the JIRA task URL, whether the *Brief steps* section was included, and the number of dev-team-report bullets.

## Example
**Wrong** (technical, leaks code identifiers):
> After sending the campaign, the `campaign_delivery_log` table receives a record with event `sms_accepted`, which the `ProcessCampaignDeliveryReceiptsJob` job flips to `sms_sent`.

**Right** (tester-facing, dev-team-report focused):
> *Report back to the dev team if you see:* the SMS arrived on the phone but the campaign report shows *Not delivered* after refreshing; credits charged for a contact whose status ends up as *Invalid number*; the *Recipient status* tab is empty even though the campaign was sent.

## Done when
- A JIRA comment exists on the requested task.
- The comment includes the required **What to report back to the dev team** section, and optionally the **Brief steps to reach the result** section when it adds value.
- The comment contains no forbidden vocabulary, no Markdown headings, no code fences, and no Markdown tables.
- The chat output confirms the JIRA task URL, whether *Brief steps* was included, and the number of dev-team-report bullets.

Files in this skill

  • SKILL.md13 KB
  • templates/test-report-jira.md1.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.