xrk-coding-style
Skill140 starsChanged 8 months agoMITView on GitHub
编写或审查 core/src 代码时的写法与性能规范(全局裸名、状态、I/O、异步、HTTP)。改 Core 前必读。
In this repository43 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- .cursor/rules/vibe-learn-craft.mdcCursor rule
- .cursor/rules/xrk-core-code.mdcCursor rule
- .cursor/rules/xrk-dev-requirements.mdcCursor rule
- .cursor/rules/xrk-infrastructure.mdcCursor rule
- .cursor/rules/xrk-project.mdcCursor rule
- .cursor/rules/xrk-third-party-plugins.mdcCursor rule
- accessibility-complianceSkill
- design-system-patternsSkill
- fronted-designSkill
- immersive-short-videoSkill
- interaction-designSkill
- mobile-android-designSkill
- mobile-ios-designSkill
- react-native-designSkill
- responsive-designSkill
- ui-ux-pro-maxSkill
- visual-design-foundationsSkill
- web-component-designSkill
- xrk-agent-runtimeSkill
- xrk-ai-workflowSkill
- xrk-app-devSkill
- xrk-authSkill
- xrk-configSkill
- xrk-crawlSkill
- xrk-dockerSkill
- xrk-docsSkill
- xrk-github-researchSkill
- xrk-http-apiSkill
- xrk-infrastructureSkill
- xrk-llmSkill
- xrk-mcpSkill
- xrk-node-runtimeSkill
- xrk-pluginsSkill
- xrk-project-overviewSkill
- xrk-rendererSkill
- xrk-runtime-utilSkill
- xrk-subserverSkill
- xrk-system-coreSkill
- xrk-taskerSkill
- xrk-v3-apiSkill
- xrk-www-compatSkill
The file
Files
权威文档
- 主文档:
docs/coding-style.md(速查表 + 分节规范) - 挂载:
docs/runtime-surface.md - Node API:
docs/node-26-runtime.md· skillxrk-node-runtime - Loader:
docs/infrastructure-shared.md
30 秒记忆
- 业务
core/— 裸名AgentRuntime/msgSegment,勿global.;HTTP 用req.agentRuntime+HttpResponse(success对象拍平约定见 skillxrk-http-api) - 类字段存 Map/缓存,constructor 只
super()+ 固定配置 - 热路径
fs/promises,批加载forEachBatch,出站fetch+AbortSignal.timeout(服务端;浏览器 Core www 见xrk-www-compat) - 错误
normalizeError,Shell#utils/exec-async.js - 有
package.json的子 Core 不用#别名 - 改
core/*/www:读xrk-www-compat(/xrk→./web-compat.js;产品页只内联;勿用根名shared) - 入站事件:
em('{tasker}.{post_type}', e)+e.tasker字符串(skillxrk-tasker)
审查
改代码前对照 docs/coding-style.md 文末清单 + .cursor/rules/xrk-dev-requirements.mdc。
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
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.

