chainlit-generative-ui
Skill1 starsChanged 2 months agoMITView on GitHub
Use this skill in Chainlit when a response would benefit from a generated visual panel, interactive prompt buttons, a compact facts view, a short list, or a small comparison/status table using the render_chainlit_ui tool.
In this repository2 other files it gives its agents.
- repo-guideSkill
- reviewerSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 6 are distinctive, and 5 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.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use Chainlit generative UI as the active interaction layer for structured Chainlit turns while keeping the normal text response.
- Very specific: line 13
Call render_chainlit_ui only when that tool is available in the current tool list.
- Distinctive: line 14
Default to rendering UI for concise, user-facing structure: summaries, decision cards, status panels, short checklists, small tables, and …
- Very specific: line 17
Do not render arbitrary JSX, HTML, scripts, or custom component names.
- Distinctive: line 18
Do not describe generated panels as above or below the answer.
- Very specific: line 19
Put only plain strings in items.
- Very specific: line 20
Put prompt buttons in actions.
- Very specific: line 22
Do not duplicate the same option in items and actions.
- Distinctive: line 23
Keep generated panels compact.
- Distinctive: line 24
Do not put secrets, hidden reasoning, system messages, or internal tool details in the panel.
- Distinctive: line 72
After calling the tool, continue with the normal answer.
≈ “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
chainlit-generative-ui
Use Chainlit generative UI as the active interaction layer for structured Chainlit turns while keeping the normal text response.
Working rules:
- Call
render_chainlit_uionly when that tool is available in the current tool list. If it is absent, answer normally in text. - Default to rendering UI for concise, user-facing structure: summaries, decision cards, status panels, short checklists, small tables, and follow-up actions.
- Include
actionswhen the user may want next steps. Prefer useful continuation buttons such as "Run tests", "Show diff", "Explain config", or "Create PR". - Skip UI for simple one-sentence answers, conversational acknowledgements, and cases where a panel would duplicate the text without adding interaction.
- Do not render arbitrary JSX, HTML, scripts, or custom component names. This runtime only exposes the whitelisted
GeneratedPanelcomponent throughrender_chainlit_ui. - Do not describe generated panels as above or below the answer. Chainlit renders them after the text response, so use non-positional wording such as "the generated panel" or "the panel actions."
- Put only plain strings in
items. Do not put objects withlabelandpromptthere. - Put prompt buttons in
actions. Treat each button as a user-facing follow-up request with a clear label and prompt. - For checklist-style panels with follow-up buttons, put the checklist labels in
itemsand the clickable follow-ups inactions. - Do not duplicate the same option in
itemsandactions. If it is clickable, put it only inactions. - Keep generated panels compact. Put detailed reasoning, long explanations, code, logs, and large datasets in the text response or files instead.
- Do not put secrets, hidden reasoning, system messages, or internal tool details in the panel.
- Reuse
idonly when updating the same panel. Use a stable, short id such asdeployment-summaryorreview-findings.
Supported render_chainlit_ui fields:
title: short required panel title.summary: optional concise summary.facts: optional key-value object for compact facts.items: optional short list of strings. Do not use this field for prompt buttons.table: optional object withcolumnsandrows.actions: optional list of prompt buttons, each withlabelandprompt.id: optional stable panel id. Reusing the id updates the existing panel.
Example tool call:
{
"title": "Review Summary",
"summary": "Two blocking issues need fixes before merge.",
"facts": {
"Status": "Needs changes",
"Tests": "Targeted suite passed"
},
"items": [
"Fix stale Chainlit element updates",
"Add disabled-config coverage"
],
"table": {
"columns": ["Area", "Result"],
"rows": [
["Runtime", "Tool enabled only when configured"],
["Chainlit", "GeneratedPanel rendered as its own message"]
]
},
"actions": [
{
"label": "Show fixes",
"prompt": "Show me the exact fixes for the blocking review issues."
},
{
"label": "Run tests",
"prompt": "Run the targeted tests for this change."
}
],
"id": "review-summary"
}After calling the tool, continue with the normal answer. The panel should complement the answer, not replace it. Refer to it without above/below placement language.
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.

