Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

boutique-best-practices

Skill by mergesort

Provides best practices for using the Boutique Swift library with Swift 6 concurrency, @Observable classes, testing and dependency injection. Aimed at developers migrating to Swift 6, troubleshooting Boutique issues or setting up tests.

  • Score 80
  • 1.1k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install boutique-best-practices

Built from the published package, never by AI.

git clone --depth 1 https://github.com/mergesort/Boutique /tmp/Boutique && mkdir -p ~/.claude/skills && cp -r /tmp/Boutique/plugins/boutique/skills/boutique-best-practices ~/.claude/skills/boutique-best-practices

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install boutique-best-practices in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill is a set of best practices for the Boutique Swift library, published by mergesort. It covers @MainActor isolation under Swift 6 strict concurrency, using @ObservationIgnored with stored properties inside @Observable classes, and Sendable conformance for StorableItem models. It also lists common mistakes and fixes, such as the set accessor error, double optionals on @SecurelyStoredValue, and forgetting .run() on operation chains.

It shows how to inject Store instances through initializers, create in-memory test stores with unique temporary paths, and use Store.previewStore(items:) for SwiftUI previews. The source says it is meant for troubleshooting Boutique issues, migrating to Swift 6, or setting up tests. It lists Swift 6.2 or later, iOS 17 and macOS 14 as requirements, and points to related skills for store setup, stored values and SwiftUI integration.

Written from the project's SKILL.md and checked against it.

What it can do

  • Swift 6 concurrency guidanceExplains @MainActor isolation for Store, StoredValue and SecurelyStoredValue operations.
  • @ObservationIgnored rulesShows when and how to mark stored properties inside @Observable classes.
  • Sendable model conformanceDescribes StorableItem requirements for struct and enum models.
  • Dependency injection for testsShows how to pass Store instances through initializers and swap in test stores.
  • In-memory test storesShows creating a store with a unique temporary path for test isolation.
  • Preview storesCovers Store.previewStore(items:) variants for SwiftUI previews.
  • Common mistakes and fixesLists errors such as the set accessor issue and empty items on first access.
  • Architecture recommendationsSuggests one controller per domain and API-first data syncing.

What you need

  • Swift 6.2 or later
  • iOS 17 or later
  • macOS 14 or later
  • Boutique library

Try asking

  • Check my @Observable controller for missing @ObservationIgnored on stored properties.
  • Write a Swift Testing test that uses an in-memory Boutique store.
  • Help me migrate my Boutique code to Swift 6 strict concurrency.

Good to know

  • Preview stores do not persist to disk and are only available in DEBUG builds.
  • Boutique uses @MainActor default isolation, so store calls must run on the main actor.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: plugins/boutique/skills/boutique-best-practices/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to boutique-best-practices

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

boutique-best-practices: common questions

Do I need @ObservationIgnored on Boutique stored properties?

The source says yes when they sit inside an @Observable class. Store, StoredValue and SecurelyStoredValue are themselves @Observable, so marking them avoids redundant view updates or unexpected behavior.

Why are my Boutique store items empty on first access?

The synchronous Store initializer loads items in a background task. Use the async initializer or call itemsHaveLoaded() before reading items.

Can I use Boutique preview stores in release builds?

No. The source says Store.previewStore(items:) is DEBUG only and does not persist data to disk.

How do I install boutique-best-practices?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is boutique-best-practices free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is boutique-best-practices safe to use?

It scores 80 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to boutique-best-practices?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

boutique-best-practices Install

Add to stack

Loading.