next-guard

by Plagemes · ★ 8 · updated 15 Oct 2026

ToastsGuardsvalidates

0

Flags missing or needless "use client" and server-only imports leaking into client components in Next.js.

install next-guard

Install

/plugin marketplace add Plagemes/claude-mods
/plugin install next-guard@claude-mods

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
session.starttool.call
API calls
$.clock.after$.fs.read$.mods.hello$.mods.mode$.mods.notify$.mods.publish$.mods.registerTab$.ui.log$.ui.toast
Can see
/"^(?:Edit|MultiEdit|Write)$"/ calls
Reach
level 1 of 3 reads filesdrawsother: $.mods.helloother: $.mods.modeother: $.mods.notifyother: $.mods.publishother: $.mods.registerTab

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/Plagemes/claude-mods
Path in repo
mods/next-guard
Source commit
e9815ce the exact code the scan read
Author
@Plagemes
License
MIT
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.

More from Plagemes/claude-mods

night-shift

Plagemes/claude-mods

Runs your queued tasks at a scheduled time, like overnight, and leaves you a report.

★ 8PanesStatus lineGuards

no-any

Plagemes/claude-mods

Flags new any types, @ts-ignore and eslint-disable comments as Claude writes them.

★ 8ToastsGuards

no-skip-tests

Plagemes/claude-mods

Blocks Claude from silencing tests with .skip, .only, xit or skip markers.

★ 8GuardsPromptAutomation

no-upload

Plagemes/claude-mods

Blocks commands that upload files to external services like pastebins and file-sharing sites.

★ 8GuardsPromptAutomation

node-version-check

Plagemes/claude-mods

Warns when your Node version doesn't match .nvmrc, .node-version or package.json engines.

★ 8Status lineGuards

offline-mode

Plagemes/claude-mods

/offline blocks every network call — fetches, curl, installs, git push — until you turn it back on.

★ 8Status lineGuardsCommands

onboarding-tour

Plagemes/claude-mods

/tour walks a newcomer through the repository step by step.

★ 8PanesCommands

openapi-sync

Plagemes/claude-mods

Warns when your API routes change but openapi.yaml doesn't.

★ 8BandsGuards

outdated-deps

Plagemes/claude-mods

/outdated shows stale dependencies and how risky each upgrade is.

★ 8PanesCommands

output-trimmer

Plagemes/claude-mods

Trims huge command outputs to head, tail and error lines before they flood the context.

★ 8Status lineGuards

pair-mode

Plagemes/claude-mods

Claude proposes, you type: edits become diffs you apply yourself, for deliberate practice.

★ 8BandsGuardsCommands

parallel-explore

Plagemes/claude-mods

/explore sends three subagents to investigate different parts of the codebase and merges their findings.

★ 8PanesGuardsCommands

Other mods in Toasts, close to this one by stars.