/bully:bully-reviewfrom bully
Audits lint rule health from telemetry logs, identifying noisy, dead, and slow rules in .bully.yml with actionable recommendations.
Ships in bully. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Audit .bully.yml using the telemetry log at .bully/log.jsonl. See docs/telemetry.md for log schema and scope.
.bully.yml and .bully/log.jsonl both exist.Both script and semantic rule verdicts are logged. Semantic rules emit two extra record types beyond the per-edit rules: array:
semantic_verdict — pass/violation reported by the evaluator skill once it finishes (see docs/telemetry.md).semantic_skipped — pre-dispatch can't-match filters fired (whitespace only, comment only, etc.).The analyzer counts semantic_verdict violation as a fire and pass as a pass. semantic_skipped keeps a rule out of the dead bucket while contributing zero to the violation rate. If a semantic rule appears dead, it genuinely was never considered in the window — recommend the same retirement path you would for a dead script rule.
python3 pipeline/analyzer.py --log .bully/log.jsonl
Add --config .bully.yml --json when you need structured output to reason over. Thresholds --noisy-threshold (default 0.5) and --slow-threshold-ms (default 500) are tunable.
The analyzer returns three buckets plus a by_rule table with fires, passes, evaluate_requested, skipped, mean_latency_ms, files_touched, and violation_rate.
| Finding | Action |
|---|---|
| Noisy script rule | Tighten pattern, narrow scope glob, or demote severity to warning. |
| Noisy semantic rule | Sharpen the description (description IS the prompt) or split into two rules. |
| Dead script rule | Check scope glob first; if correct, remove the rule. |
| Slow rule | Cache, narrow scope, or move to pre-commit/CI. |
Semantic rule with high evaluate_requested and no downstream edits | Candidate for promotion to a script rule. |
| Script rule grep-matching a structural pattern (likely noise from comments/strings) | FYI: propose conversion to engine: ast. Verify ast-grep is installed first. |
| Script rule catching a pattern an installed linter could express | FYI: propose moving the rule into the linter's config and replacing the bully rule with a passthrough (script: "<linter> … {file}"). Bully still enforces it via the hook. |
Lead with a short prioritized punch list:
[rule-id] — <action> — <why>
Follow with brief noisy / dead / slow sections. Do not dump by_rule unless asked.
Do not edit .bully.yml directly. When the user confirms a recommendation, hand off to the bully-author skill to apply it -- that skill tests rules against fixtures before writing.
For continuous self-pruning rather than ad-hoc cleanup, the bully-scheduler agent (under agents/bully-scheduler.md) runs the same analyzer on a schedule and opens at most one rule-retirement PR per run. Wire it via the /schedule skill — there's no separate config needed.
evals/evals.json (opens in a new tab)evals/files/dead/bully-state/log.jsonl (opens in a new tab)evals/files/empty/bully-state/log.jsonl (opens in a new tab)evals/files/noisy/bully-state/log.jsonl (opens in a new tab)evals/files/slow/bully-state/log.jsonl (opens in a new tab)evals/triggers.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub dynamik-dev/bully --plugin bully4 skills in this plugin
/bullyInterprets bully PostToolUse hook output after Edit/Write -- fixes blocked-stderr violations or dispatches the bully-evaluator subagent for semantic payloads./bully-authorAuthors, modifies, or removes rules in `.bully.yml`. Use when the user says "add a lint rule for X", "ban Y", "tighten <rule-id>", "make <rule-id> a warning", "convert <rule-id> to semantic", "remove <rule-id>", "change the scope of <rule-id>", or asks to apply recommendations from `/bully-review`. Always tests a rule against a fixture before writing it to the config./bully-initBootstraps a project's .bully.yml by detecting the tech stack from manifest files, migrating rules from existing linting tools, and generating a baseline config. Use when user says "init agentic lint", "set up agentic lint", "bootstrap lint config", "create lint rules", "bully init", "initialize agentic lint", or asks to create or generate an agentic lint configuration.Other plugins' skills for the same job