agentleFS
OpenMinisOpenMinis/MinisSkills/generative-ui-minis/SKILL.md

generative-ui-minis

Skill438 starsChanged 3 months agoMITView on GitHub

In the current Minis environment, automatically convert text descriptions into a single-file HTML generator similar to Claude Artifact, with unified support for outputs such as cards, tables, records, timelines, code blocks, and charts. Use this skill first when users mention these components or visualization pages.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 6 are distinctive, and 0 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.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill first when users express any of the following intentions:

    line 24
  2. Distinctive:

    If the input is only a natural-language description, first use the script to automatically infer the basic blocks

    line 125
  3. Distinctive:

    If the content is complex, organize it into a JSON spec before rendering

    line 126
  4. Distinctive:

    After generating the HTML, send the workspace link directly to the user

    line 127
  5. Distinctive:

    If the user says:

    line 144
  6. Distinctive:

    Do not respond with text only.

    line 149

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Generative UI Minis Skill

This is a Claude Artifact-style generator skill designed for the current Minis / iSH environment.

The goal is not to modify the chat host itself, but to:

  1. Organize user instructions into a structured spec
  2. Render them with Python into a single-file HTML artifact
  3. Save it to /var/minis/workspace/
  4. Let users preview, share, and continue iterating directly

Automatic Trigger Scenarios

Use this skill first when users express any of the following intentions:

  • "Create a Claude Artifact / Claude-style page"
  • "Turn the answer into cards"
  • "Generate a table / record sheet / checklist"
  • "Organize the content into a timeline"
  • "Generate a code block display page"
  • "Create a chart / visualization page"
  • "Render this content as an HTML prototype"
  • "Create an interactive explanation page / artifact"

In particular, when the user also mentions: cards, tables, records, code blocks, timelines, charts, visualization pages, artifacts assume by default that this skill should be invoked to generate an additional page.

Currently Supported Unified Components

  • cards: information cards / KPI cards
  • table: table
  • records: record list
  • timeline: timeline / step flow
  • code: code block
  • chart: built-in bar chart
  • details: collapsible details

Main Scripts

1) Complete Artifact Generator

python3 /var/minis/skills/generative-ui-minis/scripts/generative_ui_artifact.py \
  "Weekly Project Report" \
  --text "Need overview cards\nNeed risk table\nNeed timeline\nNeed code block\nNeed chart"

By default, this outputs to:

/var/minis/workspace/<title>_artifact.html

2) Render from a JSON spec

python3 /var/minis/skills/generative-ui-minis/scripts/generative_ui_artifact.py \
  "Demo" \
  --spec /path/to/spec.json \
  --out /var/minis/workspace/demo_artifact.html \
  --json-out /var/minis/workspace/demo_spec.json

spec Format

{
  "title": "Generative UI Example",
  "summary": "Unified output of multiple components.",
  "chips": ["Artifact", "Cards", "Table"],
  "blocks": [
    {
      "type": "cards",
      "title": "Overview Cards",
      "items": [
        {"title": "Status", "value": "In Progress", "desc": "In the current iteration"}
      ]
    },
    {
      "type": "table",
      "title": "Record Sheet",
      "columns": ["Date", "Item", "Status"],
      "rows": [["03-17", "Generator Development", "Done"]]
    },
    {
      "type": "timeline",
      "title": "Timeline",
      "items": [
        {"title": "Phase One", "desc": "Requirements Organization"},
        {"title": "Phase Two", "desc": "Page Rendering"}
      ]
    },
    {
      "type": "code",
      "title": "Sample Code",
      "language": "python",
      "content": "print('hello artifact')"
    },
    {
      "type": "chart",
      "title": "Progress Chart",
      "series": [
        {"label": "Design", "value": 70},
        {"label": "Development", "value": 85}
      ]
    }
  ]
}

Recommended Workflow

  1. Determine whether the user needs an artifact page
  2. If the input is only a natural-language description, first use the script to automatically infer the basic blocks
  3. If the content is complex, organize it into a JSON spec before rendering
  4. After generating the HTML, send the workspace link directly to the user
  5. Continue modifying the spec or template based on feedback

Capability Boundaries

Can do:

  • Generate a unified single-file artifact HTML
  • Support cards, tables, records, timelines, code blocks, and charts
  • Serve as a visual supplement to an answer

Does not directly do yet:

  • Native message-level component injection into the chat host
  • Complex frontend applications driven by real-time databases
  • Long-running interactive server-side services

Trigger Recommendations

If the user says:

  • "Make me a card version"
  • "Also generate a table/timeline/code block"
  • "Organize it into an artifact page"

Do not respond with text only. Run this skill directly to generate an additional HTML artifact.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.