Agent skill

Xrk HTTP API

by xrkseek in xrkseek/XRK-AGT

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

MITAuto-check passedBackend & APIs

Install Xrk HTTP API

skills CLI
$ npx skills add xrkseek/XRK-AGT --skill xrk-http-api -a claude-code

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

GitHub CLI
$ gh skill install xrkseek/XRK-AGT xrk-http-api --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-http-api .claude/skills/xrk-http-api && 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-http-api
GitHub stars
140
Token cost
~569 tokens
SKILL.md length
116 words
Files
1
Skills in repo
12
Repo updated
First seen
Licence
MIT

At a glance

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

  • Tasks that involve REST APIs
  • SKILL.md covers 文档与代码, 核心约定, HttpResponse and Node 26(Core HTTP)
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Xrk HTTP API is an agent skill from xrkseek/XRK-AGT. 当你需要开发或排查 HTTP API(core//http/.js)、理解 HttpApi 基类、HttpApiLoader、业务层约定时使用。

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

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

When your agent uses it

  • Tasks that involve REST APIs

Example prompts

  • “/xrk-http-api”

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 HTTP API loads about 569 tokens when it runs. Until then it costs about 22 tokens; SKILL.md has 116 words of instructions outside code blocks.

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

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). 116 words, ~569 tokens.

