jayalbo/agora-dev-skill
Overview
This skill is a comprehensive Agora.io developer assistant that generates production-ready code, troubleshooting guidance, and architecture advice for real-time engagement apps. It covers video/voice calls, live streaming, cloud recording, media push/pull, and conversational AI agents across Web, iOS, Android, React Native, and Flutter. Use it to get secure token servers, platform-specific examples, and operational best practices tailored to production needs.
How this skill works
I inspect your platform requirements and read the appropriate template for the requested feature, then customize initialization, error handling, and cleanup for your scenario. I generate complete examples (imports, SDK init, token usage, lifecycle management) and provide setup steps, permission notes, and server-side token guidance. For cloud services I create REST workflows for recording, media push/pull, and conversational AI agents with integration notes for storage and CDN targets.
When to use it
- You mention "Agora" or request real-time audio/video functionality
- Building 1:1 or group video/voice calls across web or mobile
- Implementing cloud recording, RTMP streaming, or injecting external streams
- Creating a token server or fixing token-related 401/403 errors
- Adding conversational AI voice agents, STT/TTS, or low-latency bots
Best practices
- Always generate tokens server-side; never expose App Certificate in client code
- Use proper cleanup: stop/close tracks, leave channel, remove event listeners
- Choose channel profile appropriate to use case (Communication vs. Live Broadcast)
- Monitor network quality and enable dual-stream or adaptive bitrate for poor networks
- Include token refresh logic and graceful reconnection handling
Example use cases
- Generate a React TypeScript video call component with explicit setup and npm commands
- Create a Node.js token server that returns RTC and RTM tokens with expiration handling
- Implement cloud recording workflow to S3 with resource acquire/start/stop monitoring
- Configure media push to stream an Agora channel to YouTube/Twitch via RTMP
- Build a conversational AI agent that joins a channel with STT and TTS integration
FAQ
Usually a token issue: check App ID matches the token, token expiry, exact channel name casing, and that the token was generated with the correct UID/role.
Where should I generate tokens and store App Certificate?
Always generate tokens on a secure server. Store App Certificate server-side and never commit it to client code or public repos.