agentleFS
CloudflareKnown publishercloudflare/realtimekit-ui/.agents/skills/realtimekit-sdk-map/SKILL.md

realtimekit-sdk-map

Skill76 starsChanged 6 days agoApache-2.0View on GitHub

Use for work in the realtimekit-ui repo. Map the public rtk-* components, UIConfig, exports, and generated React/Angular wrappers to their source. Reason from what an application renders and sees, not from one internal file.

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 6 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Read the component or helper source before relying on this table.

    line 27
  2. Very specific:

    Add a component prop or event in its .tsx source.

    line 39
  3. Distinctive:

    Do these steps before you plan or edit.

    line 43
  4. Distinctive:

    If the task changes nothing a consumer can see (tests, CI, internal rename), say "No UI Kit consumer behavior changes" and skip the …

    line 45
  5. Distinctive:

    Trace from the public surface inward: Start with the component prop, event, CSS variable, or export and follow the code path to the change.

    line 48
  6. Distinctive:

    Default config and custom configs.

    line 52
  7. Very specific:

    If this list shows many flows or areas that the request did not mention, the change is a big change under minimal-changes.

    line 56
  8. Very specific:

    Do not add @Prop() or @Event() to a component for an internal-only value.

    line 63
  9. Very specific:

    Use rtkStateUpdate for child state events.

    line 64
  10. Very specific:

    Before removing or changing a public surface, check breaking-changes and get explicit approval if it breaks existing apps.

    line 65
  11. Distinctive:

    Do not edit generated React or Angular proxies, generated declarations, or publish output to change an API.

    line 67
  12. Very specific:

    Use these words only with their existing meaning.

    line 71

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

RealtimeKit UI Kit map

Who the customer is

An application developer installs @cloudflare/realtimekit-ui or a framework wrapper. They use rtk-* components, props, events, UIConfig, design tokens, and exported helpers. The UI Kit consumes the separate @cloudflare/realtimekit SDK through its meeting prop. Do not change SDK source or promise SDK behavior here.

Public surfaces and source

Application usesSource of truth
<rtk-meeting> shell and rtkStatesUpdatepackages/core/src/components/rtk-meeting/rtk-meeting.tsx
<rtk-ui-provider> and its storepackages/core/src/components/rtk-ui-provider/rtk-ui-provider.tsx, packages/core/src/utils/sync-with-store/
Another <rtk-*> component, its props and eventspackages/core/src/components/rtk-<name>/rtk-<name>.tsx
Default layout and stylespackages/core/src/lib/default-ui-config.ts, packages/core/src/types/ui-config/
UI config renderingpackages/core/src/lib/render/, packages/core/src/lib/builder/
Theme and CSS variablespackages/core/src/theme/, component CSS, packages/core/src/utils/provide-design-system.ts
Package utilities and typespackages/core/src/exports.ts, re-exported by packages/core/src/index.ts
React/Angular wrappersGenerated from core by packages/core/stencil.config.ts; never edit stencil-generated/ by hand

packages/core/package.json defines package export paths. packages/react-library/ and packages/angular-library/ have their own package entries. Vue is deprecated; do not add components to it. Generated packages/core/src/components.d.ts, dist/, and loader/ are not source files.

Read the component or helper source before relying on this table. Update the table when a new public surface needs a new row, not for each new prop.

How an app uses the UI Kit

app markup or JSX -> rtk-* props -> component render and handlers
                              -> UIConfig root/styles -> lib/render/
component state events -> rtk-meeting or rtk-ui-provider -> UI store
store props -> @SyncWithStore() -> child components
meeting prop -> component handlers -> separate core SDK

Add a component prop or event in its .tsx source. Add a shared helper under packages/core/src/lib/ or utils/ and export it through packages/core/src/exports.ts only when consumers need it. Update default layouts in default-ui-config.ts only when the requested change applies to every consumer of those defaults.

Think like the UI Kit

Do these steps before you plan or edit.

If the task changes nothing a consumer can see (tests, CI, internal rename), say "No UI Kit consumer behavior changes" and skip the remaining steps.

  1. Say it in consumer terms. For example: "An app renders <rtk-meeting> with config and expects this control to appear." If the request names an inner file, find the component or export that uses it.
  2. Trace from the public surface inward. Start with the component prop, event, CSS variable, or export and follow the code path to the change.
  3. Check what else the customer sees. Go through this list:

    • Other components using the same helper, UIConfig selector, store value, or design token.
    • Events: do rtkStateUpdate and rtkStatesUpdate still fire with the expected detail?
    • Default config and custom configs; small and large sizes; prejoin and joined screens.
    • Applications using the HTML custom elements, React wrapper, or Angular wrapper.
    • Whether meeting-dependent UI handles a missing or changed meeting prop as before.

    If this list shows many flows or areas that the request did not mention, the change is a big change under minimal-changes. Explain the impact and wait.

  4. Report in app terms. Describe the prop, markup, config, visual result, or event to check.

Keep internal things out of the public API

@Prop(), @Event(), UIConfig, exports.ts, CSS variables, and package export paths can all affect applications.

  • Do not add @Prop() or @Event() to a component for an internal-only value. Use @State() or a private field for internal state.
  • Use rtkStateUpdate for child state events; rtk-meeting and rtk-ui-provider emit rtkStatesUpdate.
  • Before removing or changing a public surface, check breaking-changes and get explicit approval if it breaks existing apps.
  • JSDoc on component props and events reaches consumers through generated Stencil types and docs. Follow realtimekit-jsdoc.
  • Do not edit generated React or Angular proxies, generated declarations, or publish output to change an API.

Words that already have a meaning

Use these words only with their existing meaning. Choose another word for anything else (see strict-naming).

WordExisting meaning
meetingThe core SDK object supplied as a component prop. Not the UI Kit itself.
config / UIConfigThe UI tree, styles, and design tokens used by the rendering engine.
defaultConfigThe shared default object. Do not mutate it directly.
createDefaultConfig()Exported helper that clones defaultConfig for a new config.
statesUI state passed to components or held in the UI store.
rtkStateUpdateState update event from child components.
rtkStatesUpdateAggregated state update event from the shell or provider.
sizeComponent size prop; its reflected attribute drives size-* styles.

More detail

  • Folder rules: root AGENTS.md and the AGENTS.md files under packages/core/.
  • Component tree: packages/core/src/lib/default-ui-config.ts.
  • Package entries and commands: root and workspace package.json files.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.