settings-kit

settings-kit is a cursor rule for Cursor from osaurus-ai/osaurus. It costs 0 tokens per session (1,386 once invoked), scanned A, original, MIT.

A set of rules and reusable interface components for building management screens in a SwiftUI project. It also includes a gallery for viewing the available components in different states.

In plain words
What is it for?
Use it to build settings pages, grouped rows, pickers, text fields, buttons and action menus.
Why use it?
It prevents each management page from inventing its own controls and layout patterns. The lint tests check that pages use the approved settings components.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions subagents.

Good fit Use it to build settings pages, grouped rows, pickers, text fields, buttons and action menus.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/osaurus-ai/osaurus/settings-kit
About the project

Osaurus is a native macOS application that provides AI agents with memory, tools, autonomous execution, and identity around local or cloud models. It is used by people who want agents to run on their Mac, including fully offline with local models, and the catalogue entry contains an instruction and rule for working with it.

osaurus-ai/osaurus · 8,225 stars · on GitHub · osaurus.ai

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/osaurus-ai/osaurus

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for settings-kit

README.md
[![agentmods](https://agentmods.dev/badge/rules/osaurus-ai/osaurus/settings-kit/github.svg)](https://agentmods.dev/rules/osaurus-ai/osaurus/settings-kit)
Your own site
<a href="https://agentmods.dev/rules/osaurus-ai/osaurus/settings-kit"><img src="https://agentmods.dev/badge/rules/osaurus-ai/osaurus/settings-kit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for settings-kit

Your own site · 80×15
<a href="https://agentmods.dev/rules/osaurus-ai/osaurus/settings-kit"><img src="https://agentmods.dev/badge/rules/osaurus-ai/osaurus/settings-kit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 1,386 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01386
Opus 5.5 $0.00000 $0.00554
Sonnet 5.5 $0.00000 $0.00277
Haiku 4.5 $0.00000 $0.00139

Measured 19d ago against content hash d83083f51f57, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

settings-kit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 19d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/settings-kit.mdc · 88 lines

How it starts

The opening of the file, as written. The whole thing — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Settings kit

Every Management page uses the components in Packages/OsaurusCore/Views/DesignSystem. SettingsKitGallery (Debug: Developer Tools → Server → Settings Kit Gallery, or its #Preview) shows each one in every state. Pick from there before writing UI.

Need Use
Page SettingsPage { SettingsPageHeader(…) } content: { … }
Group of rows SettingsSection (Title Case title, one flat group; direct children become rows)
Row SettingsToggle, SettingsPickerRow, SettingsValueRow, SettingsLinkRow, SettingsNavigationRow, SettingsRow, SettingsAbilityRow, SettingsDestructiveRow, SettingsPermissionRow
Value control in a row SettingsMenuPicker (native pop-up), SettingsSearchablePicker (long lists: search, groups, keyboard), SettingsPopUpButton (opens a popover picker), SettingsStepper / SettingsStepperRow, SettingsSliderRow
Text input SettingsFieldRow + SettingsTextField / SettingsTextEditor; SearchField for search
Button SettingsButton, SettingsIconButton, or .buttonStyle(.settings(role, size:))
Menu of actions SettingsOverflowMenu (icon only, ⋯ by default), SettingsMenuButton (titled, Import ▾)
Page notice SettingsCallout
Metrics / status SettingsStatStrip (.divided headline numbers, .tiles live readings), SettingsStatusHero (the page's one live value + state + action)
Explainer SettingsFeatureCards (.leading above a page; .centered is the hero empty state's examples)
Check results SettingsFindingRow (preflight, doctor, inspector rows: severity glyph, title, code/value, detail, fix)
Label / count StatusChip, CountBadge
Filter FilterChipRow, FilterChip, FilterTokenChip
Grid / list item LibraryCard, LibraryRow, LibraryIcon
Comparable collection (sortable columns, row opens a detail panel) SettingsDataTable + SettingsDataTableColumn (width, sort key, hide priority)
Pushed page SettingsBackBar / SettingsSubPageBar + SettingsDetailHeader
Empty / loading SettingsEmptyState (hero, inline:, loading:), SettingsSkeletonBar + .settingsShimmer(), SettingsProgressBar
Surface .settingsChrome(.card / .control / .inset / .selected / …)
Type SettingsFont.* (add .weight / .italic() / .monospacedDigit() as needed)

Rules:

  • No hand-drawn chrome: no RoundedRectangle(...).fill(theme…), no Capsule().fill pills, no padded plain-style buttons, no raw TextField / SecureField / TextEditor, no .font(.system(size:)) on text, no uppercased or tracked titles. Every Toggle carries .settingsSwitch() or .settingsCheckbox().
  • One-of-few choices are a segmented Picker (or SettingsPickerRow), not a row of custom buttons. A value picked from a list is SettingsMenuPicker; never a custom-label Menu with a hand-drawn chevron.
  • Never .menuStyle(.borderlessButton) with a custom label: macOS drops the label's background and tint, leaving a bare accent glyph. Menus go through SettingsOverflowMenu / SettingsMenuButton (.menuStyle(.button) with a kit button style).
  • Rows inside any card or surface draw flat (.settingsChrome sets settingsInGroup), so never wrap a row in its own card inside a group.
  • Section and row titles are Title Case ("Swap Local Models for Subagents"); descriptions, captions and button labels are sentence case. Header refresh is SettingsIconButton("arrow.clockwise"), never a text "Refresh" button.
  • Inner navigation is one of two kinds, never both on a page:
    • SettingsTabsRow in the header when the views are peers over one collection (scopes or kinds of the same list: Local Models kinds, Plugins, Skills, Insights).
    • SettingsDrillInHost + SettingsDrillInRows when the children are different kinds of page (Memory, Voice, Privacy, Server, Computer & Browser Use). Drill-in ids are stable deep-link keys.
  • Animation respects accessibilityReduceMotion.
  • Need a variant the kit lacks? Extend the kit component, add it to the gallery, and migrate callers. Do not fork a private copy.
  • Kit text parameters are catalog keys unless the parameter says it is already localized or a verbatim flag is set.

Read the full file on GitHub · 88 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 19d ago First seen · 88 lines · 0 tokens per session scan A d83083f51f57

Subscribe to this mod's changes

settings-kit is a cursor rule published in the GitHub repository osaurus-ai/osaurus (8,225 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,386 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-11.

Related

settings-kit compared with cursor rules from other repositories

settings-kit next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
settings-kitosaurus-ai/osaurusCursor rule8.2ktodayMITA0Cursor
lobe-icons-guidelobehub/lobe-iconsCursor rule2.7k7d agoMITA1,433Cursor
chart-encoding-standardyonatangross/orchestkitCursor rule312todayMITA67Cursor
designAgentOps-AI/agentopsCursor rule6.0k5mo agoMITA13Cursor
figma-to-codedtyq/magicCursor rule5.1k1mo agononeA1,587Cursor
ui-stylingsowee121/xx-chat-aiCursor rule22mo agononeA0Cursor
ponytailDietrichGebert/ponytailCursor rule201k8d agoMITA604Cursor