with-std-lib

A project rule for fixing import errors and warnings in Deno, a JavaScript and TypeScript runtime. It explains how to install packages and use the project's import map.

In plain words
What is it for?
Use it when adding dependencies or fixing Deno lint and import problems.
Why use it?
It helps avoid unsupported package URLs, incorrect import names, and unresolved Deno dependencies.

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-mcp-manager/with-std-lib
Clone the repo
git clone --depth 1 https://github.com/zackiles/cursor-mcp-manager

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 100% copy Near-identical to another mod 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-std-lib 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

This is a copy

100% identical to with-deno-stdlib — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.cursor/rules/local/with-std-lib.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-std-lib is a cursor rule published in the GitHub repository zackiles/cursor-mcp-manager (3 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. It is 100% identical to with-deno-stdlib, differing in 0 lines, and is treated as a copy.