bs-score
Use when auditing a repo, PR, branch, PR review, AI skill, agent config, or one or more prompts for claims vs truth and real defects: emit findings JSON with a verbatim quote per finding, then run bs-score (higher = more bullshit).
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- bs-score
- license
- MIT
- description
- Use when auditing a repo, PR, branch, PR review, AI skill, agent config, or one or more prompts for claims vs truth and real defects: emit findings JSON with a verbatim quote per finding, then run bs-score (higher = more bullshit).
- allowed-tools
- Read, Grep, Glob, Bash
02 资源文件 122
- 其他.github/CODEOWNERS13 B
- 参考文档.github/dependabot.yml978 B
- 参考文档.github/workflows/ci.yml1.9 KB
- 参考文档.github/workflows/mergecraft.yml1.7 KB
- 其他.gitignore83 B
- 参考文档.mergecraft/config.yaml210 B
- 参考文档.pre-commit-hooks.yaml801 B
- 参考文档action.yml5.8 KB
- 参考文档AGENTS.md2.6 KB
- 参考文档agents/README.md626 B
- 参考文档CHANGELOG.md18.9 KB
- 参考文档docs/counting-and-depth.md2.7 KB
- 参考文档docs/github-action.md1.9 KB
- 参考文档examples/findings.agent.json858 B
- 参考文档examples/findings.blast.json1.9 KB
- 参考文档examples/findings.docs.json1.0 KB
- 参考文档examples/findings.hallucinated.json1.1 KB
- 参考文档examples/findings.i18n.json839 B
- 参考文档examples/findings.prompt.json2.0 KB
- 参考文档examples/findings.review.json1.2 KB
- 参考文档examples/findings.self.json3.1 KB
- 参考文档examples/findings.shallow.json527 B
- 参考文档examples/findings.skill.json876 B
- 参考文档examples/findings.valid.json2.1 KB
- 参考文档examples/findings.wild-greetcli.json743 B
- 参考文档examples/findings.wild-tinycache.json1.1 KB
- 参考文档examples/fixture-docs/config/poller.yml30 B
- 参考文档examples/fixture-docs/guide.md507 B
- 其他examples/fixture-docs/pyproject.toml233 B
- 脚本examples/fixture-docs/src/poller/cli.py368 B
- 参考文档examples/fixture-i18n/config/app.yml16 B
- 参考文档examples/fixture-i18n/README.fr.md288 B
- 参考文档examples/fixture-i18n/README.ja.md303 B
- 脚本examples/fixture-i18n/scripts/run.sh27 B
- 参考文档examples/fixture-prompts/reviewer.md172 B
- 参考文档examples/fixture-prompts/system.md367 B
- 参考文档examples/fixture-repo/.cursor/agents/shipper.md192 B
- 参考文档examples/fixture-repo/docs/install.md93 B
- 参考文档examples/fixture-repo/docs/quickstart.md101 B
- 参考文档examples/fixture-repo/README.md381 B
- 脚本examples/fixture-repo/src/api.py251 B
- 脚本examples/fixture-repo/src/cli.py271 B
- 脚本examples/fixture-repo/src/db.py208 B
- 脚本examples/fixture-repo/src/users.py208 B
- 参考文档examples/fixture-review/review.json377 B
- 其他examples/in-the-wild/greetcli/pyproject.toml195 B
- 参考文档examples/in-the-wild/greetcli/README.md169 B
- 脚本examples/in-the-wild/greetcli/src/greetcli/cli.py204 B
- 参考文档examples/in-the-wild/README.md1.2 KB
- 参考文档examples/in-the-wild/tinycache/README.md336 B
- 脚本examples/in-the-wild/tinycache/src/tinycache.py383 B
- 参考文档examples/README.md2.4 KB
- 参考文档examples/score.agent.json3.2 KB
- 参考文档examples/score.blast.json4.8 KB
- 参考文档examples/score.docs.json3.6 KB
- 参考文档examples/score.hallucinated.json3.3 KB
- 参考文档examples/score.i18n.json3.1 KB
- 参考文档examples/score.prompt.json5.5 KB
- 参考文档examples/score.review.json3.8 KB
- 参考文档examples/score.self.json6.0 KB
- 参考文档examples/score.shallow.json2.3 KB
- 参考文档examples/score.skill.json3.3 KB
- 参考文档examples/score.valid.json5.9 KB
- 参考文档examples/score.wild-greetcli.json3.0 KB
- 参考文档examples/score.wild-tinycache.json3.7 KB
- 参考文档findings.schema.json3.7 KB
- 许可证LICENSE1.0 KB
- 参考文档llms-full.txt16.6 KB
- 参考文档llms.txt2.1 KB
- 其他pyproject.toml2.3 KB
- 参考文档README.md15.6 KB
- 参考文档RELEASING.md1010 B
- 脚本score.py1023 B
- 参考文档scoring.json5.2 KB
- 脚本scripts/check_dogfood.py3.8 KB
- 脚本scripts/check_receipts.py3.6 KB
- 脚本scripts/gen_agent_wrappers.py7.8 KB
- 脚本scripts/gen_llms_txt.py7.4 KB
- 参考文档SECURITY.md1.2 KB
- 脚本src/bs_score/__init__.py293 B
- 脚本src/bs_score/__main__.py138 B
- 脚本src/bs_score/baseline.py4.0 KB
- 脚本src/bs_score/claims.py25.8 KB
- 脚本src/bs_score/cli.py18.5 KB
- 脚本src/bs_score/depth.py5.1 KB
- 脚本src/bs_score/evidence.py6.9 KB
- 脚本src/bs_score/jev_find.py15.6 KB
- 脚本src/bs_score/jev_questions.py5.1 KB
- 脚本src/bs_score/locators.py5.0 KB
- 脚本src/bs_score/logging_setup.py1.5 KB
- 脚本src/bs_score/mcp_server.py3.6 KB
- 脚本src/bs_score/report.py19.3 KB
- 脚本src/bs_score/resources.py2.2 KB
- 脚本src/bs_score/sarif.py3.2 KB
- 脚本src/bs_score/schema_validate.py5.3 KB
- 脚本src/bs_score/scoring.py9.0 KB
- 脚本src/bs_score/sources.py5.2 KB
- 脚本src/bs_score/sweep.py7.7 KB
- 脚本tests/conftest.py2.8 KB
- 其他tests/golden/report.valid.sarif4.8 KB
- 脚本tests/test_action.py6.7 KB
- 脚本tests/test_bands.py2.4 KB
- 脚本tests/test_baseline.py5.1 KB
- 脚本tests/test_claims.py16.4 KB
- 脚本tests/test_cli.py6.6 KB
- 脚本tests/test_cluster_and_depth.py8.3 KB
- 脚本tests/test_docs.py6.5 KB
- 脚本tests/test_examples.py3.3 KB
- 脚本tests/test_fold_case.py3.6 KB
- 脚本tests/test_i18n.py1.5 KB
- 脚本tests/test_jev_find.py18.8 KB
- 脚本tests/test_llms_txt.py1.3 KB
- 脚本tests/test_locators.py1.6 KB
- 脚本tests/test_markdown.py2.5 KB
- 脚本tests/test_mcp_server.py3.2 KB
- 脚本tests/test_regressions.py11.1 KB
- 脚本tests/test_sarif.py2.2 KB
- 脚本tests/test_schema_parity.py3.2 KB
- 脚本tests/test_scoring_profiles.py3.7 KB
- 脚本tests/test_sweep.py3.5 KB
- 脚本tests/test_wrappers.py899 B
- 其他uv.lock226.9 KB
03 SKILL.md 正文
Bullshit Score (bs-score)
You find defects and quote the evidence. bs-score verifies every quote
against the artifact it names and then scores what survived. A finding whose
quote is not actually there earns nothing, so there is no advantage in guessing.
Never invent, estimate, or soft-score a number in prose. Report only what
bs-score printed.
Tools this skill uses
| Tool | What for |
|---|---|
Read / Glob / Grep |
Reading the artifacts under audit and locating exact quotes |
Bash |
Running bs-score; git diff for branches; gh pr view / gh pr diff / gh api for PR and review audits |
bs-score find --jev |
Optional Jev discovery — structured TypeSafe questions instead of freeform LLM findings |
Nothing here writes to the artifact under audit. If a runtime asks you to
approve a tool, Bash is the only one that runs anything.
Layout
bs-score/
├── SKILL.md # this recipe
├── checklists/ # one per review type — read the one you need
├── scoring.json # review type → weights (source of truth)
├── findings.schema.json # output contract, enforced in full
├── score.py # shim for `python3 score.py` from a clone
├── src/bs_score/ # the scorer
└── examples/ # worked findings + receipts + fixture artifacts
Canonical publish: alexhawat/bs-score.
Per-runtime wrappers: agents/.
Score rules (locked)
- Start at 0. Unbounded sum. Higher = worse. One score.
- The five finding types are fixed. The weights depend on the review type,
because a defect about to land in a PR and a stale sentence in a README are
not the same failure. Weights come only from
scoring.json:
| type | repo |
pr branch |
review |
skill |
agent |
prompt |
docs |
|---|---|---|---|---|---|---|---|
breaking_bug |
5 | 6 | 6 | 5 | 4 | 4 | 2 |
security_issue |
4 | 5 | 5 | 4 | 5 | 5 | 3 |
missing_feature |
3 | 2 | 3 | 4 | 3 | 2 | 3 |
bug |
3 | 3 | 4 | 3 | 2 | 3 | 1 |
wrong_claim |
2 | 2 | 3 | 3 | 3 | 3 | 5 |
- Evidence is verified, not assumed.
pathmust resolve andquotemust appear in the artifact (whitespace- and typography-normalised). If it does not:rejected, not scored. - Dedupe key:
(type, canonical file, quote fingerprint). Line numbers,./prefixes and re-paths do not create new findings. - One root cause is charged once. Give findings that share a cause the same
clusterid and they collapse into one scored finding — even when the wording differs in each place. Their blast radius is the union of all their quotes. - The count is measured, not asserted. Every verified quote is swept across the tree, and the report says how many files carry it. You do not need to enumerate them, and filing them separately earns nothing extra.
confidenceis display-only (0–1); it never changes points.- A malformed finding is rejected on its own. Only a malformed envelope
(
version,target_kind,findings) aborts the run.
When to use
target_kind |
What you audit | Checklist |
|---|---|---|
repo |
README/docs and a deep pass over primary implementation | repo |
pr / branch |
Diff-focused deep pass; still flag contradicted docs | pr |
review |
An existing PR review (body + comments) vs the PR diff | review |
skill |
A skill pack: SKILL.md and the scripts it names |
skill |
agent |
Agent/persona configs under .cursor/, .claude/, AGENTS.md, … |
agent |
prompt |
One or many prompts: system, developer, tool, persona | prompt |
docs |
A single document — claims only, no deep code pass | docs |
Workflow
When the user or runtime passes --jev, do not freeform-audit with an
LLM. Run discovery through the CLI, then score:
bs-score find --jev --repo-root . --target-kind repo -o findings.json
bs-score findings.json --repo-root .
# or chain: bs-score find --jev --repo-root . --target-kind repo --score
Jev (TypeSafe System One) returns Choice/Score/Noul only — it cannot invent
titles or quotes. Claim-like sentences are filtered in code before any Jev
call; each file gets one batched system_one request with keep/type/confidence
questions for every unit in that file. The model is pinned to jev-1.13.0;
routing applies both answer probabilities and confidence floors from
src/bs_score/jev_questions.py. quote is always a verbatim span from the
file and title comes from a fixed template keyed by finding type. Keep state
lean — Jev accuracy drops as irrelevant context grows (TypeSafe jaggedness
guidance). Requires typesafe-sdk (uv sync --extra jev) and
TYPESAFE_API_KEY. Implemented for repo and docs only; other review
types still need the manual workflow below.
- Map claims. List the concrete assertions the artifact makes — features, paths, CLIs, triggers, guarantees, "always"/"never"/"automatically".
- Deep pass (required for
repo/pr/branch/skill). Read the primary implementation, not the docs alone: logic and state bugs, side effects with no rollback, error handling that hides failure, injection and secrets, control flow that breaks an advertised workflow. - Cross-check. Claim contradicted by the artifact →
wrong_claim; advertised but absent →missing_feature; pure defect →bug,breaking_bug, orsecurity_issue. - Quote exactly. Copy the evidence verbatim from the file. One contiguous
run of text — never stitch two places together with
..., because a stitched quote cannot be verified and will be rejected. - Group by cause, not by location. Before filing a second finding, ask
whether it is the same defect somewhere else. If it is, give both the same
clusterid; the scorer charges the cause once and reports every file it reaches. Two defects that merely look alike get different clusters. - Record what you read. Add an
audit.files_readlist. Forrepo,pr,branchandskillthe scorer stamps the reportshallowwhen that list contains no implementation file, and flags any path in it that does not exist.--require-depthturns that into a failure. - Emit findings JSON only — matching
findings.schema.json, with noscoreand nopoints. - Score it:
bs-score findings.json --repo-root . # installed
uv run bs-score findings.json --repo-root . # from a clone of this repo
python3 score.py findings.json --repo-root . # from a clone, no uv
For prompts, review bodies, or anything else that is not a file in the tree, register it so its quotes can be checked too:
bs-score findings.json --sources prompts/ # a directory
bs-score findings.json --repo-root . --sources review.json # {id, text} manifest
Install options are in the README.
- Report only what the script printed:
score,by_type,kept/rejected/deduped,depth, andblast_radius.--format mdprints a summary you can paste as-is. If the report saysdepth: shalloworunreported, say so — do not present the score as a finished audit.
If rejected contains unverified_evidence, you mis-quoted or invented
something — fix the quote and re-run rather than reporting the lower score as a
result. If you only skimmed docs on a repo / pr / branch / skill audit,
you are not done: go back to step 2.
Finding object
Required: id, type, title, path, quote, target.
Optional: claim, confidence.
Optional cluster: a short id shared by every finding with the same root cause
(phantom-install-subcommand). Findings sharing (type, cluster) are scored
once.
target — where the quote lives:
readme | code | diff | review | skill | agent | prompt | other.
path — the evidence locator:
| form | example |
|---|---|
| file | README.md, src/api.py:88, src/api.py:88-95 |
| agent config | .claude/agents/x.md:12, .cursor/rules/y.mdc |
| prompt | prompt:system, prompt:agents/reviewer.md:5 |
| review | review:body, review:comment:1001, pull/42/reviews/99#scope |
Line numbers are checked with ±10 lines of slack and are advisory: a real quote
at a wrong line is kept and flagged verified_wrong_line (and rejected under
--strict-lines). A quote that is nowhere in the artifact is always rejected.
Audit block
Optional, but it is the only way to show the deep pass happened:
{
"version": 2,
"target_kind": "repo",
"audit": {
"files_read": ["README.md", "src/cli.py", "src/api.py"],
"notes": "Docs claims plus every module under src/."
},
"findings": []
}
A path that does not exist earns no credit and is reported as a phantom read.
Hard rules
- Do not add finding types that are absent from
scoring.json. - Do not soft-score, rescale, or invent a number — only
bs-score. - Findings JSON must not contain
scoreorpoints; the payload is rejected. - Quotes are contiguous and verbatim. No ellipses, no paraphrase, no reflowing that changes the words.
- Quotes stay verbatim in the artifact's own language — never translate a quote. Finding titles may be in any language; the checklists are language-agnostic.
- Do not treat rejected findings as scored.
- Prefer fewer high-evidence findings over speculative noise — but a docs-only
audit is incomplete for
repo/pr/branch/skill. - One finding per failure mode. Re-filing the same quote at another path is
merged, not scored. Use
clusterwhen the wording differs between places. - Never claim a count you did not measure. The scorer reports
files_affected; quote that number rather than inventing one. - Never write a title or
claimthat asserts more than the quote shows. "I verified X" with nothing checking X is the hollow-verification failure mode, and it is amissing_featurewhen you find it in someone else's work. - For
review: never score a finding the review got right. - For
skill/agent/prompt: read the text and the code, config, or tool list it depends on.
04 同仓库更多 Skills
demo-deploy
Fixture skill whose documentation does not match its script.
checklists
暂无简介
bs-score
Use when auditing a repo, PR, branch, PR review, AI skill, agent config, or one or more prompts for claims vs truth and real defects: follow the canonical bs-score SKILL.md, emit findings JSON, then run bs-score (higher = more bullshit).
bs-score
Use when auditing a repo, PR, branch, PR review, AI skill, agent config, or one or more prompts for claims vs truth and real defects: follow the canonical bs-score SKILL.md, emit findings JSON, then run bs-score (higher = more bullshit).
bs-score
Use when auditing a repo, PR, branch, PR review, AI skill, agent config, or one or more prompts for claims vs truth and real defects: follow the canonical bs-score SKILL.md, emit findings JSON, then run bs-score (higher = more bullshit).
bs-score
Use when auditing a repo, PR, branch, PR review, AI skill, agent config, or one or more prompts for claims vs truth and real defects: follow the canonical bs-score SKILL.md, emit findings JSON, then run bs-score (higher = more bullshit).