APAS-VERUS: Instructions file for Claude Code

CLAUDE.md

APAS-VERUS CLAUDE.md is an instructions file for Claude Code from briangmilnes/APAS-VERUS. It costs 14,278 tokens per session, scanned A, original, MIT.

A project instruction file for an AI coding assistant working on APAS-VERUS, a Rust project that proves algorithms correct with the Verus verification framework. It defines project rules, standards, terminology, and roles.

In plain words
What is it for?
It helps with modifying and verifying APAS-VERUS code, especially when the task depends on project standards or formal proofs.
Why use it?
It gives the assistant one reference for the project's conventions and verification requirements, reducing mistakes caused by skipped or inconsistent rules.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

This is briangmilnes/APAS-VERUS's own configuration. It tells Claude Code how to work on APAS-VERUS itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything APAS-VERUS configures →

Reuse

Borrowing it

Nothing to install: this file belongs to briangmilnes/APAS-VERUS. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/briangmilnes/APAS-VERUS/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/briangmilnes/APAS-VERUS

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 APAS-VERUS CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/briangmilnes/apas-verus/claude-md/github.svg)](https://agentmods.dev/instructions/briangmilnes/apas-verus/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/briangmilnes/apas-verus/claude-md"><img src="https://agentmods.dev/badge/instructions/briangmilnes/apas-verus/claude-md/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 APAS-VERUS CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/briangmilnes/apas-verus/claude-md"><img src="https://agentmods.dev/badge/instructions/briangmilnes/apas-verus/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14,278 This file is loaded in full into every session.
When invoked 14,278 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.14278 $0.14278
Opus 5.5 $0.05711 $0.05711
Sonnet 5.5 $0.02856 $0.02856
Haiku 4.5 $0.01428 $0.01428

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

Security

Grade A, and why

APAS-VERUS CLAUDE.md 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.

CLAUDE.md · 1,100 lines

How it starts

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

CLAUDE.md — APAS-VERUS Project Rules

This file is the single source of truth for AI assistant behavior on this project. It was synthesized from .cursor/rules/ (80+ rule files).


Project Overview

APAS-VERUS formally verifies all algorithms from "A Practical Approach to Data Structures" (APAS, by Guy Blelloch) using Verus, a Rust verification framework. The primary objective is to get code to verify (prove) with Verus.

  • Read ALL standards before writing or modifying any code. At the start of every task, read every file in src/standards/. They total ~6200 lines (~54K tokens) — under 6% of your 1M context. There is no excuse for skipping them. If a prompt says "pay close attention to standard N", that standard is especially critical for your task, but you must still read all of them. Agents that skip standards write code that violates project conventions and has to be reverted — this has happened repeatedly and wastes rounds.

Computational Thinking and Vocabulary

You are to apply computational thinking in your work. Including experimental thinking: computer science is an experimental science.

@/projects/ComputAItionalThinking/ComputAItionalThinkingRules.md @/projects/ComputAItionalThinking/ExperAImentalThinking.md

And you are not to use hackerish language. If in doubt, don't metaphor, use the vocabulary worked out below.

@~/projects/ComputAItionalThinking/ComputAItionalThinkingVocabulary.md

Standards Index

# Standard Read when...
1 mod_standard.rs Creating or restructuring a module
2 view_standard.rs Adding or modifying a View impl
3 deep_view_standard.rs Adding or modifying a DeepView impl
4 spec_wf_standard.rs Adding or modifying spec_wf predicates
5 spec_naming_convention.rs Naming any spec function
6 multi_struct_standard.rs Working with tree/enum types (multiple structs + enum)
7 partial_eq_eq_clone_standard.rs Adding PartialEq, Eq, or Clone impls
8 using_closures_standard.rs Writing code with closures, Fn, filter, map, tabulate, join
9 total_order_standard.rs Writing ordering specs (min, max, find, rank, sorted)
10 iterators_standard.rs Adding iterators to a collection
11 wrapping_iterators_standard.rs Wrapping an existing iterator
12 table_of_contents_standard.rs Reordering sections in a file
13 mut_standard.rs Working with &mut parameters in Verus
14 arc_usage_standard.rs Using Arc in verified code
15 hfscheduler_standard.rs Using HFScheduler for fork-join parallelism
16 toplevel_coarse_rwlocks_for_mt_modules.rs Writing Mt modules with RwLock
17 tsm_standard.rs Thread-safe memory patterns
18 finite_sets_standard.rs Working with finite sets in specs
19 helper_function_placement_standard.rs Placing helpers in traits vs. free functions
20 using_rand_standard.rs Using randomness in verified code
21 using_hashmap_standard.rs Replacing std::collections::HashMap with verified types
22 capacity_bounds_standard.rs Integer max bounds in requires for insert/push/resize
23 mt_type_bounds_standard.rs Mt trait aliases (StTInMtT, MtKey, MtReduceFn, MtPred, MtMapFn, etc.)
24 no_unsafe_standard.rs No unsafe — no unsafe impl, unsafe fn, or unsafe {} blocks
  • Run scripts/validate.sh after making changes
  • Fix verification errors before moving on
  • NEVER run linters, formatters, or auto-fix tools. No cargo fix, no rustfmt, no cargo clippy --fix, no auto-formatting of any kind. These tools revert proof work and destroy hours of edits. Only run scripts/validate.sh, scripts/rtt.sh, and scripts/ptt.sh. If a pre-commit hook runs a linter, investigate and disable it — do NOT let it rewrite source files.
  • Prefer verified code over unverified code, even if it requires restructuring
  • Never sequentialize parallel files: Mt (multi-threaded) implementations must remain parallel. Do not replace threaded code with sequential loops to satisfy the verifier.
  • Never propose serializing Mt algorithms without exhausting all options for verified parallelism AND getting explicit user approval. The default is no.
  • Nothing is permanently blocked. We can prove ALL of APAS-VERUS. Do not label any chapter, file, or proof obligation as "permanently" unverifiable. If a proof is hard, say it is hard — not that it is impossible. Every assume, every external_body on algorithmic logic, every weak spec is a target, not a fixture.
  • Skip Example and Problem files unless explicitly assigned. Files named Example*.rs or Problem*.rs are textbook demos or problem sets, not algorithmic implementations. Do not spend time proving holes in them unless the user or your prompt explicitly directs you to. Do not include them in hole counts or proof targets. The proof effort belongs on the real algorithm files.
  • Algorithm files CAN get RTTs. Files named Algorithm*.rs (e.g., Algorithm21_1.rs) contain real executable code and should get runtime tests. Example and Problem files should NOT get RTTs.

Read the full file on GitHub · 1,100 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 · +20 lines · +217 tokens per session e9ea2c90f79d
  2. 1mo ago First seen · 1,080 lines · 14,061 tokens per session scan A 71a238f72d36

Subscribe to this mod's changes

APAS-VERUS CLAUDE.md is an instructions file published in the GitHub repository briangmilnes/APAS-VERUS (10 stars, last pushed 1mo ago), licensed MIT. It adds 14,278 tokens to every session, about $0.0571 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-03.

Related

Other instructions, from other repositories