[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M795N57WCMWWAYCYCS9GTEY2":3,"skill-same:01M795N57WCMWWAYCYCS9GTEY2":65},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":13,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M795N57WCMWWAYCYCS9GTEY2","review-actual-pr",null,"Comprehensive review of a pull request in the actualbudget\u002Factual repo. Performs an offline code review against the repo's CODE_REVIEW_GUIDELINES.md and AGENTS.md (no GitHub comments are ever posted), then browser-tests the change with playwright-cli. For bug PRs, reproduces the issue on edge.actualbudget.org first and verifies the fix on the Netlify preview; for feature\u002Fenhancement PRs, exercises the change on the preview and captures annotated screenshots highlighting the new functionality. Use whenever the user asks to review, test, validate, vet, sanity-check, QA, or otherwise look at a PR \u002F pull request in the Actual Budget repo — including phrases like \"review","santiedward\u002Fapp-finanzas","santiedward","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F262417400?v=4","01M795MV1ATMHAE0GKGAY0GGE4","01M795MV25BBZPVVDCDBX2WGKH",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsantiedward\u002Fapp-finanzas\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Freview-actual-pr\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: review-actual-pr\ndescription: Comprehensive review of a pull request in the actualbudget\u002Factual repo. Performs an offline code review against the repo's CODE_REVIEW_GUIDELINES.md and AGENTS.md (no GitHub comments are ever posted), then browser-tests the change with playwright-cli. For bug PRs, reproduces the issue on edge.actualbudget.org first and verifies the fix on the Netlify preview; for feature\u002Fenhancement PRs, exercises the change on the preview and captures annotated screenshots highlighting the new functionality. Use whenever the user asks to review, test, validate, vet, sanity-check, QA, or otherwise look at a PR \u002F pull request in the Actual Budget repo — including phrases like \"review #1234\", \"check this PR\", \"test the fix in 1234\", \"does PR 1234 work\", \"validate PR 1234\", or when given a github.com\u002Factualbudget\u002Factual\u002Fpull\u002FN URL. Trigger even when the user doesn't explicitly say \"review\".\nallowed-tools: Bash(gh:*) Bash(playwright-cli:*) Bash(npx:*) Bash(mkdir:*) Bash(ls:*) Bash(git:*) Bash(cat:*) Bash(mv:*) Read Edit Write\n---\n\n# Review an Actual Budget PR\n\nThis skill reviews a pull request in `actualbudget\u002Factual` end-to-end: a thorough code review against the repo's documented rules, plus a browser-based functional test using `playwright-cli`. **It never posts anything back to GitHub.** All findings come back to the chat as suggested changes the user can apply themselves.\n\n## Why this skill exists\n\nReviewing a PR thoroughly involves three things that are tedious to do by hand: reading the diff against the repo's many style\u002Fcorrectness rules, opening the right Netlify preview, and (for bugs) confirming the same scenario on the live edge build to prove the fix actually changes behavior. This skill collapses that into one flow.\n\n## Hard rules\n\nThese rules exist because violating them defeats the purpose of an offline review or causes harm:\n\n- **Never** run `gh pr comment`, `gh pr review`, `gh api ... \u002Fcomments`, or anything else that writes to the PR thread. Output goes to the chat only.\n- **Never** push commits, create branches, or modify the working tree of the repo. Reading is fine; writing is not.\n- **Never** fabricate a reproduction. If the demo budget doesn't have the data needed to reproduce a bug, surface that to the user and stop — partial evidence is worse than no evidence.\n- Before running anything that touches GitHub, check `git config user.name` \u002F `user.email`; if the identity isn't yours (e.g. a CI bot or shared account), be doubly careful that no command in this skill could write to the PR — comments from the wrong identity are worse than no comments.\n\n## Workflow\n\n### 1. Resolve input → PR number\n\nAccept any of: `7756`, `#7756`, `actualbudget\u002Factual#7756`, or a full `https:\u002F\u002Fgithub.com\u002Factualbudget\u002Factual\u002Fpull\u002F7756` URL. Strip to the integer PR number. The repo is always `actualbudget\u002Factual`.\n\n### 2. Fetch metadata + diff\n\n```bash\nmkdir -p ~\u002FDownloads\u002Fpr-review-\u003Cnum>\ngh pr view \u003Cnum> --repo actualbudget\u002Factual \\\n  --json number,title,body,labels,state,isDraft,headRefName,headRepository,baseRefName,files,url,author,additions,deletions \\\n  > ~\u002FDownloads\u002Fpr-review-\u003Cnum>\u002Fpr.json\ngh pr diff \u003Cnum> --repo actualbudget\u002Factual \\\n  > ~\u002FDownloads\u002Fpr-review-\u003Cnum>\u002Fdiff.patch\n```\n\nIf the PR is `closed` or `merged`, tell the user and ask whether to continue (the preview URL may still work for merged PRs for a while). If `isDraft` is true, note it but proceed.\n\n**Re-runs.** If `~\u002FDownloads\u002Fpr-review-\u003Cnum>\u002Freview.md` already exists from a previous run, read it before doing anything else. Compare its `head SHA` (recorded in the report header — see step 6) against the current PR head:\n\n```bash\ngh pr view \u003Cnum> --repo actualbudget\u002Factual --json headRefOid -q .headRefOid\n```\n\n- If the SHA matches, the previous review is still valid — surface a one-paragraph summary of what changed since (nothing, in this case) and ask the user whether to re-run testing, re-run code review, or just reprint the prior report. Don't redo work the user didn't ask for.\n- If the SHA differs, fetch the diff between the old and new head (`git fetch origin pull\u002F\u003Cnum>\u002Fhead` if needed, then `git diff \u003Cold-sha> \u003Cnew-sha>`) so the new review can call out what changed since last time. Move the previous report to `review.\u003Cold-sha-short>.md` so it's preserved as history rather than overwritten.\n\n### 3. Classify: bug vs feature\u002Fenhancement\n\nAuto-detect using these signals, in order of strength:\n\n- **Bug** if any label name matches (case-insensitive) `bug`, `defect`, `regression`, OR title starts with `fix:`, `bug:`, `hotfix:`, `[AI] fix`, `[AI] bug`, OR body contains `Fixes #` \u002F `Closes #` linked to an issue with a `bug` label.\n- **Feature \u002F enhancement** if any label matches `enhancement`, `feature`, `feature request`, `improvement`, OR title starts with `feat:`, `feature:`, `enhancement:`, `[AI] add`, `[AI] feat`, OR the diff adds substantial new components\u002Fpages.\n- **Other** (refactor, chore, docs, deps): tell the user the PR doesn't look like a user-facing change, do the code review only, skip browser testing unless the user insists.\n\nIf both signals fire (rare) or neither fires confidently, ask via `AskUserQuestion`. Don't guess.\n\n### 4. Code review\n\nRead `references\u002Fcode-review-rubric.md` first — it's the condensed rule set. Then walk the diff and produce findings in three tiers:\n\n- **Critical** — bugs, security issues, broken types\u002Fbuild, data loss risk, anything that would harm users.\n- **Important** — repo-rule violations: new `@ts-strict-ignore`, new `eslint-disable` \u002F `oxlint-disable`, untranslated user-facing strings, new UI-tweak settings, `as` where `satisfies` would work, missing `FinancialText`\u002F`tnum` on standalone financial numbers, `any`\u002F`unknown` without justification, wrong import sources (e.g. `useNavigate` from react-router instead of `src\u002Fhooks`), `[AI]` prefix missing from PR title.\n- **Suggestions** — clarity, naming, dead code, repeated patterns worth extracting, unnecessary mocks in tests.\n\nFor every finding, include:\n\n- `path:line` (or `path:line-line` for ranges) — pulled from the diff hunks, not approximated.\n- One- or two-sentence description of the problem.\n- A concrete suggested change — actual replacement code or a unified-diff snippet — that the user can paste. Don't give vague advice like \"consider refactoring\"; give the refactor.\n\nIf the PR has zero findings in a tier, say so explicitly (\"no Critical issues found\") rather than omitting the heading. The user wants to see that the dimension was checked.\n\n### 5. Browser testing\n\nBranch on classification.\n\n#### Bug PR\n\nFollow `references\u002Fbrowser-testing-bug.md`. The shape is:\n\n1. Open `https:\u002F\u002Fedge.actualbudget.org\u002F`, do the standard demo setup, reproduce the bug per the PR\u002Fissue description, save `~\u002FDownloads\u002Fpr-review-\u003Cnum>\u002Fbefore-edge.png`.\n2. Open `https:\u002F\u002Fdeploy-preview-\u003Cnum>.demo.actualbudget.org\u002F`, do the same setup, attempt the same repro, save `~\u002FDownloads\u002Fpr-review-\u003Cnum>\u002Fafter-preview.png`.\n3. State plainly:\n   - `Bug reproduces on edge: yes\u002Fno`\n   - `Bug reproduces on preview: yes\u002Fno`\n   - `Verdict: fix confirmed \u002F fix not visible \u002F repro inconclusive`\n\nIf the preview URL doesn't load (404, 502, build still running), wait briefly and retry once; if it still fails, report it and stop the testing phase. The code review still ships.\n\n#### Feature \u002F enhancement PR\n\nFollow `references\u002Fbrowser-testing-feature.md`. The shape is:\n\n1. Open `https:\u002F\u002Fdeploy-preview-\u003Cnum>.demo.actualbudget.org\u002F` only — do **not** also open edge for features.\n2. Do the standard demo setup.\n3. Derive an exploration plan from the PR title + body (what's new, where in the UI, what user-visible behavior).\n4. Walk through the feature step by step. At each meaningful step, take an annotated screenshot — use `references\u002Fhighlight-element.js` (described below) to outline the new UI before screenshotting.\n5. Take one final clean (un-annotated) screenshot of the feature in its end state, so the user has a presentable reference too.\n\nAll screenshots go to `~\u002FDownloads\u002Fpr-review-\u003Cnum>\u002F`.\n\n### 6. Output the report\n\nBuild the report as one markdown document with this exact shape:\n\n```\n# PR #\u003Cnum>: \u003Ctitle>\n\n**Author:** \u003Cauthor> · **Classification:** \u003Cbug | feature | other> · **Diff:** +\u003Cadditions> \u002F −\u003Cdeletions>\n**Head SHA:** \u003Cfull sha> · **Reviewed:** \u003CISO 8601 timestamp>\n\n## Code review\n\n### Critical\n- ...\n\n### Important\n- ...\n\n### Suggestions\n- ...\n\n## Testing\n\n\u003Cnarrative — what was reproduced\u002Fexercised, on which environment, what happened>\n\n**Screenshots:**\n- `~\u002FDownloads\u002Fpr-review-\u003Cnum>\u002F\u003Cfile>.png` — \u003Cone-line caption>\n\n**Verdict:** \u003Cone line>\n\n---\n\n_No comments were posted to GitHub. All suggestions above are local recommendations._\n```\n\nThe `Head SHA` and `Reviewed` lines are mandatory — they're what makes re-runs (step 2) able to detect staleness. The trailing offline-review line is mandatory too.\n\n**Save the report and print it:**\n\n```bash\n# Save first so it survives anything that happens to the chat\ncat > ~\u002FDownloads\u002Fpr-review-\u003Cnum>\u002Freview.md \u003C\u003C'EOF'\n\u003Cthe full report markdown>\nEOF\n```\n\nThen print the same content to chat. Saving is non-negotiable — the whole point is the user can come back to `~\u002FDownloads\u002Fpr-review-\u003Cnum>\u002F` later and find the screenshots, the diff, the metadata, and the review notes that explain them, all in one place.\n\nIf you have structured intermediate data worth keeping (e.g., parsed findings as a list), also drop it as `~\u002FDownloads\u002Fpr-review-\u003Cnum>\u002Ffindings.json` — it's optional but cheap and useful for any tooling the user wires up later.\n\nThe folder layout after a successful run looks like:\n\n```\n~\u002FDownloads\u002Fpr-review-\u003Cnum>\u002F\n├── pr.json              # gh pr view output\n├── diff.patch           # gh pr diff output\n├── review.md            # the markdown report\n├── findings.json        # optional structured findings\n├── before-edge.png      # bug PRs only\n├── after-preview.png    # bug PRs only\n├── feature-step-N.png   # feature PRs, annotated\n└── feature-final.png    # feature PRs, clean\n```\n\n## Standard demo setup\n\nFor both edge and preview testing, the first-run flow is:\n\n1. Wait for the setup screen to render.\n2. Click **\"Don't use a server\"**.\n3. Click **\"View demo\"**.\n\nThis loads a populated test budget with realistic accounts, transactions, categories, and budgeted amounts — far more useful than starting empty (per `AGENTS.md` \"Testing and previewing the app\"). The demo data is the same on edge and preview, so reproductions translate directly.\n\nIf the page already shows a budget (state was preserved from a previous session), use it as-is. If you need a fresh state, clear localStorage:\n\n```bash\nplaywright-cli localstorage-clear\nplaywright-cli reload\n```\n\n## Highlighting elements in screenshots\n\nFor feature PRs, use `references\u002Fhighlight-element.js` via `playwright-cli run-code` to draw a red dashed bounding box and a label callout over the new UI before screenshotting. Pass the selector and label as environment-style arguments.\n\nResolve the script path from the repo root so this works for any contributor:\n\n```bash\nSKILL_DIR=\"$(git rev-parse --show-toplevel)\u002F.claude\u002Fskills\u002Freview-actual-pr\"\n\nSELECTOR='[data-testid=\"new-thing\"]' LABEL='New filter chip' \\\n  playwright-cli run-code --filename=\"$SKILL_DIR\u002Freferences\u002Fhighlight-element.js\"\nplaywright-cli screenshot --filename=\"$HOME\u002FDownloads\u002Fpr-review-\u003Cnum>\u002Ffeature-step-1.png\"\n# remove overlay before next step so unrelated screenshots stay clean\nplaywright-cli eval \"document.querySelectorAll('[data-pr-highlight]').forEach(n => n.remove())\"\n```\n\nIf you can't find a stable selector for the new UI, use a CSS selector that matches what's actually in the DOM after a `playwright-cli snapshot` — don't fall back to silently un-annotated screenshots, since highlighting is the point of feature shots.\n\n## Tooling assumptions\n\n- `gh` is authenticated for read access to `actualbudget\u002Factual`. A read-only identity (bot, CI, or personal account) is fine — see the hard rule above about not writing back.\n- `playwright-cli` is on PATH (typically installed via the `playwright-cli` skill). If it isn't, fall back to `npx --no-install playwright-cli`; if that also fails, surface it and stop the browser-testing phase rather than guessing at an alternative tool.\n- Output goes to `~\u002FDownloads\u002Fpr-review-\u003Cnum>\u002F` (exists on macOS, Linux, and Windows). If a contributor prefers a different location, they can override it — but keep everything for one run in a single directory so the report and its screenshots stay together.\n\n## Reference files\n\n- `references\u002Fcode-review-rubric.md` — condensed rules from `CODE_REVIEW_GUIDELINES.md` + `AGENTS.md`. Read before reviewing the diff.\n- `references\u002Fbrowser-testing-bug.md` — step-by-step playbook for bug PRs (edge → preview).\n- `references\u002Fbrowser-testing-feature.md` — step-by-step playbook for feature PRs (preview only, annotated).\n- `references\u002Fhighlight-element.js` — overlay script for annotated screenshots.\n","# Review an Actual Budget PR\n\nThis skill reviews a pull request in `actualbudget\u002Factual` end-to-end: a thorough code review against the repo's documented rules, plus a browser-based functional test using `playwright-cli`. **It never posts anything back to GitHub.** All findings come back to the chat as suggested changes the user can apply themselves.\n\n## Why this skill exists\n\nReviewing a PR thoroughly involves three things that are tedious to do by hand: reading the diff against the repo's many style\u002Fcorrectness rules, opening the right Netlify preview, and (for bugs) confirming the same scenario on the live edge build to prove the fix actually changes behavior. This skill collapses that into one flow.\n\n## Hard rules\n\nThese rules exist because violating them defeats the purpose of an offline review or causes harm:\n\n- **Never** run `gh pr comment`, `gh pr review`, `gh api ... \u002Fcomments`, or anything else that writes to the PR thread. Output goes to the chat only.\n- **Never** push commits, create branches, or modify the working tree of the repo. Reading is fine; writing is not.\n- **Never** fabricate a reproduction. If the demo budget doesn't have the data needed to reproduce a bug, surface that to the user and stop — partial evidence is worse than no evidence.\n- Before running anything that touches GitHub, check `git config user.name` \u002F `user.email`; if the identity isn't yours (e.g. a CI bot or shared account), be doubly careful that no command in this skill could write to the PR — comments from the wrong identity are worse than no comments.\n\n## Workflow\n\n### 1. Resolve input → PR number\n\nAccept any of: `7756`, `#7756`, `actualbudget\u002Factual#7756`, or a full `https:\u002F\u002Fgithub.com\u002Factualbudget\u002Factual\u002Fpull\u002F7756` URL. Strip to the integer PR number. The repo is always `actualbudget\u002Factual`.\n\n### 2. Fetch metadata + diff\n\n```bash\nmkdir -p ~\u002FDownloads\u002Fpr-review-\u003Cnum>\ngh pr view \u003Cnum> --repo actualbudget\u002Factual \\\n  --json number,title,body,labels,state,isDraft,headRefName,headRepository,baseRefName,files,url,author,additions,deletions \\\n  > ~\u002FDownloads\u002Fpr-review-\u003Cnum>\u002Fpr.json\ngh pr diff \u003Cnum> --repo actualbudget\u002Factual \\\n  > ~\u002FDownloads\u002Fpr-review-\u003Cnum>\u002Fdiff.patch\n```\n\nIf the PR is `closed` or `merged`, tell the user and ask whether to continue (the preview URL may still work for merged PRs for a while). If `isDraft` is true, note it but proceed.\n\n**Re-runs.** If `~\u002FDownloads\u002Fpr-review-\u003Cnum>\u002Freview.md` already exists from a previous run, read it before doing anything else. Compare its `head SHA` (recorded in the report header — see step 6) against the current PR head:\n\n```bash\ngh pr view \u003Cnum> --repo actualbudget\u002Factual --json headRefOid -q .headRefOid\n```\n\n- If the SHA matches, the previous review is still valid — surface a one-paragraph summary of what changed since (nothing, in this case) and ask the user whether to re-run testing, re-run code review, or just reprint the prior report. Don't redo work the user didn't ask for.\n- If the SHA differs, fetch the diff between the old and new head (`git fetch origin pull\u002F\u003Cnum>\u002Fhead` if needed, then `git diff \u003Cold-sha> \u003Cnew-sha>`) so the new review can call out what changed since last time. Move the previous report to `review.\u003Cold-sha-short>.md` so it's preserved as history rather than overwritten.\n\n### 3. Classify: bug vs feature\u002Fenhancement\n\nAuto-detect using these signals, in order of strength:\n\n- **Bug** if any label name matches (case-insensitive) `bug`, `defect`, `regression`, OR title starts with `fix:`, `bug:`, `hotfix:`, `[AI] fix`, `[AI] bug`, OR body contains `Fixes #` \u002F `Closes #` linked to an issue with a `bug` label.\n- **Feature \u002F enhancement** if any label matches `enhancement`, `feature`, `feature request`, `improvement`, OR title starts with `feat:`, `feature:`, `enhancement:`, `[AI] add`, `[AI] feat`, OR the diff adds substantial new components\u002Fpages.\n- **Other** (refactor, chore, docs, deps): tell the user the PR doesn't look like a user-facing change, do the code review only, skip browser testing unless the user insists.\n\nIf both signals fire (rare) or neither fires confidently, ask via `AskUserQuestion`. Don't guess.\n\n### 4. Code review\n\nRead `references\u002Fcode-review-rubric.md` first — it's the condensed rule set. Then walk the diff and produce findings in three tiers:\n\n- **Critical** — bugs, security issues, broken types\u002Fbuild, data loss risk, anything that would harm users.\n- **Important** — repo-rule violations: new `@ts-strict-ignore`, new `eslint-disable` \u002F `oxlint-disable`, untranslated user-facing strings, new UI-tweak settings, `as` where `satisfies` would work, missing `FinancialText`\u002F`tnum` on standalone financial numbers, `any`\u002F`unknown` without justification, wrong import sources (e.g. `useNavigate` from react-router instead of `src\u002Fhooks`), `[AI]` prefix missing from PR title.\n- **Suggestions** — clarity, naming, dead code, repeated patterns worth extracting, unnecessary mocks in tests.\n\nFor every finding, include:\n\n- `path:line` (or `path:line-line` for ranges) — pulled from the diff hunks, not approximated.\n- One- or two-sentence description of the problem.\n- A concrete suggested change — actual replacement code or a unified-diff snippet — that the user can paste. Don't give vague advice like \"consider refactoring\"; give the refactor.\n\nIf the PR has zero findings in a tier, say so explicitly (\"no Critical issues found\") rather than omitting the heading. The user wants to see that the dimension was checked.\n\n### 5. Browser testing\n\nBranch on classification.\n\n#### Bug PR\n\nFollow `references\u002Fbrowser-testing-bug.md`. The shape is:\n\n1. Open `https:\u002F\u002Fedge.actualbudget.org\u002F`, do the standard demo setup, reproduce the bug per the PR\u002Fissue description, save `~\u002FDownloads\u002Fpr-review-\u003Cnum>\u002Fbefore-edge.png`.\n2. Open `https:\u002F\u002Fdeploy-preview-\u003Cnum>.demo.actualbudget.org\u002F`, do the same setup, attempt the same repro, save `~\u002FDownloads\u002Fpr-review-\u003Cnum>\u002Fafter-preview.png`.\n3. State plainly:\n   - `Bug reproduces on edge: yes\u002Fno`\n   - `Bug reproduces on preview: yes\u002Fno`\n   - `Verdict: fix confirmed \u002F fix not visible \u002F repro inconclusive`\n\nIf the preview URL doesn't load (404, 502, build still running), wait briefly and retry once; if it still fails, report it and stop the testing phase. The code review still ships.\n\n#### Feature \u002F enhancement PR\n\nFollow `references\u002Fbrowser-testing-feature.md`. The shape is:\n\n1. Open `https:\u002F\u002Fdeploy-preview-\u003Cnum>.demo.actualbudget.org\u002F` only — do **not** also open edge for features.\n2. Do the standard demo setup.\n3. Derive an exploration plan from the PR title + body (what's new, where in the UI, what user-visible behavior).\n4. Walk through the feature step by step. At each meaningful step, take an annotated screenshot — use `references\u002Fhighlight-element.js` (described below) to outline the new UI before screenshotting.\n5. Take one final clean (un-annotated) screenshot of the feature in its end state, so the user has a presentable reference too.\n\nAll screenshots go to `~\u002FDownloads\u002Fpr-review-\u003Cnum>\u002F`.\n\n### 6. Output the report\n\nBuild the report as one markdown document with this exact shape:\n\n```\n# PR #\u003Cnum>: \u003Ctitle>\n\n**Author:** \u003Cauthor> · **Classification:** \u003Cbug | feature | other> · **Diff:** +\u003Cadditions> \u002F −\u003Cdeletions>\n**Head SHA:** \u003Cfull sha> · **Reviewed:** \u003CISO 8601 timestamp>\n\n## Code review\n\n### Critical\n- ...\n\n### Important\n- ...\n\n### Suggestions\n- ...\n\n## Testing\n\n\u003Cnarrative — what was reproduced\u002Fexercised, on which environment, what happened>\n\n**Screenshots:**\n- `~\u002FDownloads\u002Fpr-review-\u003Cnum>\u002F\u003Cfile>.png` — \u003Cone-line caption>\n\n**Verdict:** \u003Cone line>\n\n---\n\n_No comments were posted to GitHub. All suggestions above are local recommendations._\n```\n\nThe `Head SHA` and `Reviewed` lines are mandatory — they're what makes re-runs (step 2) able to detect staleness. The trailing offline-review line is mandatory too.\n\n**Save the report and print it:**\n\n```bash\n# Save first so it survives anything that happens to the chat\ncat > ~\u002FDownloads\u002Fpr-review-\u003Cnum>\u002Freview.md \u003C\u003C'EOF'\n\u003Cthe full report markdown>\nEOF\n```\n\nThen print the same content to chat. Saving is non-negotiable — the whole point is the user can come back to `~\u002FDownloads\u002Fpr-review-\u003Cnum>\u002F` later and find the screenshots, the diff, the metadata, and the review notes that explain them, all in one place.\n\nIf you have structured intermediate data worth keeping (e.g., parsed findings as a list), also drop it as `~\u002FDownloads\u002Fpr-review-\u003Cnum>\u002Ffindings.json` — it's optional but cheap and useful for any tooling the user wires up later.\n\nThe folder layout after a successful run looks like:\n\n```\n~\u002FDownloads\u002Fpr-review-\u003Cnum>\u002F\n├── pr.json              # gh pr view output\n├── diff.patch           # gh pr diff output\n├── review.md            # the markdown report\n├── findings.json        # optional structured findings\n├── before-edge.png      # bug PRs only\n├── after-preview.png    # bug PRs only\n├── feature-step-N.png   # feature PRs, annotated\n└── feature-final.png    # feature PRs, clean\n```\n\n## Standard demo setup\n\nFor both edge and preview testing, the first-run flow is:\n\n1. Wait for the setup screen to render.\n2. Click **\"Don't use a server\"**.\n3. Click **\"View demo\"**.\n\nThis loads a populated test budget with realistic accounts, transactions, categories, and budgeted amounts — far more useful than starting empty (per `AGENTS.md` \"Testing and previewing the app\"). The demo data is the same on edge and preview, so reproductions translate directly.\n\nIf the page already shows a budget (state was preserved from a previous session), use it as-is. If you need a fresh state, clear localStorage:\n\n```bash\nplaywright-cli localstorage-clear\nplaywright-cli reload\n```\n\n## Highlighting elements in screenshots\n\nFor feature PRs, use `references\u002Fhighlight-element.js` via `playwright-cli run-code` to draw a red dashed bounding box and a label callout over the new UI before screenshotting. Pass the selector and label as environment-style arguments.\n\nResolve the script path from the repo root so this works for any contributor:\n\n```bash\nSKILL_DIR=\"$(git rev-parse --show-toplevel)\u002F.claude\u002Fskills\u002Freview-actual-pr\"\n\nSELECTOR='[data-testid=\"new-thing\"]' LABEL='New filter chip' \\\n  playwright-cli run-code --filename=\"$SKILL_DIR\u002Freferences\u002Fhighlight-element.js\"\nplaywright-cli screenshot --filename=\"$HOME\u002FDownloads\u002Fpr-review-\u003Cnum>\u002Ffeature-step-1.png\"\n# remove overlay before next step so unrelated screenshots stay clean\nplaywright-cli eval \"document.querySelectorAll('[data-pr-highlight]').forEach(n => n.remove())\"\n```\n\nIf you can't find a stable selector for the new UI, use a CSS selector that matches what's actually in the DOM after a `playwright-cli snapshot` — don't fall back to silently un-annotated screenshots, since highlighting is the point of feature shots.\n\n## Tooling assumptions\n\n- `gh` is authenticated for read access to `actualbudget\u002Factual`. A read-only identity (bot, CI, or personal account) is fine — see the hard rule above about not writing back.\n- `playwright-cli` is on PATH (typically installed via the `playwright-cli` skill). If it isn't, fall back to `npx --no-install playwright-cli`; if that also fails, surface it and stop the browser-testing phase rather than guessing at an alternative tool.\n- Output goes to `~\u002FDownloads\u002Fpr-review-\u003Cnum>\u002F` (exists on macOS, Linux, and Windows). If a contributor prefers a different location, they can override it — but keep everything for one run in a single directory so the report and its screenshots stay together.\n\n## Reference files\n\n- `references\u002Fcode-review-rubric.md` — condensed rules from `CODE_REVIEW_GUIDELINES.md` + `AGENTS.md`. Read before reviewing the diff.\n- `references\u002Fbrowser-testing-bug.md` — step-by-step playbook for bug PRs (edge → preview).\n- `references\u002Fbrowser-testing-feature.md` — step-by-step playbook for feature PRs (preview only, annotated).\n- `references\u002Fhighlight-element.js` — overlay script for annotated screenshots.\n",{"name":5,"description":7,"allowed-tools":23},"Bash(gh:*) Bash(playwright-cli:*) Bash(npx:*) Bash(mkdir:*) Bash(ls:*) Bash(git:*) Bash(cat:*) Bash(mv:*) Read Edit Write","main","379221bd97198b3bf4ee14f49731c5427214a9f9",".claude\u002Fskills\u002Freview-actual-pr","https:\u002F\u002Fgithub.com\u002Fsantiedward\u002Fapp-finanzas","https:\u002F\u002Fapp-finanzas-desktop-client.vercel.app","https:\u002F\u002Fgithub.com\u002Fsantiedward","2026-07-16 08:38:38",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add santiedward\u002Fapp-finanzas --skill review-actual-pr",{"tool":37,"command":38},"bunx","bunx skills add santiedward\u002Fapp-finanzas --skill review-actual-pr",{"tool":40,"command":41},"pnpm","pnpm dlx skills add santiedward\u002Fapp-finanzas --skill review-actual-pr","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsantiedward\u002Fapp-finanzas\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Freview-actual-pr\u002FSKILL.md",true,[45,51,55,59],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"references\u002Fbrowser-testing-bug.md","REFERENCE","参考文档",3988,"https:\u002F\u002Fgithub.com\u002Fsantiedward\u002Fapp-finanzas\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Freview-actual-pr\u002Freferences\u002Fbrowser-testing-bug.md",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Fbrowser-testing-feature.md",4187,"https:\u002F\u002Fgithub.com\u002Fsantiedward\u002Fapp-finanzas\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Freview-actual-pr\u002Freferences\u002Fbrowser-testing-feature.md",{"path":56,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Fcode-review-rubric.md",5499,"https:\u002F\u002Fgithub.com\u002Fsantiedward\u002Fapp-finanzas\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Freview-actual-pr\u002Freferences\u002Fcode-review-rubric.md",{"path":60,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Fhighlight-element.js","SCRIPT","脚本",2957,"https:\u002F\u002Fgithub.com\u002Fsantiedward\u002Fapp-finanzas\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Freview-actual-pr\u002Freferences\u002Fhighlight-element.js",[66,73,80],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":18},"01M795NPM9T0SAS6846C1CWYH8","writing-release-notes","Use whenever adding, writing, drafting, or fixing a release note in the Actual Budget repo. This is the changelog entry that ships with a code change, living as a Markdown file in `upcoming-release-notes\u002F`. Trigger for asks like \"add a release note\", \"write the changelog entry\", \"add the release note for this PR\u002Fchange\", \"create the upcoming release note\", or any time finishing a user-facing change in this repo where a release note is the natural next step. These notes are published for humans to read, so they must be short, plain-language, and free of technical detail. Writing them like a commit message or with implementation jargon produces entries that get flagged and rewritten in review.","https:\u002F\u002Fgithub.com\u002Fsantiedward\u002Fapp-finanzas\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwriting-release-notes\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M795NDZCZH4WWFWDEMJ3A15W","writing-actual-docs","Use whenever creating, updating, editing, drafting, restructuring, or fixing documentation in the Actual Budget repo — specifically anything under `packages\u002Fdocs\u002F` (the Docusaurus site published at actualbudget.org\u002Fdocs) or any change to `.md` \u002F `.mdx` files in that package. Trigger for asks like \"add a doc page for X\", \"update the FAQ\", \"write a guide for the new feature\", \"document this setting\", \"fix the docs about Y\", \"add a contributing page\", or any work on the docs site, even when the user does not explicitly mention style, structure, or conventions. Actual's docs follow strict Docusaurus conventions (front matter, heading levels, image placement and naming, admonition syntax, Title Case, tone of voice, spelling allowlist) and writing them without consulting the project's style guide reliably produces output that fails review and needs to be redone.","https:\u002F\u002Fgithub.com\u002Fsantiedward\u002Fapp-finanzas\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwriting-actual-docs\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":18},"01M795MWWPKZZKKD7DFGGM35CP","committing-actual-changes","Use whenever creating, drafting, finalizing, or amending a git commit or a pull request in the Actual Budget repo (actualbudget\u002Factual) — including phrases like \"commit this\", \"make a commit\", \"stage and commit\", \"open a PR\", \"create a pull request\", \"send this for review\", \"push these changes\", \"ship it\", \"submit a PR\", \"raise a PR\", or any time finishing implementation work in this repo where committing or opening a PR is the natural next step. Also trigger when the user mentions the `[AI]` prefix, the PR template, git hooks, or `--no-verify` in this repo. The repo enforces strict, non-obvious rules for AI-generated contributions (mandatory `[AI]` prefix on every commit message and PR title, leaving the PR template blank, never skipping hooks, specific git-safety constraints, a pre-commit quality checklist) and not following them produces commits and PRs that have to be redone or manually fixed by a maintainer.","https:\u002F\u002Fgithub.com\u002Fsantiedward\u002Fapp-finanzas\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcommitting-actual-changes\u002FSKILL.md",[],[]]