iblai-vibe-agent-screenshare
Skill222 starsChanged 13 days agoMITView on GitHub
Add the agent Screen tab (turn screen sharing on for voice calls and write the two screen-sharing prompts) to your Next.js app. Use when the user mentions screen sharing, screen share, 'let the agent see my screen', video during voice calls, or the screen-sharing system or proactive prompt. For the voice and call settings themselves see /iblai-vibe-agent-voice; for the REST contract see /iblai-api-agent-voice.
- Reads credentials
- Installs packages
1 other project uses a version of this.
Adopted by
Most recently taken up by
- iblai/vibeword for word, first seen Nov 29, 2026
Other versions1 project uses a version of this.
Word for word · 1
- iblai/vibe★ 222100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository166 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- iblai-vibe-pr-reviewSkill
- iblai-api-agent-accessSkill
- iblai-api-agent-auditSkill
- iblai-api-agent-chatSkill
- iblai-api-agent-createSkill
- iblai-api-agent-datasetSkill
- iblai-api-agent-disclaimerSkill
- iblai-api-agent-embedSkill
- iblai-api-agent-evalSkill
- iblai-api-agent-historySkill
- iblai-api-agent-llmSkill
- iblai-api-agent-mcpSkill
- iblai-api-agent-memorySkill
- iblai-api-agent-privacySkill
- iblai-api-agent-promptSkill
- iblai-api-agent-safetySkill
- iblai-api-agent-sandboxSkill
- iblai-api-agent-sessionSkill
- iblai-api-agent-settingSkill
- iblai-api-agent-skillSkill
- iblai-api-agent-supportSkill
- iblai-api-agent-toolSkill
- iblai-api-agent-voiceSkill
- iblai-api-inferenceSkill
- iblai-api-searchSkill
- iblai-vibe-agent-accessSkill
- iblai-vibe-agent-analyticsSkill
- iblai-vibe-agent-apiSkill
- iblai-vibe-agent-assistantSkill
- iblai-vibe-agent-auditSkill
- iblai-vibe-agent-billingSkill
- iblai-vibe-agent-chat-sidebarSkill
- iblai-vibe-agent-chatSkill
- iblai-vibe-agent-createSkill
- iblai-vibe-agent-datasetSkill
- iblai-vibe-agent-disclaimerSkill
- iblai-vibe-agent-embedSkill
- iblai-vibe-agent-evalsSkill
- iblai-vibe-agent-graderSkill
- iblai-vibe-agent-historySkill
- iblai-vibe-agent-llmSkill
- iblai-vibe-agent-ltiSkill
- iblai-vibe-agent-mcpSkill
- iblai-vibe-agent-memorySkill
- iblai-vibe-agent-privacySkill
- iblai-vibe-agent-promptSkill
- iblai-vibe-agent-safetySkill
- iblai-vibe-agent-sandboxSkill
- iblai-vibe-agent-searchSkill
- iblai-vibe-agent-settingSkill
- iblai-vibe-agentSkill
- iblai-vibe-agent-skillsSkill
- iblai-vibe-agent-supportSkill
- iblai-vibe-agent-taskSkill
- iblai-vibe-agent-toolSkill
- iblai-vibe-agent-virtual-machineSkill
- iblai-vibe-agent-voiceSkill
- iblai-vibe-incognitoSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Add the agent Screen tab -- how the agent behaves when a user shares their screen during a voice call.
- Very specific: line 67
Look for iblai.env in the project root with PLATFORM, DOMAIN, and TOKEN.
- Very specific: line 173
If clearing enable_video fails, the switch stays on and says "Couldn't turn off Screen Sharing for voice calls.
- Very specific: line 196
Run /iblai-vibe-ops-test before telling the user the work is ready, and give every page, control and state this skill added its own …
- Distinctive: line 216
A missing key: when voice calls need an API key from their AI provider and none is saved, turning Screen Sharing on is refused with "Screen …
≈ “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.
Files
/iblai-vibe-agent-screenshare
Add the agent Screen tab -- how the agent behaves when a user shares their
screen during a voice call. Scope: per agent. The Screen Sharing
switch saves the agent's capability_screen_share flag, which is what puts
the screen-share button in the chat. The two prompt cards live on the agent's
call configuration (one row per agent): Instructions During Screen
Sharing (the system prompt used while a screen is shared) and What the
Agent Says When Screen Sharing Starts (the proactive opener). Both apply to
every user who calls that agent. This is one tab in the agent-settings family
indexed by /iblai-vibe-agent; it shares the AgentSettingsProvider wrapper
with every other tab.
Prompts -- screen sharing on, both prompts set. Edits stay local until Save.
Edit dialog -- Edit on either card opens the shared rich-text prompt
editor (EditPromptModal, the same one the Prompts tab uses). Its Save
writes the text back to the card; the tab's Save sends it.
Image: Screen tab -- edit prompt dialog
Off -- with the switch off the cards stay visible but grayed out and
inert, and the header adds "Turn it on to let people share their screen
during a call and edit these prompts." The switch saves immediately and
toasts "Screen Sharing turned on" / "Screen Sharing turned off". An agent
that has only the call configuration's enable_video on (all the old switch
wrote) shows off: the chat offers screen sharing only while the flag is on.
Image: Screen tab -- screen sharing off
Common setup (brand, conventions, env files, verification): see docs/skill-setup.md.
Prerequisites
- Auth set up (
/iblai-vibe-auth, or vibe-starter). AgentSettingsProviderwraps the route (/iblai-vibe-agent§1).@iblai/iblai-js@^3.1.0(resolves@iblai/web-containers2.1.0, where the switch savescapability_screen_share). Check withpnpm why @iblai/web-containers.- A platform that returns
capability_screen_shareon the agent's settings (API version 4.467.0 or later). On an older one, or for a person who may not read the flag, the switch reads and writes the call configuration'senable_video, as it did before. - A real agent UUID. Ask the user; never invent one.
- Voice calls on for the agent (the Voice tab's Calls sub-tab,
/iblai-vibe-agent-voice): screen sharing happens inside a voice call, and always in Live Conversation mode. - An org admin to save the prompts: call configurations have no agent-level
permission, so for an agent editor Save shows "Couldn't save screen
sharing prompts". Turning the switch off also writes the call
configuration while its
enable_videois on (see How it saves).
Step 1: Check Environment
Look for iblai.env in the project root with PLATFORM, DOMAIN, and
TOKEN. If it is missing, tell the user:
"You need an iblai.env with your platform configuration. Download the
template and fill in your values:
curl -o iblai.env https://raw.githubusercontent.com/iblai/vibe/refs/heads/main/iblai.env"
Step 2: Mount AgentScreenShareTab
// app/(app)/agents/[mentorId]/screenshare/page.tsx
"use client";
import { AgentScreenShareTab } from "@iblai/iblai-js/web-containers/next";
export default function AgentScreenSharePage() {
return (
<div className="flex h-full flex-col bg-white">
<AgentScreenShareTab />
</div>
);
}The tab reads tenantKey, mentorId, and username from
AgentSettingsProvider and does its own fetching and saving. No props are
required.
To render the prompts differently on the cards (for example as Markdown with
the renderer you already pass to AgentPromptsTab), pass
renderPromptContent:
import { AgentScreenShareTab } from "@iblai/iblai-js/web-containers/next";
<AgentScreenShareTab
renderPromptContent={(content) => (
<p className="text-sm whitespace-pre-wrap text-gray-700">{content}</p>
)}
/>;Step 3: Customize Labels (Optional)
The tab renders with the default agent-facing copy
(AGENT_SCREENSHARE_TAB_LABELS, localized through the SDK's i18n). Pass a
partial labels object to change any string:
import { AgentScreenShareTab } from "@iblai/iblai-js/web-containers/next";
<AgentScreenShareTab
labels={{
header: { title: "Screen sharing" },
fields: { proactivePrompt: { label: "Opening line" } },
}}
/>;Label groups (ScreenShareTabLabels): header (title, description),
capability (title -- the switch's accessible name, "Screen Sharing";
description, offHint), disabledHint, fields.systemPrompt and
fields.proactivePrompt (label, placeholder each), saveButton,
savingButton, toasts (saved, error: the prompts' Save, and the
switch without the flag), and errors (turnOff: shown under the banner
when turning the switch off can't clear enable_video). The switch's
"turned on" / "turned off" toasts, its lock reason and a refused flag save's
sentence come from the SDK's catalogue, not from labels.
Step 4: Use MCP Tools for Customization
get_component_info("AgentScreenShareTab")
get_component_info("AgentSettingsProvider")<AgentScreenShareTab> Props
Import from @iblai/iblai-js/web-containers/next.
| Prop | Type | Required | Description |
labels | DeepPartial<ScreenShareTabLabels> | No | Override user-visible strings |
renderPromptContent | (content: string) => ReactNode | No | Render each prompt as rich content. Defaults to plain text |
tenantKey | string | No | Identity override. Falls back to AgentSettingsProvider |
mentorId | string | No | Identity override (agent UUID). Falls back to AgentSettingsProvider |
username | string | No | Identity override. Falls back to AgentSettingsProvider |
Related Exports
From @iblai/iblai-js/web-containers/next:
AGENT_SCREENSHARE_TAB_LABELS-- the default label bundle.ScreenShareTabLabels,AgentScreenShareTabProps-- types.
How it saves
Paths are under /api/ai-mentor/orgs/{org}/users/{username}/.
| Action | Request |
| Load | The agent's settings embed call_configuration; when absent the tab lists call-configurations/?mentor=<uuid> |
| Switch on | PUT mentors/{uuid}/settings/ with capability_screen_share: true only (plus can_use_tools: true when the agent could not use tools yet; false is never sent) |
| Switch off | While the call configuration's enable_video is on, first PATCH call-configurations/{id}/ with enable_video: false (calls keep sharing video while either one is on); then the same PUT with capability_screen_share: false |
| Switch, without the flag (an older platform, or a person who may not read it) | PATCH call-configurations/{id}/ with enable_video; with no row yet, POST call-configurations/ (mentor, mode: "realtime", language: "en", enable_video) |
| Save | PATCH call-configurations/{id}/ (or POST when no row exists) with screensharing_system_prompt and screensharing_proactive_prompt |
If clearing enable_video fails, the switch stays on and says "Couldn't turn
off Screen Sharing for voice calls. Try again." under the banner. A refused
flag save turns the switch back and shows one sentence there, never a toast.
The switch is locked, with "You don't have permission to change this.", when
the person may not change the flag, or, while it is off on an agent that
cannot use tools yet, may not change can_use_tools. The agent's model never
locks it. Save stays disabled until a prompt changes.
Platform data
| Hook | Purpose |
useGetMentorSettingsQuery | Agent settings: capability_screen_share and the embedded call_configuration |
useEditMentorMutation | Save capability_screen_share |
useGetCallConfigurationsQuery | Fallback list when settings carry no call configuration |
useCreateCallConfigurationMutation, useUpdateCallConfigurationMutation | Create / patch the row |
REST twin: /iblai-api-agent-voice
(call configurations: enable_video, screensharing_system_prompt,
screensharing_proactive_prompt).
Step 5: Verify
Run /iblai-vibe-ops-test before telling the user the work is ready, and give
every page, control and state this skill added its own checkpoint — one Playwright
test titled <ID> · … in e2e/journeys/, listed in e2e/coverage.json;
pnpm e2e:coverage must pass:
pnpm build-- must pass with zero errors.pnpm test-- vitest must pass.- Touch test
/agents/<uuid>/screensharein the browser as/iblai-vibe-ops-testsays: the switch and both prompt cards render; turn the switch on ("Screen Sharing turned on"); edit the opener, Save, reload -- the text persists; read the console; check the phone width.
Important Notes
- Per agent, not per user: one call configuration per agent; every caller gets the same prompts.
- Default system prompt: a new call configuration starts with the platform's screen-guidance prompt, so the first card is rarely empty.
- Live conversation only: screen sharing ignores the call style set on the Voice tab's Calls sub-tab and always streams.
- A missing key: when voice calls need an API key from their AI provider and none is saved, turning Screen Sharing on is refused with "Screen Sharing needs an API key from the AI provider this agent uses on voice calls. Add it in Secrets in your organization settings, then turn it on again." While Screen Sharing is on without that key, other capability switches and model changes can be refused for the same reason, and say so.
- Shared provider: mount
AgentSettingsProvideronce at the layout level (/iblai-vibe-agent§1); do not wrap each tab. - Peer deps:
sonnerand@iblai/iblai-web-mentor(pnpm add sonner @iblai/iblai-web-mentor). - Brand guidelines: BRAND.md
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
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.

