analyze-code
CommandAnalyze code quality, identify issues, and suggest improvements.
Pull a GitHub PR into the standard review worktree, merge current main, and prep it for hands-on local testing on the dev:user2 instance
> /plugin marketplace add nimbalyst/nimbalyst> /plugin install nimbalyst-wiki@nimbalyst
name: review-pr description: Pull a GitHub PR into the standard review worktree, merge current main, and prep it for hands-on local testing on the dev:user2 instance
Help the user hands-on test a GitHub PR locally. Argument: a PR number (e.g. `/review-pr 711`).
Prefer other approaches when they fit better:
This command is for when the user wants to actually RUN the PR against a live app alongside their main dev instance.
**Steps:**
1. **Prep the worktree** — run the script (do NOT pass `--run`; the user launches dev themselves):
scripts/review-pr.sh <PR_NUMBER>
This reuses the single standard review worktree (`<repo>_worktrees/pr-review`), fetches the PR, checks it out onto a throwaway `pr-review` branch, merges today's `origin/main`, and runs an incremental `pnpm install`. node_modules is installed once and reused across PRs.
2. **Report what the merge revealed.** The script auto-resolves `CHANGELOG.md` conflicts. If it exits with real source conflicts (exit code 2), that is a genuine review finding — tell the user the PR does not cleanly apply on top of current main, list the conflicted files, and offer to either resolve them or re-run with `--no-merge` to test the PR as-authored. Also report how stale the PR is (commits behind main, base date) using:
git -C <repo>_worktrees/pr-review rev-list --count pr-<N>..origin/main
3. **Hand off the launch command** — do NOT run `pnpm run dev` yourself (house rule). Give the user:
cd <repo>_worktrees/pr-review/packages/electron && pnpm run dev:user2
Remind them this runs on port 5274 with an isolated `electron-user2` userData dir, so it does NOT disturb their main dev instance on 5273 and does NOT share (or risk corrupting) its SQLite database. It does NOT kill their main instance the way `crystal-run.sh` would.
4. **Once it's running, help verify the PR end-to-end.** Read the PR diff (`gh pr diff <N>`) to understand what changed, then drive/inspect the actual behavior with the renderer/log tools rather than just reading code. Focus on the user-visible flow the PR touches.
**Flags to mention when relevant:**
**Cleanup** (only if the user asks): the worktree is meant to persist and be reused. To reclaim it just re-run the command with the next PR number — it resets `pr-review` to the new PR automatically. Never delete the worktree as part of normal flow (that throws away the shared node_modules).
Nimbalyst - The open-source visual workspace for Claude Code, Codex, and OpenCode. Run multiple coding agents in parallel, edit their work visually in markdown, mockups, and diagrams, and track tasks. Free, MIT-licensed desktop app for macOS, Windows, Linux, with mobile companion for iOS and Android.
Analyze code quality, identify issues, and suggest improvements.
Audit recent AI coding sessions to find repeated mistakes, speed losses, and missed Nimbalyst tool usage — then propose harness…
Triage pnpm audit findings and produce a prioritized, supply-chain-cautious package-update plan, then apply approved batches
Survey recently triaged GitHub issues, propose the ones safe to fix without a product decision, and fan the selected ones out to…
Gather details and draft an actionable bug report for developers.
Shortcut for "continue working" — pick the work in flight back up exactly where it stopped and keep going until it is done or…