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 systemfsoftwareApache-2.0In 1 marketplace
Lints each JS/TS file an agent edits with the project's own oxlint config and sends failures back to the agent. Blocks edits that disable a rule in the oxlint config. Needs Deno 2.x on PATH and oxlint as a local dev dependency; a missing config or binary fails the hook.
Trending plugins
7-day copy clicks
Run automatically on Claude Code events. Claude doesn't decide.
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.
Lints every agent edit with oxlint, and blocks edits that disable an oxlint rule.
Install inside Claude Code:
/plugin marketplace add systemfsoftware/systemfsoftware
/plugin install oxlint-guard@systemfsoftware
oxlint-guard turns linting into part of the agent's edit loop. After every edit to a JS/TS file, the file is linted against the project's own nearest oxlint config and any failures are reported straight back to the agent. Before an edit to the oxlint config itself, a second guard vetoes changes that would disable a rule.
Lint that runs in CI is lint the agent has already moved past. The agent edits a file, the change looks fine, and the violation is discovered minutes later by a pipeline the agent is no longer looking at — the fix is a context switch at best, a forgotten ticket at worst.
There is a second, quieter hole: when the agent does see a failing rule, the cheapest way to make CI green is to edit the config instead of the code. "rule": "off" is a one-line change; fixing the code is not. A project whose lint config can be edited unsupervised is a project whose lint silently rots.
oxlint-guard closes both holes where they happen — at the edit, not at the pipeline.
The two commands in the first screen are the whole install: /plugin marketplace add registers this repository as a plugin marketplace, and /plugin install takes oxlint-guard from it. Both run inside Claude Code.
If Claude Code reports that the marketplace is not found, run the add command and retry the install. See Discover and install prebuilt plugins through marketplaces for the full marketplace flow.
To install from a local checkout instead: /plugin install /path/to/agent-plugins/oxlint-guard.
Deno 2.x on PATH — the hooks run on Deno.
oxlint installed as a local dev dependency of the project being edited:
pnpm add -D oxlint # or: npm install -D oxlint / yarn add -D oxlint / bun add -d oxlint
The lint guard resolves node_modules/.bin/oxlint by walking up from the edited file, and stops at the project root (CLAUDE_PROJECT_DIR, else the enclosing git root). It never falls back to PATH, npx, bunx, or a network fetch, and never reaches past the project into a parent directory — if the binary is not a local dev dependency of the project, there is nothing to fall back to. When it finds nothing, the failure message names the install command for your project's package manager, detected from the lockfile.
An oxlint config somewhere above the edited file — oxlint.config.ts, oxlint.config.js, oxlint.config.mjs, oxlint.config.cjs, .oxlintrc.json, or oxlint.json. JSON configs may contain comments and trailing commas.
A missing config or a missing local binary is a hard failure: the hook exits 2 with an explanatory message on stderr. This is deliberate — a guard that silently passes is worse than no guard, because it looks like enforcement while enforcing nothing.
The hooks' dependencies (@std/*) are resolved from Deno's registry cache on first run, so the first hook invocation needs network access to warm the cache; after that the hooks run offline.
flowchart LR
A[Agent edits a file] --> B{PreToolUse config guard}
B -->|rule disabled in a config| C[Edit blocked - exit 2]
B -->|anything else| D[Edit proceeds]
D --> E{PostToolUse lint guard}
E -->|lint violation| F[Failure fed back to agent - exit 2]
E -->|clean or out of scope| G[Silent - exit 0]
After each edit to a JS/TS file (.ts, .tsx, .js, .jsx, .mts, .cts, .mjs, .cjs), the guard lints that file against the nearest oxlint config above it and reports violations to the agent. A file whose first line is a deno shebang is checked with deno check/deno lint instead of oxlint — oxlint's type-aware pass cannot resolve the Deno global, so those files are routed to a runtime that can.
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.
npx claudepluginhub systemfsoftware/systemfsoftware --plugin oxlint-guardPlugins from other owners that cover similar ground