agentleFS
sunflowermmsunflowermm/XRK-AGT/.cursor/skills/xrk-runtime-util/SKILL.md

xrk-runtime-util

Skill140 starsChanged 8 months agoMITView on GitHub

当你需要复用日志/缓存/文件/网络/批处理等基础能力,或为新模块选择合适的工具函数时使用。

The file

Files
SKILL.md

文档与代码

docs/runtime-util.md、src/utils/runtime-util.js

要点

  • 日志 makeLog、缓存 getMap(Map.getOrInsertComputed)/cache、文件与网络封装;优先用 RuntimeUtil 而非裸 fs/fetch。
  • RuntimeUtil.Buffer / 网络下载:内部已用全局 fetch + AbortSignal.timeout。
  • 二进制:toBase64() / Uint8Array.fromBase64(),勿 toString('base64')。
  • AgentRuntime.* 代理部分静态方法(AgentRuntime.makeLog、AgentRuntime.exec 等)。
  • 用户桌面路径:src/utils/user-dirs.js(勿写死 ~/Desktop)。
  • Shell:#utils/exec-async.js,勿在业务里 promisify(exec)。

Node 26

详见 skill xrk-node-runtime。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.