verify-ac

verify-ac is a skill for Claude Code from HsuanYuLee/polaris. It costs 178 tokens per session (9,515 once invoked), scanned A, original, MIT.

A final acceptance check that runs strict, recorded tests against a defined success condition. It separates automatic pass-or-fail evidence from a written report that a person interprets.

In plain words
What is it for?
Verifying that an implementation meets its agreed conditions, recording test evidence, blocking failed checks, and writing delivery records after a pass.
Why use it?
It stops work from being called complete when the success definition, measurement command, or required evidence is missing or has changed.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; mentions subagents.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash "$(bash .claude/skills/driving-work-to-done/scripts/spine-loop-state.sh find <單的目錄名>)/probes/probe.sh".

Good fit Verifying that an implementation meets its agreed conditions, recording test evidence, blocking failed checks, and writing delivery records after a pass.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/HsuanYuLee/polaris
agentmods
npx agentmods add skills/hsuanyulee/polaris/verify-ac

Made for: Claude Code.

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 verify-ac

README.md
[![agentmods](https://agentmods.dev/badge/skills/hsuanyulee/polaris/verify-ac/github.svg)](https://agentmods.dev/skills/hsuanyulee/polaris/verify-ac)
Your own site
<a href="https://agentmods.dev/skills/hsuanyulee/polaris/verify-ac"><img src="https://agentmods.dev/badge/skills/hsuanyulee/polaris/verify-ac/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 verify-ac

Your own site · 80×15
<a href="https://agentmods.dev/skills/hsuanyulee/polaris/verify-ac"><img src="https://agentmods.dev/badge/skills/hsuanyulee/polaris/verify-ac.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 178 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,515 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00178 $0.09515
Opus 5.5 $0.00071 $0.03806
Sonnet 5.5 $0.00036 $0.01903
Haiku 4.5 $0.00018 $0.00951

Measured 11d ago against content hash 610ffdb2551b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

verify-ac 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 11d ago.

The scan reads SKILL.md. This mod also ships 25 executable files (scripts/build-independent-oracle-prompt.sh, scripts/check-spine-legacy-layers.sh, scripts/enumerate-spine-inventory.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.claude/skills/verify-ac/SKILL.md · 458 lines

How it starts

The opening of the file, as written. The whole thing — 458 lines — stays where its author put it; the contents beside it link to each section on GitHub.

verify-ac — 第二關:執行 oracle

輸出有兩部分,權力不一樣:機械判定會擋(由 exit code 承載,不需要讀者同意); 判斷報告不擋(帶引用的意見,由人裁)。把兩者混在一起,關卡就會開始擋一些沒人能精確 定義的東西,然後大家學會繞過它。

機械判定:三件事

# 1. assertion 沒被動過。這一步同時查兩件事:校驗值與內文對得上,且內文與 git 歷史一致。
#    對不上就停——這時審查根本還沒開始,因為成功的定義變了。
bash .claude/skills/verify-ac/scripts/frozen-assertion-fence.sh verify {issue}/index.md

# 2. 手上這條量測命令是登錄過的。換過而沒帶紅過證據的命令不被承認。
bash .claude/skills/verify-ac/scripts/record-measurement-change.sh verify \
  --ledger {issue}/.spine/measurement-ledger.json \
  --assertion-id A-P1 --command '<cmd>'

# 3. 跑量測。同時看 exit code 與正向證據——exit 0 而沒有正向證據不是通過。
bash .claude/skills/verify-ac/scripts/run-hardened-oracle.sh --command '<cmd>' \
  --require-tool rg --expect-evidence '<真的量到東西的痕跡>' \
  --evidence-out {issue}/.spine/evidence/<assertion-id>.json

任一項不成立就是非 PASS,沒有討論空間。

一條命令被好幾條 assertion 共用時,用 --assertion 分組,一趟就產出全部證據:

bash .claude/skills/verify-ac/scripts/run-hardened-oracle.sh --command '<cmd>' \
  --assertion A-P1 --expect-evidence '<A-P1 自己的痕跡>' --evidence-out {issue}/.spine/evidence/A-P1.json \
  --assertion A-P2 --expect-evidence '<A-P2 自己的痕跡>' --evidence-out {issue}/.spine/evidence/A-P2.json

命令只跑一次,每一組在同一份輸出上各自判、各自寫——不是把同一個判定複製 N 份,那會讓 「這條 assertion 真的被檢查過」變成假的。一組沒有自己的輸出路徑、或兩組指到同一個檔案,它會停。

run-hardened-oracle.sh 會先探工具能力再釘住、要求命令產出證明自己量到東西的輸出、 並原樣保留 stderr 與 exit code。

釘住的意思是那條命令跑在一組固定的系統目錄上,所以沒有用 --require-tool 宣告的工具, 在它底下就是不存在。 那不是理論上的:2026-08-30 有兩支 selftest 用 rg,在一般 shell 底下全綠,在這條命令底下直接 command not found。而它紅的樣子跟「斷言真的沒過」離場碼 相同——分得開它們的只有輸出裡那一行說著缺了什麼。這是因為工具會說謊:PATH 上較早的 shim、靜默跳過的測試、 被吞成 generic timeout 的錯誤,三者都能讓一個空的執行看起來像綠的。

命令與探針都不准把位置抄下來

一張單住在哪一格是它的狀態的投影,會被重算。 所以登錄下來的命令、以及探針解 repo 根 的寫法,兩邊都不准把「現在在哪」寫成字面值——寫下去的那一刻它就是一個會在下一次重算之後 失效的指標,而失效的樣子是「開不到檔」,讀起來像交付壞了。

命令這一邊,執行當下才問位置:

bash "$(bash .claude/skills/driving-work-to-done/scripts/spine-loop-state.sh find <單的目錄名>)/probes/probe.sh"

後面不要接 | tail -1。find 命中不是剛好一個的時候會回非 0(3 = 多於一個,4 = 一個 都沒有),而那個離場碼會被 tail 吃掉,於是兩行路徑被當成一條用。record-measurement-change.sh 在登錄的時候會擋下把單自己的目錄名連著斜線抄進去的命令,三種寫法都算:展開後的絕對路徑、 以 $HOME 開頭的、相對於另一棵樹的。

Read the full file on GitHub · 458 lines

Files

What ships with it

25 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago Changed · +6 lines 610ffdb2551b
  2. 19d ago Changed · +4 lines 12a4597e987e
  3. 25d ago Changed · +12 lines ae5e6d0db072
  4. 26d ago Changed · +19 lines c4f23126a642
  5. 1mo ago Changed · +53 lines 7e732edb12cb
  6. 1mo ago Changed · +15 lines 29ac368a7717
  7. 1mo ago Changed · +5 lines 3cc32f07be26
  8. 1mo ago First seen · 344 lines · 178 tokens per session scan A 75e62a58ab39

Subscribe to this mod's changes

verify-ac is a skill published in the GitHub repository HsuanYuLee/polaris (5 stars, last pushed 2d ago), licensed MIT. It adds 178 tokens to every session and 9,515 once invoked, about $0.0007 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-08-31.