Download SKILL.mdSave it as .claude/skills/xrk-http-api/SKILL.md (or your agent's skills folder).
name
xrk-http-api
description
当你需要开发或排查 HTTP API(core/*/http/*.js)、理解 HttpApi 基类、HttpApiLoader、业务层约定时使用。

文档与代码

  • 文档:docs/http-api.md、docs/runtime-surface.md、docs/api-loader.md
  • 基类:src/infrastructure/http/http.js
  • 加载器:src/infrastructure/http/loader.js

核心约定

  • API 模块放在 core/*/http/*.js,导出对象或继承 HttpApi。
  • 路由数组 routes 中声明 method/path/handler/middleware。
  • 鉴权策略由各模块自行决定:system-Core HTTP 推荐在模块内通过 AgentRuntime.checkApiAuthorization(req) 统一使用系统级 API Key,其他 Core 可自定义或选择接入该能力(详见 xrk-auth skill)。
  • handler 用 req.agentRuntime 或第三参 AgentRuntime,勿 global.AgentRuntime。

HttpResponse

import { HttpResponse } from '#utils/http-utils.js'。handler 用 return HttpResponse.success/error/asyncHandler/...,勿混用 res.json()。

success 响应形状(底层定义)

实现:src/utils/http-utils.js → HttpResponse.success。

第二参 data实际 JSON
普通对象(非数组){ success: true, message, ...data }(拍平,无外层 data)
数组 / 标量{ success: true, message, data: <值> }
null / 省略{ success: true, message }
javascript
// 服务端
HttpResponse.success(res, { assessments, webVersion });
// → { success: true, message: '操作成功', assessments, webVersion }

HttpResponse.success(res, { data: config }); // 刻意要顶层 data 字段
// → { success: true, message: '操作成功', data: config }

HttpResponse.success(res, items); // 数组
// → { success: true, message: '操作成功', data: items }
前端 / Core www 消费约定

禁止默认 const data = json.data 再读业务字段(对象拍平后常为 undefined)。

场景做法
/xrkimport { unwrapSuccess } from './web-compat.js'
其它产品 www内联同语义(见 skill xrk-www-compat)
或直接读顶层:json.assessments、json.configs
javascript
function unwrapSuccess(json) {
  if (!json?.success) throw new Error(json?.message || '请求失败');
  if (json.data !== undefined) return json.data;
  const { success, message, ...rest } = json;
  return rest;
}

需要「整包在 data 下」时,服务端应写 success(res, { data: payload })(如 kaguya、xiaozhi config)。

详见 docs/http-api.md「响应格式」。

Node 26(Core HTTP)

  • 模块内出站请求:fetch + AbortSignal.timeout(仅服务端;浏览器用 abortTimeout,见 xrk-www-compat)。
  • catch:Error.isError / normalizeError(见 skill xrk-node-runtime)。
  • 禁止 node-fetch、手写 AbortController 超时。

© 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-http-api of xrkseek/XRK-AGT.

Open the folder on GitHubat commit 63f004e

Compare with similar skills

Xrk HTTP API 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 HTTP API compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Xrk HTTP API this skillxrkseek/XRK-AGT140—~569Automated safety check: PassMIT
Paperclippaperclipai/paperclip99k—~9.6kAutomated safety check: PassMIT
Nodejs Backend Patternsever-works/ever-works16218 repos~4kAutomated safety check: PassAGPL-3.0
OpenAPI to MCP Servermcp-use/mcp-use11k—~5.2kAutomated safety check: PassApache-2.0
Use Yaakmountain-loop/yaak19k—~1.9kAutomated safety check: PassMIT
API DesignerJeffallan/claude-skills12k1 repos~2kAutomated safety check: PassMIT

Similar skills

  • Paperclip

    paperclipai/paperclip

    Interact with the Paperclip control plane API for task coordination and governance.

    99k GitHub stars~9.6k tokensUpdated today
    Backend & APIsAuto-check passed
  • Nodejs Backend Patterns

    ever-works/ever-works

    Build production-ready Node.js backend services with Express/Fastify, implementing middleware patterns, error handling, authentication, database integration, and API design best practices.

    162 GitHub starsUsed in 18 repos~4k tokens
    Backend & APIsAuto-check passed
  • OpenAPI to MCP Server

    mcp-use/mcp-use

    Turns an OpenAPI or Swagger spec into an MCP server with the mcp-use TypeScript SDK, mapping each operation to a tool, wiring auth, testing and deploying.

    11k GitHub stars~5.2k tokensUpdated today
    Backend & APIsAuto-check passed
  • Use Yaak

    mountain-loop/yaak

    A skill your agent uses when the user mentions Yaak, a Yaak workspace, or the yaak command, or asks to call, hit, or smoke test HTTP/REST endpoints, save or organize API requests for reuse or manual…

    19k GitHub stars~1.9k tokensUpdated 2 days ago
    Backend & APIsAuto-check passed
  • API Designer

    Jeffallan/claude-skills

    Designs REST and GraphQL APIs from resource modeling to an OpenAPI 3.1 contract, with versioning, pagination and RFC 7807 error handling.

    12k GitHub starsUsed in 1 repo~2k tokens
    Backend & APIsAuto-check passed
  • Covers the RuView `wifi-densepose` command line binary, its Axum REST API and the WebAssembly builds for browsers and ESP32, for embedding or scripting RuView.

    97k GitHub stars~1.2k tokensUpdated today
    Backend & APIsAuto-check: notes

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 8 days ago
    Auto-check passed
  • Xrk Crawl

    xrkseek/XRK-AGT

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

    140 GitHub stars~1.3k tokensUpdated 8 days ago
    Auto-check passed
  • Xrk Node Runtime

    xrkseek/XRK-AGT

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

    140 GitHub stars~907 tokensUpdated 8 days ago
    Auto-check passed
  • Xrk GitHub Research

    xrkseek/XRK-AGT

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

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

    xrkseek/XRK-AGT

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

    140 GitHub stars~304 tokensUpdated 8 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 8 days ago
    Auto-check passed

Categories

Questions about Xrk HTTP API

What does Xrk HTTP API do?

当你需要开发或排查 HTTP API(core//http/.js)、理解 HttpApi 基类、HttpApiLoader、业务层约定时使用。. Xrk HTTP API is an agent skill from xrkseek/XRK-AGT.

When should I use Xrk HTTP API?

Xrk HTTP API fits situations like: tasks that involve REST APIs.

How do I install Xrk HTTP API in Claude Code?

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

How do I install Xrk HTTP API in Codex?

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

Can I use Xrk HTTP API 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-http-api -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-http-api, .gemini/skills/xrk-http-api, .github/skills/xrk-http-api and .opencode/skills/xrk-http-api in your project.

What does Xrk HTTP API need to run?

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

Does Xrk HTTP API 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 HTTP API 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 HTTP API use?

Xrk HTTP API 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 HTTP API use?

About 569 tokens (SKILL.md is roughly 2.3k 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 HTTP API?

Skills that share tags, products or a category with Xrk HTTP API: Paperclip (paperclipai/paperclip, 99k stars), Nodejs Backend Patterns (ever-works/ever-works, 162 stars), OpenAPI to MCP Server (mcp-use/mcp-use, 11k stars) and Use Yaak (mountain-loop/yaak, 19k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Xrk HTTP API?

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.