with-deno-stdlib

A set of rules for fixing import errors and warnings in Deno, a JavaScript and TypeScript runtime. It explains how to use Deno's package configuration and standard-library imports instead of direct URL or registry imports.

In plain words
What is it for?
Use it when adding or repairing Deno dependencies, checking import maps, and debugging standard-library package resolution.
Why use it?
It helps avoid inconsistent dependency references and import warnings. The rules also provide commands for checking whether packages are installed locally or loaded remotely.

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/zackiles/cursor-config/with-deno-stdlib
Clone the repo
git clone --depth 1 https://github.com/zackiles/cursor-config

Made for: Cursor.

Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 520 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.00010 $0.00520
Opus 5 $0.00005 $0.00260
Sonnet 5 $0.00002 $0.00104
Haiku 4.5 $0.00001 $0.00052

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

Security

Grade A, and why

with-deno-stdlib 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.cursor/rules/global/with-deno-stdlib.mdc · 28 lines

What it actually says

Steps To Resolving Deno Lint Errors

Follow these step by step, and in the order they're shown until the issue is resolved:

  1. Check deno.jsonc Imports: import map shows installed libraries in format of "@std/fs": "jsr:@std/fs@1". If not installed, deno add {jsr:@std/fs@1} and import it with 'import { expandGlob } from 'std/fs@1'`.
  2. Libraries in @std/ with /unstable-* in name have to be imported explicitly:
  import { multiPromptSelect } from '@std/cli/unstable-prompt-select`
  1. NO imports from URLs or registry paths. Deno add install instead and use the short name. Examples:
  • GOOD: import { parse } '@std/jsonc'
  • BAD: import { parse } 'jsr:@std/jsonc'
  • GOOD: import { ulid } '@std/ulid'
  • BAD: import { ulid } 'jsr:@std/ulid'
  • GOOD: import * as jose from 'jose'
  • BAD: import * as jose from 'npm:jose'
  1. Use Deno Tools to Debug the Issue:
  • LOCAL JSR package: deno info --json | jq '.modules[] | select((.specifier | tostring) | test("^@std/cli$"))'
  • REMOTE JSR package: deno info --json | jq '.modules[] | select((.specifier | tostring) | test("^(jsr:|https://jsr.io/)@std/cli"))'
  • LOCAL or REMOTE JSR package: deno info --json | jq '.modules[] | select((.specifier | tostring) | test("(@std/cli|jsr:@std/cli|jsr.io/@std/cli)"))'
  • LOCAL Deno file: deno info {example_name}.ts
  • LOCAL NPM package: deno types npm:your-lib
  • UNKNOWN location of package: `deno info --json | jq '.modules[] | select((.specifier | tostring) | test('package alias'))'
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 · 28 lines · 10 tokens per session scan A cc64ef43d515

Subscribe to this mod's changes

with-deno-stdlib is a cursor rule published in the GitHub repository zackiles/cursor-config (17 stars, last pushed 1y ago), licensed MIT. It adds 10 tokens to every session and 520 once invoked, about $0.0001 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.