agentleFS
MicrosoftKnown publishermicrosoft/fabric-org-app-template/.agents/skills/app-design/SKILL.md

app-design

Skill1 starsChanged 6 months agoMITView on GitHub

Apply Fabric design tokens, spacing, typography, and Segoe UI font conventions when adjusting layout or chrome of the Org App template. Use when the user asks to polish the UI, adjust spacing, change typography, or improve visual hierarchy.

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. microsoft/fabric-apps-analytic-templates★ 26same name
    2. thesawdawg/agent-skills★ 2same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository7 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 0 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Always pair text-* with the matching leading-* token.

    line 35
  2. Very specific:

    Use lucide-react. Size with icon-size-200 (16px) for inline and icon-size-400 (24px) for headers.

    line 73
  3. Very specific:

    No magic numbers: Always use a Tailwind utility that maps to a token.

    line 77
  4. Very specific:

    Respect dark mode: Use bg-card not bg-white. The .dark block in global.css flips these automatically.

    line 80
  5. Very specific:

    Don't. If a design requires a token that doesn't exist, add the token to src/global.css first, then use it.

    line 86
  6. Very specific:

    Do not bypass lib/fabricUrls.ts: All embed + open-in-PBI URLs go through getReportEmbedUrl / getOpenAppUrl / getOpenReportUrl.

    line 106

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

app-design

What this skill covers

This template ships with the Fabric design token system from src/global.css. Use these tokens — never raw pixel values or arbitrary hex colors — when adjusting the shell, sidebar, or empty-state UI.

Token cheatsheet

Spacing (use Tailwind utilities)

TokenValueTailwind class
--spacing-xs2pxgap-xs p-xs m-xs etc.
--spacing-s4pxgap-s
--spacing-m8pxgap-m
--spacing-l16pxgap-l
--spacing-xl24pxgap-xl
--spacing-xxl32pxgap-xxl

Typography

TokenSize / line-heightTailwind class
text-200 leading-20012px / 16pxsecondary text, captions
text-300 leading-30014px / 20pxbody text, nav items
text-400 leading-50016px / 22pxsection headings
text-600 leading-60024px / 32pxpage titles
text-700 leading-70032px / 40pxhero titles (empty state)

Always pair text-* with the matching leading-* token.

Font families

  • Sans (default): font-sans → "Segoe UI" stack — body text
  • Heading: font-heading → "Segoe UI Variable" stack — titles
  • Mono: font-mono → "Cascadia Code" stack — code, IDs, embed URLs

Surface colors (theme-aware)

ClassUse for
bg-background / text-foregroundApp-wide shell
bg-card / text-card-foregroundRaised panels (empty state input)
bg-muted / text-muted-foregroundDe-emphasized backgrounds, code blocks
border-borderDefault dividers and outlines

Org App theme colors (manifest-driven)

CSS varUse for
var(--color-app-background)Sidebar background
var(--color-app-foreground)Sidebar text
var(--color-app-background-hover)Nav hover state
var(--color-app-background-selected)Active nav item
var(--color-app-background-pressed)Mouse-down state

These are populated by org-app-theming from the Org App envelope — never hard-code colors that should reflect the Org App's brand.

Radius

ClassValue
rounded-md4px — inline buttons, code blocks
rounded-lg8px — cards, nav items, inputs

Icons

Use lucide-react. Size with icon-size-200 (16px) for inline and icon-size-400 (24px) for headers.

Rules

  1. No magic numbers. Always use a Tailwind utility that maps to a token. If a token doesn't exist for what you need, add it to src/global.css @theme — don't bypass.
  2. Pair text-* with leading-*. They are designed to be used together.
  3. Use font-heading for titles — Segoe UI Variable has display weight that Segoe UI lacks.
  4. Respect dark mode. Use bg-card not bg-white. The .dark block in global.css flips these automatically.
  5. Org App brand colors are sacred. The user picked them in the Power BI Org App designer — preserve them. Only adjust contrast (e.g., flipping --color-app-foreground to #fff vs #000) if WCAG AA fails.
  6. Mobile is out of scope for this template. The Power BI portal Org App experience is desktop-only, and so is this migration target. Don't add responsive breakpoints unless asked.

When to deviate

Don't. If a design requires a token that doesn't exist, add the token to src/global.css first, then use it. This keeps the codebase consistent for the next migration.

Layout primitives

The shell is composed of small, single-purpose primitives. Don't introduce new top-level layouts — extend or replace these in place.

ComponentFileRole
AppShellsrc/components/AppShell.tsxTopbar + Sidebar + <Outlet /> container. Owns the useSidebarCollapsed state.
Topbarsrc/components/Topbar.tsxSidebar toggle, app brand (links to /), "Open in Power BI" button, SettingsMenu. Fixed 48px height.
Sidebarsrc/components/Sidebar.tsxHome entry + report list. Accepts collapsed: boolean. Per-item open-in-PBI affordance reveals on hover.
HomePagesrc/components/HomePage.tsxHero band + responsive grid of ReportCard tiles. Route: /.
ReportCardsrc/components/ReportCard.tsxTile with primary action = in-app embed, secondary = open in Power BI.
SettingsMenusrc/components/SettingsMenu.tsxGear dropdown. Two items: Theme submenu, Configuration dialog.
ThemeSubmenusrc/components/ThemeSubmenu.tsxOrg App theme + built-in Power BI themes. See org-app-theming.
ConfigurationDialogsrc/components/ConfigurationDialog.tsxRead-only modal showing source Org App metadata + manifest JSON.

Layout rules

  • Do not nest routers. BrowserRouter lives in App.tsx; AppShell is the layout route and renders <Outlet />.
  • Do not bypass lib/fabricUrls.ts. All embed + open-in-PBI URLs go through getReportEmbedUrl / getOpenAppUrl / getOpenReportUrl.
  • The Sidebar's collapsed state is persisted in localStorage["org-app-sidebar-collapsed"] — don't re-derive it elsewhere.
  • The active theme is persisted in localStorage["org-app-active-theme"] — sentinel __org_app__ means "use the manifest theme".
  • No mobile breakpoints for the shell chrome. The HomePage grid is the only responsive surface (sm:grid-cols-2 lg:grid-cols-3).

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.