general

General coding rules for this workspace, including configuration-file safety, package-manager preference, development-server handling, GitHub usage, and where project rules should be edited.

In plain words
What is it for?
Use them during routine development to choose Yarn, reuse or clean up dev servers, run GitHub tasks correctly, and update source rules in the right location.
Why use it?
They prevent accidental changes to environment files, unnecessary running servers, and edits to generated instruction files.

Cursor rule

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/transloadit/node-sdk/general
Clone the repo
git clone --depth 1 https://github.com/transloadit/node-sdk
Per session 395 This file is loaded in full into every session.
When invoked 395 The same file — it is already loaded in full.
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.00395 $0.00395
Opus 5 $0.00198 $0.00198
Sonnet 5 $0.00079 $0.00079
Haiku 4.5 $0.00040 $0.00040

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

Security

Grade A, and why

general 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.

.ai/rules/general.mdc · 21 lines

What it actually says

General:

  • Do not touch .env files!
  • Favor Yarn (4) over npm
  • Before starting a dev server, first check whether a suitable one is already running and use that if possible. If none is available and local browser/e2e validation needs one, start the documented dev server, capture its log path/pid, and stop it when you are done unless the user asked to keep it running.
  • Avoid blocking the conversation with terminal commands. For example: A) most of my git commands run through pagers, so pipe their output to cat to avoid blocking the terminal. B) You can use tail for logs, but be smart and use -n instead of -f, or the conversation will block
  • Use the gh tool to interact with GitHub (search/view an Issue, create a PR).
  • When using fetch() directly, check response.ok before parsing the body, and surface non-2xx responses as errors with enough context for debugging.
  • Treat AGENTS.md and CLAUDE.md as generated artifacts (single source of truth is .ai/rules/), managed by ~/code/content/_scripts/alphalib-sync.ts; never edit those files directly. If you'd like to make a modification, do it here in .ai/rules/ and the script will ensure proper preservation and syncing. If you need a rule specific to this repo, add it to .ai/rules/repo.mdc.
  • All new files are to be in TypeScript. Even if someone suggests: make this new foo3 feature, model it after foo1.js, create: foo3.ts. Chances are, a foo2.ts already exist that you can take a look at also for inspiration.
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 · 21 lines · 395 tokens per session scan A b346cd6b66f2

Subscribe to this mod's changes

general is a cursor rule published in the GitHub repository transloadit/node-sdk (73 stars, last pushed 2d ago), licensed MIT. It adds 395 tokens to every session, about $0.0020 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-30.