classify-spec-strengths

classify-spec-strengths is a cursor rule for Cursor from briangmilnes/APAS-VERUS. It costs 789 tokens per session, scanned A, original, MIT.

A rule for classifying the strength of Verus specifications from a generated JSON review of Rust code.

In plain words
What is it for?
It helps generate the review data, read the classification criteria, and label each specification entry by its strength.
Why use it?
It gives spec reviews a consistent process and classification scheme instead of relying on ad hoc judgments.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit It helps generate the review data, read the classification criteria, and label each specification entry by its strength.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/briangmilnes/apas-verus/classify-spec-strengths
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/briangmilnes/APAS-VERUS

Made for: Cursor.

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 classify-spec-strengths

README.md
[![agentmods](https://agentmods.dev/badge/rules/briangmilnes/apas-verus/classify-spec-strengths.svg)](https://agentmods.dev/rules/briangmilnes/apas-verus/classify-spec-strengths)
Your own site
<a href="https://agentmods.dev/rules/briangmilnes/apas-verus/classify-spec-strengths"><img src="https://agentmods.dev/badge/rules/briangmilnes/apas-verus/classify-spec-strengths.svg" alt="Measured on agentmods" height="20"></a>
Per session 789 This file is loaded in full into every session.
When invoked 789 The same file — it is already loaded in full.
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.00789 $0.00789
Opus 5 $0.00394 $0.00394
Sonnet 5 $0.00158 $0.00158
Haiku 4.5 $0.00079 $0.00079

Measured 4d ago against content hash dff416977aff, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

classify-spec-strengths 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 4d 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.

.cursor/rules/verus/classify-spec-strengths.mdc · 81 lines

How it starts

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

Classify Spec Strengths

Generate

When the user says "review specs for", "generate spec review for", or provides directories/files to analyze, first generate the markdown and JSON:

~/projects/veracity/target/release/veracity-review-module-fn-impls -d src/ChapNN

Or for specific files:

~/projects/veracity/target/release/veracity-review-module-fn-impls -f src/ChapNN/File.rs

Multiple directories can be combined in one run (-d src/Chap05 -d src/Chap18).

Output goes to analyses/veracity-review-module-fn-impls.md and .json.

Classify

When the user says "classify spec strengths", "review spec strengths", "classify specs", or similar:

Inputs

  • JSON file: analyses/veracity-review-module-fn-impls.json (or a path the user provides)
  • Prompt: ~/projects/veracity/docs/veracity-classify-spec-strengths-prompt.md

Procedure

  1. Read ~/projects/veracity/docs/veracity-classify-spec-strengths-prompt.md to understand the classification criteria.
  2. Read the JSON file the user specifies (default: analyses/veracity-review-module-fn-impls.json in the current project).
  3. For each entry, examine the snippet field and classify spec_strength as one of:
    • strongrequires and ensures fully capture the function's contract.
    • partial — some spec exists but is incomplete or underspecified.
    • weak — spec exists but is trivially true or nearly useless.
    • none — no requires/ensures at all (empty snippet or signature only).
  4. Write the classifications to analyses/review-module-fn-impl-spec-strengths.json in the same directory as the input JSON. Format:
    [
      { "id": 1, "spec_strength": "strong" },
      { "id": 2, "spec_strength": "none" }
    ]
    
  5. Run the patch command:
    veracity-review-module-fn-impls --patch \
      analyses/veracity-review-module-fn-impls.md \
      analyses/review-module-fn-impl-spec-strengths.json
    
  6. Print a summary table:
    Classification Count
    strong N
    partial N
    weak N
    none N

Read the full file on GitHub · 81 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. 4d ago First seen · 81 lines · 789 tokens per session scan A dff416977aff

Subscribe to this mod's changes

classify-spec-strengths is a cursor rule published in the GitHub repository briangmilnes/APAS-VERUS (10 stars, last pushed 1mo ago), licensed MIT. It adds 789 tokens to every session, about $0.0039 per session on Opus 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-03.