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 dynamik-devv0.8.6Apache-2.0In 1 marketplace
Blocks Claude's Edit and Write calls until your linters and plain-English rules pass, feeding each failure back so the agent fixes it. A hook runs on every edit, and semantic rules are judged by an LLM subagent.
Trending plugins
7-day copy clicks
Claude hands work to one, or you mention it with @.
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.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
The edit doesn't land until your lint rules pass.
Install · Quick start · Configuration · Architecture · Design · Rule authoring · Telemetry
Bully is a PostToolUse hook for Claude Code. On every Edit and Write, it runs your linters (ruff, tsc, eslint, biome, phpstan, clippy, …) and uses an LLM to evaluate plain-English rules against the diff. If anything fails, Claude can't land the edit. Each block feeds the rule back to the agent, so your rules improve its behavior without manual coaching.
Read the Design doc for the architecture, data flow, and baseline contract.
/plugin marketplace add https://github.com/dynamik-dev/bully
/plugin install bully
Restart Claude Code. Then in a project:
> /bully-init
/bully-init detects your stack, wires your existing linters as passthrough rules, and creates .bully/ for telemetry. Review the generated .bully.yml, tweak, commit.
Manual install, bully doctor, model overrides, and uninstall live in Reference.
> /bully-init # bootstrap a config from your stack
> /bully-author # add a rule (engine routing + fixture test)
> /bully-review # prune noisy and dead rules from telemetry
bully baseline-init --glob "src/**/*.ts" # ignore pre-existing violations
bully guide src/foo.ts # which rules apply before editing
bully lint src/foo.ts --print-prompt # debug the semantic prompt
Silence one line when a rule is right in general but wrong here:
eval(expr); // bully-disable: no-eval reason: sandboxed input
engine: script rules call your existing linters as subprocesses (ruff check --quiet {file}, tsc --noEmit). The same checks CI runs, blocking on every edit.engine: ast rules use ast-grep to match shape, not text. Comments, strings, and formatting variants don't fool them.engine: semantic rules are plain English ("don't derive state with useEffect"). The bully-evaluator subagent has no Read / Grep / Glob and only sees the diff, so adversarial content can't redirect it.engine: session fires at Stop over the cumulative changed-set: "auth changed without tests", "migration without rollback", "API changed without changelog". Catches things no per-edit lint can see.bully trust the config. Per-rule capabilities: (network: false, writes: cwd-only) further gate what scripts can do..bully/log.jsonl. /bully-review flags noisy and dead rules; the bully-scheduler agent can run on cron and open small PRs to retire them./bully-init bootstraps a config. /bully-author adds rules with engine routing and fixture testing. bully guide <file> lists rules in scope before the agent edits.One YAML file at .bully.yml in your repo root. A flat list of rules; each names what to check, where it applies, severity, and which engine runs it.
schema_version: 1
rules:
ruff-check:
description: "Code must pass ruff check."
engine: script
scope: ["*.py"]
severity: error
script: "ruff check --quiet {file}"
no-any-cast:
description: "No `as any` casts. Use a precise type or `unknown` plus narrowing."
engine: ast
scope: ["src/**/*.ts", "src/**/*.tsx"]
severity: error
pattern: "$EXPR as any"
7-day copy clicks
Plugins from other owners that cover similar ground
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 dynamik-dev/bully --plugin bully