ess-shell-file-naming

ess-shell-file-naming is a cursor rule for Cursor from CiscoDevNet/essentials. It costs 546 tokens per session, scanned A, original, Apache-2.0.

A naming and layout rule for shell scripts and their self-tests. Shell scripts are command-line programs, and the rule uses verb-first kebab-case for commands and a matching test file beside each script.

In plain words
What is it for?
It is for naming shell scripts, naming their tests, and organizing each script with its self-test.
Why use it?
It makes scripts easier to identify and keeps their tests easy to find without mixing several naming styles.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: positional $N argument.

Good fit It is for naming shell scripts, naming their tests, and organizing each script with its self-test.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/ciscodevnet/essentials/ess-shell-file-naming
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/CiscoDevNet/essentials

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 ess-shell-file-naming

README.md
[![agentmods](https://agentmods.dev/badge/rules/ciscodevnet/essentials/ess-shell-file-naming/github.svg)](https://agentmods.dev/rules/ciscodevnet/essentials/ess-shell-file-naming)
Your own site
<a href="https://agentmods.dev/rules/ciscodevnet/essentials/ess-shell-file-naming"><img src="https://agentmods.dev/badge/rules/ciscodevnet/essentials/ess-shell-file-naming/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 ess-shell-file-naming

Your own site · 80×15
<a href="https://agentmods.dev/rules/ciscodevnet/essentials/ess-shell-file-naming"><img src="https://agentmods.dev/badge/rules/ciscodevnet/essentials/ess-shell-file-naming.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 546 This file is loaded in full into every session.
When invoked 546 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.00546 $0.00546
Opus 5.5 $0.00218 $0.00218
Sonnet 5.5 $0.00109 $0.00109
Haiku 4.5 $0.00055 $0.00055

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

Security

Grade A, and why

ess-shell-file-naming 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/ess-shell-file-naming.mdc · 53 lines

What it actually says

Shell File Naming

Shell has no standard file layout, so follow one convention everywhere.

File Case Example
Script a person or tool runs kebab-case, verb first find-review-requests.sh, safe-push.sh
Its self-test test_ + the script name in snake_case test_find_review_requests.sh
  • Kebab-case for scripts. A script is a command, and commands read as kebab-case (git-subtree, apt-get). Do not add snake_case scripts beside kebab-case ones.
  • Descriptive names, not run.sh or main.sh. $0, error messages, ps, and editor tabs show only the file name, so it must say what the script does.
  • test_ snake_case for tests. Tests are never typed as commands, and the prefix matches pytest's test_*.py, so one search finds every test in the repo.

Co-locate the test with its script

When a script has a test, give the pair its own directory, named after the script:

scripts/
├── npx-skills-add/
│   ├── npx-skills-add.sh
│   └── test_npx_skills_add.sh
└── apm-lock-check-ignored/
    ├── apm-lock-check-ignored.sh
    └── test_apm_lock_check_ignored.sh

Several scripts that work together and share one directory, such as a skill's scripts/, keep each test next to its script in that directory instead.

The test finds its script relative to itself, never through the working directory:

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
"${SCRIPT_DIR}/find-review-requests.sh" --repo acme/widgets

Renaming

Rename with git mv and rename the test to match. Then search for the old name (rg -n 'old-name\.sh') and update every caller, doc, usage comment, and Makefile or hook entry. When rewriting references in bulk, match whole file names, for example (?<![\w-])old_name\.sh, so the script's new name is not spliced into test_old_name.sh.

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 · 53 lines · 546 tokens per session scan A f13ee1e0e3ed

Subscribe to this mod's changes

ess-shell-file-naming is a cursor rule published in the GitHub repository CiscoDevNet/essentials (7 stars, last pushed 8d ago), licensed Apache-2.0. It adds 546 tokens to every session, about $0.0022 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-11-19.

Related

ess-shell-file-naming compared with cursor rules from other repositories

ess-shell-file-naming next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ess-shell-file-namingCiscoDevNet/essentialsCursor rule78d agoApache-2.0A546Cursor
dashboard-testingAutomattic/wp-calypsoCursor rule13kyesterdayGPL-2.0A0Cursor
solarStahlwalker/framework-solarCursor rule212d agoMITA0Cursor
no-barrel-filesprisma/ormCursor rule48ktodayApache-2.0A0Cursor
explicit-opt-in-over-diagnosticsprisma/ormCursor rule48ktodayApache-2.0A730Cursor
no-backward-compatibilityprisma/ormCursor rule48ktodayApache-2.0A0Cursor
test-packagesprisma/ormCursor rule48ktodayApache-2.0A5Cursor