ui-mode

ui-mode is a cursor rule for Cursor from Tencent-RTC/agent-skills. It costs 2,406 tokens per session, scanned A, original, MIT.

A conditional interface rule for projects whose session configuration enables the official RoomKit or full UI mode. It also defines a shortcut for new medical video-consultation projects.

In plain words
What is it for?
Use it when checking UI-mode settings, generating supported interfaces, or starting a new medical consultation project that should use the bundled template.
Why use it?
It ensures the right interface-generation workflow is used for the configured project mode and avoids incompatible setup steps for the medical template.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when checking UI-mode settings, generating supported interfaces, or starting a new medical consultation project that should use the bundled template.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/tencent-rtc/agent-skills/ui-mode
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/Tencent-RTC/agent-skills

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ui-mode

README.md
[![agentmods](https://agentmods.dev/badge/rules/tencent-rtc/agent-skills/ui-mode/github.svg)](https://agentmods.dev/rules/tencent-rtc/agent-skills/ui-mode)
Your own site
<a href="https://agentmods.dev/rules/tencent-rtc/agent-skills/ui-mode"><img src="https://agentmods.dev/badge/rules/tencent-rtc/agent-skills/ui-mode/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ui-mode

Your own site · 80×15
<a href="https://agentmods.dev/rules/tencent-rtc/agent-skills/ui-mode"><img src="https://agentmods.dev/badge/rules/tencent-rtc/agent-skills/ui-mode.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,406 This file is loaded in full into every session.
When invoked 2,406 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.02406 $0.02406
Opus 5.5 $0.00962 $0.00962
Sonnet 5.5 $0.00481 $0.00481
Haiku 4.5 $0.00241 $0.00241

Measured 8d ago against content hash 9a35907ffd69, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ui-mode scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/ui-mode.mdc · 180 lines

How it starts

The opening of the file, as written. The whole thing — 180 lines — stays where its author put it; the contents beside it link to each section on GitHub.

TRTC AI Integration

Reply in the user's language.

TRTC products covered: Conference, Chat, Call, Live, RTC Engine, and Conversational AI (AI customer service / 智能客服 / voice agent scenarios).

Experience reporting and privacy

Experience data (Prompts, SDKAppID and business events) requires explicit agreement. Before agreement, retain only the first redacted real Prompt in the project-local consent slot; do not upload it, scan SDKAppID for telemetry, enqueue other Prompts, or backfill other pre-consent turns. A settings/env "on", silence, continued use, or an ambiguous reply is not agreement. Installation and Hook activation statistics remain independent: refusing experience data does not disable them. An explicit request to disable ALL reporting uses preference --enabled off --scope all; an experience-only opt-out uses preference --enabled off. Confirm only a successful result.

Report only the current real user input, never system/developer instructions, assistant output, tool results or assembled conversation history. Host-internal callbacks are not user turns. Native structured question answers contain user selections: the runtime keeps the answers, not the assistant's question or XML wrapper. A business confirmation is never privacy agreement. If the user explicitly pastes a host envelope for discussion, preserve their full message; use user_initiated: true only for that actual user-authored paste.

For every real TRTC user turn, Host bootstrap, Root and routed owners share ONE foreground Prompt entry and ONE retry budget. Reuse this turn's existing entry result across every handoff; an exit-zero call counts even when stdout is silent. awaiting_consent, prompt/queued and prompt/acknowledged do not need another Prompt call. Do not replay a Prompt to improve routing, repair an auxiliary failure or obtain another notice. Hook capture alone does NOT replace the required foreground entry.

Only if no foreground Prompt entry has been attempted for this user turn, make a bounded local route decision from the current message, without reading an owner Skill, network access or SDKAppID scanning. If reliable, include the owner's exact frontmatter name as route_hint and known product / framework. Resolve framework in this order and never skip it just because the turn looks like a docs/consulting question: (1) a platform keyword already present in the user's message; (2) the platform already known for this project and product; (3) n-a when the question has no platform dimension at all (pure server-side/backend topics: callbacks, persistence, field types, billing, room-management APIs); (4) omit the field so runtime records unknown. Never guess a platform just to keep the field non-empty; otherwise omit them. Never use root trtc as an owner. Run python3 ".cursor/skills/trtc/tools/reporting.py" prompt --input-stdin --require-input with a JSON-serialized object piped on stdin:

Read the full file on GitHub · 180 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago Changed · +21 lines · +622 tokens per session scan C → A 9a35907ffd69
  2. 3mo ago First seen · 159 lines · 1,784 tokens per session scan C e40545d5b6b3

Subscribe to this mod's changes

ui-mode is a cursor rule published in the GitHub repository Tencent-RTC/agent-skills (16 stars, last pushed 2d ago), licensed MIT. It adds 2,406 tokens to every session, about $0.0096 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

ui-mode compared with cursor rules from other repositories

ui-mode next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ui-modeTencent-RTC/agent-skillsCursor rule162d agoMITA2,406Cursor
i18n-guidegracefullight/docusaurus-pluginsCursor rule232mo agoMITA1,041Cursor
commitgracefullight/docusaurus-pluginsCursor rule232mo agoMITA10Cursor
frontendgracefullight/docusaurus-pluginsCursor rule232mo agoMITA0Cursor
infrastructuregracefullight/docusaurus-pluginsCursor rule232mo agoMITA0Cursor
dev-workflowgracefullight/docusaurus-pluginsCursor rule232mo agoMITA18Cursor
qualitygracefullight/docusaurus-pluginsCursor rule232mo agoMITA20Cursor