技能 2026-07-29 09:00 UTC
skillsv2.9
版本【2.9】由提交人 bartlomieju 提交,主要更新类型为:新增功能与能力扩展。提交说明:Overhaul the core Deno skill for 2.9, add a migration skill (#11)。带来了新的能力与可配置项,扩展了使用场景。
Commit提交信息原文
Overhaul the core Deno skill for 2.9, add a migration skill (#11) * merge core skills into 'deno', add 'migrate-to-deno', verify code blocks Merges deno-guidance, deno-expert and deno-project-templates into a single 'deno' skill rewritten for Deno 2.9, adds a migration skill, and adds a CI check that type-checks the code in every skill. * address review: widen verifier coverage, split Yarn Classic/Berry Scans inline code spans and env-prefixed invocations, not just line-initial deno in shell fences, so reference tables are covered. Type-checks snippets against an import map so bare specifiers resolve. Reports unterminated fences instead of dropping them, and tracks fence length. Runs checks concurrently. Also splits Yarn Classic from Berry in the command tables, corrects bun ci to bun install --frozen-lockfile, clarifies that a deno.json-only project has no node_modules, and resets the new skill's version to 1.0. * make the verifier deterministic and fix error attribution Concurrent deno check processes raced on the shared type cache resolving node: built-ins, failing about a third of runs with a spurious 'Cannot find name node:sqlite'. One batched check is race-free and faster. Attribute diagnostics on the 'at file://...' location line rather than the first snippet named in the paragraph: the 'Check file://...' preamble runs into the first diagnostic with no blank line, so the old match blamed the wrong block. Strip ANSI codes, which sit inside that location line. * address review: package.json-first config, deno create, deno watch Rewrites the configuration guidance so package.json holds dependencies, tsconfig.json holds compiler options, and deno.json is only for configuring Deno. Deno reads tsconfig.json, so the earlier claim that it does not was wrong and is corrected in the migration notes too. Prefers npm over JSR, replaces deno init --npm with deno create and deno run --watch with deno watch, drops deno serve and the --entrypoint flag, and simplifies nodeModulesDir to the linker setting that most projects actually need. Adds the one-day dependency-age default, notes that dx runs without the sandbox, that deno.json tasks win over package.json scripts of the same name, that bare node built-in specifiers resolve without the node: prefix, and that lockfile seeding covers bun and pnpm. Records that the built-in tools are not drop-in replacements and that existing projects need not migrate to them. * trim the prose across both skills The core skill loads in full whenever anyone touches a Deno project, so its length is a standing context cost. Cuts it by a third with no facts removed: drops throat-clearing, restatements, and justifying clauses, and folds multi-paragraph explanations into single sentences. References get the same pass, though they matter less since they only load when an agent opens them. * restructure deno-frontend around npm frameworks, split Fresh into references The skill assumed Fresh was the only way to build a frontend with Deno, when the normal answer is to run React, Vite, Astro, SvelteKit or Next from npm and follow that framework's own docs. Leads with that, and says plainly not to invent Deno-flavoured variants of their APIs or apply Fresh patterns to them. Fresh detail moves to references/FRESH.md and the 1.x and alpha migration to references/FRESH_MIGRATION.md, so neither loads unless the task is actually about Fresh. The body drops from 3523 to 440 words. Also drops the scope boundaries and never-write-this-string blocks, and names $fresh/, _404.tsx and _500.tsx so migration advice can be grepped for.