← 返回 Skills 市场
663
总下载
2
收藏
4
当前安装
1
版本数
在 OpenClaw 中安装
/install deno
功能描述
Build with Deno runtime avoiding permission gotchas, URL import traps, and Node.js migration pitfalls.
使用说明 (SKILL.md)
When to Use
User needs Deno expertise — secure TypeScript runtime with permissions model. Agent handles permission configuration, dependency management via URLs/npm, and migration from Node.js.
Quick Reference
| Topic | File |
|---|---|
| Permission system | permissions.md |
| Imports and dependencies | imports.md |
| Node.js migration | node-compat.md |
Permission Traps
--allow-allin development — then production crashes because you don't know what permissions you actually need--allow-readwithout path — grants access to entire filesystem, security hole--allow-runwithout list — subprocess can run anything, specify:--allow-run=git,npm--allow-envwithout list — leaks all env vars, specify:--allow-env=API_KEY,DATABASE_URL--allow-netwithout list — can connect anywhere, specify hosts:--allow-net=api.example.com- Missing permission in CI — hangs waiting for prompt that never comes, add
--no-prompt
Import Traps
- Remote URLs in production — network failure = app won't start, vendor dependencies locally
- No lockfile by default — deps can change between runs, always use
deno.lock @^1.0.0semver syntax doesn't exist — use exact URLs or import maps- Import maps in wrong place — must be in
deno.json, not separate file (Deno 2.x) - HTTPS required — HTTP imports blocked by default, most CDNs work but self-hosted may not
- URL typo — no error until runtime when import fails
TypeScript Traps
.tsextension required in imports — model generates extensionless imports that failtsconfig.jsonpaths ignored — Deno uses import maps indeno.json, not tsconfig- Type-only imports — must use
import typeor bundler may fail - Decorators — experimental, different from tsc behavior
/// \x3Creference>— handled differently than tsc, may be ignored
Deployment Traps
deno compileincludes runtime — binary is 50MB+ minimum--cached-onlyrequires prior cache — fresh server needsdeno cachefirst- Deno Deploy limitations — no filesystem, no subprocess, no FFI
- Environment variables — different API:
Deno.env.get("VAR")notprocess.env.VAR - Signals —
Deno.addSignalListenernotprocess.on("SIGTERM")
Testing Traps
Deno.testdifferent from Jest — nodescribe, different assertions- Async test without await — test passes before promise resolves
- Resource leaks — tests fail if you don't close files/connections
- Permissions in tests — test may need different permissions than main code
- Snapshot testing — format differs from Jest snapshots
npm Compatibility Traps
npm:specifier — works for most packages but native addons failnode:specifier required —import fs from 'fs'fails, needimport fs from 'node:fs'node_modulesoptional — enable with"nodeModulesDir": truein deno.jsonpackage.jsonscripts — not automatically supported, use deno.json tasks- Peer dependencies — handled differently, may get wrong versions
Runtime Differences
Deno.readTextFilevsfs.readFile— different API, different error typesfetchis global — no import needed, unlike Node 18-- Top-level await — works everywhere, no wrapper needed
- Permissions at runtime — can request dynamically but user must approve
安全使用建议
This skill is a documentation-only helper for using Deno; it does not include code or request secrets. Before enabling it, ensure the agent environment actually has a trusted deno binary (the skill assumes deno is present) and be aware that any agent action that runs deno with broad permission flags (e.g., --allow-all or --allow-read without paths) could allow access to files and environment variables — that risk comes from how you run deno, not from this skill. If you plan to let the agent execute commands on your machine, enforce least-privilege when invoking deno and prefer vendoring and lockfiles for production as the docs recommend.
功能分析
Type: OpenClaw Skill
Name: deno
Version: 1.0.0
The OpenClaw AgentSkills bundle for Deno is benign. It consists entirely of documentation (`SKILL.md`, `imports.md`, `node-compat.md`, `permissions.md`) providing educational content, best practices, and warnings about common pitfalls and security risks when working with the Deno runtime. Crucially, sections discussing security vulnerabilities (e.g., 'Permission Traps' in `SKILL.md`, 'Permission Combinations' in `permissions.md`) are framed as warnings and educational material to help users *avoid* insecure configurations, rather than instructions for the AI agent to perform malicious actions or exploit vulnerabilities. There is no evidence of prompt injection, data exfiltration, malicious execution, persistence mechanisms, or obfuscation.
能力评估
Purpose & Capability
Name and description match the content: all files are Deno-focused guidance (permissions, imports, Node migration). The only runtime requirement is the 'deno' binary, which is appropriate for a Deno troubleshooting/authoring skill.
Instruction Scope
SKILL.md and supporting docs contain best-practice commands and examples (deno run, deno cache, deno vendor, etc.) and focus on Deno-specific risks. The documents include illustrative examples (e.g., showing that broad --allow-read could expose /etc/passwd) but do not instruct the agent to read unrelated host files or to exfiltrate data; all commands and file/path references are relevant to Deno usage and deployment.
Install Mechanism
No install spec and no included code files — instruction-only. That minimizes risk: nothing is downloaded or written to disk by the skill itself.
Credentials
The skill declares no required environment variables or credentials. The docs discuss how to scope runtime permission flags (e.g., --allow-env=API_KEY) as guidance, which is appropriate and proportional for a Deno-focused guide.
Persistence & Privilege
always is false and there is no mechanism to persist or modify other skills or global agent settings. Model invocation is allowed (normal default) but the skill itself does not request elevated platform privileges.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install deno - 安装完成后,直接呼叫该 Skill 的名称或使用
/deno触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
常见问题
Deno 是什么?
Build with Deno runtime avoiding permission gotchas, URL import traps, and Node.js migration pitfalls. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 663 次。
如何安装 Deno?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install deno」即可一键安装,无需额外配置。
Deno 是免费的吗?
是的,Deno 完全免费(开源免费),可自由下载、安装和使用。
Deno 支持哪些平台?
Deno 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, darwin, win32)。
谁开发了 Deno?
由 Iván(@ivangdavila)开发并维护,当前版本 v1.0.0。
推荐 Skills