install
source · Clone the upstream repo
git clone https://github.com/ComeOnOliver/skillshub
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ComeOnOliver/skillshub "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/TerminalSkills/skills/deno" ~/.claude/skills/comeonoliver-skillshub-deno && rm -rf "$T"
manifest:
skills/TerminalSkills/skills/deno/SKILL.mdsource content
Deno
Overview
Deno is a secure JavaScript/TypeScript runtime with built-in tooling including a formatter, linter, test runner, and bundler. It features a permissions model that restricts file, network, and environment access by default, native TypeScript support without transpilation, and full web standards compatibility.
Instructions
- When creating servers, use
for high-performance HTTP handling with Web Standards Request/Response, and enable parallel workers withDeno.serve()
for multi-core utilization.deno serve --parallel - When configuring security, specify permissions explicitly (
,--allow-read
,--allow-net
) scoped to specific paths, hosts, or variable names. Never deploy with--allow-env
.--allow-all - When managing dependencies, use JSR (
) for versioned, type-checked packages,jsr:
specifier for npm packages, and configure import maps innpm:
for clean paths.deno.json - When writing tests, use
withDeno.test()
assertions,@std/assert
for mocking, and@std/testing
for coverage reports. Deno's sanitizers detect resource leaks automatically.deno test --coverage - When building CLI tools, use
to produce standalone executables that cross-compile for Linux, macOS, and Windows with no runtime dependency.deno compile - When deploying to the edge, use Deno Deploy with Deno KV for key-value storage,
for scheduled tasks, and queues for background processing.Deno.cron() - When using Deno KV, structure keys hierarchically (
), use["users", id, "profile"]
for transactions, and configure TTL withatomic()
for automatic expiration.expireIn
Examples
Example 1: Build a REST API with Deno KV
User request: "Create an API with Deno that stores data in Deno KV"
Actions:
- Create HTTP server with
and route matchingDeno.serve() - Open KV store with
and define key structureDeno.openKv() - Implement CRUD operations using
,kv.get()
, andkv.set()kv.atomic() - Set explicit permissions in
task definitionsdeno.json
Output: A secure API with embedded key-value storage, ready for Deno Deploy.
Example 2: Compile a CLI tool for distribution
User request: "Create a Deno CLI tool that can be distributed as a single binary"
Actions:
- Build the CLI with argument parsing using
@std/cli - Add file and network permissions scoped to required resources
- Write tests with
and run withDeno.test()deno test - Compile to standalone binaries with
for each platformdeno compile --target
Output: Cross-platform standalone executables with no runtime dependency.
Guidelines
- Always specify permissions explicitly in production; never deploy with
.--allow-all - Use
imports map for clean import paths instead of raw URLs.deno.json - Prefer JSR (
) over URL imports for versioned, type-checked, immutable packages.jsr: - Use
specifier for npm packages instead of CDN URLs.npm: - Run
anddeno fmt
in CI for zero-config formatting and linting.deno lint - Use
over third-party frameworks for simple APIs; it is faster and lighter.Deno.serve() - Compile to standalone binary with
for distribution with no runtime dependency.deno compile