repetere/jsonx/jsonx-generative-ui
Claude Code and agent skill by repetere/jsonx
- community
Checking that the SKILL.md file is still in the repository.
Generate safe JSONX/JXM UI payloads only when a richer response is useful or explicitly requested. Use for agent sessions connected to an IDE, browser demo, or terminal workflow when the user wants interactive UI, quizzes, polls, sliders, review panels, dashboards, forms, or other generated interface output instead of plain text.
Install
npx vskill@latest install repetere/jsonx/jsonx-generative-uiSKILL.md
jsonx-generative-ui
Use this skill to decide whether a response should stay as text or become a safe JSONX/JXM interface payload. Generate UI when it improves the task, when the user asks for UI, or when the user confirms that an interactive control would help.
Response Decision
- If plain text is enough, answer normally.
- If the user explicitly asks for a UI, rendered interface, JSONX payload, IDE panel, quiz UI, poll, slider, form, dashboard, or review screen, generate JSONX.
- If the user asks for homework help, tutoring, study practice, or to be quizzed, ask whether they want a multiple-choice quiz UI unless they already requested one.
- If the user is choosing a preference, rating, priority, confidence level, budget, risk level, or other numeric input, ask whether they want a slider UI unless they already requested one.
- If the user is being polled, surveyed, triaged, or asked to compare options, prefer a small UI when it will make the response easier to answer.
- Do not force UI into normal explanations, code edits, command output, or short factual answers.
IDE Handoff
When the agent is running in VS Code, the Codex IDE extension, or a VS Code terminal with workspace write access, write the UI payload to:
Use this envelope:
If no IDE renderer or filesystem handoff is available, return the JSON object inline so the user can paste it into a renderer. Do not wrap JSON in Markdown fences when the user asked for a raw payload.
Allowed Component Registry
Use only these components and props unless the user provides a different host registry.
| Component | Allowed props | Use | |
|---|---|---|---|
DemoShell | title, summary | Required top-level wrapper. | |
SectionHeader | title, description | Label a major section. | |
MetricRow | items | Show 2-4 metrics, statuses, or counters. | |
DataTable | columns, rows | Show a compact comparison, queue, triage list, or records table. | |
Checklist | items | Show tasks, requirements, or review steps. | |
ActionPanel | title, primaryAction, secondaryAction | Show host-owned next actions. | |
Timeline | items | Show ordered events, milestones, or history. | |
Alert | tone, title | Show one important warning, success, or info message. | |
TextBlock | text | Add one short paragraph when other components are not enough. | |
MultipleChoiceQuiz | questions | Quiz the user with choices and optional explanations. | |
SliderPoll | question, min, max, step, value, leftLabel, rightLabel | Collect a numeric rating or preference. | |
ChoiceList | question, items, selectionMode | Collect one or more choices. |
Allowed Actions
Use only these action strings:
open_detaildraft_responseapprove_itemreject_itemfilter_tabledraft_refund_responseopen_customer_timelinesubmit_quizsubmit_pollsubmit_choice
Actions are labels for host-owned handlers. They must never contain JavaScript.
UI Patterns
- Homework or tutoring quiz:
DemoShell+MultipleChoiceQuiz+ optionalTextBlock. - Poll or preference input:
DemoShell+SliderPollorChoiceList. - Triage or review prompt:
DemoShell+MetricRow+DataTable+ActionPanel. - Compliance or checklist prompt:
DemoShell+Alert+Checklist+Timeline+ActionPanel. - Planning prompt:
DemoShell+SectionHeader+Checklist+DataTable+ActionPanel. - Status or portfolio prompt:
DemoShell+MetricRow+DataTable+Alert+ActionPanel.
Payload Rules
- Always put renderable UI under
payloadwhen writing an IDE handoff file. - Always use a top-level
DemoShellfor renderable payloads. - Include a concise
titleandsummary. - Include at least one useful child component.
- Prefer a structure that helps the user act.
- Keep tables small: 3-5 columns and no more than 6 rows.
- Keep quiz questions practice-oriented. Do not solve active graded questions for the user.
- If information is missing, represent assumptions as review items or ask a short question before generating the UI.
- Do not invent sensitive personal data.
Blocked JSONX Features
Never use these fields for generated UI payloads:
__dangerouslyEvalProps__dangerouslyBindEvalProps__dangerouslyEvalAllProps__dangerouslyInsertFunctionComponents__dangerouslyInsertClassComponents__dangerouslyInsertComponents__dangerouslyInsertReactComponents__dangerouslyInsertJSONXComponents__functionPropswindowpropsdangerouslySetInnerHTMLstyle
Also block inline event handler props such as onClick, onSubmit, and onChange; raw HTML; external URLs; arbitrary CSS; and unknown components or props.
Optional Motion
Animation is renderer-owned. The agent may request an allowlisted motionProfile only when the renderer supports it. Never return GSAP code, CSS animation code, arbitrary easing functions, inline styles, or JavaScript handlers.
Allowed motion profiles:
nonesubtle-entermorph-list-to-detailstate-change-highlight
The renderer can use GSAP with reduced-motion support when animation is enabled. Rendering must still work with animation disabled or without GSAP loaded. Keep GSAP out of the core jsonx npm package dependencies; it belongs in the hosted renderer, local preview, or plugin asset layer.
Examples
Multiple-choice Quiz UI
Slider Poll UI
Final Check
Before handing off a payload, verify that:
- The user actually benefits from UI or asked for it.
- The JSON parses.
- Every component, prop, action, and motion profile is allowlisted.
- No blocked JSONX field or inline event handler is present.
- The payload is saved to
.jsonx/ui/when an IDE handoff is available.
This skill is published for agent users, and the output contract is provider-neutral.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/codex/jsonx-generative-ui/SKILL.md
Popularity
- Repository stars
- 184
- Repository forks
- 18
- 7-day trend score
- 26
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/repetere/jsonx/jsonx-generative-ui)