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 3dgiordanov0.4.2Apache-2.0In 1 marketplace
Catches public functions an edit changes beyond your request, so you revert or approve them before the agent closes. Hooks record which public functions each edit reaches and hold one close when an unnamed change stays; HYGMON_STRICT=1 gates every close.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
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.
Keep a change to what the request names. A fix can keep the request's own check green and still reach past the request: the defect sits in a helper other public functions use, or the same defect sits in a sibling, and the cheapest fix changes them too. The summary then reports it as a matter of course - "it uses the same rule now" - and the owner learns of a behaviour change they never chose. This plugin has the agent name the public behaviour its change reaches, mark what the request names, and put back or offer to the owner what it does not.
It answers "is the size and the kind of this change still the request's - or does it reach public behaviour the request does not name?"
Never blocking. Findings become a one-line retrospective on the next prompt; HYGMON_STRICT=1 turns the Stop into a gate that holds a close once. One hold is on in either mode: a block whose Outside names a change and whose Decision keeps it, while the edit record shows a public function changed that Request names does not name, holds the close once, and the agent is told why and keeps working. The hold reads the record, not the wording: a loose gloss of "none" over a clean record is a note at most. A put-back the record still shows is a note too, since the record spans the session.
The request's check - the issue's example, the failing test, the gate a plan quotes - tests what the request names. A change that keeps it green and alters another public function passes every check the agent has, and the executive plugin's [PLAN CHECK] says Drift: none of it: measured, a run that changed three methods the issue did not name wrote exactly that.
What the hook can see is the code before and after. It records, file by file, which public functions the session's edits changed: what a file exports (CommonJS or ES), every alias of one definition, the methods of an exported class or constructor, and a public function whose own text did not change but which calls a helper that did - the fix placed in the shared place. Size does not enter it: a one-line change can reach three public functions, and a long tidy-up that keeps its exports can be read as reaching none only by the agent, who says so in the block.
Where the neighbours take over. Work outside the plan is executive's; this is work inside it that reaches past the request. A result that only looks done is integrity's - including tests bent to go green. A part the request states and the result lacks is coverage's. Whether a claim is verified is epistemic's.
skills/hygiene-self-monitoring/SKILL.md) - the protocol: name what the request names, list what the change reaches, hold one against the other, and put back (revert-extra) or offer to the owner (ask-owner) what is outside it. Plus the [HYGIENE CHECK] block (a markdown list, not a fenced code block).| Layer | Claude Code / Codex | Cursor |
|---|---|---|
| Load the discipline, take the baseline | SessionStart (startup, clear, compact; a resume that never had it) and SubagentStart: the skill's text; the public surface of the code files near the root | sessionStart → additional_context; the same baseline, kept for the workspace |
| Record what the edits reach | PostToolUse: a read of a code file sets its baseline, an edit compares the file with it; a nudge when two or more public functions are reached and the set grew, at most three a session | postToolUse → additional_context |
| Close - read the block against the record | Stop reads last_assistant_message | afterAgentResponse reads text; stop acts on it. Neither fires in Cursor's headless mode (-p) |
Block rules:
[HYGIENE CHECK], after the session's edits changed two or more public functions.Outside names a change and the Decision is keep.Outside: none, while a public function the edits changed is named nowhere in Request names (an alias or a method's own name counts).Outside names a change and the Decision is revert-extra or ask-owner, while a public function the edits changed and Request names does not name is still changed: put back means the code is as it was.A finding carries the path, the lines and the count - never a function's name, never the code.
7-day copy clicks
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 3dgiordano/agent-plugins --plugin hygiene-self-monitoringPlugins from other owners that cover similar ground