Build a view with an AI agent
An AI coding agent such as Claude Code or Codex can build the view of your world for you when it follows the skill world-gui. A skill is a folder of instructions, references and templates that the agent loads when your request matches it. This one takes the agent along the path that UNaIVERSE follows for its own views and points it to the pages of this guide at every step.
Install the skill
One command downloads the skill from this site and puts it in the skills folder of your agent. It needs Node 18 or later:
curl -fsSL https://docs.unaiverse.io/gui-kit/skill/install.mjs | node --input-type=module -curl -fsSL https://docs.unaiverse.io/gui-kit/skill/install.mjs | node --input-type=module - --codexThe skill lands in ~/.claude/skills/world-gui/ (Claude Code) or in ~/.agents/skills/world-gui/ (Codex). The option --project puts it in .claude/skills/ or .agents/skills/ of the folder you run the command in. The option --dir <folder> names any other skills folder. The same command later updates the skill. It replaces an installed copy only when that copy is world-gui and leaves any other folder untouched. Your agent finds the skill in its next session.
Download the skill
The same skill is also available as one archive:
Download the skill (world-gui.zip)
Unzip it into the skills folder of your agent, where it adds the single folder world-gui/:
unzip world-gui.zip -d ~/.claude/skills/unzip world-gui.zip -d ~/.agents/skills/Use it
Open a session of the agent in the folder that holds the Python code of your world and ask for its view with a request such as "build the view of my quiz world". The agent loads the skill on its own. In Claude Code you can also call it by name with /world-gui.
What the agent does
The skill takes the agent through ten steps:
- An interview in two rounds: which world, who opens the view and where, the language, how to build the view (React, plain HTML, CSS and JavaScript, or another framework), then what the view must show beyond the moments of the world and where it goes online.
- The reading of the world: the roles with their states, the notes of the world, the pictures and questions sent by the members and the way each of them reaches the view.
- A
PRODUCT.mdthat keeps your answers for the rest of the work. - Two or three directions for the look rendered at phone size for you to choose from.
- The project with the stack you chose, the kit imported in one place and a switch between the fake world and the webapp.
- The logic that reads the world, in plain JavaScript with tests fed with the real words of the world.
- A fake world with those words, a small development control and a jump to each moment.
- The view, with every moment and every state of the world, on phone and desktop.
- Screenshots in real time through headless Chrome in light and dark and one round of fixes on what they show.
- The publishing on the server you choose and the address in the Own view field, only when you ask for it, followed by a README for the project. Since UNaIVERSE hosts no views, the agent uploads yours only to the server you named.
What stays yours
The skill never picks a look. Fonts, colours, illustrations, animations, the framework and any component library are chosen with you for each world. The components of this guide stay one possible starting point among many. What the skill keeps fixed is the contract with the webapp, which this guide describes:
- only the kit talks to UNaIVERSE (Thinking in views)
- the view has no header of its own and follows the theme, the safe areas and the keyboard of the webapp (The look of the webapp and the phone screen, Layout and style inside the webapp)
- the back button first closes the panels of the view (Links and the back button)
- the actions of the rules appear only where the world expects the person to choose them (The actions the rules offer)
- the senders stay hidden when the world hides them (Messages and questions)
- the view meets WCAG 2.2 AA (Accessibility).
What the archive holds
| Path | What it is |
|---|---|
SKILL.md | The instructions the agent reads first: the contract, the interview and the path. |
references/guide.md | The pages of this guide that each step needs. |
references/interview.md | The two rounds of questions and their options. |
references/reading-a-world.md | How notes, states, pictures, questions, members and data reach the view. It also lists the cases to handle. |
references/project-setup.md | The parts of a project that do not depend on the stack. |
references/fake-world.md | The fake world of the kit, the development action and the jumps. |
references/checking.md | Screenshots in real time and what to look at. |
references/publishing.md | The server, its header and the address in the webapp. |
scripts/shoot.mjs | Screenshots through the DevTools protocol (it needs Node 22 or later and Chrome). |
templates/ | The files the agent copies and adapts to your world: kit.js, connect.js, useWorld.js (React only), fakeWorld.js, devbar.js, preview.html and vite.config.js. |
Like the kit, the skill is released under the Apache License 2.0 and its archive carries the text of the license as LICENSE.