pocket-nexus/pocketjs/pocketjs-review-pr
Claude Code and agent skill by pocket-nexus/pocketjs
- community
Checking that the SKILL.md file is still in the repository.
Review a community pull request on this repo to a merge verdict — reproduce the bug on base, verify the PR's claims against dependency source, sweep for architecture drift and code rot, run the local gate, push the fixes onto the contributor's branch, and squash-merge. Use when asked to review a PR, judge whether a PR is fit to merge, check a PR for drift or rot, or fix up and land someone else's PR.
Install
npx vskill@latest install pocket-nexus/pocketjs/pocketjs-review-prSKILL.md
The same SKILL.md was published earlier as pocket-nexus/pocketjs/pocketjs-review-pr.
PocketJS PR Review
Overview
Read the current .github/workflows/ triggers and the PR's check results. Path-filtered workflows may leave a documentation-only PR with no reported checks; that is neither a passed check nor a failed check. Run the local checks appropriate to the changed files and require applicable remote checks before merge. For code changes, the curated local suite is the gate. Two habits carry the review:
- Reproduce, don't read. Run the bug on
mainand the fix on the branch
over an input matrix wider than the PR's own test. A PR description is a hypothesis until its claims are checked against the dependency's source.
- Fix forward on the contributor's branch. Cross-repo PRs here normally
have maintainerCanModify: true, so review findings become a commit you push to their branch, not a round-trip. Keep that commit inside the PR's scope; pre-existing rot goes in the review comment as a follow-up.
Workflow
- Read the PR and the whole diff.
- Get the branch locally without touching `main`. Superset worktrees can't
git checkout main (it is held by ~/code/pocketjs), and a fork's branch name is not on origin:
Skip that build and tests fail with Could not resolve "./styles.generated.ts" — an environment failure that reads as the PR's fault.
- Reproduce the bug on base. Materialize the base version of the changed
module beside the new one and run both through the same matrix:
Scratch scripts live outside the repo, so they must import repo modules by absolute path — a relative specifier won't resolve node_modules. Widen the matrix past the PR's test: for a template/compiler change that meant root, nested-in-element, v-if/v-else separator, v-for body, slot content, only-child, and empty-template shapes — seven of eight reproduced, and the nested one revealed a case the fix did not cover.
- Check every load-bearing claim against the dependency source. "This
option arrives too late", "the dist hardcodes X", "this is only a backstop" are all verifiable in node_modules/:
Read the call site, not the type. That is how the comments: false "backstop" in #189 turned out to be load-bearing for a second reason (isMultiRoot() derives preserveComments from it, so the two settings must agree).
- Blast radius. Answer these with
grep, and say so in the review:
- Other entry points to the changed behavior (
grep -rn "@vue/compiler-sfc"
→ one call site; site/playground/compiler-entry.ts mirrors the pass-1 collector by design, because the browser build can't use Bun APIs).
- Golden/tape churn: grep app and test sources for the pattern the PR
changes (no .vue in the tree had a template comment → no churn).
- Parallel implementations that need the same fix, or that are dead.
- Drift and rot pass. The questions that actually find things:
- **Does the fix add a hand-maintained list where the repo's governed-surface
idiom applies?** A literal list that must be edited whenever a module is added rots exactly like the bug it patches — derive the set instead (Bun.Transpiler.scanImports walks a module's real imports), or pin it with a test the way #174 pinned the npm files map.
- Does a cache key still omit something the output depends on? The
.cache/transforms/ key covers dependency versions and inputs, so the compiler's own sources are the gap that bites — a warm cache serving the previous implementation looks like a broken fix, not a stale cache.
- Does the new code claim more than the surrounding code can deliver?
parseTemplateHtml is a single-element parser; a comment fix billed as "DOM-correct from any path" can only be correct at the top level. State the limit in the comment rather than implying generality.
- Is the module still reachable?
grep -rn <module>for an importer, and
grep the docs for its name. solid-plugin.ts sat unimported from #27 until it was retired, collecting mechanical updates in #122 and #149 the whole time, while docs/DESIGN.md and site/content/docs/architecture.md still called it the pass-1 transform. Report it; don't fold it into a bugfix PR.
- Duplication introduced by the PR's own tests — repeated stub-host
setup, an inline type that wants to be a helper.
- Run the gate and prove any mechanism empirically.
For code changes:
Bare bun test is NOT the gate — it pulls in emulator and hardware harnesses that fail without devices, which is why "failure set identical to base" claims need re-running, not repeating. For a cache-key or build-key change, prove it: rm -rf .cache/transforms, build, count entries, mutate a source the key should cover, rebuild, confirm every entry re-keyed, revert, confirm the original keys come back.
For documentation and instruction changes, check links, referenced commands, symlink targets, whitespace, and the final file list. Confirm that code and test fixtures are unchanged; do not rerun device deployments or broad runtime tests merely to validate prose.
Keep per-run screenshots, logs, traces, benchmark dumps, and receipts in ignored .pocket-build/validation/<task>/<run>/ output or an artifact store. The PR should contain a concise validation summary and selected attachments. Before committing, inspect git diff --cached --name-status: a new image or recording needs an identified test consumer or maintained product/documentation purpose. A local capture is not a fixture merely because it records a test. Remove stale links when moving temporary artifacts out of the tracked tree. The repository's AGENTS.md/CLAUDE.md rules govern artifact retention; historical session behavior does not create a new requirement to commit files.
- Push the fixes onto the contributor's branch.
- Post the review, then merge. The comment is the durable record: verdict
first, then what you verified with the evidence (counts, emitted code, test numbers), what you pushed and why each finding was a finding, and what you deliberately left alone with its reason.
Never --delete-branch: the head branch belongs to a fork, and main is checked out at ~/code/pocketjs so the local prune fails anyway.
- Restore the worktree —
git checkout <original-branch>and
git branch -D pr-<n>, so the next session starts where this one did.
Gotchas
--conditions=browseris required for the DOM, renderer, sim, and devtools
test files; package.json's test script is the authority on which.
- Extending a stub
HostOpsin tests: an element path needsinsertBefore,
not just createNode/setText, or insertNode throws mid-parse.
parse()in@vue/compiler-sfccaches bygenCacheKey(source, options), so
changing parse options changes the cache key — never assume a warm cache invalidated itself.
- A comment-only fix can still allocate native nodes:
createCommentNodegoes
through createTextNode, and orphans are reclaimed by runSweep() per frame, so node-count deltas in a tree dump are the thing to check, not the source.
- Verdict language: report what was run and what it returned. "Full suite
passes" without numbers is not a verdict, and a claim you inherited from the PR body is not evidence.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/pocketjs-review-pr/SKILL.md
Popularity
- Repository stars
- 1,692
- Repository forks
- 98
- 7-day trend score
- 37
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/pocket-nexus/pocketjs/pocketjs-review-pr)