table-of-contents-standard

table-of-contents-standard is a cursor rule for Cursor from briangmilnes/APAS-VERUS. It costs 795 tokens per session, scanned A, original, MIT.

A set of rules for keeping Verus source files in a consistent order. Verus is a Rust-based language and toolset for writing programs with formally checked correctness claims.

In plain words
What is it for?
Use it when organizing or reviewing Verus files, adding a table of contents, and placing code under the required numbered section headers.
Why use it?
It makes files easier to scan and keeps related modules, types, specifications, proofs, traits, and implementations in predictable sections.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when organizing or reviewing Verus files, adding a table of contents, and placing code under the required numbered section headers.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/briangmilnes/apas-verus/table-of-contents-standard
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 table-of-contents-standard

README.md
[![agentmods](https://agentmods.dev/badge/rules/briangmilnes/apas-verus/table-of-contents-standard/github.svg)](https://agentmods.dev/rules/briangmilnes/apas-verus/table-of-contents-standard)
Your own site
<a href="https://agentmods.dev/rules/briangmilnes/apas-verus/table-of-contents-standard"><img src="https://agentmods.dev/badge/rules/briangmilnes/apas-verus/table-of-contents-standard/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 table-of-contents-standard

Your own site · 80×15
<a href="https://agentmods.dev/rules/briangmilnes/apas-verus/table-of-contents-standard"><img src="https://agentmods.dev/badge/rules/briangmilnes/apas-verus/table-of-contents-standard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 795 This file is loaded in full into every session.
When invoked 795 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.00795 $0.00795
Opus 5 $0.00398 $0.00398
Sonnet 5 $0.00159 $0.00159
Haiku 4.5 $0.00080 $0.00080

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

Security

Grade A, and why

table-of-contents-standard 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 12d 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/apas-verus/table-of-contents-standard.mdc · 84 lines

How it starts

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

Table of Contents Standard

Every Verus source file should follow this section ordering. Place a TOC comment near the top of the file (after the copyright and module doc), and use section headers to mark each section that is present.

TOC format

//  Table of Contents
//  1. module
//  2. imports
//  3. broadcast use
//  4. type definitions
//  5. view impls
//  6. spec fns
//  7. proof fns/broadcast groups
//  8. traits
//  9. impls
//  10. iterators
//  11. derive impls in verus!
//  12. macros
//  13. derive impls outside verus!

Section headers

Mark each section with a numbered comment:

//  8. traits

Section contents

# Section What goes here
1 module pub mod ModName {
2 imports use statements, #[cfg(verus_keep_ghost)] use
3 broadcast use broadcast use groups
4 type definitions struct, enum, type aliases
5 view impls impl View for ...
6 spec fns spec fn, open spec fn, closed spec fn
7 proof fns/broadcast groups proof fn, broadcast group
8 traits Trait definitions (trait Foo { ... })
9 impls impl blocks for the main type (exec functions)
10 iterators Custom iter struct, View, iter_invariant, Iterator::next, ghost iter, ForLoopGhostIteratorNew, ForLoopGhostIterator, IntoIterator, iter() method
11 derive impls in verus! Clone, PartialEq, Eq, Default, Drop — inside verus! with specs
12 macros macro_rules! — outside verus!
13 derive impls outside verus! Debug, Display, iter_mut, IntoIterator for &mut — outside verus!

Tooling

Use veracity-review-verus-style to reorder a file and insert the TOC automatically:

veracity-review-verus-style -r -c ~/projects/APAS-VERUS -d src/ChapNN/File.rs

Flags:

  • -r / --reorder — reorder items inside verus!{} to match the standard and insert the TOC
  • -c — project root (paths are relative to this)
  • -d — the file to process
  • -n — dry-run: preview changes without writing to disk

Read the full file on GitHub · 84 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. 12d ago First seen · 84 lines · 795 tokens per session scan A 0555b3598c8b

Subscribe to this mod's changes

table-of-contents-standard is a cursor rule published in the GitHub repository briangmilnes/APAS-VERUS (10 stars, last pushed 1mo ago), licensed MIT. It adds 795 tokens to every session, about $0.0040 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-08-31.