storage
Skill4 starsChanged 6 months agoMITView on GitHub
Use when implementing data storage. Covers in-memory with sample data, @AppStorage, SwiftData persistence patterns.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- Arcanea-Labs/Starlight-Intelligence-Systemtheir own version, first seen Nov 8, 2026
- butterbase-ai/butterbase-plugintheir own version, first seen Oct 8, 2026
- frankxai/Starlight-Intelligence-Systemtheir own version, first seen Sep 6, 2026
- butterbase-ai/butterbase-skillstheir own version, first seen Jun 10, 2026
- OpenAnalystInc/10x-Teamtheir own version, first seen Mar 9, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- butterbase-ai/butterbase-plugin★ 535same name
- butterbase-ai/butterbase-skills★ 535same name
- Arcanea-Labs/Starlight-Intelligence-System★ 10same name
- frankxai/Starlight-Intelligence-System★ 10same name
- OpenAnalystInc/10x-Team★ 8same name
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 repository76 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/components.mdcCursor rule
- .cursor/rules/currency.mdcCursor rule
- .cursor/rules/design-system.mdcCursor rule
- .cursor/rules/file-structure.mdcCursor rule
- .cursor/rules/forbidden-patterns.mdcCursor rule
- .cursor/rules/mvvm-architecture.mdcCursor rule
- .cursor/rules/pricing-display.mdcCursor rule
- .cursor/rules/scope.mdcCursor rule
- .cursor/rules/swift-conventions.mdcCursor rule
- accessibilitySkill
- animationsSkill
- apple-developer-authSkill
- apple-signinSkill
- app-store-preflightSkill
- asc-app-create-uiSkill
- asc-aso-auditSkill
- asc-build-lifecycleSkill
- asc-cli-usageSkill
- asc-crash-triageSkill
- asc-id-resolverSkill
- asc-localize-metadataSkill
- asc-metadata-syncSkill
- asc-metadata-yamlSkill
- asc-notarizationSkill
- asc-ppp-pricingSkill
- asc-release-flowSkill
- asc-revenuecat-catalog-syncSkill
- asc-screenshot-resizeSkill
- asc-shots-pipelineSkill
- asc-signing-setupSkill
- ascSkill
- asc-submission-healthSkill
- asc-subscription-localizationSkill
- asc-testflight-orchestrationSkill
- asc-wall-submitSkill
- asc-whats-new-writerSkill
- asc-workflowSkill
- asc-xcode-buildSkill
- billing-finance-calculatorSkill
- buildSkill
- business-modelSkill
- chartsSkill
- consolidate-errorsSkill
- content-composerSkill
- crashSkill
- debuggingSkill
- feature-directory-structureSkill
- feedback-statesSkill
- fix-errorSkill
- formsSkill
- foundation-modelsSkill
- hapticsSkill
- healthkitSkill
- layoutSkill
- listsSkill
- navigationSkill
- notificationsSkill
- onboarding-questionnaireSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this guide when implementing or modifying data persistence.
- Very specific: line 62
Use @Model, @Query, .modelContainer ONLY if user says "save", "persist", "database", or "SwiftData":
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Storage Patterns
Use this guide when implementing or modifying data persistence.
Default: In-Memory with Sample Data
Unless explicitly requested, use in-memory data with rich dummy data:
| Data Type | Storage | API |
| App data (items, records) | In-memory (DEFAULT) | Plain struct, @Observable arrays |
| Simple flags/settings | UserDefaults | @AppStorage |
| Transient UI state | In-memory | @State |
In-Memory Models (Default)
struct Note: Identifiable {
let id: UUID
var title: String
var content: String
init(title: String, content: String = "") {
self.id = UUID()
self.title = title
self.content = content
}
static let sampleData: [Note] = [
Note(title: "Meeting Notes", content: "Discuss Q2 roadmap"),
Note(title: "Recipe", content: "Eggs, pecorino, guanciale"),
]
}In-Memory ViewModel (Default)
@Observable @MainActor
class NotesViewModel {
var notes: [Note] = Note.sampleData
func addNote(title: String) {
notes.insert(Note(title: title), at: 0)
}
func deleteNote(_ note: Note) {
notes.removeAll { $0.id == note.id }
}
}@AppStorage
@AppStorage("sortOrder") private var sortOrder = "date"
@AppStorage("showCompleted") private var showCompleted = trueSwiftData (ONLY when user explicitly requests persistence)
Use @Model, @Query, .modelContainer ONLY if user says "save", "persist", "database", or "SwiftData":
import SwiftData
@Model
class Note {
var title: String
var content: String
var createdAt: Date
init(title: String, content: String = "") {
self.title = title
self.content = content
self.createdAt = Date()
}
}App entry with container:
@main
struct MyApp: App {
var body: some Scene {
WindowGroup { ContentView() }
.modelContainer(for: Note.self)
}
}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.

