一键导入
query-cases
Find existing API demo cases in the APIExample project by feature name, API name, or keyword. Use this before creating a new case to avoid duplication.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Find existing API demo cases in the APIExample project by feature name, API name, or keyword. Use this before creating a new case to avoid duplication.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | query-cases |
| description | Find existing API demo cases in the APIExample project by feature name, API name, or keyword. Use this before creating a new case to avoid duplication. |
| compatibility | ["Cursor","Kiro","Windsurf","Claude","Copilot"] |
| license | MIT |
| metadata | {"author":"APIExample Team","version":"1.0.0","platform":"iOS"} |
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.
Example: searching screenCapture in the Case Index immediately returns the ScreenShare row.
For queries like "which cases use multi-channel" or "which cases call joinChannelEx", scan source files:
APIExample/ViewController.swift — the menus array lists all registered casesAPIExample/Examples/Basic/<ExampleName>/<ExampleName>.swiftAPIExample/Examples/Advanced/<ExampleName>/<ExampleName>.swift| Query | Where to look |
|---|---|
| Feature by name (e.g. "screen share") | Case Index — search Description column |
API by method name (e.g. startScreenCapture) | Case Index — search Key APIs column |
| All cases in a category | Case Index — filter by Path prefix Basic/ or Advanced/ |
Cases using a specific pattern (e.g. joinChannelEx) | Grep source files under Examples/ |
Report results as:
Structured code review for a case in the APIExample (UIKit + Swift) project. Checks engine lifecycle, thread safety, permissions, error handling, API correctness, and code conventions.
Add a new API demo case or modify an existing one in the APIExample (UIKit + Swift) project. Covers folder creation, Entry/Main Swift file, storyboard, MenuItem registration, and Case Index update.
Code review for API examples. Ensures examples follow project conventions, handle lifecycle correctly, manage threads safely, and use APIs properly.
Add a new API example or modify an existing one. Covers both creation and modification scenarios, including file structure, per-example storyboard creation, registration, and ARCHITECTURE.md updates.
Code review for API examples. Ensures examples follow project conventions, handle lifecycle correctly, manage threads safely, and use APIs properly.
Add a new API example or modify an existing one. Covers both creation and modification scenarios, including dialog class structure, registration in APIExampleDlg, localization wiring, and ARCHITECTURE.md updates.