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 krzysztofdudekv0.1.0MITIn 1 marketplace
Write your architecture rules once, and stop reading your agent's code to enforce them. Lawcheck checks while the agent writes, before it finishes, and in CI. The plugin sends your agent back, up to three times, while the files of its turn break those rules. It gives the agent the law of the repository at the start of every session, checks the file of each edit it makes with Write, Edit or NotebookEdit, and checks every file of the turn before the agent finishes. The hooks run Lawcheck and the repository's rule scripts, so use it where you would run the repository's tests. Its skill, /lawcheck:setup, writes the first law of a repository from its code and asks you before it forbids a use that the code already makes.
Claude loads one when your task matches it, or you run it by name.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
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.
Check each edited filecheck_after_edit
After the agent writes or edits a file in a repository with a law, run lawcheck check on that file and show the agent what breaks the law.
booleandefault true
Check before the agent finishescheck_before_stop
When a turn that changed files is about to end, run lawcheck check on them and send the agent back while they break the law.
booleandefault true
npx claudepluginhub krzysztofdudek/lawcheck --plugin lawcheckBuilt 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