
widget-forms
Ask for structured ChatCut input using the current plugin host's supported form surface.
- Installs
- 159
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/chatcut-inc/agent-plugin --skill widget-forms- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads widget-forms automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Widget Forms Host Adapter
The canonical agent's raw <widget>, <choices/>, and <visual-option> tags render only inside ChatCut. Never emit those tags from the published Codex or Claude Code plugin.
Semantic contract mapping
This adapter owns how plugin hosts implement a caller's host-neutral form contract. It does not decide which fields the workflow requires.
Map semantic field types as follows:
short_text: one text input.explicit_consent: one explicit, initially unselected confirmation control using the caller's full localized copy. An attachment or another submitted field is never consent.audio_reference: plugin forms cannot record or upload media. Render the other fields, ask the user to attach the audio to the conversation, then loadasset-import. Return the imported ChatCut audioassetIdto the calling workflow; never return a local path, attachment URL, or raw bytes as an asset id.playable_single_choice: one choice surface with stable option values, localized labels, and playable media when the host supports it. Keep the value-to-label map in context when a host returns the visible label.playable_preview: one display-only, non-submitting audio surface using the exact caller-provided runtime media URL. Use only a host-supported safe media renderer; never emit raw<audio>HTML or expose the URL as ordinary prose.
Codex
Call the ChatCut MCP tool ask_followup_questions. Put related fields into one form, write visible text in the user's language, and stop after the call until the submitted answer appears in chat. Use the current tool schema for field and option shapes.
Map playable_single_choice to one single field with variant:"voice".
Use each stable value as the option id and keep its localized label,
description, and audioUrl tied to the same caller-provided item. An action
without playable media has no audioUrl.
Map an MG reference style choice to one single field with variant:"visual".
Use the reference ID as the option id, its short title as the label, and the
selected detail's heroPreview.url as preview. Include one __other__ option
labeled "Other" in the user's language; the tool supplies its text input. That branch accepts
either a new preference or a request for another batch; do not add a separate
Show more option. Return the selected reference ID to the MG skill; it owns
application. Do not bind apply_preset directly to a reference ID.
Example field, replacing the reference placeholders with the fetched shortlist and localizing the labels:
{
"id": "mg_style",
"label": "Choose a Motion Graphics style",
"type": "single",
"variant": "visual",
"options": [
{ "id": "REFERENCE_ID", "label": "TITLE", "preview": "HERO_PREVIEW_URL" },
{ "id": "__other__", "label": "Other" }
]
}
The Other answer returns to discovery, without applying a style or starting production. Keep the image-option IDs unchanged in the next step.
Map an AI-avatar identity choice to one single field with variant:"visual".
Use the live identityId as the option id, the returned name as its label,
previewVideoUrl as previewVideo, and previewImageUrl as preview. The
image remains the poster and automatic fallback if video loading fails. Keep
create_avatar as a label-only option. Selecting it returns that value to the
workflow; it does not open ChatCut's native avatar dialog, so request the source
attachment separately and use asset-import.
Do not call ask_followup_questions solely to display a playable_preview,
because a passive preview is not a question. Use Codex's supported audio
attachment/media rendering when available. If this host session has no safe
runtime-URL audio renderer, say that the preview is available in the ChatCut
project assets and continue with the caller's separate branch decision; do not
print HTML, a bare URL, or a fake widget tag.
Map explicit_consent to a single-select field containing only one confirmation
option. Use the caller's full confirmation copy as its label and do not
preselect it. Mark every blocking field as required and verify every required
answer after submission before continuing.
Claude Code
Follow the structured-input recipe in chatcut-plugin-basics-claude: use one visualize.show_widget Elicitation form, submit only through .elicit-submit, and wait for the user to send the filled prompt. Never call ChatCut's ask_followup_questions in Claude Code because that host does not render its MCP-App result.
Map explicit_consent to an unchecked checkbox using the caller's complete
localized copy. Do not add a file chooser for audio_reference; request the
conversation attachment outside the form and load asset-import after the
user sends it.
For playable_single_choice, resolve bundled media keys through
${CLAUDE_PLUGIN_ROOT}/assets/widget-media/manifest.json; use a label-only card
when a key is absent and never embed or process the original source URL. Keep
the stable value in the label-to-id map rather than exposing it as the DOM audio
key. Runtime media URLs are not in the bundled manifest: do not embed them in
Elicitation HTML. Present them through the host's normal safe link/audio
surface, then use a label-only confirmation control.
AI-avatar previews are runtime catalog media and are not bundled in the plugin
manifest. Keep each authoritative identityId mapped to its returned name,
use label-only selectable cards in Elicitation, and tell the user that live
video previews are available in ChatCut's AI Avatars library. Never embed or
print the provider preview URL. A create_avatar selection returns to the
workflow and then follows the normal conversation-attachment plus
asset-import path.
For MG reference choices, look up the exact reference ID in the same manifest
(entries[referenceId], for example a mg-reference:style:… key). An image entry
provides path; resolve it against the manifest's immutable baseUrl and show
that image beside its short title in the Elicitation form. Keep reference IDs
mapped to the displayed labels. Do not substitute a similarly named preset.
The manifest may not include newly added references yet. For missing entries, use label-only choices and say their image previews are available in ChatCut; do not invent CDN paths, download or republish media during the conversation, or embed the runtime S3 URL. Include a single label-only Other choice with a text input. A preference or request for another batch returns to discovery, not style application.
FAQ
What does the widget-forms skill do?
Ask for structured ChatCut input using the current plugin host's supported form surface.
How do I install widget-forms?
Run npx skills add https://github.com/chatcut-inc/agent-plugin --skill widget-forms in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/widget-forms/ (personal) or .claude/skills/widget-forms/ (project).
Which AI agents can use widget-forms?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is widget-forms safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains widget-forms?
It is published by chatcut-inc in chatcut-inc/agent-plugin. It has 159 recorded installs.
More from chatcut-inc/agent-plugin
asset-import
chatcut-inc/agent-plugin
Import local or downloaded media, or relink missing media to an existing ChatCut asset, through the hosted Claude plugin. Use the editor loopback bridge when the editor and files are on the same machine; use the upload helper for imports otherwise. Desktop MCP sessions use their own built-in import tools.
create-motion-graphics
chatcut-inc/agent-plugin
Use when Codex uses the ChatCut plugin (chatcut MCP server) to add, create, hand-author, patch, or place Motion Graphic JSX assets. Covers reference browsing, direct inline JSX authoring, editable properties, asset binding, timeline placement, and composed verification.
talking-head-guide
chatcut-inc/agent-plugin
Guide for editing speech-led videos where spoken delivery or conversation drives the cut — single-speaker talking-head / 口播, two- or multi-speaker interview / 访谈, video podcast, lecture, tutorial, course, and similar formats. Load before analyzing, planning, or performing non-trivial edits of those formats, including speech cleanup (剪口播 / 口播剪辑 / 去口癖 / clean up fillers / smooth speech), pause or repeated-take removal, motion graphics layered onto the footage (口播加 MG / 加动画), B-roll (加 B-roll / add B-roll), music, or captions. For motion graphics specifically, use this together with the active Motion Graphics skill/workflow available in the current ChatCut environment — this skill adds speech-specific guidance (rhythm-aware timing, frame-aware placement, subject/caption protection, placement verification).
export
chatcut-inc/agent-plugin
Hosted ChatCut plugin sessions only (the chatcut MCP server). If the conversation is driving ChatCut Desktop (a chatcutdesktop MCP server), load this skill only when the user explicitly chooses the plugin/web surface — desktop sessions otherwise ship their own instructions and tools. Export or deliver a ChatCut project through the hosted connector, including video, audio, subtitles, XML, and render-status checks.
video-gen
chatcut-inc/agent-plugin
AI video generation via Seedance, Kling, Gemini Omni, MiniMax H3, and MiniMax H3 Max. Use when the user wants to generate a video clip — text-to-video, image-to-video, first/last-frame transitions, reference-guided generation — or wants to modify / edit / extend an existing generated clip.
verification
chatcut-inc/agent-plugin
Hosted ChatCut plugin sessions only (the chatcut MCP server). If the conversation is driving ChatCut Desktop (a chatcutdesktop MCP server), load this skill only when the user explicitly chooses the plugin/web surface — desktop sessions otherwise ship their own instructions and tools. Verify that ChatCut plugin edits are reflected in project structure and visible timeline output before reporting success.
Popular other skills
hyperframes-cli
heygen-com/hyperframes
The HyperFrames CLI by job - scaffold, check, look at frames, edit the timeline, preview, render locally or in the cloud, publish, project history - plus reading its JSON and recovering from build or render failures.
triage
mattpocock/skills
Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.
ask-matt
mattpocock/skills
Ask which skill or flow fits your situation. A router over the skills in this repo.
to-questionnaire
mattpocock/skills
Turn a decision you can't fully answer into a questionnaire for someone else to fill in.
loop-me
mattpocock/skills
Grill me about specs for the workflows I want to build, within this workspace.