deno
Assists with building secure JavaScript and TypeScript applications using the Deno runtime. Use when creating servers, CLI tools, or scripts with Deno's…
от TerminalSkills★ 221 звезда на GitHub
Установить deno в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Deno
Overview
Deno is a secure JavaScript/TypeScript runtime built on V8. It runs TypeScript natively without config, is secure by default (explicit permissions required), and is fully compatible with npm packages. Deno 2 adds backwards compatibility with Node.js APIs and package.json, making it a viable drop-in replacement for many Node.js projects. Built-in tooling includes a formatter, linter, test runner, and compiler.
Instructions
- When installing, prefer a package manager:
brew install deno(macOS/Linux),winget install DenoLand.Denoorscoop install deno(Windows),npm install -g deno(any OS; starts a little slower). Check withdeno --version(2.9.x at the time of writing) and update withdeno upgrade. Start a project withdeno init. - When creating servers, use
Deno.serve()for high-performance HTTP handling with Web Standards Request/Response, and enable parallel workers withdeno serve --parallelfor multi-core utilization. - When configuring security, specify permissions explicitly (
--allow-read,--allow-net,--allow-env) scoped to specific paths, hosts, or variable names. Never deploy with--allow-all. - When managing dependencies, use JSR (
jsr:) for versioned, type-checked packages,npm:specifier for npm packages, and configure import maps indeno.jsonfor clean paths. - When writing tests, use
Deno.test()with@std/assertassertions,@std/testingfor mocking, anddeno test --coveragefor coverage reports. Deno's sanitizers detect resource leaks automatically. - When building CLI tools, use
deno compileto produce standalone executables that cross-compile for Linux, macOS, and Windows with no runtime dependency. - When deploying, use the current Deno Deploy (console.deno.com,
deno deploycommand).deployctland dash.deno.com belong to the older Deploy Classic. Deno Deploy supports cron and connected databases; KV queues are not supported on the new platform. - When using Deno KV or
Deno.cron()locally, Deno 2 still gates them behind--unstable-kvand--unstable-cron(or"unstable": ["kv", "cron"]indeno.json). Structure keys hierarchically (["users", id, "profile"]), useatomic()for transactions, and configure TTL withexpireInfor automatic expiration.
Permissions Model
Deno is secure by default — all external access must be explicitly granted:
| Flag | Grants access to |
|---|---|
--allow-net |
Network (fetch, listen) |
--allow-read |
File system reads |
--allow-write |
File system writes |
--allow-env |
Environment variables |
--allow-run |
Subprocess execution |
--allow-ffi |
Native libraries |
--allow-all or -A |
Everything (avoid in prod) |
Fine-grained permissions:
deno run --allow-net=api.stripe.com --allow-read=./data main.ts
deno run --allow-read --deny-read=/etc main.ts # --deny-* overrides --allow-*
Modules in the initial static import graph load without --allow-read or --allow-net; permissions apply to what the code does once it runs. Without a flag Deno prompts in a terminal, or fails in CI, so grant the exact scope in tasks.
npm Compatibility
Import npm packages directly with the npm: prefix:
import express from "npm:express@5";
import { z } from "npm:zod@4";
const app = express();
app.get("/", (_req, res) => {
res.json({ message: "Hello from Deno + Express!" });
});
app.listen(3000);
Or declare in deno.json:
{
"imports": {
"express": "npm:express@^5",
"zod": "npm:zod@^4"
}
}
HTTP Server
// Built-in Deno.serve — no imports needed
Deno.serve({ port: 3000 }, async (req: Request) => {
const url = new URL(req.url);
if (url.pathname === "/health") {
return Response.json({ status: "ok" });
}
if (req.method === "POST" && url.pathname === "/echo") {
const body = await req.json();
return Response.json(body);
}
return new Response("Not Found", { status: 404 });
});
Built-in Test Runner
import { assertEquals, assertThrows } from "jsr:@std/assert";
Deno.test("add works correctly", () => {
assertEquals(1 + 2, 3);
});
Deno.test({
name: "async fetch test",
permissions: { net: true },
async fn() {
const res = await fetch("https://httpbin.org/get");
assertEquals(res.status, 200);
},
});
deno test # Run all tests
deno test --watch # Watch mode
deno test --coverage=coverage/ # With coverage
Built-in Tooling
deno fmt # Format code (Prettier-compatible)
deno lint # Lint code
deno check main.ts # Type-check without running
deno compile main.ts # Compile to standalone binary
deno info main.ts # Show module dependency tree
deno.json Configuration
{
"tasks": {
"dev": "deno run --allow-net --allow-read=./data --allow-env=PORT --watch src/main.ts",
"test": "deno test --allow-net",
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- _scores.json
FAQ
Что делает скилл deno?
Assists with building secure JavaScript and TypeScript applications using the Deno runtime. Use when creating servers, CLI tools, or scripts with Deno's built-in tooling, permission model, npm compatibility, and web standards APIs. Trigger words: deno, deno deploy, deno serve, deno kv, deno permissions, secure runtime, jsr.
Как установить скилл deno?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл deno запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
AnthropicThe scan that the plugin's GitHub Action runs.
azure-static-web-apps
GitHubHelps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
ai-ready
GitHubMake any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
aws-cdk-python-setup
GitHubSetup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…