scripts-naming

A set of naming rules for package scripts, Makefile commands, and files in scripts folders. It defines allowed formats, words, environments, and lifecycle names.

In plain words
What is it for?
Use it when creating or renaming npm or Bun scripts, Make targets, or TypeScript and shell files under scripts directories.
Why use it?
It prevents similar commands and files from being named inconsistently. That makes project tasks easier to find and reduces confusion when adding or renaming them.

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/docs-plus/docs.plus/scripts-naming
Clone the repo
git clone --depth 1 https://github.com/docs-plus/docs.plus

Made for: Cursor.

Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 1,354 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.00000 $0.01354
Opus 5 $0.00000 $0.00677
Sonnet 5 $0.00000 $0.00271
Haiku 4.5 $0.00000 $0.00135

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

Security

Grade A, and why

scripts-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 2d 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/scripts-naming.mdc · 62 lines

How it starts

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

Scripts Naming Convention

Authoritative source: .cursor/docs/scripts-naming-convention.md. Read it before adding or renaming a script, Make target, or file under scripts/.

Grammar

  • npm/Bun script keys: <verb> | <verb>:<axis> | <verb>:<scope>:<modifier> | <tool>:<sub> | pre<verb> / post<verb>.
  • Make targets: <verb> | <verb>-<env>-<scope>-<modifier> | <scope>-<verb> (only for grouped families: infra-* verb members, swarm-* run-mode members). Kebab-case, no colons.
  • Script files in scripts/ and packages/<pkg>/scripts/: kebab-case, verb-first when action-oriented, .ts for new scripts, .sh only when shell is genuinely required, .mjs only for JS-tooling configs.

Closed vocabularies

  • Modifiers: :fix, :ci, :watch, :coverage, :dry.
  • Environments: :prod, :stage, :dev.
  • Scopes: :unit, :e2e, :webapp, :admin, :backend, :rest, :ws, :worker, :styles, :family, :screenshots, :nested-to-flat.
  • Lifecycle hooks: prepare, postinstall, pretest, prepack, prepublishOnly, plus generic pre<verb>/post<verb> over the reserved verb list. Do not invent new ones (no prebuild, postlint).

Banned

  • Suffixes: :all, :full, :everything, :complete, :local.
  • Verbs: validate (use check or <verb>:ci), serve (use start), watch as a bare verb (use <verb>:watch), audit, compile (use build), all.
  • Filename traps in scripts/: validate-*, *-emergency*, fix-production-*, temp-*, quick-*, wip-*, final-*, v2-*, date prefixes, author prefixes. These are exactly the names that filled scripts/archive/.

Documented exceptions and corner cases

  • @docs.plus/hocuspocus has no bare dev (service trio: dev:rest / dev:ws / dev:worker).
  • Webapp start runtime asymmetry: bare start runs Node; start:prod / start:stage run Bun.
  • migrate:nested-to-flat[:dry] — kebab-cased migration scope + closed-vocab dry modifier.
  • Single-tool wrapper workspaces (e.g. @docs.plus/supabase_back) use bare verbs; the workspace name encodes the tool prefix.
  • Husky hook filenames (pre-commit.sh, pre-push.sh, commit-msg.sh, post-merge.sh) and npm-lifecycle script files (prepack.ts, preflight.ts) keep their upstream-mandated names.
  • Make's env axis includes local (e.g. make dev-local) — legitimate, not subject to the npm-side :local ban.
  • swarm-* is a grouped Make family whose members are document-swarm run modes (swarm-demo, swarm-stress), not verbs — mirrors the @docs.plus/document-swarm run --mode CLI.

Read the full file on GitHub · 62 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. 2d ago First seen · 62 lines · 1,354 tokens per session scan A e16d79e6595d

Subscribe to this mod's changes

scripts-naming is a cursor rule published in the GitHub repository docs-plus/docs.plus (88 stars, last pushed 4d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,354 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-08-30.

Related

Other cursor rules, from other repositories

rule-generating-agent

This rule is essential for maintaining consistency and quality in rule creation across the codebase. It must be followed whenever: (1) A user requests a new rule to be created, (2) An existing rule needs modification, (3) The user asks to remember certain behaviors or patterns, or (4) Future behavior changes are…

appboypov/pew-pew-cli · 1,197 tokens

ts-dependency-management-agent

Apply when adding, removing, or managing dependencies, or when structuring code modules in a TypeScript project, especially for CLIs. Promotes minimizing external dependencies, using lockfiles (package-lock.json), vetting dependencies, following SOLID principles for modular code, and using dependency injection for…

appboypov/pew-pew-cli · 62 tokens

ts-cli-command-definition-agent

Apply when defining or modifying CLI commands, subcommands, and options in a TypeScript project, particularly when using libraries like Commander.js or Yargs. Ensures use of robust parsing, POSIX-style flags, descriptive names, clear argument notation, and separation of parsing from implementation logic.

appboypov/pew-pew-cli · 57 tokens

angular-20

This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.

angular/angular · 0 tokens

dev-standard

Apache Superset development standards and guidelines for Cursor IDE.

apache/superset · 1,147 tokens

typescript

Changes to these high-fan-out internals can affect every message, delta, element, or rerun. Keep work in them minimal, and benchmark changes with representative stress-test apps.

streamlit/streamlit · 4,669 tokens