Skills Plugins MCP Prompt Model 博客 我的中心

node-compat

Run a Node.js compatibility test, diagnose failures, and either fix the implementation, skip, or ignore the test. Use when asked to work on node compat tests.

DeepseekModel 官方收录技能 质量 优秀 · 90 v1.0.0

获取

https://deepseekmodel.com/api/download.php?id=denoland-deno-claude-skills-node-compat-skill-md&format=skill
下载 .skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用
.skill 文件中 system_prompt 字段的实际内容。
name node-compat description Run a Node.js compatibility test, diagnose failures, and either fix the implementation, skip, or ignore the test. Use when asked to work on node compat tests. argument-hint <test-name> allowed-tools Bash Read Write Edit Glob Grep Agent Node Compat Test Work on Node.js compatibility test $ARGUMENTS . Step 1: Build and run the test ./x build ./x test-compat $ARGUMENTS If the test passes, report success and ensure test is specified in tests/node_compat/config.jsonc . Step 2: Diagnose the failure Read the test file to understand what it tests: # Tests live under tests/node_compat/test/ Use Grep and Read to find the test source, then analyze: What Node.js API or behavior is being tested? What is the actual error or assertion failure? Where is the relevant Deno implementation? Check ext/node/ (polyfills, ops, internal bindings), runtime/ , or cli/ . Read the corresponding Node.js docs and/or source code to understand the expected behavior. Step 3: Classify the failure Determine which category this failure falls into: A. Fixable bug The Deno implementation is wrong or incomplete, but can be corrected. This includes: Missing method/property on a polyfill Wrong return value or error type Missing event emission Incorrect argument handling Hard-to-fix but still fundamentally implementable behaviors Action: Fix the implementation (Step 4). B. Inherent incompatibility The test relies on Node.js internals or architecture that Deno fundamentally cannot or will not support: internalBinding() calls to Node's C++ layer Node.js-specific CLI flags ( --inspect , --prof , etc.) V8 internals exposed through Node-specific APIs Node.js-specific build/addon tooling (node-gyp internals) Tests for Node.js's own test infrastructure Action: Ignore the test with a reason (Step 5). C. Not worth fixing The test exercises an edge case or behavior that is technically possible but provides negligible value: Extremely obscure error message wording differences Node.js-specific deprecation warnings Behavior that no real-world code depends on Action: Ignore or skip the test with a reason (Step 5). Step 4: Fix the implementation If the failure is fixable: Locate the relevant code in ext/node/ (or elsewhere). Implement the fix. Match Node.js behavior - check Node.js docs and/or source code, not just what "seems right." Use lazy-loaded imports where possible. Use primordials for internal JS code to avoid prototype pollution. Rebuild the source code with ./x build - this is paramount, changes won't take effect until you do. Re-run the test to verify the fix: ./x test-compat $ARGUMENTS Once the test passes, make sure the test is listed in tests/node_compat/config.jsonc with an empty config: "category/test-name.js" : { } The entries in config.jsonc are sorted alphabetically within their category. Place the new entry in the correct position. Step 5: Skip or ignore the test If the test cannot or should not be fixed, update tests/node_compat/config.jsonc . Ignore (test should never run — inherent incompatibility) "category/test-name.js" : { "ignore" : true , "reason" : "Brief, specific explanation of why this can't work in Deno" } "reason" must be specified otherwise the lint step will fail! Platform-specific skip If the test only fails on certain platforms: "category/test-name.js" : { "windows" : false } Expected failure (test runs but fails with known output) If you want the test to run but expect a specific failure: "category/test-name.js" : { "exitCode" : 1 , "output" : "[WILDCARD]specific error message[WILDCARD]" , "reason" : "Brief explanation of why this fails" } This is a good middle ground for tests that are generally compatible but have a specific known issue. If a fix is ever done this assertion will notify the implementer to update the config. Writing good reasons Reasons should be specific and actionable. Good examples: "Tests Node.js internal C++ binding (internalBinding('zlib').Zlib) which is not implemented in Deno" "requires deno --interactive flag (not yet implemented)" "URL.createObjectURL does not throw ERR_INVALID_ARG_TYPE for non-Blob arguments" Bad examples: "Not supported" (too vague) "Doesn't work" (says nothing) "Node-specific" (which part?) Step 6: Verify Re-run the test one final time to confirm the outcome matches expectations: ./x test-compat $ARGUMENTS Config reference The full schema for config.jsonc entries is in tests/node_compat/schema.json . PR title conventions When opening a PR for node-compat work, use the appropriate prefix: test: — when the PR only updates tests/node_compat/config.jsonc to skip, ignore, or otherwise reclassify tests without changing implementation code. fix(ext/node): — when the PR actually fixes the implementation so a previously failing test now passes (typically changes under ext/node/ plus enabling the test in config.jsonc ).
Agent 识别该技能的关键词,点击任意一个即可复制。

该技能未提供触发词。

下载的 .skill 包内含以下字段。
字段 说明
format格式标识(skill/v1)
skill_id技能唯一 ID
name技能名称
version版本号
description技能描述
category所属分类(数组)
trigger_words触发词列表
tags标签列表
source来源标识
source_url来源链接(本页地址)
exported_at导出时间(每次下载生成)
system_prompt系统提示词正文
model_config模型参数:provider / model / temperature / max_tokens / top_p
examples示例
install_guide各平台导入说明(Coze / Dify / Claude / 自定义框架)
同一份技能可按不同平台格式导出。
.skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用 下载
.skillpro 增强格式,额外含脚本 / 工具 / 依赖 / 钩子占位 下载
.json 纯 JSON 导出,只含 system_prompt 与模型参数 下载
Coze 带 frontmatter 的 Markdown,Coze 平台导入用 下载
Dify Dify DSL,创建应用后直接导入 下载

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。