deno-knowledge-patch
Deno changes since training cutoff (latest: 2.7.0) — Deno.spawn(), permission sets, deno audit, lint plugin API, QUIC, OpenTelemetry. Load before working with Deno.
What this skill does
# Deno Knowledge Patch
Claude Opus 4.6 knows Deno through 1.x. This skill provides features from Deno 2.2 (2025-02-19) through 2.7 (2026-02-25).
## Index
| Topic | Reference | Key features |
|---|---|---|
| Permissions | [references/permissions.md](references/permissions.md) | Permission sets in config, `--ignore-read`/`--ignore-env`, subdomain wildcards, CIDR |
| CLI commands | [references/cli-commands.md](references/cli-commands.md) | `dx`, `deno bundle`, `deno audit`, `deno create`, `deno compile` enhancements |
| Testing & benchmarks | [references/testing.md](references/testing.md) | Setup/teardown hooks, coverage auto-report, bench iteration control |
| Package management | [references/package-and-config.md](references/package-and-config.md) | `links`, `minimumDependencyAge`, `jsr:` in package.json, `--npm`/`--jsr` flags |
| Developer tooling | [references/developer-tooling.md](references/developer-tooling.md) | Lint plugin API, `deno fmt` tagged templates, new lint rules |
| Runtime APIs | [references/runtime-apis.md](references/runtime-apis.md) | `Deno.spawn()`, `FsFile.tryLock()`, Brotli, SHA3, OTel, WebSocket headers, QUIC |
| Module system & compat | [references/module-system.md](references/module-system.md) | Import text/bytes, Wasm source phase, `--preload`, `DENO_COMPAT=1`, node globals |
---
## Quick Reference
### Permission sets (2.5+)
Define named permission sets in `deno.json`:
```json
{
"permissions": {
"default": {
"read": [
"./data"
],
"env": true
},
"dev": {
"read": true,
"write": true,
"net": true
}
}
}
```
```bash
deno run -P main.ts # uses "default" set
deno run -P=dev main.ts # uses "dev" set
```
### Ignore permissions (2.6+)
Return `NotFound`/`undefined` instead of throwing for denied resources:
```bash
deno run --ignore-read=/etc --ignore-env=AWS_SECRET_KEY main.ts
```
---
### OpenTelemetry (stable since 2.4)
```bash
OTEL_DENO=1 deno --allow-net server.ts
```
Auto-instruments `console.log`, `Deno.serve`, `fetch`. Custom spans via `npm:@opentelemetry/api`.
---
### Key new CLI commands
| Command | Version | Purpose |
|---|---|---|
| `dx` / `deno x` | 2.6 | Run package binaries (like `npx`) |
| `deno bundle` | 2.4 | esbuild-based bundler (restored) |
| `deno audit` | 2.6 | Scan deps for CVEs |
| `deno create` | 2.7 | Scaffold from templates |
| `deno approve-scripts` | 2.6 | Approve npm lifecycle scripts |
---
### Test hooks (2.5+)
```ts
Deno.test.beforeAll(() => { /* once before all tests */ });
Deno.test.beforeEach(() => { /* before each test */ });
Deno.test.afterEach(() => { /* after each test */ });
Deno.test.afterAll(() => { /* once after all tests */ });
```
---
### `Deno.spawn()` subprocess shorthands (2.7, unstable)
```ts
const child = Deno.spawn("deno", ["fmt", "--check"], { stdout: "inherit" });
const output = await Deno.spawnAndWait("git", ["status"]);
const result = Deno.spawnAndWaitSync("echo", ["done"]);
```
---
### Import text and bytes (2.4+, unstable)
```ts
import message from "./hello.txt" with { type: "text" }; // string
import bytes from "./image.png" with { type: "bytes" }; // Uint8Array
```
### Wasm source phase imports (2.6+)
```ts
import source addModule from "./add.wasm";
const { add } = WebAssembly.instantiate(addModule).exports;
```
---
### Node.js compatibility
| Feature | Version |
|---|---|
| `DENO_COMPAT=1` (enables all compat flags) | 2.4 |
| `Buffer`, `global`, `setImmediate` always available | 2.4 |
| `@types/node` included by default | 2.6 |
| `jsr:` scheme in `package.json` | 2.7 |
| `package.json` `overrides` field supported | 2.7 |
---
### Package linking (formerly `patch`)
```json
{ "links": ["../path/to/local_npm_package"] }
```
Requires `"nodeModulesDir": "auto"` or `"manual"`. Renamed from `"patch"` in 2.4.
---
### Coverage auto-report (2.3+)
`deno test --coverage` now auto-generates the report. Ignore comments:
```ts
// deno-coverage-ignore — single line
// deno-coverage-ignore-start — block start
// deno-coverage-ignore-stop — block end
// deno-coverage-ignore-file — entire file
```
---
### Lint plugin API (2.2+, unstable)
```json
{ "lint": { "plugins": ["./my-plugin.ts", "jsr:@scope/plugin"] } }
```
```ts
export default {
name: "my-plugin",
rules: {
"no-foo": {
create(context) {
return {
VariableDeclarator(node) {
if (node.id.type === "Identifier" && node.id.name === "foo") {
context.report({ node, message: "Don't use foo" });
}
},
};
},
},
},
} satisfies Deno.lint.Plugin;
```
---
## Reference Files
| File | Contents |
|---|---|
| [permissions.md](references/permissions.md) | Permission sets, `--ignore-read`/`--ignore-env`, subdomain wildcards, CIDR, `--deny-import` |
| [cli-commands.md](references/cli-commands.md) | `dx`, `deno bundle`, `deno audit`, `deno create`, `deno compile`, `deno install --compile`, `deno approve-scripts`, `deno task` |
| [testing.md](references/testing.md) | Test hooks, coverage auto-report and ignore comments, bench iteration control |
| [package-and-config.md](references/package-and-config.md) | `links`, `minimumDependencyAge`, `jsr:` in package.json, `overrides`, `--npm`/`--jsr` flags, `"publish": false` |
| [developer-tooling.md](references/developer-tooling.md) | Lint plugin API, `deno fmt` tagged templates, `deno check` no-args, new lint rules |
| [runtime-apis.md](references/runtime-apis.md) | `Deno.spawn()`, `FsFile.tryLock()`, Brotli, SHA3, OTel, ChildProcess methods, `Deno.bundle()` API, WebSocket headers, QUIC/WebTransport |
| [module-system.md](references/module-system.md) | Import text/bytes, Wasm source phase imports, `--preload`, `--require`, `DENO_COMPAT=1`, node globals, `@types/node` |
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.