boutique-stored-values

boutique-stored-values is a skill for Claude Code from mergesort/Boutique. It costs 68 tokens per session (1,836 once invoked), scanned A, original, MIT.

A Swift storage guide for saving preferences with UserDefaults and sensitive values such as passwords or authentication tokens in the system Keychain.

In plain words
What is it for?
Use it for app preferences, feature flags, settings, authentication tokens, and other individual Codable values.
Why use it?
It provides a consistent way to keep settings between launches while storing private data in a more appropriate secure location.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the boutique plugin — 4 skills shipped together

Good fit Use it for app preferences, feature flags, settings, authentication tokens, and other individual Codable values.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mergesort/boutique/boutique-stored-values
About the project

Boutique is a Swift persistence library that stores app state through property wrappers and a memory-and-disk caching layer. It helps developers build state-driven SwiftUI, UIKit, and AppKit apps with offline storage. The catalogue add-ons provide coding-agent workflows for using or developing with Boutique.

mergesort/Boutique · 1,133 stars · on GitHub · build.ms

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.

Any agent
npx skills add mergesort/Boutique --skill boutique-stored-values
Clone the repo
git clone --depth 1 https://github.com/mergesort/Boutique

Made for: Claude Code.

Or install boutique, the plugin that ships this one along with the rest of its 4 skills.

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 boutique-stored-values

README.md
[![agentmods](https://agentmods.dev/badge/skills/mergesort/boutique/boutique-stored-values/github.svg)](https://agentmods.dev/skills/mergesort/boutique/boutique-stored-values)
Your own site
<a href="https://agentmods.dev/skills/mergesort/boutique/boutique-stored-values"><img src="https://agentmods.dev/badge/skills/mergesort/boutique/boutique-stored-values/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 boutique-stored-values

Your own site · 80×15
<a href="https://agentmods.dev/skills/mergesort/boutique/boutique-stored-values"><img src="https://agentmods.dev/badge/skills/mergesort/boutique/boutique-stored-values.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,836 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 5 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 189
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 192
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 204
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 205
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 295
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
How audits are shown
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.00068 $0.01836
Opus 5 $0.00034 $0.00918
Sonnet 5 $0.00014 $0.00367
Haiku 4.5 $0.00007 $0.00184

Measured 11d ago against content hash 0d3497f98f43, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

boutique-stored-values 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 11d 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.

plugins/boutique/skills/boutique-stored-values/SKILL.md · 297 lines

How it starts

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

Boutique Stored Values

Use this skill when you need to persist individual values (preferences, settings, feature flags) using @StoredValue (backed by UserDefaults) or sensitive data (auth tokens, passwords) using @SecurelyStoredValue (backed by the system Keychain).

Prerequisites

  • Boutique added as a dependency via Swift Package Manager.
  • Stored values must conform to Codable, Sendable, and Equatable.

@StoredValue (UserDefaults)

Basic declaration

@StoredValue(key: "hasHapticsEnabled")
var hasHapticsEnabled = false

@StoredValue(key: "lastOpenedDate")
var lastOpenedDate: Date? = nil

@StoredValue(key: "currentTheme")
var currentlySelectedTheme: Theme = .light

In @Observable classes

Always pair with @ObservationIgnored to prevent duplicate observation tracking.

@Observable
final class Preferences {
    @ObservationIgnored
    @StoredValue(key: "hasHapticsEnabled")
    var hasHapticsEnabled = false

    @ObservationIgnored
    @StoredValue(key: "lastOpenedDate")
    var lastOpenedDate: Date? = nil

    @ObservationIgnored
    @StoredValue(key: "currentTheme")
    var currentlySelectedTheme: Theme = .light
}

Setting and resetting values

Use the $ projected value to access set and reset.

// Set a new value
$lastOpenedDate.set(.now)
$currentlySelectedTheme.set(.dark)

// Reset to the default value provided at declaration
$lastOpenedDate.reset()          // Back to nil
$currentlySelectedTheme.reset()  // Back to .light

Boolean toggle

$hasHapticsEnabled.toggle()

// Equivalent to:
// $hasHapticsEnabled.set(!hasHapticsEnabled)

Keypath setter (nested property updates)

Update a single property inside a complex stored object without manually copying.

struct UserPreferences: Codable, Sendable, Equatable {
    var hasHapticsEnabled: Bool
    var prefersDarkMode: Bool
    var prefersWideScreen: Bool
}

@ObservationIgnored
@StoredValue(key: "userPreferences")
var preferences = UserPreferences(
    hasHapticsEnabled: true,
    prefersDarkMode: false,
    prefersWideScreen: false
)

// Update a single nested property
$preferences.set(\.prefersDarkMode, to: true)

Read the full file on GitHub · 297 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. 11d ago First seen · 297 lines · 68 tokens per session scan A 0d3497f98f43

Subscribe to this mod's changes

boutique-stored-values is a skill published in the GitHub repository mergesort/Boutique (1,133 stars, last pushed 1mo ago), licensed MIT. It adds 68 tokens to every session and 1,836 once invoked, about $0.0003 per session on Opus 5. 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-08-30.

Related

Other skills, from other repositories

swift-expert

Expert-level Swift development for iOS, macOS with SwiftUI, Combine, and modern Swift 5.9+. Use when the user mentions iOS, macOS, SwiftUI, Combine, async await, or Apple platforms, or when the task involves Modern Swift Features, Basics and Optionals, Functions and Closures, or Structs and Classes.

personamanagmentlayer/pcl · 76 tokens

swift-focusengine-pro

Reviews, writes, and fixes focus management code for all Apple platforms (tvOS, iOS/iPadOS, watchOS, visionOS, macOS), covering SwiftUI, UIKit, AppKit, and RealityKit. Use when reading, writing, or reviewing apps that handle focus, hover, key view loops, or Digital Crown navigation.

mhaviv/Swift-FocusEngine-Agent-Skill · 74 tokens

room-patterns

Room persistence for the Android target (androidx.room) - @Entity, @Dao, RoomDatabase, migrations, TypeConverters, and Flow-returning queries. Android-side database. For shared/multiplatform persistence in commonMain use sqldelight-patterns. For the broader Android data layer (Repository pattern, Room plus remote…

TalissonVitorino/kmp-ios-skills · 85 tokens

core-data

Core Data for iOS persistence. Data models, fetch requests, background contexts, and SwiftData migration.

TalissonVitorino/kmp-ios-skills · 24 tokens

sqldelight-patterns

SQLDelight for Kotlin Multiplatform shared persistence - .sq files in commonMain, platform drivers (AndroidSqliteDriver on Android, NativeSqliteDriver on iOS), type adapters, migrations, and a shared database accessed from common code. Use for multiplatform or shared persistence. For Android-only Room use…

TalissonVitorino/kmp-ios-skills · 73 tokens

swiftdata

Apple SwiftData for iOS 17+ persistence - the @Model macro, ModelContainer and ModelContext, the @Query property wrapper with.

TalissonVitorino/kmp-ios-skills · 31 tokens