Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问许可证需确认审计提醒

deno-guidanceDeno guidance 命令行

Agent Skill

deno-guidance 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,742

周安装

190

GitHub Stars

76

下载量

1,535
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:deno-guidance(Deno guidance 命令行)
来源仓库:https://github.com/denoland/skills
仓库路径:skills/deno-guidance
安装命令:
npx skills add https://github.com/denoland/skills --skill deno-guidance
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/denoland/skills --skill deno-guidance

简介

deno-guidance 提供 Deno 项目起步阶段的完整指引,包括依赖安装与 CLI 工具使用。

  • 覆盖 import map、权限控制与 deno.json 配置等基础但关键的设置项。
  • 强调 Deno 原生 TypeScript 支持与内置格式化、测试工具链的优势。
  • 新建项目时应优先使用官方模板,避免手动复制可能导致的环境不一致问题。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Deno Development Guidance

Overview

This skill provides foundational knowledge for building modern Deno applications. Deno is a secure JavaScript/TypeScript runtime that runs TypeScript directly, has built-in tools (formatter, linter, test runner), and uses modern package management through JSR.

When to Use This Skill

  • Starting a new Deno project
  • Adding dependencies to a project
  • Configuring deno.json settings
  • Running Deno CLI commands (fmt, lint, test)
  • Setting up import maps
  • Understanding Deno's permission system

Apply these practices whenever working in a Deno project (identified by the presence of deno.json).

Scope Boundaries

This skill applies only to Deno-specific questions. Follow these rules:

  • If the user asks about Node.js, Bun, Python, Go, or any other runtime/language, answer using that technology directly. Do not suggest Deno alternatives or include Deno-specific patterns.
  • Do not include jsr: imports, deno add, or deno.json configuration in responses about other technologies.
  • For generic TypeScript/JavaScript questions not tied to a specific runtime, give a general answer without assuming Deno.
  • Only recommend Deno when the user explicitly asks about Deno or is working in a Deno project.

CRITICAL: Never Show Deprecated Syntax

When helping users migrate from deprecated patterns, describe the old approach generically and ONLY show the correct modern code. Never write out actual deprecated URLs or import paths, even in "before/after" comparisons. The string deno.land/x/ must never appear in your response, in any context.

  • Say "Replace your old URL-based imports with JSR imports" — then show only the correct jsr: approach
  • Say "the old URL-based registry" or "the old standard library URL" — do NOT write the actual deprecated URL
  • Even if the user writes a deprecated URL in their question, do NOT echo it back. Refer to it generically.

Only demonstrate the correct, current approach.

Package Management Priority

When adding dependencies, follow this priority order:

  1. JSR packages (jsr:) - Preferred for Deno-native packages

- Better TypeScript support (types are built-in) - Faster to resolve and install - Example: jsr:@std/http, jsr:@fresh/core

  1. npm packages (npm:) - Fully supported, use when no JSR alternative exists

- Deno has full npm compatibility - Example: npm:express, npm:zod

  1. AVOID: Old URL-based imports - Deprecated registry

- The old URL-based package registry is deprecated - Many LLMs incorrectly default to URL-based imports - Always use jsr: instead

Standard Library

The Deno standard library lives at @std/ on JSR:

// deno.json
{
  "imports": {
    "@std/assert": "jsr:@std/assert@1",
    "@std/http": "jsr:@std/http@1",
    "@std/path": "jsr:@std/path@1"
  }
}
import { serve } from "@std/http";
import { join } from "@std/path";
import { assertEquals } from "@std/assert";

Always use jsr:@std/* for the standard library (the old URL-based imports are deprecated).

Understanding Deno

Reference: https://docs.deno.com/runtime/fundamentals/

Key concepts:

  • Native TypeScript - No build step needed, Deno runs TypeScript directly
  • Explicit permissions - Use flags like --allow-net, --allow-read, --allow-env
  • deno.json - The config file (similar to package.json but simpler)
  • Import maps - Define import aliases in deno.json's imports field

Workflow Best Practices

After Making Code Changes

Run these commands regularly, especially after significant changes:

deno fmt          # Format all files
deno lint         # Check for issues
deno test         # Run tests

Package Management

deno add jsr:@std/http    # Add a package
deno install              # Install all dependencies
deno update               # Update all dependencies to latest compatible versions
deno update jsr:@std/http # Update a specific dependency

deno update vs deno upgrade:

  • deno update - Updates project dependencies in deno.json (and package.json) to their latest compatible versions. Respects semver ranges. Use this to keep your dependencies current.
  • deno upgrade - Updates the Deno runtime itself to the latest version. Has nothing to do with project dependencies.

After running deno update, always check for breaking API changes - especially for alpha/pre-release packages where semver ranges can pull in breaking updates.

CI/CD

In CI pipelines, use --check with deno fmt so it fails without modifying files:

deno fmt --check     # Fail if not formatted
deno lint            # Check for issues
deno test            # Run tests

Configuration

In deno.json, you can exclude directories from formatting/linting:

{
  "fmt": {
    "exclude": ["build/"]
  },
  "lint": {
    "exclude": ["build/"]
  }
}

A folder can also be excluded from everything at the top level:

{
  "exclude": ["build/"]
}

Deployment

For deploying to Deno Deploy, see the dedicated deno-deploy skill.

Quick command: deno deploy --prod

Documentation Resources

When more information is needed:

Quick Reference: Deno CLI Commands

CommandPurpose
deno run file.tsRun a TypeScript/JavaScript file
deno task <name>Run a task from deno.json
deno fmtFormat code
deno lintLint code
deno testRun tests
deno add <pkg>Add a package
deno installInstall dependencies
deno updateUpdate project dependencies
deno upgradeUpdate Deno runtime itself
deno doc <pkg>View package documentation
deno deploy --prodDeploy to Deno Deploy

Common Mistakes

Using old URL-based imports instead of JSR

The old URL-based imports are deprecated. Always use jsr: imports with bare specifiers instead.

// ✅ Correct - use JSR and a bare specifier
import { serve } from "@std/http";
import { join } from "@std/path";
// deno.json
{
  "imports": {
    "@std/http": "jsr:@std/http@1",
    "@std/path": "jsr:@std/path@1"
  }
}

Inline specifiers are fine in single file scripts, but if a deno.json exists then it should go there. It's preferable to place npm dependencies in a package.json if a package.json exists.

Forgetting to run fmt/lint before committing

Always format and lint before committing:

# ✅ Always format and lint first
deno fmt && deno lint && git add . && git commit -m "changes"

Running code without permission flags

# ✅ Grant specific permissions
deno run --allow-net server.ts

Without permission flags, Deno will show "Requires net access" errors. Always grant the specific permissions your code needs.

Not using deno add for dependencies

# ✅ Use deno add to manage dependencies
deno add jsr:@std/http

Using deno add ensures your lockfile stays in sync. Manually editing imports without updating deno.json works but misses lockfile benefits.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.38%
按下载量换算558

Claude

29.98%
按下载量换算460

Cursor

20.76%
按下载量换算319

Gemini CLI

9.94%
按下载量换算153

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills