Agent skill

Xrk Node Runtime

by xrkseek in xrkseek/XRK-AGT

编写或审查 core/src 代码时,确保使用 Node 26 稳定 API,禁止旧写法(fetch/exec/错误/二进制)。AI 改 Core 前必读。

MITAuto-check passed

Install Xrk Node Runtime

skills CLI
$ npx skills add xrkseek/XRK-AGT --skill xrk-node-runtime -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install xrkseek/XRK-AGT xrk-node-runtime --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/xrkseek/XRK-AGT.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.cursor/skills/xrk-node-runtime .claude/skills/xrk-node-runtime && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
xrk-node-runtime
GitHub stars
140
Token cost
~907 tokens
SKILL.md length
172 words
Files
1
Skills in repo
12
Repo updated
First seen
Licence
MIT

At a glance

编写或审查 core/src 代码时,确保使用 Node 26 稳定 API,禁止旧写法(fetch/exec/错误/二进制)。AI 改 Core 前必读。

  • SKILL.md covers 文档, 版本, Core / 业务代码(core/**/*.js)必用 and 基础设施(src/**/*.js), plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Xrk Node Runtime is an agent skill from xrkseek/XRK-AGT. 编写或审查 core/src 代码时,确保使用 Node 26 稳定 API,禁止旧写法(fetch/exec/错误/二进制)。AI 改 Core 前必读。

Its SKILL.md is about 910 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: 这是基于多语言所搭建的基于web,工作流,新型算法组件的智能体. The licence is MIT.

Example prompts

  • “/xrk-node-runtime”

What it can do on your machine

Read from SKILL.md and the folder at commit 63f004e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are javascript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Xrk Node Runtime loads about 907 tokens when it runs. Until then it costs about 24 tokens; SKILL.md has 172 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~24
When it runs · the whole SKILL.md, loaded when a task matches
~907

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from xrkseek/XRK-AGT at commit 63f004e, republished under its MIT licence (© xrkseek). 172 words, ~907 tokens.

Download SKILL.mdSave it as .claude/skills/xrk-node-runtime/SKILL.md (or your agent's skills folder).
name
xrk-node-runtime
description
编写或审查 core/src 代码时,确保使用 Node 26 稳定 API,禁止旧写法(fetch/exec/错误/二进制)。AI 改 Core 前必读。

文档

  • 权威清单:docs/node-26-runtime.md
  • 写法与性能(非 Node 专项):docs/coding-style.md · skill xrk-coding-style
  • 工具模块:docs/底层架构设计.md §1 工具表

版本

  • 要求:Node ≥ 26.0(推荐 / 实测 26.7.x,至少 ≥ 26.5.1);package.json engines 与 app.js 启动校验一致。
  • 勿用:Node 24 特性检测回退、polyfill、未在文档列出的实验 API(如 node:ffi,除非用户明确要求)。

Core / 业务代码(core/**/*.js)必用

场景正确写法禁止
HTTP 出站全局 fetch(url, { signal: AbortSignal.timeout(ms), ...opts })node-fetch、import fetch from ...
LLM 代理buildFetchOptionsWithProxy(config, opts)(#utils/llm/proxy-utils.js)https-proxy-agent、options.agent
Shell 命令import { exec } from '#utils/exec-async.js'(有 # 的 core)或相对路径到 src/utils/exec-async.jsutil.promisify(exec)、child_process/promises
流式 Shell需 stdout/stderr 实时流时可用 child_process.exec 回调 API(如 remote-command.js)在普通 await 场景自写 promisify
判错Error.isError(err);需包装时用 normalizeError(err)(#utils/normalize-error.js)err instanceof Error
Buffer 编码buf.toBase64()、buf.toHex()、Uint8Array.fromBase64(s)`buf.toString('base64'
Map 初始化map.getOrInsert(k, () => ({ ... })) / getOrInsertComputedmap.get(k) || (map.set(k,v), v) 样板(可写时)
下载文件fetch + Readable.fromWeb + pipeline(见 subserver-client.fetchSubserverToPath)自写 node-fetch pipeline
路径匹配new URLPattern({ pathname })手写 regex fallback、globalThis.URLPattern ?
URL-safe Base64buf.toBase64({ alphabet: 'base64url' })、Uint8Array.fromBase64(s, { alphabet: 'base64url' })手写 base64url 替换
文件 globimport { glob } from 'glob'(RuntimeUtil.glob 已封装)动态加载 fast-glob、自写 #getGlobLib

基础设施(src/**/*.js)

  • 同上;唯一允许 util.promisify(exec) 的位置:src/utils/exec-async.js。
  • 错误:errorHandler + normalizeError;日志:Error.isError 分支(见 log.js)。

代码示例(Core HTTP handler)

javascript
import { HttpResponse } from '#utils/http-utils.js';
import { normalizeError } from '#utils/normalize-error.js';

export default {
  routes: [{
    method: 'GET',
    path: '/api/example/ping',
    handler: HttpResponse.asyncHandler(async (req, res) => {
      const resp = await fetch('https://example.com', {
        signal: AbortSignal.timeout(5000)
      });
      if (!resp.ok) throw new Error(`HTTP ${resp.status}`);
      return HttpResponse.success(res, await resp.text());
    }, 'example')
  }]
};

代码示例(Core 工作流 / 插件 catch)

javascript
} catch (err) {
  const error = normalizeError(err);
  RuntimeUtil.makeLog('error', error.message, 'MyStream');
}

代码示例(Shell / 热重载)

javascript
import { exec } from '#utils/exec-async.js';

const { stdout, stderr } = await exec('node --version');
// 至 26.7 仍无 node:child_process/promises — 勿在各文件 promisify(exec)

代码示例(二进制 / 设备路径)

javascript
const fileId = Buffer.from(filePath, 'utf8').toBase64({ alphabet: 'base64url' });
const path = Buffer.from(Uint8Array.fromBase64(fileId, { alphabet: 'base64url' })).toString('utf8');

审查清单(改 Core 前自检)

  • 无 node-fetch、https-proxy-agent
  • 无 import ... child_process/promises
  • 无文件内 promisify(exec)(应用 exec-async.js)
  • 无 AbortController + setTimeout(abort)
  • 无 instanceof Error 作判错(展示类型名除外)
  • 无 URLPattern / Error.isError 存在性检测
  • 无 toString('base64'|'hex') / Buffer.from(s,'base64') 新代码
  • Core 改底层需求:提 issue/说明,不直接改 src/infrastructure/、src/utils/(见 xrk-core-code.mdc)

© xrkseek, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .cursor/skills/xrk-node-runtime of xrkseek/XRK-AGT.

Open the folder on GitHubat commit 63f004e

Compare with similar skills

Xrk Node Runtime next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Xrk Node Runtime compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Xrk Node Runtime this skillxrkseek/XRK-AGT140—~907Automated safety check: PassMIT
Icons Srcforcedotcom/salesforcedx-vscode1k—~891Automated safety check: PassBSD-3-Clause
SPA Routes and Featureslobehub/lobehub83k—~3.2kAutomated safety check: PassCustom licence
Add Model Pricelangfuse/langfuse36k—~1.2kAutomated safety check: PassCustom licence
Video Syncitwanger/toBeBetterJavaer18k—~445Automated safety check: PassNone
Rust SQL Testshencangsheng/easydb_app590—~1.2kAutomated safety check: PassMIT

Similar skills

  • Icons Src

    forcedotcom/salesforcedx-vscode

    Add custom SVG icons to salesforcedx-vscode-services for font generation.

    1k GitHub stars~891 tokensUpdated today
    Frontend & DesignAuto-check passed
  • Explains LobeHub's split between src/routes page segments and src/features domain code, and where router config, redirects and platform adapters belong.

    83k GitHub stars~3.2k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Add Model Price

    langfuse/langfuse

    A skill your agent uses when editing worker/src/constants/default-model-prices.json, packages/shared/src/server/llm/types.ts, pricing tiers, tokenizer IDs, or matchPattern regexes for OpenAI…

    36k GitHub stars~1.2k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed
  • Video Sync

    itwanger/toBeBetterJavaer

    把「王二讲Agent」的 B 站视频链接同步到 docs/src/ai/video/readme.md,把抖音视频 ID 同步到 docs/src/.vuepress/agentInterview.ts 的 douyinVideoIds 映射表(页面会渲染成播放器)。当用户说 B 站更新了、抖音更新了、同步视频链接、把视频地址放进脚本、更新 readme 视频时使用。

    18k GitHub stars~445 tokensUpdated today
    DevelopmentAuto-check passed
  • Rust SQL Test

    shencangsheng/easydb_app

    Enforces unit test requirements for the Rust data-processing modules in src-tauri/src/sql/ (generator.rs, parse.rs) and src-tauri/src/reader/ (excel.rs and other readers).

    590 GitHub stars~1.2k tokensUpdated 1 mo ago
    Documents & OfficeAuto-check passed
  • Engine Whats New

    flutter/flutter

    Generates the "what's new" release summary and diff file for changes in the Flutter engine (//engine/src/flutter) between two releases (e.g., 3.47 vs 3.44).

    179k GitHub stars~978 tokensUpdated today
    MobileAuto-check passed

More from xrkseek/XRK-AGT

All 12 skills in this repo
  • Immersive Short Video

    xrkseek/XRK-AGT

    Produce immersive vertical short videos (口播/科普/产品讲解) without AI-slop aesthetics.

    140 GitHub stars~1k tokensUpdated 7 days ago
    Auto-check passed
  • Xrk Crawl

    xrkseek/XRK-AGT

    当你需要开发/排查 HTTP 抓取、SSRF、Playwright 受控浏览器、本地字体增强截图,或判断 webfetch 与 browser 工作流如何选型时使用。

    140 GitHub stars~1.3k tokensUpdated 7 days ago
    Auto-check passed
  • Xrk HTTP API

    xrkseek/XRK-AGT

    当你需要开发或排查 HTTP API(core//http/.js)、理解 HttpApi 基类、HttpApiLoader、业务层约定时使用。

    140 GitHub stars~569 tokensUpdated 7 days ago
    Auto-check passed
  • Xrk GitHub Research

    xrkseek/XRK-AGT

    在 GitHub 搜索成熟开源实现、对比方案、读 issue/PR 时使用。架构选型、unfamiliar 领域、找业界最佳实践时主动调用。

    140 GitHub stars~202 tokensUpdated 7 days ago
    Auto-check passed
  • Xrk LLM

    xrkseek/XRK-AGT

    当你需要配置/新增/排查 LLM 提供商(OpenAI/Azure/Gemini/Anthropic/Ollama/各类兼容网关)时使用;确保 YAML/Schema/代码一致。

    140 GitHub stars~304 tokensUpdated 7 days ago
    Auto-check passed
  • Xrk Www Compat

    xrkseek/XRK-AGT

    编写或审查 core//www 静态页、校园 WebView 兼容、HttpResponse 前端解包时使用。Core www 走浏览器兼容层(xrk-www-compat)。含零配置静态与有 sign.json(纯静态/产物/反代,sign↔server 合并)挂载。

    140 GitHub stars~544 tokensUpdated 7 days ago
    Auto-check passed

Questions about Xrk Node Runtime

What does Xrk Node Runtime do?

编写或审查 core/src 代码时,确保使用 Node 26 稳定 API,禁止旧写法(fetch/exec/错误/二进制)。AI 改 Core 前必读。. Xrk Node Runtime is an agent skill from xrkseek/XRK-AGT.

How do I install Xrk Node Runtime in Claude Code?

Run `npx skills add xrkseek/XRK-AGT --skill xrk-node-runtime -a claude-code`. Or copy the skill folder (.cursor/skills/xrk-node-runtime in xrkseek/XRK-AGT) into .claude/skills/xrk-node-runtime in your project. Claude Code loads it when a task matches its description.

How do I install Xrk Node Runtime in Codex?

Run `npx skills add xrkseek/XRK-AGT --skill xrk-node-runtime -a codex`. Or copy the skill folder (.cursor/skills/xrk-node-runtime in xrkseek/XRK-AGT) into .agents/skills/xrk-node-runtime in your project. Codex loads it when a task matches its description.

Can I use Xrk Node Runtime in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add xrkseek/XRK-AGT --skill xrk-node-runtime -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/xrk-node-runtime, .gemini/skills/xrk-node-runtime, .github/skills/xrk-node-runtime and .opencode/skills/xrk-node-runtime in your project.

What does Xrk Node Runtime need to run?

SKILL.md names no scripts, command-line tools or credentials: Xrk Node Runtime is instructions for the agent only.

Does Xrk Node Runtime access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Xrk Node Runtime safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Xrk Node Runtime use?

Xrk Node Runtime is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Xrk Node Runtime use?

About 907 tokens (SKILL.md is roughly 3.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Xrk Node Runtime?

Skills that share tags, products or a category with Xrk Node Runtime: Icons Src (forcedotcom/salesforcedx-vscode, 1k stars), SPA Routes and Features (lobehub/lobehub, 83k stars), Add Model Price (langfuse/langfuse, 36k stars) and Video Sync (itwanger/toBeBetterJavaer, 18k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Xrk Node Runtime?

xrkseek (a GitHub user) maintains it in xrkseek/XRK-AGT, which has 140 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on October 1, 2026.

Source: xrkseek/XRK-AGT on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.