Skill library

Agent skill UI design

Use Topbar

Shape a web interface around a coherent visual direction.

  • UI design
  • UI components

Install the skill

Installation method

Run the command from your project root with Node.js and npm.

npx skills@latest add cognitedata/builder-skills --skill use-topbar --agent claude-code --yes

Check this file in your project.claude/skills/use-topbar/SKILL.md

Other ways to install
  • Choose an assistant interactively

    npx skills@latest add cognitedata/builder-skills --skill use-topbar

    Select your assistant and choose the project installation scope.

    Official instructions

The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. An existing authenticated Flows or Fusion shell, root and record routes, an agreed utility policy and a compatible Aura version. Local fixtures can supply record names during testing.

View operation manual

What this skill helps with

  • Shape a web interface around a coherent visual direction.

Good for

  • Visual direction
Task
Configure a shared Aura Topbar for a list and its record route
Requirements
An existing authenticated Flows or Fusion shell, root and record routes, an agreed utility policy and a compatible Aura version. Local fixtures can supply record names during testing.
Deliverable
One Aura Topbar per included route, with the correct breadcrumb states, theme integration and local navigation checks.
Skill name
use-topbar

Prepare a brief you can verify

An underspecified brief

Add a custom sticky header with links and a theme toggle.

The package supplies the shell and theme switcher. The breadcrumb structure and utility strip depend on route and product configuration.

A result you can check

  1. Resolve shell choices from code and ask about outstanding decisions.
  2. Verify the package exports and reuse the project theme integration.
  3. Use a local test identity or route fixtures within the project.

Aura Topbar operation manual

One Aura Topbar per included route, with the correct breadcrumb states, theme integration and local navigation checks.

An existing authenticated Flows or Fusion shell, root and record routes, an agreed utility policy and a compatible Aura version. Local fixtures can supply record names during testing.

  1. Complete the configuration interview

    Resolve shell choices from code and ask about outstanding decisions.

    Prompt · Step 1
    Use Cognite’s installed use-topbar Skill and read its SKILL.md first.
    
    Inspect [layout], the root list, a record route, the package manifest and the theme provider. Use INTERVIEW.md. Ask its unanswered questions one at a time and wait for each answer. Capture app mark, breadcrumb states, metadata, centered navigation, utilities and excluded routes. Keep the Create Record action below the bar. Summarize the agreed setup before writing code.
  2. Compose Aura primitives at the shared shell

    Verify the package exports and reuse the project theme integration.

    Prompt · Step 2
    Use Cognite’s installed use-topbar Skill and read its SKILL.md first.
    
    Implement the confirmed configuration with @cognite/aura/components/topbar and the installed breadcrumb components. Check topbar.d.ts and the stylesheet entry before changing imports. Add one bar to each included page through the shared shell, make the root name current on the list and link it home when a record is open. Bind TopbarThemeSwitcher to the existing theme provider if enabled. Stop and report any missing export or incompatible peer.
  3. Test the two breadcrumbs and theme

    Use a local test identity or route fixtures within the project.

    • List and record represent current and linked breadcrumbs correctly.
    • Rendered bar count, configured theme behavior, and any auth-only checks are recorded.
    Prompt · Step 3
    Use Cognite’s installed use-topbar Skill and read its SKILL.md first.
    
    Open the list and a sample record locally. Check the current crumb on the list, the home link on the record, visible keyboard focus, one shared bar and documented excluded routes. If Theme is enabled, select both modes with the keyboard, reload to check the existing persistence behavior, and verify the narrowed layout. Report tested routes and anything requiring authenticated environment access.

Look up this workflow decision

Read the relevant section in the installed Skill.

Confirm the installed compound API.SKILL.md
Command or reference
Steps 3–5 — Install, theme hook, implement
Examples
Read IMPLEMENTATION.md and node_modules/@cognite/aura/dist/components/ui/core/topbar/topbar.d.ts.

Troubleshooting

What if the Topbar import fails?

Report the installed Aura version and failing subpath or peer requirement. Resolve a compatible Aura package with the project’s package manager before continuing.