cli-standards

cli-standards is a cursor rule for Cursor from jim-schilling/splurge-ai-rules. It costs 4 tokens per session (299 once invoked), scanned A, original, MIT.

A set of rules for command-line programs, which are tools run from a terminal. It defines how they accept input, read settings, format output, report errors, and return status codes.

In plain words
What is it for?
Use it when building or reviewing a terminal command, especially one that reads stdin or files, uses environment variables, outputs tables or JSON, or handles sensitive values.
Why use it?
It makes command-line tools predictable to use, script, and connect to other programs without mixing human messages into machine-readable output.

Cursor rule for Cursor

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.

agentmods
npx agentmods add rules/jim-schilling/splurge-ai-rules/cli-standards
Clone the repo
git clone --depth 1 https://github.com/jim-schilling/splurge-ai-rules

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 cli-standards

README.md
[![agentmods](https://agentmods.dev/badge/rules/jim-schilling/splurge-ai-rules/cli-standards.svg)](https://agentmods.dev/rules/jim-schilling/splurge-ai-rules/cli-standards)
Your own site
<a href="https://agentmods.dev/rules/jim-schilling/splurge-ai-rules/cli-standards"><img src="https://agentmods.dev/badge/rules/jim-schilling/splurge-ai-rules/cli-standards.svg" alt="Measured on agentmods" height="20"></a>
Per session 4 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 299 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00004 $0.00299
Opus 5 $0.00002 $0.00150
Sonnet 5 $0.00001 $0.00060
Haiku 4.5 $0.00000 $0.00030

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

Security

Grade A, and why

cli-standards 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/cli-standards.mdc · 23 lines

What it actually says

  • MUST accept text input via stdin, arguments or files.
  • May accept environment variables for configuration, unless user opts out.
  • Sensitive data must use environment variables.
  • Environment variable names MUST use a project prefix [A-Z][A-Z0-9_]*_ (e.g., SPLURGE_DSV_).
  • Provide --output-format {table,json, and/or ndjson} (default: table).
  • When reading from stdin, a file path of - MUST mean "read from stdin".
  • Stdout and stderr MUST be UTF-8 encoded without BOM.
  • Exit codes: 0 success; 1 generic error; 2 invalid arguments; 130 interrupted (Ctrl+C).
  • Flags map by prefix + uppercasing + hyphens→underscores (e.g., --api-token → SPLURGE_DSV_API_TOKEN).
  • JSON output formats:
    • --output-format json: Output complete JSON arrays, one per line
    • --output-format ndjson: Output one JSON object per line (newline-delimited)
    • Never mix JSON with other text on stdout
  • If an env var is referenced but missing, fail fast: "Missing required environment variable: ".
  • Redact sensitive data for output, logging, and errors.
  • Document defaults in --help output.
  • CLI arguments override environment variables.
  • Environment variables override built-in defaults.
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 · 23 lines · 4 tokens per session scan A 8e79bd8294b3

Subscribe to this mod's changes

cli-standards is a cursor rule published in the GitHub repository jim-schilling/splurge-ai-rules (3 stars, last pushed 11mo ago), licensed MIT. It adds 4 tokens to every session and 299 once invoked, about $0.0000 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.