Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By ai-guard-devv1.4.4MITIn 1 marketplace
Scans JavaScript and TypeScript changes for floating promises, hardcoded secrets and SQL injection, then has Claude fix and rescan them. Hooks feed findings back after each edit and verify the whole change at finish, and it says the analysis runs locally.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 caution to review before installing
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
![]()
AI Guard adds deterministic static analysis for JavaScript and TypeScript to Claude Code. It catches bugs that AI-generated code often contains: floating promises, async callbacks passed to array methods, empty catch blocks, hardcoded secrets, SQL built by string concatenation, dynamic eval, unsafe deserialization, and missing auth middleware. Claude scans your changes, fixes each finding with its normal editing tools, and rescans until the scan is complete and clean.
The analysis runs on your machine using the open-source eslint-plugin-ai-guard engine (MIT). AI Guard's tools read code and report findings. The one exception is ai_guard_fix, which writes only when called with apply: true.
ai-guard: the ai-guard-mcp server from [email protected], started with Node over local STDIO for the current project. Its dependencies are pinned in this plugin's package-lock.json ([email protected], [email protected], @typescript-eslint/[email protected]).eslint-disable comments are not honored there, so an agent cannot silence a finding by adding one./ai-guard:verify-changes [file-or-directory] [preset]: the scan → fix → rescan workflow. Claude can also invoke it on its own after editing JS/TS code.| Tool | Use |
|---|---|
ai_guard_scan_diff | Scan changed files: staged, unstaged and untracked JS/TS, or changes since a base ref |
ai_guard_scan_file | Scan one file |
ai_guard_scan_project | Scan a directory (up to 500 files) |
ai_guard_rules | List rules and presets, or look up a rule's description, fix and docs link |
ai_guard_verify_change | One verdict for the change: introduced findings, weakened tests, agent-config issues |
ai_guard_scan_agent_config | Check CLAUDE.md, AGENTS.md, skills and MCP config for hidden text and prompt injection |
ai_guard_fix | Apply deterministic autofixes to one file; returns a diff, and writes only with apply: true |
Presets: agent (default, 8 high-confidence rules), recommended, strict, security.
node and npm on your PATHai_guard_scan_diffYou don't need ESLint or AI Guard installed in your project. Your project's ESLint configuration is not used.
This repository is its own Claude Code marketplace, so there is nothing else to register. In a terminal:
claude plugin marketplace add ai-guard-dev/eslint-plugin-ai-guard
claude plugin install ai-guard@ai-guard-plugins
Inside a Claude Code session the same steps are /plugin marketplace add ai-guard-dev/eslint-plugin-ai-guard and /plugin install ai-guard@ai-guard-plugins. The plugin is not listed in Anthropic's plugin directory, which only accepts hooks, local MCP servers and dependency installs from Verified organizations.
On install, Claude Code then installs the pinned dependencies (about 110 packages, ~45 MB, from package-lock.json, with install scripts disabled) when the plugin is installed, so the server starts in about two seconds.
To try it from a clone without a marketplace, install the dependencies yourself first, because --plugin-dir does not install them:
git clone https://github.com/ai-guard-dev/eslint-plugin-ai-guard.git
cd eslint-plugin-ai-guard/plugins/ai-guard
npm ci --ignore-scripts
claude --plugin-dir .
Run /mcp and check that plugin:ai-guard:ai-guard shows as connected.
Ask Claude to "check my changes with AI Guard", or run:
/ai-guard:verify-changes
/ai-guard:verify-changes src/api/users.ts
/ai-guard:verify-changes src security
Only a result with status: "complete" and clean: true counts as clean. A partial result (parse error, missing parser, more findings than returned) or a failed result (path outside the project, excluded file, Git error) is never reported as clean. If the AI Guard tools are unavailable, Claude says so instead of claiming the code was checked.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground
npx claudepluginhub ai-guard-dev/eslint-plugin-ai-guard --plugin ai-guard