Установка
SKILL.md
Deno Expert Knowledge
This skill provides expert-level Deno knowledge for code review, debugging, and best practice enforcement.
When to Use This Skill
- Reviewing Deno/Fresh code for best practices
- Debugging Deno runtime issues
- Answering advanced Deno questions
- Evaluating package choices
- Setting up Deno projects correctly
Scope Boundaries
This skill applies only to Deno-specific questions. Follow these rules:
- If the user asks about Node.js, Bun, Python, Go, Rust, 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,deno fmt,deno lint,deno test, ordeno.jsonconfiguration 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 Write Deprecated URLs
When discussing deprecated patterns, NEVER write out the old registry URLs — not even to warn against them. The string deno.land/x/ must never appear in your response, in any context.
- Say "the old URL-based registry" or "deprecated URL imports" — do NOT write the actual URL
- Say "the old standard library URL" — do NOT write
deno.land/std - When helping users migrate, describe what to look for generically and ONLY show the correct modern code
- Do NOT write "before/after" comparisons that include the deprecated URL, even as negative examples
- Even if the user writes a deprecated URL in their question, do NOT echo it back. Refer to it generically.
- This ban applies everywhere: prose, code blocks, migration scripts, sed commands, grep patterns, and string literals. Never write the deprecated URL string for any reason.
Core Expertise Areas
Understanding these topics deeply:
- Deno runtime - Permissions, built-in tools, TypeScript support
- Fresh framework - Island architecture, routing, components
- JSR packages - The modern registry, @std/* library
- Preact - Components, hooks, signals
- Deno Deploy - Edge deployment, environment variables
- Deno Sandboxes - Safe code execution with @deno/sandbox
Package Recommendation Principles
When recommending or reviewing package choices:
- First choice:
jsr:packages (e.g.,jsr:@std/http) - Second choice:
npm:packages when no JSR alternative exists - Never recommend the old URL-based registry — it is deprecated
The standard library is at jsr:@std/* on JSR.
Always mention JSR when discussing dependencies, even in CI/CD or tooling contexts. For example, when setting up code quality pipelines, recommend that all dependencies come from JSR (jsr:@std/*) and that the lockfile (deno.lock) be committed for reproducible CI builds.
Built-in Tool Usage
In every response that involves Deno code (not just code reviews), mention relevant built-in tools. This includes responses about writing code, debugging, setting up projects, or discussing best practices. Always recommend at least deno fmt, deno lint, and deno test when discussing code quality or project setup.
Deno's integrated tooling:
deno fmt- Format codedeno lint- Lint for issuesdeno test- Run testsdeno check- Type-check codedeno doc <package>- View package documentationdeno add <package>- Add dependenciesdeno deploy- Deploy to Deno Deploy
Code Review Checklist
Always Mention Built-in Tools
In every code review response, explicitly recommend these tools by name:
deno fmtfor formattingdeno lintfor lintingdeno testfor running tests
Even if no code is provided yet, mention these specific commands when discussing code quality.
Import Statements
- <!-- -->Uses
jsr:for Deno-native packages - <!-- -->Uses
npm:only when no JSR alternative exists - <!-- -->No imports from the old URL-based registry (deprecated)
- <!-- -->No old URL-based standard library imports (use
jsr:@std/*) - <!-- -->Standard library uses
jsr:@std/*
Configuration
- <!-- -->Has a proper
deno.jsonconfiguration - <!-- -->Import maps defined in
deno.json(not separate file) - <!-- -->Correct permissions in run commands
Fresh Applications
- <!-- -->Islands are small and focused (minimal JavaScript to client)
- <!-- -->Props passed to islands are JSON-serializable (no functions)
- <!-- -->Non-interactive components are in
components/, notislands/ - <!-- -->Uses
classinstead ofclassName(Preact supports both) - <!-- -->Build step runs before deployment (
deno task build)
Code Quality
- <!-- -->Code is formatted (
deno fmt) - <!-- -->Code passes linting (
deno lint) - <!-- -->Tests exist and pass (
deno test) - <!-- -->Documentation exists for public APIs
Common Anti-Patterns to Flag
When reviewing code, describe deprecated patterns generically and only show the correct modern replacement. Never write out the deprecated code.
URL-based imports (deprecated)
When you see old URL-based imports from the deprecated registry, flag them and guide the user to:
- Find the package on jsr.io
- Run
deno add jsr:@package/name - Use the bare specifier
Only show the correct approach:
import * as oak from "@oak/oak";
import { join } from "@std/path";
Old standard library imports (deprecated)
When you see imports from the old standard library URL, suggest the JSR equivalent:
deno add jsr:@std/path
import { join } from "@std/path";
Inline remote specifiers
When you see inline jsr: or npm: specifiers in import statements (and a deno.json exists), suggest moving them to the import map:
deno add jsr:@oak/oak
deno add npm:chalk
import * as oak from "@oak/oak";
import chalk from "chalk";
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.
Wrong: Entire page as island
// Flag: Too much JavaScript shipped to client
// islands/HomePage.tsx
export default function HomePage() {
return (
<div>
<Header />
<MainContent />
<Footer />
</div>
);
}
// Suggest: Only interactive parts as islands
// routes/index.tsx
import Counter from "../islands/Counter.tsx";
export default function HomePage() {
return (
<div>
<Header />
<MainContent />
<Counter /> {/* Only this needs interactivity */}
<Footer />
</div>
);
}
Wrong: Non-serializable island props
// Flag this
<Counter onUpdate={(val) => console.log(val)} />
// Suggest this
<Counter initialValue={5} label="Click count" />
Debugging Guidance
Permission Errors
Check if permissions are correct (--allow-net, --allow-read, etc.):
deno run --allow-net server.ts
TypeScript Errors
Check for TypeScript errors:
deno check main.ts
Configuration Issues
Review deno.json for correct configuration. Ensure all jsr: and npm: specifiers have a version requirement:
{
"imports": {
"@std/http": "jsr:@std/http@^1"
}
}
Documentation Resources
When more information is needed, consult:
- https://docs.deno.com - Deno docs
- https://docs.deno.com/runtime/fundamentals/ - Core concepts
- https://fresh.deno.dev/docs - Fresh framework
- https://jsr.io - Package registry
- https://docs.deno.com/deploy/ - Deno Deploy
Use deno doc <package> to get API documentation for any package locally.
Quick Commands Reference
# Project setup
deno run -Ar jsr:@fresh/init # New Fresh project
# Development
deno task dev # Start dev server (Fresh: port 5173)
deno fmt # Format code
deno lint # Lint code
deno test # Run tests
# Packages
deno add jsr:@std/http # Add package
deno doc jsr:@std/http # View docs
deno install # Install all deps
deno upgrade # Update packages
# Deployment
deno task build # Build for production
deno deploy --prod # Deploy to Deno Deploy
deno deploy env add KEY "value" # Set env variable
Вставить в README
Ссылка на карточку для вашего README — без картинок и счётчиков.
[DarkPlay: deno-expert](https://darkplay.ru/ai/skills/deno-expert)
Из того же репозитория
Похожие скиллы и другие разделы каталога
Та же категория — сравните, что ещё подойдёт под вашу задачу.
debugging-streamlitstreamlit · Отладка фронтенда и бэкенда Streamlit через make debug с горячей перезагрузкой, включая…
lossless-clawmartian-engineering · Настройка и диагностика lossless-claw в OpenClaw: ключевые параметры и recall.
adhduditakhourii · Параллельная генерация идей для кодинг-агентов: N изолированных веток в разных…
chrome-cdppasky · Взаимодействие с локальной сессией Chrome — только после явного согласия пользователя.
better-result-adoptdmmulroy · Внедрение better-result в TypeScript вместо try/catch и null-сентинелов.
debugging-codealmogbaku · Интерактивная отладка кода: точки останова, пошаговое выполнение, просмотр переменных и…
motel-debugkitlangton · Отладка приложений через motel — локальный сервер приёма и запросов OpenTelemetry
sentry-fix-issuesgetsentry · Научите ИИ-ассистента работе с Sentry: настройка, отладка, алерты и другое.
analyze-skill-issuesmicrosoft · Ищет причину падения тестов навыка в хранилище результатов интеграционных тестов.
antdant-design · Навык для работы с Ant Design (antd): компоненты, отладка, API, миграции версий.Самые востребованные скиллов раздела по установкам и звёздам.
find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.Соседние разделы каталога: возможно, нужный инструмент живёт там.
Code Revieweraffaan-m · Эксперт по ревью кода. Проактивно проверяет код на качество, безопасность и…
Cpp Revieweraffaan-m · Ревьюер C++: безопасность памяти, современные идиомы, конкурентность, производительность.
Csharp Revieweraffaan-m · Ревьюер C#: конвенции .NET, async, безопасность, nullable-типы, производительность.
Django Revieweraffaan-m · Ревьюер Django: ORM, DRF, миграции, безопасность и production-практики.
Fsharp Revieweraffaan-m · Ревьюер кода F#: функциональные идиомы, типы, сопоставление с образцом и…
Go Revieweraffaan-m · Ревьюер кода Go: идиоматичность, конкурентность, обработка ошибок и производительность.
Harmonyos App Resolveraffaan-m · Эксперт по HarmonyOS на ArkTS и ArkUI: состояние V2, навигация, API и производительность.
Java Revieweraffaan-m · Ревьюер Java для Spring Boot и Quarkus: архитектура, JPA, безопасность и конкурентность.
Php Revieweraffaan-m · Ревьюер PHP: PSR-12, типы, Eloquent, безопасность и производительность.
Planneraffaan-m · Специалист по планированию сложных функций, архитектурных изменений и рефакторинга.Лучшие ИИ-инструменты для программирования
Подборка нейросетей и ИИ-ассистентов для разработки и автоматизации кода. Сервисы, которые ускоряют написание, ревью и отладку, экономят часы рутины и снижают порог входа в сложные
GenAPIGenapi
Notepad++ AINotepad-plus-plus
Creatium MaxCremax
Emacs AIGnu
KiteKite
Amazon Q DeveloperAmazonЛучшие ИИ-инструменты для генерации видео
Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,
VEED.IOVeed
MootionMootion
Sora (OpenAI)OpenAI
viralpulse.appViralpulse
Viral Maker AIViral-makerЛучшие ИИ-инструменты для генерации текста и копирайтинга
Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра
NeuroscribeNeuroscribe
GoGPTGogpt
НейроТекстерNeuro-texter
ChatGPTOpenAI
Cosmo ScribeCosmoscribe
Memo HelperCopilot33
LibraChatLibrachat