add-settings-page
Skill1 starsChanged 2 months agoApache-2.0View on GitHub
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).
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 0 are distinctive, and 10 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.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 26
Wire the switch: Add the component to the effectiveSection render switch in settings/[section]/settings.tsx (lazy dynamic(...) like its …
- Very specific: line 28
Build the body inside
SettingsPanel: Never hand-roll the shell, header bar, scroll region, content column, or title block. - Very specific: line 66
When migrating a page, change ONLY the structural shell→SettingsPanel swap: move header chips to actions, the standalone search to search, …
- Very specific: line 72
When fixing literal pixel text sizes, replace ONLY the size class with its exact-pixel-equivalent named token (e.g.
- Very specific: line 77
Remove now-unused imports (ChipInput/Search) ONLY after grepping that they are not still used elsewhere in the file (e.g.
- Very specific: line 85
Read "The resource row" in .claude/rules/sim-settings-pages.md first — it is the contract.
- Very specific: line 90
Every match outside settings-resource-row.tsx is either a row to migrate or a genuinely different shape (multi-line body, tabular columns, …
- Very specific: line 98
Add navigable only if the row opens a detail page, and clickLabel always.
- Very specific: line 105
Check what the old row rendered *beside* the title (a badge, a timestamp, a transport label).
- Very specific: line 108
Verify: bun run type-check, biome check, the page's tests, and a diff read of every converted block for lost props, conditions, and key …
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 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
Settings Page (add / audit)
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:
- Layout primitive:
apps/sim/app/workspace/[workspaceId]/settings/components/settings-panel/settings-panel.tsx - Nav metadata (titles + descriptions):
apps/sim/components/settings/navigation.ts - Section switch + provider:
apps/sim/app/workspace/[workspaceId]/settings/[section]/settings.tsx - Pages:
apps/sim/app/workspace/[workspaceId]/settings/components/<name>/<name>.tsxand EE pages underapps/sim/ee/<feature>/components/
Mode A — Add a new settings page
- Navigation. In
navigation.ts: add the id to theSettingsSectionunion, then aNavigationItemwithlabelAND a one-linedescription(verb-first, ~40–55 chars, product voice per.claude/rules/constitution.md). Place it in the rightsectiongroup and set any gating flags (requiresHosted,requiresEnterprise, etc.). - Wire the switch. Add the component to the
effectiveSectionrender switch insettings/[section]/settings.tsx(lazydynamic(...)like its siblings). - Build the body inside
SettingsPanel. Never hand-roll the shell, header bar, scroll region, content column, or title block. Put header buttons inactions, a standalone search insearch={{ value, onChange, placeholder }}, and the page content aschildren. Modals go beside the panel inside a<>. - If the page has editable state, wire the shared save/discard stack — put
SaveDiscardActions(dirty-gated Discard+Save chips) inactions, and calluseSettingsUnsavedGuard({ isDirty })before any early-return gate. Detail sub-views additionally route the back chip throughguard.guardBack(closeFn)and render the sharedUnsavedChangesModal. Never hand-roll a Save button, abeforeunload, or an "Unsaved changes" modal — they're centralized. See the "Save / Discard + unsaved-changes guard" section in.claude/rules/sim-settings-pages.md. - Verify:
cd apps/sim && bun run type-check;bunx biome check --write <file>.
Mode B — Audit existing settings pages
For each page component, confirm the checklist in .claude/rules/sim-settings-pages.md:
- Find hand-rolled shells that should be
SettingsPanel:git grep -n "flex h-full flex-col bg-\[var(--bg)\]" -- 'apps/sim/**/settings/' 'apps/sim/ee/'— every match should be eithersettings-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. - Find hand-rolled title blocks (should be 0 outside detail views):
git grep -n "text-\[var(--text-body)\] text-lg" -- 'apps/sim/**/settings/' 'apps/sim/ee/' - Find literal pixel text sizes (should be 0 — see "Text-scale tokens" in
.claude/rules/sim-settings-pages.mdfor the token map and the row title/subtitle pairing convention):git grep -nE "text-\[1[0-8]px\]" -- 'apps/sim/**/settings/' 'apps/sim/ee/'— should be 0. Display type above the scale (text-[40px]hero headings, thetext-[8px]member-avatar initial) is deliberate and out of scope. - Confirm each page imports
SettingsPaneland that itsNavigationItemhas an accuratedescriptionof consistent length with its peers.- Editable pages: confirm Save/Discard go through
SaveDiscardActionsand dirty is wired viauseSettingsUnsavedGuard(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 centralizeduse-settings-before-unload.ts.
- Editable pages: confirm Save/Discard go through
- When migrating a page, change ONLY the structural shell→
SettingsPanelswap: move header chips toactions, the standalone search tosearch, 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-pagegap-*/pt-*on the content column in favor of the panel default. - When fixing literal pixel text sizes, replace ONLY the size class with its
exact-pixel-equivalent named token (e.g.
text-[12px]→text-caption, never a different size) — this must render pixel-identical, not restyle the page. Leave color tokens (--text-primaryvs--text-body, etc.) untouched unless they're also being changed for an unrelated, deliberate reason. - Remove now-unused imports (
ChipInput/Search) ONLY after grepping that they are not still used elsewhere in the file (e.g. by a detail view). - Verify the whole sweep:
bun run type-check,biome checkon every touched file, and run the affected pages' tests. Diff each file against the base and confirm the change is purely structural before shipping.
Mode C — Migrate list rows to SettingsResourceRow
Read "The resource row" in .claude/rules/sim-settings-pages.md first — it is the
contract. Then, per page:
- Find hand-rolled rows:
git grep -n "truncate text-\[var(--text-body)\] text-sm" -- 'apps/sim/app/workspace/' 'apps/sim/ee/'Every match outsidesettings-resource-row.tsxis either a row to migrate or a genuinely different shape (multi-line body, tabular columns, a grid) that stays bespoke — decide which, and say so. - Replace the row and its wrapper: a
<button>/<Link>around the row becomesonClick/hrefon the row itself. Wrapping the row is what the primitive exists to stop — it is also invalid HTML oncetrailingholds a control. - Sort the trailing content: interactive →
trailing, decorative →badge. Getting this backwards makes the row's right edge a dead zone. - Add
navigableonly if the row opens a detail page, andclickLabelalways. - Drop the container's
-mx-2— the row now owns the bleed. UseRESOURCE_LIST_STACK/RESOURCE_LIST_GRID; do not hand-write the gap. - Unlike Mode B, this migration may change conditional rendering: a
<button disabled={!can}>becomesonClick={can ? … : undefined}+navigable={can}, which renders a plain non-interactive row. Verify the gated state has no clickable affordance left. - Check what the old row rendered beside the title (a badge, a timestamp, a
transport label). The row's title truncates as one unit, so anything folded
into it can be ellipsised away — move it to
descriptionorbadge. - Verify:
bun run type-check,biome check, the page's tests, and a diff read of every converted block for lost props, conditions, andkeyplacement.
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- simstudioai/sim★ 30k47% same
Wrote their own version · 0
None found.
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 repository54 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/constitution.mdcCursor rule
- .cursor/rules/emcn-components.mdcCursor rule
- .cursor/rules/global.mdcCursor rule
- .cursor/rules/landing-seo-geo.mdcCursor rule
- .cursor/rules/sim-architecture.mdcCursor rule
- .cursor/rules/sim-components.mdcCursor rule
- .cursor/rules/sim-hooks.mdcCursor rule
- .cursor/rules/sim-imports.mdcCursor rule
- .cursor/rules/sim-integrations.mdcCursor rule
- .cursor/rules/sim-queries.mdcCursor rule
- .cursor/rules/sim-sandbox.mdcCursor rule
- .cursor/rules/sim-stores.mdcCursor rule
- .cursor/rules/sim-styling.mdcCursor rule
- .cursor/rules/sim-testing.mdcCursor rule
- .cursor/rules/sim-typescript.mdcCursor rule
- .cursor/rules/sim-ui-copy.mdcCursor rule
- add-block-previewSkill
- add-blockSkill
- add-column-typeSkill
- add-connectorSkill
- add-enrichmentSkill
- add-feature-flagSkill
- add-hosted-keySkill
- add-integrationSkill
- add-managed-cliSkill
- add-modelSkill
- add-toolsSkill
- add-triggerSkill
- babysitSkill
- cleanupSkill
- councilSkill
- db-migrateSkill
- design-taste-frontendSkill
- emcn-design-reviewSkill
- emil-design-engSkill
- make-interfaces-feel-betterSkill
- memory-load-checkSkill
- migrate-application-operationSkill
- react-query-best-practicesSkill
- shipSkill
- tool-registry-boundarySkill
- v2-api-conventionsSkill
- validate-connectorSkill
- validate-integrationSkill
- validate-modelSkill
- validate-triggerSkill
- you-might-not-need-a-callbackSkill
- you-might-not-need-a-commentSkill
- you-might-not-need-a-memoSkill
- you-might-not-need-an-effectSkill
- you-might-not-need-stateSkill
- you-might-not-need-url-stateSkill
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.

