Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add chan4lk/specclaw/plugin install specclaw-bfWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/chan4lk/specclaw/bf-quality)<a href="https://agentmods.dev/skills/chan4lk/specclaw/bf-quality"><img src="https://agentmods.dev/badge/skills/chan4lk/specclaw/bf-quality/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/chan4lk/specclaw/bf-quality"><img src="https://agentmods.dev/badge/skills/chan4lk/specclaw/bf-quality.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00017 | $0.03608 |
| Opus 5.5 | $0.00007 | $0.01443 |
| Sonnet 5.5 | $0.00003 | $0.00722 |
| Haiku 4.5 | $0.00002 | $0.00361 |
Grade A, and why
bf-quality scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 165 lines — stays where its author put it; the contents beside it link to each section on GitHub.
specclaw bf-quality
First, run specclaw-ensure-init .specclaw — idempotently creates .specclaw/ if it doesn't exist (silent if already initialized; auto-inits using the current directory's basename as the project name).
Measure code quality and write .specclaw/analysis/quality.json + .specclaw/analysis/quality-report.md. Read-only side-command — no specclaw-validate-change call, no <change> involved, matching the analyze/architecture/domain/clarify pattern.
What this command is, and what it is not
This is the only place quality is judged. /specclaw-bf:bf-analyze, /specclaw-bf:bf-domain and /specclaw-bf:bf-architecture answer what is this system; this answers what shape is the code in. Those are different questions and the second one is a judgement, so it lives in exactly one command — a reader never has to wonder which document a complexity number came from. Nothing here changes what any other command does.
It is also not agents/code-reviewer.md. That reads one change's diff, forms a professional opinion across ten dimensions, and gates a PR. This reads a whole tree, runs measuring tools, and compares numbers to thresholds. The two deliberately disagree on some conventions — the reviewer flags functions over ~30 lines as a matter of taste, this command's default WARN band is 60 — because one is advice to an author and the other is a metric on a legacy corpus nobody is about to hand-tidy.
Fully optional. No other command requires anything this one produces. The single exception is /specclaw-bf:bf-rebuild-plan, which annotates its per-module rollup with quality status if quality.json happens to exist and behaves byte-for-byte identically when it does not.
Tool prerequisites
jq is required. The three metric tools are all optional and are probed at every run:
| Tool | Provides | Install |
|---|---|---|
scc |
LOC, per-file line counts, per-language file counts | go install github.com/boyter/scc/v3@latest, or a release binary |
lizard |
per-function cyclomatic complexity, function length, parameter count | pip install lizard |
jscpd |
duplication percentage | npm install -g jscpd |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · +17 tokens per session 6795cefc26c2
- 2mo ago Changed · +21 lines 5e1868632084
- 2mo ago First seen · 144 lines · 0 tokens per session scan A 91b13d93eabe
bf-quality is a skill published in the GitHub repository chan4lk/specclaw (15 stars, last pushed 11d ago), licensed MIT. It adds 17 tokens to every session and 3,608 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.
bf-quality compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| bf-qualitychan4lk/specclaw | Skill | 15 | 11d ago | MIT | A | 17 | Claude Code |
| validate-hypothesisJOINCLASS/ai-ceo-framework | Skill | 63 | yesterday | MIT | A | 0 | Claude Code, Codex |
| backend-developerolehsvyrydov/AI-development-team | Skill | 18 | 11d ago | MIT | A | 94 | Claude Code |
| sqlolehsvyrydov/AI-development-team | Skill | 18 | 11d ago | MIT | A | 94 | Claude Code |
| secops-engineerolehsvyrydov/AI-development-team | Skill | 18 | 11d ago | MIT | A | 161 | Claude Code |
| e2e-testerolehsvyrydov/AI-development-team | Skill | 18 | 11d ago | MIT | A | 72 | Claude Code |
| verifyolehsvyrydov/AI-development-team | Skill | 18 | 11d ago | MIT | A | 82 | Claude Code |