vb2250158/rabiroute/rokid-rabilink-plugin
Claude Code and agent skill by vb2250158/rabiroute
- community
Checking that the SKILL.md file is still in the repository.
Use when Codex works on Rokid Rizon/Lingzhu custom agents, plugins, tool import JSON, OpenAPI/Swagger/Postman import files, RabiLink Relay, or the Rokid glasses-to-phone-to-RabiRoute/Codex bidirectional message queue. Covers plugin import vs tool import, HTTPS/domain requirements, RabiLink polling rules, prompt/opening copy, and where to store real tokens versus public examples.
Install
npx vskill@latest install vb2250158/rabiroute/rokid-rabilink-pluginSKILL.md
Rokid RabiLink Plugin
Use this skill for Rokid/Rizon/Lingzhu platform integration with RabiLink.
新版 AIUI 的适用规范
下文的导入格式与两工具轮询流程适用于 Rizon / 灵珠的任务通道。新版 apps/rabilink-aiui 是使用乐奇配置模型的独立设备 Agent,采用通用接口传输与设备 Agent 合同,不沿用两工具模式或旧 Relay 业务配置。
AIUI 绑定角色用于指引、Skill、聊天记录和默认来源 PC;未绑定也可以调用接口。已启用并鉴权的 Agent 使用全部当前及未来公共 Manager API,工作区、角色与 Route 绑定不提供接口授权。Relay 只负责连接、鉴权和通用中转,状态由明确选择的 PC 保存;新增接口不修改 Relay。
Android 通用通道按 LAN → P2P → Relay 连接同一目标。AIUI 只有 wx.request 时使用有界 HTTP Relay 降级,手机桥接、原生按键唤醒与 ASR/TTS 并行需要真机验收。原投递、owner 接收和响应回执须核对相同 ID;触摸命令提交不能代替消息接收。旧业务配置不自动迁移,原始数据保留私有备份。
First Checks
- If the task touches the local implementation, resolve the current RabiRoute checkout from the task or configured source root.
- Read
docs/rabilink-relay-server.mdfor the current relay contract. - Treat
data/rabilink-relay/as private runtime/config output. Do not commit real tokens, domains, IPs, or current imported JSON fromdata/. - Treat
examples/rabilink-relay/as public examples. Use placeholder domains and tokens there.
Import Types
Rizon has two similar but different import flows:
- Import plugin: creates or replaces the plugin-level resource. Use a full OpenAPI/Swagger/Postman file with plugin URL, description, auth shape, and all tool definitions.
- Import tool: used inside an existing plugin detail page. Provide an API-definition JSON for tools only. Do not use a full plugin-management export or a file with mixed/mismatched URL prefixes.
When the user says "导入工具", generate or point them to a tool-import JSON, not the full plugin import JSON.
For Rizon tool import, prefer the Postman Collection tool-import file first. Rizon's plugin-detail "导入工具" flow may still reject otherwise valid OpenAPI files with convert protocol failed: inconsistent API URL prefix. The Postman file must use absolute HTTPS URLs like https://<domain>/rokid/rabilink/input and https://<domain>/rokid/rabilink/messages?after=. Do not use {{base_url}}; Rizon currently treats Postman variables as literal invalid URLs.
OpenAPI remains a fallback. If using OpenAPI for tool import, use servers.url = https://<domain> and full paths /rokid/rabilink/input and /rokid/rabilink/messages.
Rizon Import Constraints
- Plugin URL must be a domain URL, not a bare IP.
- HTTPS is safest for Rizon validation; HTTP may fail or be blocked.
- All APIs in one import must share the same URL prefix.
- Rizon import is picky:
- Response statuses must match the current wire contract:
202for input acceptance and200for downstream reads. Verify platform import support separately. - JSON responses must include
content.application/json.schema. - POST JSON bodies need a concrete
requestBody.content.application/json.schema. - Avoid
defaultresponses unless the platform has been verified to accept them. - If auth is configured at plugin level, do not bake real tokens into public OpenAPI files.
RabiLink Official Tool Set
For the Rizon/Lingzhu task-channel interaction, expose only:
submitRabiLinkTask:POST /rokid/rabilink/input- Sends the user's full utterance or image-derived request to the relay.
- Required body:
text. - Optional body:
sender,context. getRabiLinkMessages:GET /rokid/rabilink/messages- Pulls the global downstream message queue.
- Optional query:
after. - Does not require
taskId. - Every returned message can include
taskId,id,text,done,shouldContinue,nextCursor.
Keep old task-scoped polling tools out of the normal agent unless specifically debugging. They caused the model to poll the wrong thing and leave the glasses "thinking".
Polling Rule For Agent Prompt
Use these rules in the Rokid agent prompt:
- After user speaks, call
RabiLinkMessage.submitRabiLinkTask. - Put the complete user utterance into
text; do not rewrite, summarize, or omit details. - Put
senderasRokid Glass. - Put a short current conversation summary or visual observation into
context. - Then call
RabiLinkMessage.getRabiLinkMessagesusing the accepted response cursor.eventIdidentifies the original input; acceptance is not Agent completion. - First call can use empty
after. - Later calls use previous
nextCursororcursor. getRabiLinkMessagesdoes not needtaskId.- Whenever returned
messagescontains newtext, immediately speak it naturally to the user. - Do not speak the pending text from
submitRabiLinkTaskas if it were the final answer. getRabiLinkTaskResultis status/debug only. Do not read itstext,reply,answer, orcontentto the user.- Continue polling until
doneis true orshouldContinueis false and no new messages remain.
Image Handling
If the user sends or asks about a photo:
- Inspect the image with the agent's vision capability first.
- Put important visual facts into
context: objects, text/OCR, scene, UI state, errors, and likely user intent. - Put the user's spoken request in
text. - If there is an image URL or image reference that can be passed safely, include it in
context. - Do not merely say "the user sent an image".
Prompt Copy
Use this as the base Rizon agent prompt:
Opening:
File Names
Preferred files in RabiRoute:
- Full plugin import example:
examples/rabilink-relay/rokid-rabilink-plugin.CURRENT.example.json - Full plugin import current/private:
data/rabilink-relay/rokid-rabilink-plugin.CURRENT.openapi.json - Tool import example, preferred:
examples/rabilink-relay/rokid-rabilink-tools-import.example.postman.json - Tool import current/private, preferred:
data/rabilink-relay/rokid-rabilink-tools-import.CURRENT.postman.json - Tool import URL, preferred:
https://<domain>/rokid/rabilink/tools.postman.json - Tool import OpenAPI fallback example:
examples/rabilink-relay/rokid-rabilink-tools-import.example.json - Tool import OpenAPI fallback current/private:
data/rabilink-relay/rokid-rabilink-tools-import.CURRENT.openapi.json
Use the tool-import files when the user is already inside a plugin and clicks "导入工具".
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/rokid-rabilink-plugin/SKILL.md
Popularity
- Repository stars
- 502
- 7-day trend score
- 36
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/vb2250158/rabiroute/rokid-rabilink-plugin)