Skip to content
Back to skills

Admin Ui Design

ASecurity

Layout, type, status-message, action and copy rules for the MemForge admin UI (admin/), drawn from GOV.UK, Primer, Carbon, Atlassian and NN/g guidance. Use before designing or changing an admin page, form, panel, notice, button group or UI copy, and when reviewing admin UI changes or screenshots.

  • 106 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
ai-agentsgo

Security analysis

A100/100

Scanned December 1, 2026

npx -y skills add dodo-labs-ai/mem-forge --skill admin-ui-design --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Admin Ui Design?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Admin Ui Design
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dodo-labs-ai-admin-ui-design/badge)](https://www.skillsdirectory.com/skills/dodo-labs-ai-admin-ui-design)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: admin-ui-design
description: "Layout, type, status-message, action and copy rules for the MemForge admin UI (admin/), drawn from GOV.UK, Primer, Carbon, Atlassian and NN/g guidance. Use before designing or changing an admin page, form, panel, notice, button group or UI copy, and when reviewing admin UI changes or screenshots."
---

# Admin UI design

These rules decide how an admin surface looks and reads. `admin/README.md` owns the code layers, tokens and commands; the design document of the feature owns its exact wording. When a rule here and a feature design disagree, raise it instead of following either silently.

## Structure

- One task per area. A step or panel has a heading, its fields in the order a person fills them, and its actions at the end.
- A field keeps its position whatever mode the page is in. If a choice such as Where it runs changes how a value is entered, the value stays in the same place in the order; only its control changes.
- Show the object an action changes next to the action. Put **Change** on the row that names the computer, not at the bottom of a panel.
- Group with a heading and spacing, not with nested borders. A bordered or tinted box inside another one needs a reason: it is a separate object, such as a choice card, a dialog, or the computer a Source runs on.
- Show a separate object as one card: a tinted header row naming it, with its state badge and its **Change**, over a `bg-card` body holding what belongs to it. Inside the card, statuses are plain lines, never a nested `Notice`.
- A choice that changes what an action does is a field, such as a radio group above the button, not a second button for each variant. "Use it for: every Confluence source at wiki.example.com, or this source only" above **Save token**, not **Use a token for this source only** beside it.
- Show related values as labeled properties, as `admin/README.md` says. Never join labels with a middle dot (`A · B`).

## Status messages

- One status per area. An area shows at most one `Notice`; derive it from one state that combines what the server reports with what the page just did. Never show a notice from a mutation result beside one from a stale query that contradicts it.
- A state change replaces the notice; it never stacks a second one. A page result that the server has not reported yet, such as a saved token before the device's next report, counts as the current state until the report catches up.
- Color is for what needs attention. Use a warning or danger `Notice` while the person must act, and a neutral one while something is in progress. A healthy, settled state is a plain line with an icon, or a `StatusBadge`, not a green box. Show a success notice only when the result is not visible otherwise, and remove it when the next state arrives.
- A warning or danger notice says what is wrong and how to fix it; a progress notice says what is happening. Either takes at most two short sentences and carries at most one action.
- Place a notice at the top of the area it describes, not at the top of the page. Errors from a form's own save go just above the form's buttons.
- Field errors appear at the field, with the control's `aria-invalid` set and its `aria-describedby` pointing at them.
- When an action removes the control that has focus, such as fields that close once saved, move focus to the status that reports the result.

## Actions

- One primary (filled) button per page. On a form page it is the page's submit, such as **Save changes** or **Create source**.
- An action inside a panel, whether it takes effect at once, such as **Save token** or **Sign in**, or opens something, such as **Replace token**, is an `outline` button of `size="sm"`. A panel shows one such button at a time; a secondary one beside it, such as **Cancel**, is `ghost`.
- Link styling, underlined text, is only for going to another page or document. An action that stays on the page never looks like a link, at rest or on hover.
- Do not disable a button only because input is missing. Keep it enabled, and on use show the field error that says what to enter. Disable a button only while its action runs, or when it cannot run at all; then say why on the same row or in the status the page already shows. A form's submit may also stay disabled while the form has no changes.
- Button labels are a verb and an object, one to three words, in sentence case: **Save token**, not **Save to <device>** or **OK**. A label that needs a sentence to say what it affects is a choice; make it a field, and let the hint say the consequence.
- A pending button says what it waits for, ending in an ellipsis: "Checking the token…".

## Type

Text has three levels, the ones `FormField` uses, and nothing in between:

- Label: `text-sm font-medium`, for field labels, a card's name and the group a status belongs to.
- Value: `text-sm`, for what a field holds and a status's own words.
- Hint: `text-xs text-muted-foreground`, for help, what a status means and a disabled button's reason. Errors use the same size in `text-tone-danger-foreground`.

Headings above a step are the page's own. Do not add sizes, weights or colors for emphasis; a status's tone colors its icon, and its title only when the person must act.

## Copy

- Sentence case for labels, headings and buttons. Labels and headings have no final period; help text, field errors and notice bodies are full sentences, such as "Personal Access Token is required."
- One word per concept across the row, Configure, dialogs and docs. A token is entered, saved, accepted or not accepted; a browser session is signed in. Never say "Signed in" about a token.
- Say what happened, then what to do: "The site did not accept this token. Enter another one." Avoid "please", "successfully", exclamation marks and raw exception text.
- Name the scope a value affects in its hint: "Used for every Confluence source at wiki.example.com."

## Checking a change

- Look at every state of the surface, not only the happy path: empty, in progress, success before and after the server's report, refused, offline and read-only for another member. Each state shows one notice at most and one primary action on the page.
- Compare against a neighbouring surface of the same kind; a new panel should not introduce a new layout for something the app already shows.
- Run `npm run lint`, `npm test` and `npm run build` in `admin/`, and check the Storybook story when a pattern changes.

## Sources

- GOV.UK Design System, notification banner: one banner per page, and task information in the main content. https://design-system.service.gov.uk/components/notification-banner/
- Primer, banner guidelines: one banner at a time, a single action whenever possible, success only when the result is not apparent. https://primer.style/product/components/banner/guidelines/
- Carbon, notification and button usage: inline notifications beside what they describe, one action per notification, one primary button per page. https://carbondesignsystem.com/components/notification/usage/ and https://carbondesignsystem.com/components/button/usage/
- Atlassian, section message: a message disappears once the situation is resolved. https://atlassian.design/components/section-message/usage
- Nielsen Norman Group, indicators, validations and notifications: messages close to the element, saying how to fix the problem. https://www.nngroup.com/articles/indicators-validations-notifications/

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.