Skip to content
Back to skills

Deno

ASecurity

If the project uses deno, use this skill. Use this skill to initialize and work with Deno projects, add/remove dependencies (JSR and npm), run tasks and scripts with appropriate permissions, and use built-in tooling (fmt/lint/test).

  • 151 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added June 5, 2026
documentationbashreacttestingapidocumentation

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned June 5, 2026

npx -y skills add OpenHands/extensions --skill deno --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Deno?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Deno
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/openhands-deno/badge)](https://www.skillsdirectory.com/skills/openhands-deno)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: deno
description: If the project uses deno, use this skill. Use this skill to initialize and work with Deno projects, add/remove dependencies (JSR and npm), run tasks and scripts with appropriate permissions, and use built-in tooling (fmt/lint/test).
triggers:
- deno
- deno.json
- deno.jsonc
- deno.lock
---

# Deno

Use Deno as the default runtime/tooling when the repo contains `deno.json`/`deno.jsonc`, uses `deno.lock`, or scripts/documentation reference `deno task`, `deno run`, `deno test`, etc.

## Quick decision rules

- Prefer `deno task <name>` if the repo defines tasks.
- Use `deno add` / `deno remove` to manage dependencies (writes to config).
- Be explicit about permissions for `deno run` / `deno test`.

## Common operations

### Initialize a new project

```bash
deno init
```

### Add dependencies (JSR and npm)

```bash
# JSR (recommended for Deno-first packages)
deno add jsr:@std/path

# npm packages are supported too
deno add npm:react

# multiple at once
deno add jsr:@std/assert npm:chalk
```

### Remove dependencies

```bash
deno remove jsr:@std/path
```

### Run a script

```bash
# Minimal permissions: only what the program needs
# Examples:
#   --allow-net=api.example.com
#   --allow-read=./data
#   --allow-env=FOO,BAR

deno run --allow-net --allow-read main.ts
```

### Run tasks

```bash
# list tasks
deno task

# run a task defined in deno.json/deno.jsonc
deno task dev
```

### Formatting, linting, testing

```bash
deno fmt
deno lint
deno test

# common permissioned test run
deno test --allow-net --allow-read
```

### Install / run CLIs

```bash
# Run a JSR or npm package's CLI without installing globally
deno x jsr:@std/http/file-server -p 8080

# Install globally (requires choosing permissions at install time)
# Prefer the smallest set of permissions; avoid blanket flags unless necessary.
deno install -g -N -R jsr:@std/http/file-server -- -p 8080
```

## Notes / pitfalls

- Deno is secure-by-default: missing permissions cause runtime errors; add the smallest set of `--allow-*` flags needed.
- Dependency specifiers:
  - `jsr:` for JSR registry packages
  - `npm:` for npm packages
  - URL imports are also supported (and cached)
- Lockfile: `deno.lock` helps ensure reproducible dependency resolution.

Files in this skill

  • .plugin/plugin.json455 B
  • README.md154 B
  • SKILL.md2.2 KB
  • references/README.md222 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…