原始内容
Denoland Plugin for Claude Code
A Claude Code plugin for building modern Deno applications with Fresh, JSR, and Deno Deploy.
Current Version: 0.6.2
What This Plugin Does
This plugin teaches Claude modern Deno development practices:
- Prefer JSR over deno.land/x - The deprecated registry that many LLMs default to
- Use Deno's built-in tools -
deno fmt,deno lint,deno test,deno doc - Fresh framework patterns - Island architecture, Preact, Tailwind
- Deno Deploy workflow - The
deno deployCLI for deployment - Sandbox SDK - Safe execution of untrusted code
Installation
First, add the marketplace:
/plugin marketplace add donjo/denoland
Then install the plugin:
# Install to user scope (default, available in all projects)
/plugin install denoland@donjo-denoland
# Or install to project scope (shared with team via git)
/plugin install denoland@donjo-denoland --scope project
# Or install to local scope (gitignored, just for you)
/plugin install denoland@donjo-denoland --scope local
Alternatively, use the interactive plugin manager by running /plugin in Claude Code.
For local development:
claude plugin link /path/to/denoland
What's Included
Skills (Automatic Knowledge)
Skills are applied automatically when Claude detects you're working in a Deno project.
| Skill | Purpose |
|---|---|
deno-guidance |
Core best practices, JSR packages, Deno CLI workflow |
deno-deploy |
Deno Deploy deployment workflows |
deno-frontend |
Fresh framework, Preact components, Tailwind CSS |
deno-sandbox |
Sandbox SDK for safe code execution |
Commands
| Command | Purpose |
|---|---|
/deno-init |
Scaffold a new Deno project (Fresh, CLI, library, or API) |
/deno-deploy |
Deploy your app to Deno Deploy |
Agent
| Agent | Purpose |
|---|---|
deno-expert |
Specialized helper for Deno questions, code review, and debugging |
Key Features
JSR Package Priority
This plugin ensures Claude recommends the right package sources:
// Preferred - JSR packages
import { serve } from "jsr:@std/http";
// Also good - npm packages (when no JSR alternative)
import express from "npm:express";
// Avoid - deprecated registry
import { serve } from "https://deno.land/std/http/server.ts"; // DON'T USE
Deno CLI Workflow
The plugin encourages using Deno's built-in tools:
deno fmt # Format code
deno lint # Lint for issues
deno test # Run tests
deno doc <pkg> # View package docs
deno add <pkg> # Add dependencies
deno deploy # Deploy to Deno Deploy
Fresh Development
Proper Fresh patterns with island architecture:
deno run -Ar jsr:@fresh/init # Create project
deno task dev # Development (port 5173)
deno task build # Production build
deno deploy --prod # Deploy
Documentation Resources
Contributing
This plugin is open source. Contributions welcome!
License
MIT