Communitygithub.com

design-agent-surfaces

Foundational: apply while planning or first building a page or feature, because these choices are expensive to change later. Design the UI around AI agents inside a product: where agent sessions live (multiple threads, not one chatbot), showing each agent's status (needs you, done, working), surfacing changes agents made with summaries and accept/undo, and presenting generated work (like code diffs) grouped by intent with a meaningful size instead of raw files. Use when adding an AI assistant, agent, chat panel, AI-generated changes, review of AI output, or a diff/changes view to a product.

¿Qué es design-agent-surfaces?

design-agent-surfaces is a Claude Code agent skill that foundational: apply while planning or first building a page or feature, because these choices are expensive to change later. Design the UI around AI agents inside a product: where agent sessions live (multiple threads, not one chatbot), showing each agent's status (needs you, done, working), surfacing changes agents made with summaries and accept/undo, and presenting generated work (like code diffs) grouped by intent with a meaningful size instead of raw files. Use when adding an AI assistant, agent, chat panel, AI-generated changes, review of AI output, or a diff/changes view to a product.

Compatible con~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/marckohlbrugge/skills/tree/HEAD/skills/design-agent-surfaces

Preguntar en tu IA favorita

Abre un nuevo chat con esta habilidad de agente ya precargada.

Documentación

Agent surfaces

When: upfront. Where agents live, how status shows and how their work is presented decide the whole surface. Detail tuning comes later.

A chatbot is far from a pen: slow, indirect, no immediate connection. When agents do real work in a product, the UI's job is to make that work understandable and controllable by humans. (Lessons from Linear's agent and code-review explorations.)

Placement and status

  • Expect several sessions at once, not one assistant. Give them tabs/threads people can switch between.
  • Put them where there's room and where living entities already sit. Linear explored the bottom-left corner (usually empty), the sidebar (next to projects and inbox), and shipped a toolbar with tabs.
  • Show each session's status at a glance: waiting for your input, done and needs a look, in progress. "Needs you" must stand out.
  • Support the primitives: queued messages, suggested next actions, adding things to context, a welcome that proposes what to tackle next.

Changes agents make

  • Surface every change an agent made to user content (doc, issue, settings), with a short summary and controls: show changes, accept, undo.
  • Agents also run on their own (loops, automations): changes made without a prompt need the same visibility, in a place the user will see them.

Presenting generated work for review

  • Group by intent, not by file. People are reading less code. An LLM (even a cheap one) can split a diff into logically ordered, thematic sections with a plain-language explanation; that's faster to understand than files sorted alphabetically. Raw code stays one click away.
  • Review the intent first ("is this the right change?"), then implementation details. The reviewer shouldn't have to translate code back into the original intent themselves.
  • Show the meaningful size. Exclude tests, generated and lock files from the headline count so a 2,000-line PR that's 80 real lines doesn't get postponed. Mark the number with a distinct icon/tooltip so it isn't mistaken for the full diff size.
  • Don't force a linear "start review → read → submit" flow; people jump around. Expect to iterate on the main action's placement, ideally by trying variants in production with your own team.

Process note

For new kinds of surfaces, build several real directions (Linear built five for code review) and use them, rather than picking one from static mockups.

Individual skills in this repo

This repo contains 1 individual skill — each has its own dedicated page.

Skills relacionados