yodaos-project/aiui/aiui-cloud-apis
Claude Code and agent skill by yodaos-project/aiui
- community
Checking that the SKILL.md file is still in the repository.
English coding-agent guidance for the six AIUI app-facing Rokid OpenAPI operations: getProfile, invokeAgentApi, checkUserAuth, saveThirdToken, getThirdToken, and getAIUICacheMessage. Use this skill when code imports createOpenAPI from the built-in open module. Detailed per-API contracts are in references/.
Install
npx vskill@latest install yodaos-project/aiui/aiui-cloud-apisSKILL.md
AIUI Cloud OpenAPI
Use this skill for AIUI app/page code that calls the agent-facing Rokid OpenAPI through the built-in open runtime module. Server-side integrations use separate documentation.
Start here
openis a QuickJS/Ink runtime built-in, not an npm package.- Do not import from
@yodaos-pkg/ink, callfetch('/openapi/...'), or assumeapiis global. - Guard import, initialization, and API calls with
try/catch. - The runtime injects authentication. Do not manually pass or log
access_tokenorx-request-agent-id. - Operations with a request body require the exact
{ body: requestBody }wrapper. No-body operations receive no argument.
Choose an API
| Need | Runtime call | Detailed reference | |
|---|---|---|---|
| Account ID, name, avatar, or phone | api.account.getProfile() | `references/get-profile.md` | |
| Invoke a Lingzhu agent / stream output | api.agent.invokeAgentApi({ body }) | `references/invoke-agent-api.md` | |
| Check sensitive-information permission | api.auth.checkUserAuth() | `references/check-user-auth.md` | |
| Save a third-party token | api.agent.saveThirdToken({ body }) | `references/save-third-token.md` | |
| Get the current agent's third-party token | api.agent.getThirdToken() | `references/get-third-token.md` | |
| Consume one cached AIUI message | api.agent.getAIUICacheMessage() | `references/get-aiui-cache-message.md` |
For shared protocol rules and the complete operation index, read `openapi-reference.md`. Before implementing a specific operation, read its corresponding file under references/; those files are authoritative for operation-specific request, response, field, event, and error details.
Minimal call shapes
saveThirdToken requires { body: { company, token, refreshToken?, meta?, expireInMs? } }. company and token are required; success is code === 1 with data === null. expireInMs is an optional millisecond TTL that defaults to 2592000000 (30 days) when omitted. Tokens are sensitive and are cached for the current user/company.
invokeAgentApi returns an EventSource immediately—never await it. Reuse one conversation_id for the lifetime of an open agent session. For its SSE stream, parse each event.data, append only non-empty step: 'content' message.content, exclude thought, inspect metadata for tools, and surface error event message.content to the user. Handle both tool_call_finsh and tool_call_finish.
Safety rules
- Treat
mobile,token, andrefreshTokenas sensitive. Null-check restricted fields, mask phone numbers, and never log/persist/expose credentials. checkUserAuthis informational, not a hard gate. Continue the flow when it is false or unavailable, while checking restricted fields defensively.getThirdTokenwithcode === 1anddata === nullis a successful no-token state.getAIUICacheMessagewithcode === 1anddata === nullis an empty-cache state. Retrieval deletes atomically; do not blindly retry.- Display a non-empty
profile.notificationverbatim and visibly.
Common mistakes
Do not flatten request-body fields, await the SSE method, generate a new conversation ID for every message, pass arguments to no-body methods, concatenate thought output, invent undocumented response fields, or treat an informational permission failure as a transport failure.
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/aiui-cloud-apis/SKILL.md
Popularity
- Repository stars
- 54
- Repository forks
- 20
- 7-day trend score
- 25
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 9 Oct 2026, a month ago.
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/yodaos-project/aiui/aiui-cloud-apis)