Add a new Sim settings page, or audit existing settings pages for design-system compliance with the shared SettingsPanel layout. Use when creating a settings tab, or when asked to check/clean up settings pages so they match the design system (consistent title, header, search, spacing).
80
100%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Sim settings pages all render through the shared SettingsPanel primitive,
which owns the page chrome and renders a nav-driven title + description. The full
convention lives in .claude/rules/sim-settings-pages.md — read it first; this
skill is the procedure.
Key paths:
apps/sim/app/workspace/[workspaceId]/settings/components/settings-panel/settings-panel.tsxapps/sim/app/workspace/[workspaceId]/settings/navigation.tsapps/sim/app/workspace/[workspaceId]/settings/[section]/settings.tsxapps/sim/app/workspace/[workspaceId]/settings/components/<name>/<name>.tsx and EE pages under apps/sim/ee/<feature>/components/navigation.ts: add the id to the SettingsSection union,
then a NavigationItem with label AND a one-line description (verb-first,
~40–55 chars, product voice per .claude/rules/constitution.md). Place it in
the right section group and set any gating flags (requiresHosted,
requiresEnterprise, etc.).effectiveSection render switch
in settings/[section]/settings.tsx (lazy dynamic(...) like its siblings).SettingsPanel. Never hand-roll the shell, header
bar, scroll region, content column, or title block. Put header buttons in
actions, a standalone search in search={{ value, onChange, placeholder }},
and the page content as children. Modals go beside the panel inside a <>.SaveDiscardActions (dirty-gated Discard+Save chips) in actions, and call
useSettingsUnsavedGuard({ isDirty }) before any early-return gate.
Detail sub-views additionally route the back chip through
guard.guardBack(closeFn) and render the shared UnsavedChangesModal. Never
hand-roll a Save button, a beforeunload, or an "Unsaved changes" modal —
they're centralized. See the "Save / Discard + unsaved-changes guard" section
in .claude/rules/sim-settings-pages.md.cd apps/sim && bunx tsc --noEmit; bunx biome check --write <file>.For each page component, confirm the checklist in .claude/rules/sim-settings-pages.md:
SettingsPanel:
git grep -n "flex h-full flex-col bg-\[var(--bg)\]" -- 'apps/sim/**/settings/' 'apps/sim/ee/'
— every match should be either settings-panel.tsx, a detail sub-view
(has a <Chip leftIcon={ArrowLeft}> back button), or an entitlement/loading
gate early-return. Anything else is a page that still needs migrating.git grep -n "text-\[var(--text-body)\] text-lg" -- 'apps/sim/**/settings/' 'apps/sim/ee/'.claude/rules/sim-settings-pages.md for the token map and the row
title/subtitle pairing convention):
git grep -n "text-\[1[0-8]px\]" -- 'apps/sim/**/settings/' 'apps/sim/ee/'SettingsPanel and that its NavigationItem has an
accurate description of consistent length with its peers.
SaveDiscardActions and
dirty is wired via useSettingsUnsavedGuard (called before early-return
gates) — flag any hand-rolled Save button, beforeunload, or unsaved modal.
git grep -n "beforeunload" -- 'apps/sim/**/settings/' 'apps/sim/ee/'
should only hit the centralized use-settings-before-unload.ts.SettingsPanel swap:
move header chips to actions, the standalone search to search, delete the
<h1> title block, replace the three closing </div> (column/scroll/shell)
with </SettingsPanel>, and keep modal siblings in a <> fragment. Do NOT
touch handlers, state, queries, conditional rendering, or detail/gate returns.
Drop per-page gap-*/pt-* on the content column in favor of the panel default.text-[12px] → text-caption,
never a different size) — this must render pixel-identical, not restyle the
page. Leave color tokens (--text-primary vs --text-body, etc.) untouched
unless they're also being changed for an unrelated, deliberate reason.ChipInput/Search) ONLY after grepping that
they are not still used elsewhere in the file (e.g. by a detail view).tsc --noEmit, biome check on every touched
file, and run the affected pages' tests. Diff each file against the base and
confirm the change is purely structural before shipping.6f514c1
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.