XcodeBuildMCP-iOS-Template / template
CLAUDE.md42 starsChanged 17 months agoMITView on GitHub
This is a native iOS application built with Swift 6.1+ and SwiftUI. The codebase targets iOS 18.0 and later, allowing full use of modern Swift and iOS APIs. All concurrency is handled with Swift Concurrency (async/await, actors, @MainActor isolation) ensuring thread-safe code. The project follows a workspace + SPM package architecture: Important: All development work should be done in the YourAppPackage Swift Package, not in the app project. The app project is merely a thin wrapper that imports and launches…
We split this CLAUDE.md into the rules it gives an agent
58 rules. About 0 are common, 43 are distinctive, and 15 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈43
Distinctive · estimate
This author's own choices. Worth a look.
15
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 37
Important: All development work should be done in the YourAppPackage Swift Package, not in the app project.
- Very specific: line 43
Naming: Use UpperCamelCase for types, lowerCamelCase for properties/functions.
- Very specific: line 44
Value Types: Prefer struct for models and data, use class only when reference semantics are required
- Distinctive: line 46
Early Returns: Prefer early return pattern over nested conditionals to avoid pyramid of doom
- Very specific: line 50
Use optionals with if let/guard let for nil handling
- Very specific: line 51
Never force-unwrap (!) without absolute certainty - prefer guard with failure path
- Very specific: line 52
Use do/try/catch for error handling with meaningful error types
- Very specific: line 86
Use @State for view-specific state
- Very specific: line 87
Use enum for view states (loading, loaded, error)
- Very specific: line 88
Use .task(id:) and .onChange(of:) for side effects
- Distinctive: line 94
Test services independently, not views
- Distinctive: line 95
Use SwiftUI previews for visual testing
- Distinctive: line 99
Use compound views that compose smaller views
- Distinctive: line 101
Never reach for a ViewModel as the solution
- Distinctive: line 105
Note: If your app targets iOS 26+, you can take advantage of these cutting-edge SwiftUI APIs introduced in June 2025.
- Distinctive: line 109
When targeting iOS 26+, consider using these new APIs:
- Distinctive: line 122
Search role for tabs with search field replacing tab bar
- Distinctive: line 163
Only use when targeting iOS 26+: Ensure your deployment target supports these APIs
- Distinctive: line 164
Progressive enhancement: Use availability checks if supporting multiple iOS versions
- Distinctive: line 165
Feature detection: Test on older simulators to ensure graceful fallbacks
- Distinctive: line 193
Avoid ViewModels - put view logic directly in SwiftUI views using these state mechanisms
- Distinctive: line 194
Keep views focused and extract reusable components
- Distinctive: line 291
@MainActor: All UI updates must use @MainActor isolation
- Distinctive: line 292
Actors: Use actors for expensive operations like disk I/O, network calls, or heavy computation
- Distinctive: line 293
async/await: Always prefer async functions over completion handlers
- Distinctive: line 294
Task: Use structured concurrency with proper task cancellation
- Distinctive: line 295
.task modifier: Always use .task { } on views for async operations tied to view lifecycle - it automatically handles cancellation
- Distinctive: line 297
No GCD usage - Swift Concurrency only
- Very specific: line 304
Classes: Must be marked final and have immutable or Sendable properties, or use @unchecked Sendable with thread-safe implementation
- Distinctive: line 355
Keep functions focused on a single responsibility
- Distinctive: line 357
Use extensions to organize code by feature or protocol conformance
- Very specific: line 358
Prefer let over var - use immutability by default
- Very specific: line 359
Use [weak self] in closures to prevent retain cycles
- Very specific: line 360
Always include self. when referring to instance properties in closures
- Distinctive: line 393
Parameterized Tests: Use @Test with arguments for data-driven tests
- Very specific: line 395
Traits: Add metadata like .bug(), .feature(), or custom tags
- Distinctive: line 399
Write tests in the package's Tests/ directory
- Distinctive: line 402
Test both happy paths and edge cases
- Distinctive: line 403
Add tests for bug fixes to prevent regression
- Very specific: line 620
Make changes in the Package: All feature development happens in YourAppPackage/Sources/
- Very specific: line 621
Write tests: Add Swift Testing tests in YourAppPackage/Tests/
- Distinctive: line 622
Build and test: Use XcodeBuildMCP tools to build and run tests
- Distinctive: line 624
UI automation: Use describe_ui and automation tools for UI testing
- Distinctive: line 631
Keep views small and focused
- Distinctive: line 633
Use @ViewBuilder for conditional view composition
- Distinctive: line 635
Avoid massive body computations - break them down
- Distinctive: line 637
Never use Task { } in onAppear - use .task instead for proper lifecycle management
- Distinctive: line 641
Use .id() modifier sparingly as it forces view recreation
- Distinctive: line 643
Use LazyVStack/LazyHStack for large lists
- Distinctive: line 649
Always provide accessibilityLabel for interactive elements
- Distinctive: line 650
Use accessibilityIdentifier for UI testing
- Distinctive: line 652
Test with VoiceOver enabled
- Distinctive: line 657
Never log sensitive information
- Distinctive: line 658
Use Keychain for credential storage
- Distinctive: line 659
All network calls must use HTTPS
- Distinctive: line 661
Follow App Store privacy guidelines
- Distinctive: line 665
When data persistence is required, always prefer SwiftData over CoreData.
- Distinctive: line 729
Important: Never use CoreData for new projects.
≈ “Common” is an estimate: at least 1 in 5 of the 25,680 CLAUDE.md 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
Project Overview
This is a native iOS application built with Swift 6.1+ and SwiftUI. The codebase targets iOS 18.0 and later, allowing full use of modern Swift and iOS APIs. All concurrency is handled with Swift Concurrency (async/await, actors, @MainActor isolation) ensuring thread-safe code.
- Frameworks & Tech: SwiftUI for UI, Swift Concurrency with strict mode, Swift Package Manager for modular architecture
- Architecture: Model-View (MV) pattern using pure SwiftUI state management. We avoid MVVM and instead leverage SwiftUI's built-in state mechanisms (@State, @Observable, @Environment, @Binding)
- Testing: Swift Testing framework with modern @Test macros and #expect/#require assertions
- Platform: iOS (Simulator and Device)
- Accessibility: Full accessibility support using SwiftUI's accessibility modifiers
Project Structure
The project follows a workspace + SPM package architecture:
YourApp/
├── Config/ # XCConfig build settings
│ ├── Debug.xcconfig
│ ├── Release.xcconfig
│ ├── Shared.xcconfig
│ └── Tests.xcconfig
├── YourApp.xcworkspace/ # Workspace container
├── YourApp.xcodeproj/ # App shell (minimal wrapper)
├── YourApp/ # App target - just the entry point
│ ├── Assets.xcassets/
│ ├── YourAppApp.swift # @main entry point only
│ └── YourApp.xctestplan
├── YourAppPackage/ # All features and business logic
│ ├── Package.swift
│ ├── Sources/
│ │ └── YourAppFeature/ # Feature modules
│ └── Tests/
│ └── YourAppFeatureTests/ # Swift Testing tests
└── YourAppUITests/ # UI automation testsImportant: All development work should be done in the YourAppPackage Swift Package, not in the app project. The app project is merely a thin wrapper that imports and launches the package features.
Code Quality & Style Guidelines
Swift Style & Conventions
- Naming: Use
UpperCamelCasefor types,lowerCamelCasefor properties/functions. Choose descriptive names (e.g.,calculateMonthlyRevenue()notcalcRev) - Value Types: Prefer
structfor models and data, useclassonly when reference semantics are required - Enums: Leverage Swift's powerful enums with associated values for state representation
- Early Returns: Prefer early return pattern over nested conditionals to avoid pyramid of doom
Optionals & Error Handling
- Use optionals with
if let/guard letfor nil handling - Never force-unwrap (
!) without absolute certainty - preferguardwith failure path - Use
do/try/catchfor error handling with meaningful error types - Handle or propagate all errors - no empty catch blocks
Modern SwiftUI Architecture Guidelines (2025)
No ViewModels - Use Native SwiftUI Data Flow
New features MUST follow these patterns:
- Views as Pure State Expressions
struct MyView: View { @Environment(MyService.self) private var service @State private var viewState: ViewState = .loading enum ViewState { case loading case loaded(data: [Item]) case error(String) } var body: some View { // View is just a representation of its state } } - Use Environment Appropriately
- App-wide services: Router, Theme, CurrentAccount, Client, etc. - use
@Environment - Feature-specific services: Timeline services, single-view logic - use
letproperties with@Observable - Rule: Environment for cross-app/cross-feature dependencies, let properties for single-feature services
- Access app-wide via
@Environment(ServiceType.self) - Feature services:
private let myService = MyObservableService()
- App-wide services: Router, Theme, CurrentAccount, Client, etc. - use
- Local State Management
- Use
@Statefor view-specific state - Use
enumfor view states (loading, loaded, error) - Use
.task(id:)and.onChange(of:)for side effects - Pass state between views using
@Binding
- Use
- No ViewModels Required
- Views should be lightweight and disposable
- Business logic belongs in services/clients
- Test services independently, not views
- Use SwiftUI previews for visual testing
- When Views Get Complex
- Split into smaller subviews
- Use compound views that compose smaller views
- Pass state via bindings between views
- Never reach for a ViewModel as the solution
iOS 26 Features (Optional)
Note: If your app targets iOS 26+, you can take advantage of these cutting-edge SwiftUI APIs introduced in June 2025. These features are optional and should only be used when your deployment target supports iOS 26.
Available iOS 26 SwiftUI APIs
When targeting iOS 26+, consider using these new APIs:
Liquid Glass Effects
glassEffect(_:in:isEnabled:)- Apply Liquid Glass effects to viewsbuttonStyle(.glass)- Apply Liquid Glass styling to buttonsToolbarSpacer- Create visual breaks in toolbars with Liquid Glass
Enhanced Scrolling
scrollEdgeEffectStyle(_:for:)- Configure scroll edge effectsbackgroundExtensionEffect()- Duplicate, mirror, and blur views around edges
Tab Bar Enhancements
tabBarMinimizeBehavior(_:)- Control tab bar minimization behavior- Search role for tabs with search field replacing tab bar
TabViewBottomAccessoryPlacement- Adjust accessory view content based on placement
Web Integration
WebViewandWebPage- Full control over browsing experience
Drag and Drop
draggable(_:_:)- Drag multiple itemsdragContainer(for:id:in:selection:_:)- Container for draggable views
Animation
@Animatablemacro - SwiftUI synthesizes custom animatable data properties
UI Components
Sliderwith automatic tick marks when using step parameterwindowResizeAnchor(_:)- Set window anchor point for resizing
Text Enhancements
TextEditornow supportsAttributedStringAttributedTextSelection- Handle text selection with attributed textAttributedTextFormattingDefinition- Define text styling in specific contextsFindContext- Create find navigator in text editing views
Accessibility
AssistiveAccess- Support Assistive Access in iOS scenes
HDR Support
Color.ResolvedHDR- RGBA values with HDR headroom information
UIKit Integration
UIHostingSceneDelegate- Host and present SwiftUI scenes in UIKitNSGestureRecognizerRepresentable- Incorporate gesture recognizers from AppKit
Immersive Spaces (if applicable)
manipulable(coordinateSpace:operations:inertia:isEnabled:onChanged:)- Hand gesture manipulationSurfaceSnappingInfo- Snap volumes and windows to surfacesRemoteImmersiveSpace- Render stereo content from Mac to Apple Vision ProSpatialContainer- 3D layout container- Depth-based modifiers:
aspectRatio3D(_:contentMode:),rotation3DLayout(_:),depthAlignment(_:)
iOS 26 Usage Guidelines
- Only use when targeting iOS 26+: Ensure your deployment target supports these APIs
- Progressive enhancement: Use availability checks if supporting multiple iOS versions
- Feature detection: Test on older simulators to ensure graceful fallbacks
- Modern aesthetics: Leverage Liquid Glass effects for cutting-edge UI design
// Example: Using iOS 26 features with availability checks
struct ModernButton: View {
var body: some View {
Button("Tap me") {
// Action
}
.buttonStyle({
if #available(iOS 26.0, *) {
.glass
} else {
.bordered
}
}())
}
}SwiftUI State Management (MV Pattern)
- @State: For all state management, including observable model objects
- @Observable: Modern macro for making model classes observable (replaces ObservableObject)
- @Environment: For dependency injection and shared app state
- @Binding: For two-way data flow between parent and child views
- @Bindable: For creating bindings to @Observable objects
- Avoid ViewModels - put view logic directly in SwiftUI views using these state mechanisms
- Keep views focused and extract reusable components
Example with @Observable:
@Observable
class UserSettings {
var theme: Theme = .light
var fontSize: Double = 16.0
}
@MainActor
struct SettingsView: View {
@State private var settings = UserSettings()
var body: some View {
VStack {
// Direct property access, no $ prefix needed
Text("Font Size: \(settings.fontSize)")
// For bindings, use @Bindable
@Bindable var settings = settings
Slider(value: $settings.fontSize, in: 10...30)
}
}
}
// Sharing state across views
@MainActor
struct ContentView: View {
@State private var userSettings = UserSettings()
var body: some View {
NavigationStack {
MainView()
.environment(userSettings)
}
}
}
@MainActor
struct MainView: View {
@Environment(UserSettings.self) private var settings
var body: some View {
Text("Current theme: \(settings.theme)")
}
}Example with .task modifier for async operations:
@Observable
class DataModel {
var items: [Item] = []
var isLoading = false
func loadData() async throws {
isLoading = true
defer { isLoading = false }
// Simulated network call
try await Task.sleep(for: .seconds(1))
items = try await fetchItems()
}
}
@MainActor
struct ItemListView: View {
@State private var model = DataModel()
var body: some View {
List(model.items) { item in
Text(item.name)
}
.overlay {
if model.isLoading {
ProgressView()
}
}
.task {
// This task automatically cancels when view disappears
do {
try await model.loadData()
} catch {
// Handle error
}
}
.refreshable {
// Pull to refresh also uses async/await
try? await model.loadData()
}
}
}Concurrency
- @MainActor: All UI updates must use @MainActor isolation
- Actors: Use actors for expensive operations like disk I/O, network calls, or heavy computation
- async/await: Always prefer async functions over completion handlers
- Task: Use structured concurrency with proper task cancellation
- .task modifier: Always use .task { } on views for async operations tied to view lifecycle - it automatically handles cancellation
- Avoid Task { } in onAppear: This doesn't cancel automatically and can cause memory leaks or crashes
- No GCD usage - Swift Concurrency only
Sendable Conformance
Swift 6 enforces strict concurrency checking. All types that cross concurrency boundaries must be Sendable:
- Value types (struct, enum): Usually Sendable if all properties are Sendable
- Classes: Must be marked
finaland have immutable or Sendable properties, or use@unchecked Sendablewith thread-safe implementation - @Observable classes: Automatically Sendable when all properties are Sendable
- Closures: Mark as
@Sendablewhen captured by concurrent contexts
// Sendable struct - automatic conformance
struct UserData: Sendable {
let id: UUID
let name: String
}
// Sendable class - must be final with immutable properties
final class Configuration: Sendable {
let apiKey: String
let endpoint: URL
init(apiKey: String, endpoint: URL) {
self.apiKey = apiKey
self.endpoint = endpoint
}
}
// @Observable with Sendable
@Observable
final class UserModel: Sendable {
var name: String = ""
var age: Int = 0
// Automatically Sendable if all stored properties are Sendable
}
// Using @unchecked Sendable for thread-safe types
final class Cache: @unchecked Sendable {
private let lock = NSLock()
private var storage: [String: Any] = [:]
func get(_ key: String) -> Any? {
lock.withLock { storage[key] }
}
}
// @Sendable closures
func processInBackground(completion: @Sendable @escaping (Result<Data, Error>) -> Void) {
Task {
// Processing...
completion(.success(data))
}
}Code Organization
- Keep functions focused on a single responsibility
- Break large functions (>50 lines) into smaller, testable units
- Use extensions to organize code by feature or protocol conformance
- Prefer
letovervar- use immutability by default - Use
[weak self]in closures to prevent retain cycles - Always include
self.when referring to instance properties in closures
Testing Guidelines
We use Swift Testing framework (not XCTest) for all tests. Tests live in the package test target.
Swift Testing Basics
import Testing
@Test func userCanLogin() async throws {
let service = AuthService()
let result = try await service.login(username: "test", password: "pass")
#expect(result.isSuccess)
#expect(result.user.name == "Test User")
}
@Test("User sees error with invalid credentials")
func invalidLogin() async throws {
let service = AuthService()
await #expect(throws: AuthError.self) {
try await service.login(username: "", password: "")
}
}Key Swift Testing Features
- @Test: Marks a test function (replaces XCTest's test prefix)
- @Suite: Groups related tests together
- #expect: Validates conditions (replaces XCTAssert)
- #require: Like #expect but stops test execution on failure
- Parameterized Tests: Use @Test with arguments for data-driven tests
- async/await: Full support for testing async code
- Traits: Add metadata like
.bug(),.feature(), or custom tags
Test Organization
- Write tests in the package's Tests/ directory
- One test file per source file when possible
- Name tests descriptively explaining what they verify
- Test both happy paths and edge cases
- Add tests for bug fixes to prevent regression
Entitlements Management
This template includes a declarative entitlements system that AI agents can safely modify without touching Xcode project files.
How It Works
- Entitlements File:
Config/MyProject.entitlementscontains all app capabilities - XCConfig Integration:
CODE_SIGN_ENTITLEMENTSsetting inConfig/Shared.xcconfigpoints to the entitlements file - AI-Friendly: Agents can edit the XML file directly to add/remove capabilities
Adding Entitlements
To add capabilities to your app, edit Config/MyProject.entitlements:
Common Entitlements
| Capability | Entitlement Key | Value |
| HealthKit | com.apple.developer.healthkit | <true/> |
| CloudKit | com.apple.developer.icloud-services | <array><string>CloudKit</string></array> |
| Push Notifications | aps-environment | development or production |
| App Groups | com.apple.security.application-groups | <array><string>group.id</string></array> |
| Keychain Sharing | keychain-access-groups | <array><string>$(AppIdentifierPrefix)bundle.id</string></array> |
| Background Modes | com.apple.developer.background-modes | <array><string>mode-name</string></array> |
| Contacts | com.apple.developer.contacts.notes | <true/> |
| Camera | com.apple.developer.avfoundation.audio | <true/> |
XcodeBuildMCP Tool Usage
To work with this project, build, test, and development commands should use XcodeBuildMCP tools instead of raw command-line calls.
Project Discovery & Setup
// Discover Xcode projects in the workspace
discover_projs({
workspaceRoot: "/path/to/YourApp"
})
// List available schemes
list_schems_ws({
workspacePath: "/path/to/YourApp.xcworkspace"
})Building for Simulator
// Build for iPhone simulator by name
build_sim_name_ws({
workspacePath: "/path/to/YourApp.xcworkspace",
scheme: "YourApp",
simulatorName: "iPhone 16",
configuration: "Debug"
})
// Build and run in one step
build_run_sim_name_ws({
workspacePath: "/path/to/YourApp.xcworkspace",
scheme: "YourApp",
simulatorName: "iPhone 16"
})Building for Device
// List connected devices first
list_devices()
// Build for physical device
build_dev_ws({
workspacePath: "/path/to/YourApp.xcworkspace",
scheme: "YourApp",
configuration: "Debug"
})Testing
// Run tests on simulator
test_sim_name_ws({
workspacePath: "/path/to/YourApp.xcworkspace",
scheme: "YourApp",
simulatorName: "iPhone 16"
})
// Run tests on device
test_device_ws({
workspacePath: "/path/to/YourApp.xcworkspace",
scheme: "YourApp",
deviceId: "DEVICE_UUID_HERE"
})
// Test Swift Package
swift_package_test({
packagePath: "/path/to/YourAppPackage"
})Simulator Management
// List available simulators
list_sims({
enabled: true
})
// Boot simulator
boot_sim({
simulatorUuid: "SIMULATOR_UUID"
})
// Install app
install_app_sim({
simulatorUuid: "SIMULATOR_UUID",
appPath: "/path/to/YourApp.app"
})
// Launch app
launch_app_sim({
simulatorUuid: "SIMULATOR_UUID",
bundleId: "com.example.YourApp"
})Device Management
// Install on device
install_app_device({
deviceId: "DEVICE_UUID",
appPath: "/path/to/YourApp.app"
})
// Launch on device
launch_app_device({
deviceId: "DEVICE_UUID",
bundleId: "com.example.YourApp"
})UI Automation
// Get UI hierarchy
describe_ui({
simulatorUuid: "SIMULATOR_UUID"
})
// Tap element
tap({
simulatorUuid: "SIMULATOR_UUID",
x: 100,
y: 200
})
// Type text
type_text({
simulatorUuid: "SIMULATOR_UUID",
text: "Hello World"
})
// Take screenshot
screenshot({
simulatorUuid: "SIMULATOR_UUID"
})Log Capture
// Start capturing simulator logs
start_sim_log_cap({
simulatorUuid: "SIMULATOR_UUID",
bundleId: "com.example.YourApp"
})
// Stop and retrieve logs
stop_sim_log_cap({
logSessionId: "SESSION_ID"
})
// Device logs
start_device_log_cap({
deviceId: "DEVICE_UUID",
bundleId: "com.example.YourApp"
})Utility Functions
// Get bundle ID from app
get_app_bundle_id({
appPath: "/path/to/YourApp.app"
})
// Clean build artifacts
clean_ws({
workspacePath: "/path/to/YourApp.xcworkspace"
})
// Get app path for simulator
get_sim_app_path_name_ws({
workspacePath: "/path/to/YourApp.xcworkspace",
scheme: "YourApp",
platform: "iOS Simulator",
simulatorName: "iPhone 16"
})Development Workflow
- Make changes in the Package: All feature development happens in YourAppPackage/Sources/
- Write tests: Add Swift Testing tests in YourAppPackage/Tests/
- Build and test: Use XcodeBuildMCP tools to build and run tests
- Run on simulator: Deploy to simulator for manual testing
- UI automation: Use describe_ui and automation tools for UI testing
- Device testing: Deploy to physical device when needed
Best Practices
SwiftUI & State Management
- Keep views small and focused
- Extract reusable components into their own files
- Use @ViewBuilder for conditional view composition
- Leverage SwiftUI's built-in animations and transitions
- Avoid massive body computations - break them down
- Always use .task modifier for async work tied to view lifecycle - it automatically cancels when the view disappears
- Never use Task { } in onAppear - use .task instead for proper lifecycle management
Performance
- Use .id() modifier sparingly as it forces view recreation
- Implement Equatable on models to optimize SwiftUI diffing
- Use LazyVStack/LazyHStack for large lists
- Profile with Instruments when needed
- @Observable tracks only accessed properties, improving performance over @Published
Accessibility
- Always provide accessibilityLabel for interactive elements
- Use accessibilityIdentifier for UI testing
- Implement accessibilityHint where actions aren't obvious
- Test with VoiceOver enabled
- Support Dynamic Type
Security & Privacy
- Never log sensitive information
- Use Keychain for credential storage
- All network calls must use HTTPS
- Request minimal permissions
- Follow App Store privacy guidelines
Data Persistence
When data persistence is required, always prefer SwiftData over CoreData. However, carefully consider whether persistence is truly necessary - many apps can function well with in-memory state that loads on launch.
When to Use SwiftData
- You have complex relational data that needs to persist across app launches
- You need advanced querying capabilities with predicates and sorting
- You're building a data-heavy app (note-taking, inventory, task management)
- You need CloudKit sync with minimal configuration
When NOT to Use Data Persistence
- Simple user preferences (use UserDefaults)
- Temporary state that can be reloaded from network
- Small configuration data (consider JSON files or plist)
- Apps that primarily display remote data
SwiftData Best Practices
import SwiftData
@Model
final class Task {
var title: String
var isCompleted: Bool
var createdAt: Date
init(title: String) {
self.title = title
self.isCompleted = false
self.createdAt = Date()
}
}
// In your app
@main
struct MyProjectApp: App {
var body: some Scene {
WindowGroup {
ContentView()
.modelContainer(for: Task.self)
}
}
}
// In your views
struct TaskListView: View {
@Query private var tasks: [Task]
@Environment(\.modelContext) private var context
var body: some View {
List(tasks) { task in
Text(task.title)
}
.toolbar {
Button("Add") {
let newTask = Task(title: "New Task")
context.insert(newTask)
}
}
}
}Important: Never use CoreData for new projects. SwiftData provides a modern, type-safe API that's easier to work with and integrates seamlessly with SwiftUI.
Remember: This project prioritizes clean, simple SwiftUI code using the platform's native state management. Keep the app shell minimal and implement all features in the Swift Package.
In this repository8 other files it gives its agents.
- template/.github/copilot-instructions.mdCopilot instructions
- template/.cursor/rules/foundation-models.mdcCursor rule
- template/.cursor/rules/general-rules.mdcCursor rule
- template/.cursor/rules/swift-concurrency.mdcCursor rule
- template/.cursor/rules/swift-ios-project.mdcCursor rule
- template/.cursor/rules/swift-testing.mdcCursor rule
- template/.cursor/rules/swiftui-patterns.mdcCursor rule
- template/.cursor/rules/xcodebuildmcp-tools.mdcCursor rule
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.

