meaningful-return-names

meaningful-return-names is a cursor rule for Cursor from briangmilnes/APAS-VERUS. It costs 0 tokens per session (404 once invoked), scanned A, original, MIT.

A naming rule for choosing return values and variables that describe what they contain instead of using generic names such as “result” or “data.”

In plain words
What is it for?
Use it when writing Rust or Verus functions, especially code with named return values or postconditions.
Why use it?
Meaningful names make code and formal specifications easier to read and understand.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when writing Rust or Verus functions, especially code with named return values or postconditions.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/briangmilnes/apas-verus/meaningful-return-names
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 meaningful-return-names

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

Your own site · 80×15
<a href="https://agentmods.dev/rules/briangmilnes/apas-verus/meaningful-return-names"><img src="https://agentmods.dev/badge/rules/briangmilnes/apas-verus/meaningful-return-names.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 404 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.
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.00000 $0.00404
Opus 5 $0.00000 $0.00202
Sonnet 5 $0.00000 $0.00081
Haiku 4.5 $0.00000 $0.00040

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

Security

Grade A, and why

meaningful-return-names 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 5d 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/meaningful-return-names.mdc · 50 lines

What it actually says

Meaningful Names

Name return values and variables meaningfully. Avoid generic names that convey no information about purpose.

Bad Names

# Name Why it's bad
1 result Every function returns a result
2 target Almost everything is a target of something
3 value / val Almost everything is a value
4 data Almost everything is data
5 temp / tmp Says nothing about what it holds
6 ret Just means "return" — as generic as result

Good Return Names

fn n_plus(&self, v: &V) -> (out_neighbors: SetStEph<V>)
fn size(&self) -> (count: N)
fn empty() -> (graph: Self)
fn mem(&self, x: &T) -> (contains: B)

Bad Return Names

fn n_plus(&self, v: &V) -> (result: SetStEph<V>)
fn size(&self) -> (result: N)
fn empty() -> (result: Self)
fn mem(&self, x: &T) -> (result: B)

Exception

Files in src/experiments/ may use generic names - these are throwaway explorations.

Why

  1. Named returns appear in ensures clauses - meaningful names make specs readable
  2. ensures out_neighbors@ == self.spec_n_plus(v@) is clearer than ensures result@ == ...
  3. The name documents what the function returns without reading the body
  4. Generic names in ghost variables make proof blocks harder to follow
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. 5d ago First seen · 50 lines · 0 tokens per session scan A 4c4404f092a4

Subscribe to this mod's changes

meaningful-return-names is a cursor rule published in the GitHub repository briangmilnes/APAS-VERUS (10 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 404 tokens. 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.