# ui.sh

Design new UI with the ui.sh design guidelines, fetched live through the ui.sh MCP server with the user's own account. An opt-in: on only when the user switched it on in their Altitude account and the ui.sh MCP tool is connected.

Your agent loads it when the work comes up, or ask for `ui-sh` by name. Use for new pages, sections and components, and for UI ideas or variants to pick from in the browser. Triggers on 'use ui.sh', 'use the design guidelines', 'a few ideas for this section', 'show me three hero layouts', 'give me variants to pick from'. Craft, review and motion belong to the ui skill.

[ui.sh](https://ui.sh) sells design guidelines and skills for agents and serves them through its MCP server. This skill ships none of that text. It fetches what the task needs with the user's own account and adds the working notes for using it in a real project.

## Is it on?

Both must hold:

1. **The user switched it on.** The Altitude server's `whoami` or `settings` tool reports ui.sh as on for the account. Off, not reported, or the server not connected means off. The old `integrations["ui.sh"]` key in `~/.claude/altitude.json` counts as on while it still exists.
2. **The tool is there.** The ui.sh fetch tool, `mcp__uidotsh__uidotsh_fetch`, is in the session, loaded or listed as deferred. A deferred tool counts: load it and go on.

When either fails, say in one line which one (for example 'ui.sh is off in your Altitude account; switch it on at /account/skills' or 'ui.sh is on but its MCP server isn't connected'), then hand the work to the `ui` skill and stop here. Never write the guidelines from memory.

## Load

1. Fetch `uidotsh://ui` and follow its routing to the subskill that fits; `design` is its fallback. That resource is ui.sh's own root skill, not Altitude's `ui` skill. Its note that it runs only on an explicit `/ui` doesn't apply here: this skill is the explicit call.
2. Fetch the subskill and every guideline it points to before you write code. New UI starts at `uidotsh://ui/design-guidelines`, an index with no rules of its own. From it, fetch every topic that applies: always `responsive-design`, plus the section's own topic, such as `testimonials` or `pricing-cards`. Pass the URIs you already know together, as `uris`, in one call.
3. Load Altitude's `ui` skill as well. Its bar and craft files apply to everything built here, and so do its sections on how to work, review and verify. Where a guideline and the bar or a craft file disagree (shadows, heading leading, the typeface), the bar and the craft files win.

## Working notes

- **A request against a guideline:** say so once, with what the guideline recommends and why, then build what was asked. Never override in silence, either way.
- **Ideas:** the `question` tool the ideas subskill asks for is AskUserQuestion in Claude Code and `ask_user_choice` in Amp. In a Laravel project with no `resources/views/layouts/app.blade.php`, inject the picker script once, right before `</body>`, in the shared layout the app does use (a Flux layout, for example). At cleanup the script tag leaves with the variants that weren't picked.
- **Dark-mode images:** the subskill hands raster work to an image-generation skill. A dark variant needs an image tool in the session; without one, stop and say so. Never fake it with CSS filters.
- **Componentize and finalize:** reuse the project's components (its component library, Blade components, the existing `components/` directory) before creating one. Scope is the files named or the feature built in this session, never the whole app, and the UI renders the same before and after.
- **Canonicalize:** pass `--css <entry>` when the project's Tailwind entry isn't the default, and run it over every class list you touched, new components included.
- **Placeholder images:** the guidelines load images from ui.sh's asset server. When it stops answering, use the project's own images or a neutral placeholder, and say so.
