By andresharpe
Multi-agent code review for PowerShell 7+ projects. Cross-platform aware, diff-focused, deterministic-first. Builds a project profile (architecture, standards, patterns, glossary) on bootstrap and uses it to deliver high-signal reviews with confidence and severity scoring.
One-time bootstrap for a PowerShell repo. Walks the codebase, drafts the project profile (architecture.md, standards.md, glossary.md, patterns/), copies the linter settings template, and computes the initial AST index. Use this when first installing pwsh-code-review on a project, when the user asks to "set up" or "initialise" the reviewer, or when the existing profile has gone stale and needs regeneration.
Multi-agent code review for PowerShell 7+ changes. Runs a deterministic static-analysis pre-pass, computes diff context via AST, dispatches five specialised agents in parallel (conventions, pwsh idioms, diff bugs, security, history), calibrates findings, and emits a single review with severity and confidence scores. Use this whenever the user asks to review PowerShell code, review a PR, check staged changes, or audit a pwsh script. Always use this for any PowerShell review task even if the user does not explicitly say "review".
Calibrates findings from the five review agents to prevent inflation. Reviews each finding's severity and confidence against its evidence, may confirm, downgrade, or drop, but never upgrades. Runs after the agents complete and before the merger.
Reviews PowerShell changes for compliance with the project's documented standards, patterns, and naming conventions. Loads .pwsh-review/standards.md, patterns/, and glossary.md as authoritative. Does not flag generic "best practices" that are not in the project profile.
Reviews PowerShell changes for bugs introduced by the diff itself. Reasons about contracts that changed (signatures, output types, error behaviour, pipeline semantics) and what that breaks for callers. The agent that uses Ring 1 context (callers, callees, tests) most heavily.
Reviews PowerShell changes against git history. Catches regressions of previously-fixed bugs, partial reverts, churn hotspots, and changes that contradict prior architectural decisions logged in commit history.
Reviews JavaScript / TypeScript changes for content correctness and the security-class traps eslint and tsc cannot catch by themselves. Dispatched only when the diff touches `.js`, `.mjs`, `.cjs`, or `.ts` (and `.tsx`). Reads the project's `.pwsh-review/standards.md` to discover project-specific names (e.g. the canonical HTML-escaper) and emits `PWSH-JS-NNN` findings.
How to run the deterministic static-analysis pre-pass for pwsh-code-review. Covers PSScriptAnalyzer, InjectionHunter, Gitleaks, Pester, and optional auxiliary tools. Defines the output schema agents consume. Use when invoking the static phase of a review or when explaining what the static layer covers.
How to bootstrap a PowerShell project with pwsh-code-review. Use when the user is setting up the reviewer on a new repo, when /pwsh-review-bootstrap runs, or when the existing profile needs refreshing.
How pwsh-code-review computes diff context using PowerShell's AST. Defines the Ring 0/Ring 1 context model, the AST index format, the call graph algorithm, and the diff-context.json schema. Use when computing diff context for a review or when explaining how the reviewer reasons about staged changes.
Uses power tools
Uses Bash, Write, or Edit tools
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Local Claude Code marketplace hosting the pwsh-code-review plugin.
From the directory above this one (or anywhere, with an absolute path):
# 1. Add this folder as a marketplace
/plugin marketplace add ./pwsh-code-review-marketplace
# 2. Install the plugin from it
/plugin install pwsh-code-review@pwsh-code-review-marketplace
To verify:
/plugin list
pwsh-code-review-marketplace/
├── .claude-plugin/
│ └── marketplace.json # marketplace catalog
├── plugins/
│ └── pwsh-code-review/ # the plugin
│ ├── .claude-plugin/plugin.json
│ ├── commands/ # /pwsh-review, /pwsh-review-bootstrap
│ ├── agents/ # 5 reviewers + calibrator
│ ├── skills/ # bootstrap, static-analysis, ast-context
│ ├── scripts/ # the deterministic pwsh 7+ scripts
│ ├── templates/ # bootstrap output templates
│ ├── docs/ # principles + severity rubric
│ └── README.md # full plugin docs
└── README.md # this file
One command from a shell:
pwsh ./scripts/Update-LocalPluginInstall.ps1
What it does:
main (skip with -NoPull).~/.claude/plugins/cache/pwsh-code-review-marketplace/).After it finishes, restart Claude Code, or run this in any session:
/plugin install pwsh-code-review@pwsh-code-review-marketplace
Pass -DryRun to preview the changes without writing anything. Pass -RepoRoot and -PluginsRoot to override the default paths (the latter is useful on macOS/Linux or when $env:CLAUDE_PLUGINS_ROOT is set).
If you prefer to do it interactively from inside Claude Code (no script run), use:
/plugin marketplace update pwsh-code-review-marketplace
That works when the marketplace is already registered at the correct path; the script above is the right choice when the registration is stale, missing, or you want a single shell command.
/plugin marketplace remove pwsh-code-review-marketplace
# from inside any pwsh project repo:
/pwsh-review-bootstrap # one-time profile generation
/pwsh-review # review staged + working changes
/pwsh-review --pr 42 # review PR via gh CLI
See plugins/pwsh-code-review/README.md for full plugin documentation.
After cloning, activate the bundled gitleaks pre-commit hook so secrets cannot land in commits:
git config core.hooksPath .githooks
The hook scans staged changes with gitleaks protect --staged and aborts the commit on any finding. Install gitleaks first: https://github.com/gitleaks/gitleaks
MIT. See LICENSE.
npx claudepluginhub andresharpe/pwsh-code-review-marketplace --plugin pwsh-code-reviewMulti-model consensus engine integrating OpenAI Codex CLI, Gemini CLI, and Claude CLI for collaborative code review and problem-solving.
Comprehensive UI/UX design plugin for mobile (iOS, Android, React Native) and web applications with design systems, accessibility, and modern patterns
Ultra-compressed communication mode. Cuts ~75% of tokens while keeping full technical accuracy by speaking like a caveman.
Standalone image generation plugin using Nano Banana MCP server. Generates and edits images, icons, diagrams, patterns, and visual assets via Gemini image models. No Gemini CLI dependency required.
Write feature specs, plan roadmaps, and synthesize user research faster. Keep stakeholders updated and stay ahead of the competitive landscape.
Curate auto-memory, promote learnings to CLAUDE.md and rules, extract proven patterns into reusable skills.