# Query Cases

> Find existing API demo cases in the APIExample-SwiftUI project by feature name, API name, or keyword. Use this before creating a new case to avoid duplication.

- Skill: `agoraio/query-cases-5` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agoraio/query-cases-5`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agoraio/query-cases-5/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- License: MIT
- Author: agoraio (https://skillmd.com/u/agoraio)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/agoraio/query-cases-5

---


# query-cases — APIExample-SwiftUI

## When to Use

- User asks "where is the screen sharing example?"
- User wants to find code for a specific Agora SDK API
- Before creating a new case, to confirm it does not already exist

## Quick Search (try this first)

Search the `## Case Index` table in `ARCHITECTURE.md` — it lists every case with its path, key APIs, and description. Most queries can be answered without opening any source file.

## Deep Search (for complex queries)

1. Check `APIExample-SwiftUI/ContentView.swift` — the `menus` array lists all registered cases
2. Source files are at:
   - `APIExample-SwiftUI/Examples/Basic/<ExampleName>/`
   - `APIExample-SwiftUI/Examples/Advanced/<ExampleName>/`
3. Each case folder contains:
   - `<ExampleName>.swift` — Entry and Main SwiftUI views
   - `<ExampleName>RTC.swift` — engine lifecycle and delegate callbacks

## Common Query Patterns

| Query | Where to look |
|-------|--------------|
| Feature by name | Case Index — search Description column |
| API by method name | Case Index — search Key APIs column; or grep `*RTC.swift` files |
| All cases in a category | Case Index — filter by Path prefix `Basic/` or `Advanced/` |
| Cases using a specific pattern | Grep `*RTC.swift` files under `Examples/` |

## Output Format

Report results as:
- Case name and folder path
- Key APIs demonstrated
- One-line description

