--- name: personal-apps description: Make or change a personal app - a small screen in the user's menu (a cockpit, a dashboard, a to-do board, a tracker) written in OpenUI Lang over files in apps//, which the user can click and drag in and which can send work back to you. Use when the user or another skill wants a page they can open from the menu instead of a chat answer. pinned: true --- # Personal apps An app is a folder `apps//`. The menu shows up to 5 apps, right under New chat. There is no app server: the screen shows files, the user's clicks change files or send you a message, and you keep the files up to date. Ask before replacing or deleting an app the user already has. ## Files - `app.json` - how the app shows in the menu: `{"title": "Cockpit", "description": "What needs you today", "order": 1, "files": ["assistant/profile.md"]}`. `id` (the folder name): lowercase letters, digits and dashes. `title` at most 40 characters. Lower `order` comes first; with more than 5 apps only the first 5 show - tell the user. `files` lists files outside the app's folder the screen may read and write. - `app.oui` - the screen, in **OpenUI Lang**. Read `skills/openui/SKILL.md` and its `reference.md` before writing one: the reference is the complete language and the only components that exist (Screen, Grid, Card, Tabs, Stat, List, Table, BarChart, LineChart, PieChart, Button, TextField, Slider, Board, ...). You write components and data bindings, never HTML or styles; the app's look comes from the design system. - Data files the screen reads and writes, e.g. `brief.md`, `tasks.json`. - `actions/.sh` - optional scripts the screen can run in the sandbox. The screen may read and write only its own folder (not `app.json` or `app.oui`) and the files in `files`. ## How the screen reaches things All through `Query("", {args}, {defaults}, refreshSeconds)` (reads, kept live) and `Mutation("", {args})` run by a button's `@Run(...)`. The tools: - `read_file {path}` -> `{text}`, plus `{data}` for JSON files. Give it a refresh interval (e.g. 10) so the screen follows the files you update. - `update_file {path, content}` -> writes the file (content may be text or a value saved as JSON). - `run {script, input}` -> runs `apps//actions/