bf-quality

bf-quality is a skill for Claude Code from chan4lk/specclaw. It costs 17 tokens per session (3,608 once invoked), scanned A, original, MIT.

A code-quality analysis tool for examining an existing codebase and recording measurements such as complexity, duplication, and file or function size.

In plain words
What is it for?
Use it to scan the whole project, compare measurements with configured limits, and produce a machine-readable JSON file and a Markdown report.
Why use it?
It gives a consistent view of how difficult a codebase is to maintain, especially when the project is old or has no current quality report.

Skill for Claude Code

Written for Claude Code: $CLAUDE_PLUGIN_ROOT variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the specclaw-bf plugin — 15 skills, 14 agents shipped together

Good fit Use it to scan the whole project, compare measurements with configured limits, and produce a machine-readable JSON file and a Markdown report.

Compare 6 skills from other repositories ↓
Install

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.

Claude Code
/plugin marketplace add chan4lk/specclaw
Claude Code
/plugin install specclaw-bf

Made for: Claude Code.

Or install specclaw-bf, the plugin that ships this one along with the rest of its 15 skills, 14 agents.

Wrote 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.

agentmods badge for bf-quality

README.md
[![agentmods](https://agentmods.dev/badge/skills/chan4lk/specclaw/bf-quality/github.svg)](https://agentmods.dev/skills/chan4lk/specclaw/bf-quality)
Your own site
<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.

agentmods 80×15 button for bf-quality

Your own site · 80×15
<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>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,608 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 1mo ago against content hash 6795cefc26c2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

plugins/specclaw-bf/skills/bf-quality/SKILL.md · 165 lines

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

Read the full file on GitHub · 165 lines

Changes

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.

  1. 1mo ago Changed · +17 tokens per session 6795cefc26c2
  2. 2mo ago Changed · +21 lines 5e1868632084
  3. 2mo ago First seen · 144 lines · 0 tokens per session scan A 91b13d93eabe

Subscribe to this mod's changes

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.

Related

bf-quality compared with skills from other repositories

bf-quality next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bf-qualitychan4lk/specclawSkill1511d agoMITA17Claude Code
validate-hypothesisJOINCLASS/ai-ceo-frameworkSkill63yesterdayMITA0Claude Code, Codex
backend-developerolehsvyrydov/AI-development-teamSkill1811d agoMITA94Claude Code
sqlolehsvyrydov/AI-development-teamSkill1811d agoMITA94Claude Code
secops-engineerolehsvyrydov/AI-development-teamSkill1811d agoMITA161Claude Code
e2e-testerolehsvyrydov/AI-development-teamSkill1811d agoMITA72Claude Code
verifyolehsvyrydov/AI-development-teamSkill1811d agoMITA82Claude Code