analyze-code
CommandAnalyze code quality, identify issues, and suggest improvements.
Review all changes in current branch (read-only analysis)
> /plugin marketplace add nimbalyst/nimbalyst> /plugin install nimbalyst-wiki@nimbalyst
name: review-branch description: Review all changes in current branch (read-only analysis)
Perform a comprehensive read-only review of code changes.
**Scope:** By default, review the current git branch changes using the command below. However, if the user specifies a different scope (e.g., specific files, a directory, a PR, or a commit range), respect that and adjust your review accordingly.
**CRITICAL: This is a READ-ONLY review. Do NOT:**
**Steps:**
1. **Gather changes** - For default branch review, run this command:
MAIN_WORKTREE=$(git worktree list | head -1 | awk '{print $1}'); CURRENT_DIR=$(git rev-parse --show-toplevel); if [ "$MAIN_WORKTREE" != "$CURRENT_DIR" ]; then BASE=$(git -C "$MAIN_WORKTREE" branch --show-current); else BASE="main"; fi; echo "=== Base branch: $BASE ===" && echo "" && echo "=== STATUS ===" && git status && echo "" && echo "=== COMMIT LOG ===" && git log $BASE..HEAD --oneline && echo "" && echo "=== COMMITTED CHANGES ===" && git diff $BASE...HEAD && echo "" && echo "=== UNCOMMITTED CHANGES ===" && git diff HEAD2. **Parallel Analysis** - After gathering the diff, launch sub-agents IN PARALLEL using the Task tool to analyze each area concurrently:
Each sub-agent should receive the diff content and return findings for its specific area. Wait for all sub-agents to complete, then synthesize their findings into the final report.
**Analysis Required:**
Provide your review in the following format:
[Brief 2-3 sentence description of what this branch does]
[List any schema changes, migrations, new tables/columns, or note "None"]
[List potential security vulnerabilities:]
[Note "None found" if clean]
[List potential performance issues:]
[Note "None found" if clean]
[Check for platform-specific issues that could break functionality on different operating systems:]
[Note "Fully compatible" or "Not applicable" if clean]
[Check package.json, pnpm-lock.yaml for changes:]
[Note "No changes" if none]
[Evaluate if logging is appropriate, too verbose, or missing. Note any console.log that should be removed]
[List any `any` types, missing type definitions, or type assertions that should be reviewed]
[Identify duplicated code that should be extracted into shared utilities, functions, or components:]
[Note "None found" if clean]
[List specific scenarios that should be tested, edge cases not handled, null checks missing, etc.]
[List commented code, debug statements, unused imports, TODOs, etc.]
[Any additional issues not covered above:]
[Evaluate whether PostHog analytics events should be added for this feature/change. See docs/ANALYTICS_GUIDE.md for implementation details.]
Consider adding analytics for:
Do NOT add analytics for:
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…