skills/agora/references/testing-guidance/SKILL.md
Mocking patterns and testing requirements for Agora SDK integration code. Covers RTC Web, RTC React, RTC iOS, RTC Android, RTC React Native, RTC Flutter, RTM Web, RTM iOS, RTM Android, and ConvoAI REST API. Use when generating tests for any Agora integration, or when reminding the user to add tests to an implementation.
npx skillsauth add agoraio/skills agora-testing-guidanceInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Mocking patterns and completeness requirements for Agora SDK integration code.
Every code generation task that produces implementation code must include test stubs. If the user asks to "implement" something, remind them to generate tests before the task is complete. Do not mark an implementation task as done until tests are addressed.
For the reminder template, see completeness-gate.md.
Use the file that matches the user's integration:
| Stack | File |
|---|---|
| RTC Web (agora-rtc-sdk-ng) | rtc-web.md |
| RTC React (agora-rtc-react) | rtc-react.md |
| RTC iOS (Swift) | rtc-ios.md |
| RTC Android (Kotlin/Java) | rtc-android.md |
| RTC React Native / Flutter / RTM Web / RTM iOS / RTM Android / token renewal | mobile-rtm-and-renewal.md |
| ConvoAI REST API / backend HTTP integrations | convoai-rest.md |
| Completeness reminder and behavior-specific test prompts | completeness-gate.md |
Mock at the boundary your code owns:
At minimum, generated tests should verify the behaviors most likely to break:
agent_rtc_uid string, remote_rtc_uids array)tools
Activate when the user wants to build voice AI agents, video or voice calls, live streaming, screen sharing, in-app messaging and presence, recording, token or auth flows, or use the `agora` CLI for login, quickstarts, env setup, diagnostics, introspection, skills, or MCP serving, especially when integrating Agora into an app.
development
First skill to run when the user's Agora product need is unclear or involves multiple products. Understands the full product landscape, identifies user needs, recommends the optimal product combination, and routes to the appropriate skill. Use when the user describes a use case without naming a specific Agora product, or says things like "I want to build", "help me set up", or requests multiple capabilities (video + AI, recording + live, etc.).
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.
development
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.