Agent skill
interactive-input
Enables rich interactive UI components in chat responses. When presenting questions that require structured input (multiple choice, true/false, forms), embed interactive blocks that compatible clients render as native UI elements. Use when user asks for quizzes, exercises, surveys, or any structured input scenario.
Install this agent skill to your Project
npx add-skill https://github.com/sugarforever/01coder-agent-skills/tree/main/skills/interactive-input
SKILL.md
Interactive Input Blocks
Embed interactive UI components (radio buttons, checkboxes, text fields, toggles) directly in chat responses. Compatible clients render these as native UI elements; other clients show a readable JSON code block as fallback.
When to Use
- Quizzes and exercises (single/multiple choice, fill-in-the-blank)
- Surveys and polls
- Structured data collection (forms)
- Any scenario where the user needs to select from options or provide structured input
How It Works
Wrap a JSON block in a ```interactive code fence within your normal markdown response. You can mix regular text and interactive blocks freely in the same message.
Schema Reference
See references/schema.md for the complete schema specification.
Quick Example
When presenting a multiple-choice question, instead of listing options as text:
Here's your first question:
```interactive
{
"id": "q1",
"card": {
"body": [
{ "type": "TextBlock", "text": "What is the capital of France?", "weight": "bold" },
{ "type": "Input.ChoiceSet", "id": "answer", "style": "expanded",
"choices": [
{ "title": "A. London", "value": "london" },
{ "title": "B. Paris", "value": "paris" },
{ "title": "C. Berlin", "value": "berlin" },
{ "title": "D. Madrid", "value": "madrid" }
]
}
],
"actions": [{ "type": "Action.Submit", "title": "Submit" }]
}
}
```
Rules
- Every interactive block MUST have a unique
idfield - Every interactive block MUST have at least one element in
card.body - Include an
Action.Submitincard.actionsso the user can submit their response - Use
"style": "expanded"for choice sets to show all options visually (recommended for quizzes) - Use
"style": "compact"for dropdown selects when there are many options - Set
"isMultiSelect": trueonInput.ChoiceSetfor multiple-choice questions - The first
TextBlockin the body is used as the question label in the submitted response - You can include multiple interactive blocks in one message (e.g., a full quiz)
- Always wrap the JSON in a
```interactivecode fence — never use```jsonfor interactive blocks - Keep the JSON compact and valid — no comments, no trailing commas
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
video-script
Create video scripts and publishing materials for YouTubers/UP主. Use when user wants to prepare a video, write a script (口播稿), generate video title, description, tags, or chapter timestamps. Triggers on "写视频脚本", "视频口播稿", "video script", "prepare video", "视频发布素材", or mentions creating content for YouTube/Bilibili.
china-stock-analysis
A股价值投资分析工具,提供股票筛选、个股深度分析、行业对比和估值计算功能。基于价值投资理论,使用akshare获取公开财务数据,适合低频交易的普通投资者。
publish-zsxq-article
Publish Markdown articles to Zsxq (知识星球) as drafts. Use when user wants to publish a Markdown file to Zsxq, or mentions "发布到知识星球", "星球文章", "zsxq article". Handles Markdown content input and saves as draft (never auto-publish).
share-reading
Draft social media posts to share valuable readings, articles, or resources. Use when user wants to share a link, article, or reading on social media (X/Twitter, Substack, 知识星球), or mentions "分享这篇文章", "share this article", "write a post about this", "推荐一下这个", or provides a URL and asks to write sharing content.
personal-writing-style
Personal writing style preferences. Reference this skill when writing, translating, or editing content to ensure consistent style, punctuation, and formatting.
Python Security Scan
Comprehensive security vulnerability scanner for Python projects including Flask, Django, and FastAPI applications. Detects OWASP Top 10 vulnerabilities, injection flaws, insecure deserialization, authentication issues, hardcoded secrets, and framework-specific security problems. Audits dependencies for known CVEs and generates actionable security reports.
Didn't find tool you were looking for?