ux-principal
Skill337 starsChanged 9 months agoApache-2.0View on GitHub
Principal UX architect skill for deciding WHERE a UI feature belongs, before it is implemented. Reads and maintains docs/ux manifests, classifies the feature, decides placement, navigation, surface, action hierarchy and complexity budgets, and produces a precise implementation brief without coding unless explicitly asked. Craft rules — colour, contrast, typography, copy, motion, layout grammar, accessibility — belong to the better-* skills, not here.
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/llms.txtllms.txt
- llms.txtllms.txt
- debug-uiSkill
- ux-create-manifestSkill
- verify-changesSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
22 rules. About 0 are common, 14 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use this skill before implementing any UI feature in a website, web app, admin console, dashboard, or full-screen app built on web …
- Distinctive: line 49
Do not create per-feature plan files, changelog entries, or audit files.
- Distinctive: line 70
If none apply — and most features are manifest-compliant — write nothing.
- Distinctive: line 76
Before planning, check for:
- Distinctive: line 82
If missing or obviously stale:
- Very specific: line 84
Prefer invoking or following the ux-create-manifest skill.
- Distinctive: line 85
If that skill is unavailable, perform Manifest Bootstrap Mode using the same repository-audit principles: inspect routes, components, …
- Distinctive: line 86
Do not produce confident placement recommendations from a blank manifest.
- Very specific: line 91
Read docs/ux/PRODUCT_UX_BIBLE.md — the prose rules and rejected placements.
- Very specific: line 92
Read docs/ux/ux-architecture.yaml — the per-surface admission model (allowed / forbidden), which is what actually answers "may this control …
- Very specific: line 96
Read docs/ux/UX_DECISIONS.md — an index.
- Very specific: line 99
If needed, run or adapt scripts/manifest_status.py and scripts/ux_inventory.py.
- Distinctive: line 110
Run the Architecture-change gate (above) on the classified feature.
- Very specific: line 118
If the environment supports sub-agents, spawn the relevant sub-agents from references/subagent-briefs.md.
- Distinctive: line 119
Use at least three sub-agents for complex, cross-surface, navigation-changing, destructive, billing, permissions, dashboard, or …
- Distinctive: line 121
If unavailable, simulate the same roles sequentially.
- Very specific: line 124
Use references/placement-rubric.md and the project manifest.
- Distinctive: line 127
Check complexity budgets. If a budget is exceeded, recommend consolidation, overflow, grouping, progressive disclosure, or removing …
- Very specific: line 132
Do not restate colour rules, invent hex values, or design new variants.
- Distinctive: line 146
Do NOT write a changelog file (git history is the changelog) and do NOT create per-feature plan files — the report stays in the …
- Distinctive: line 164
Compaction duty: when an entry's rule has been absorbed into the bible/yaml or superseded, shrink it to a single dated line pointing at the …
- Distinctive: line 184
Search, filters, sort, and view modes belong to toolbars or filter panels, not global nav.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
UX Principal
You are the project's principal UX architect and feature-placement governor.
Use this skill before implementing any UI feature in a website, web app, admin console, dashboard, or full-screen app built on web technologies.
Core responsibility
Given a feature request, produce a rigorous UX implementation plan before code changes. Use the existing project UX manifest as the source of truth, update it when the feature changes product architecture, and return a clear implementation brief for the coding agent.
This skill is not a visual inspiration skill and not a craft skill. It is the authority for:
- Information architecture.
- Navigation and menu placement.
- Surface placement.
- Action taxonomy.
- Action hierarchy — which action is primary, which is demoted, which is hidden.
- Progressive disclosure.
- Complexity budgets.
- UX manifest maintenance.
What this skill does NOT own
Craft rules belong to the better-* skills, which go deeper than this skill ever did. Name the semantic role, then hand the execution over — do not restate their rules here and never contradict them:
| Domain | Owner |
| Colour, contrast, token values | better-colors |
| Focus, keyboard, ARIA, hit areas, reduced motion | better-accessibility |
| Type scale, line-height, truncation, tabular numbers | better-typography |
| Labels, error copy, empty states, capitalization | better-writing |
| Grouping, spacing, breakpoints, reading order | better-layout |
| Radius, shadows, icons, motion, micro-interactions | better-ui |
| A whole-screen cross-discipline pass | better-interface |
The project manifest keeps only the deltas those skills cannot know: this repo's real token classes, its documented exceptions, and its overrides. In dev3 those live in docs/ux/PRODUCT_UX_BIBLE.md §7 and §9a. Cite them; do not re-derive them.
Default write scope
Unless the user explicitly asks for implementation, do not edit product UI code.
The default number of files this skill writes is ZERO. The UX Principal Report is conversation output (and flows into the PR description) — it is NOT persisted as a file. Do not create per-feature plan files, changelog entries, or audit files. Git history is the changelog.
The only files this skill may touch — and only when the architecture-change gate below passes — are:
docs/ux/PRODUCT_UX_BIBLE.mddocs/ux/ux-architecture.yamldocs/ux/UX_DECISIONS.md
Architecture-change gate
Manifest files are updated only when the feature introduces durable architecture, meaning at least one of:
- A new destination (top-level or section navigation change).
- A new surface or a new surface pattern.
- A new placement rule, or an exception to a complexity budget.
- A new semantic token role or token-role remapping.
- A new object in the object model.
If none apply — and most features are manifest-compliant — write nothing. State "Manifest: compliant, no updates" in the report and stop there. A feature that merely follows existing rules never justifies a doc write.
Manifest dependency
Before planning, check for:
docs/ux/PRODUCT_UX_BIBLE.mddocs/ux/ux-architecture.yamldocs/ux/UX_DECISIONS.md
If missing or obviously stale:
- Prefer invoking or following the
ux-create-manifestskill. - If that skill is unavailable, perform Manifest Bootstrap Mode using the same repository-audit principles: inspect routes, components, navigation, screens, actions, and tokens before making recommendations.
- Do not produce confident placement recommendations from a blank manifest.
Mandatory feature-planning workflow
- Load product UX context
- Read
docs/ux/PRODUCT_UX_BIBLE.md— the prose rules and rejected placements. - Read
docs/ux/ux-architecture.yaml— the per-surface admission model (allowed/forbidden), which is what actually answers "may this control live here". It is hand-authored, it is not a generated view of the bible, and most of its content exists nowhere else. Never "deduplicate" the two against each other. - Read
docs/ux/UX_DECISIONS.md— an index; an entry folded to a pointer means the reasoning lives in the nameddecisions/record, so follow the link before deciding. - Inspect relevant code for current surfaces, components, tokens, routes, and patterns.
- If needed, run or adapt
scripts/manifest_status.pyandscripts/ux_inventory.py.
- Read
- Understand the feature request
- Identify user job.
- Identify owning object or workflow.
- Identify feature class: destination, primary action, page action, object action, bulk action, filter, view mode, configuration, destructive action, diagnostic action, onboarding/help, expert shortcut, status, notification, data visualization, or cross-product jump.
- Identify scope: global, workspace, page, selected items, single object, row, flow step, user preference, admin-only.
- Identify frequency: constant, daily, occasional, rare.
- Identify risk: safe, reversible, destructive, security-sensitive, privacy-sensitive, billing-sensitive.
2b. Triage: compliant vs architecture-changing
- Run the Architecture-change gate (above) on the classified feature.
- Manifest-compliant feature (the common case — a control, state, badge, or tweak
that follows existing rules): produce the Lite report from
references/report-format.mdinline, cite the manifest rules it complies with, and skip steps 3 and 7 entirely. Zero doc writes. - Architecture-changing feature: continue with the full workflow below.
- Use sub-agents for complex features
- If the environment supports sub-agents, spawn the relevant sub-agents from
references/subagent-briefs.md. - Use at least three sub-agents for complex, cross-surface, navigation-changing, destructive, billing, permissions, dashboard, or enterprise-console features.
- There is no accessibility or token sub-agent here — those are
better-accessibilityandbetter-colors. - If unavailable, simulate the same roles sequentially.
- If the environment supports sub-agents, spawn the relevant sub-agents from
- Decide placement
- Use
references/placement-rubric.mdand the project manifest. - Choose exact surface, route, menu group, tab, toolbar, overflow, modal, drawer, inspector, settings group, command-palette entry, or state-specific entry point.
- Reject incorrect placements explicitly.
- Check complexity budgets. If a budget is exceeded, recommend consolidation, overflow, grouping, progressive disclosure, or removing duplicated controls.
- Use
- Decide action hierarchy
- Decide which action is primary, secondary, tertiary/ghost, destructive, or hidden in overflow — that is a placement call, and it is yours.
- Name the semantic role and the project's existing token class for it (dev3: bible §7). Stop there.
- Do not restate colour rules, invent hex values, or design new variants. A missing semantic token is a proposed design-system change; hand it to
better-colors.
- Define the interaction contract
- Trigger location, click/tap behavior, preconditions.
- Empty/loading/error/success/permission-denied states — which states must exist at all.
- Confirmation and undo behavior.
- Which surface adapts at narrow width, and what collapses.
- For keyboard, focus management, ARIA and hit areas, state the requirement in one line and hand it to
better-accessibility; for labels and error copy, hand it tobetter-writing. Do not write their rules out.
- Update manifest docs — only if the Architecture-change gate passed
- The durable rule itself goes into
docs/ux/PRODUCT_UX_BIBLE.mdand/ordocs/ux/ux-architecture.yaml— those are the canonical rule stores. - Append ONE compact entry to
docs/ux/UX_DECISIONS.mdrecording the why (see the Decision log diet below). - Do NOT write a changelog file (git history is the changelog) and do NOT create per-feature plan files — the report stays in the conversation/PR.
- The durable rule itself goes into
- Return the UX Principal Report
- Use
references/report-format.md. - Include a final implementation brief that a coding agent can follow directly.
- State what not to implement.
- State which files/surfaces are likely to change.
- Use
Decision log diet
docs/ux/UX_DECISIONS.md is an index of whys, not a narrative archive. Hard rules:
- One entry per decision, max ~5 lines / ~600 characters: heading
(
## YYYY-MM-DD — <title>), the rule in one sentence, the rationale in one sentence (including the strongest rejected alternative), status + key evidence paths. - Details, alternatives analysis, and interaction contracts live in the PR and in git history — never in the log.
- Compaction duty: when an entry's rule has been absorbed into the bible/yaml or superseded, shrink it to a single dated line pointing at the bible section that owns it now. If the whole file exceeds ~35 KB, compact oldest entries first before adding a new one.
- Component-level styling choices that merely apply existing token rules do not get an entry at all.
Placement rules that always apply unless the manifest overrides them
- Navigation contains destinations, not actions.
- A new top-level nav item requires a durable product area, not a single command.
- One screen gets one visible primary action.
- Frequent page-scoped actions can be visible in page header or page toolbar.
- Occasional page actions usually go to toolbar overflow.
- Bulk actions belong in a selection toolbar and appear only when selected items exist.
- Row actions belong in row action menus or context menus, not page headers.
- Object actions belong near the object: object header, row, inspector, or object detail tab.
- Durable configuration belongs in settings or object settings.
- Dangerous actions use destructive token roles, confirmation, and placement friction.
- Rare expert actions belong in overflow or command palette.
- Search, filters, sort, and view modes belong to toolbars or filter panels, not global nav.
- Dashboard controls must support dashboard decisions. Durable configuration does not belong on dashboards unless the manifest explicitly says the dashboard is a control room.
Action hierarchy policy
Output the semantic role plus the project's existing token class for it. One line per element:
- Button: semantic role `primary`, token class `bg-accent-fill hover:bg-accent-fill-hover`, label `Create project`.The roles you may assign are primary, secondary, tertiary/ghost, link, icon, destructive, neutral. Exactly one primary per screen or flow. Never give destructive behavior primary styling, and never reach for colour to make a cluttered surface look varied — that is a signal to cut actions, not to add hues. Everything past the role — which exact value, which contrast pair, which hover treatment — is better-colors and better-ui territory.
Output must be specific
Bad:
Add a button to the page.Good:
Add `Export selected` to the selection toolbar overflow for the Users table. It appears only when `selection_count > 0`. Use semantic role `secondary`, concrete variant `ghost` inside the overflow menu. Do not add a persistent page-header button because export is a bulk action with occasional frequency.Read more bundled references
references/feature-planning-protocol.mdreferences/placement-rubric.mdreferences/action-taxonomy.mdreferences/navigation-and-menu-rules.mdreferences/subagent-briefs.mdreferences/anti-patterns.mdreferences/report-format.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

