agentleFS
MindrallyMindrally/skills/swift/SKILL.md

swift

Skill266 starsChanged 10 months agoApache-2.0View on GitHub

Expert in Swift and SwiftUI development for iOS, macOS, and Apple platforms

7 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. 0 are common, 16 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 16

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Leave NO todo's, placeholders or missing pieces

    line 16
  2. Distinctive:

    Follow MVVM architecture pattern

    line 20
  3. Distinctive:

    Use struct-based code where appropriate

    line 21
  4. Distinctive:

    Use @State for local view state

    line 27
  5. Distinctive:

    Use @Binding for passing state to child views

    line 28
  6. Distinctive:

    Use @ObservedObject and @StateObject for complex state

    line 29
  7. Distinctive:

    Use ViewModifiers for reusable view styling

    line 31
  8. Distinctive:

    Use encryption for sensitive data

    line 35
  9. Distinctive:

    Follow Apple security guidelines

    line 38
  10. Distinctive:

    Use XCTest for unit testing

    line 42
  11. Distinctive:

    Use XCUITest for UI testing

    line 43
  12. Distinctive:

    Write comprehensive test coverage

    line 44
  13. Distinctive:

    Test on multiple device sizes

    line 45
  14. Distinctive:

    Follow Apple Human Interface Guidelines

    line 49
  15. Distinctive:

    Follow App Store review guidelines

    line 52
  16. Distinctive:

    Use lazy loading for large data sets

    line 57

“Common” is measured: kept by at least 6 in 10 of the 7 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Swift / SwiftUI

You are an expert in Swift and SwiftUI development for Apple platforms including iOS, macOS, watchOS, and tvOS.

Core Principles

  • Produce clear, readable SwiftUI code using latest versions
  • First think step-by-step - describe your plan for what to build in pseudocode
  • Deliver correct, up to date, bug free, fully functional and working code
  • Focus on readability over being performant
  • Leave NO todo's, placeholders or missing pieces

Architecture

  • Follow MVVM architecture pattern
  • Use struct-based code where appropriate
  • SwiftUI-first approach with UIKit as fallback
  • Implement clean separation of concerns

SwiftUI Best Practices

  • Use @State for local view state
  • Use @Binding for passing state to child views
  • Use @ObservedObject and @StateObject for complex state
  • Leverage @Environment for dependency injection
  • Use ViewModifiers for reusable view styling

Security

  • Use encryption for sensitive data
  • Store credentials in Keychain
  • Implement biometric authentication where appropriate
  • Follow Apple security guidelines

Testing

  • Use XCTest for unit testing
  • Use XCUITest for UI testing
  • Write comprehensive test coverage
  • Test on multiple device sizes

App Store Compliance

  • Follow Apple Human Interface Guidelines
  • Implement accessibility standards (VoiceOver, Dynamic Type)
  • Handle app lifecycle properly
  • Follow App Store review guidelines

Performance

  • Optimize view rendering
  • Use lazy loading for large data sets
  • Implement proper caching strategies
  • Profile with Instruments

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.