AI студия Владимира Ломтева
УСЛУГИПРОЕКТЫСТАТЬИБАЗА ЗНАНИЙМаркетплейсПолезные сервисы

Оставьте заявку,
чтобы обсудить проект

Напишите ваш вопрос, не забудьте указать телефон. Мы перезвоним и все расскажем.

Контакты

Москва

Работаем по всей России
и миру (онлайн)

+7 (999) 760-24-41

Ежедневно с 9:00 до 21:00

lamooof@gmail.com

По вопросам сотрудничества

TelegramWhatsApp

Есть предложение?

Напишите нам в мессенджеры

© 2025 AI студия Владимира Ломтева

Политика конфиденциальностиСогласие на обработку ПДн|ИНН 623412173261
    Swiftdata Pro — Скилл для ИИ-агентов | AI Рассвет

    Swiftdata Pro

    Writes, reviews, and improves SwiftData code using modern APIs and best practices. Use when reading, writing, or reviewing projects that use SwiftData.

    Скиллы для разработки#GitHub#twostraws/swiftdata-agent-skill#skills.sh
    Скачивания
    0
    В избранном
    0
    Комментарии
    0
    Просмотры
    2

    Установить скилл

    Добавьте инструмент одной командой или скачайте проверенный архив версии.

    npx skills add twostraws/swiftdata-agent-skill --skill swiftdata-pro
    Скачать ZIP
    Версия
    1.0.0+922d989473a9
    Автор
    Владимир Ломтев
    Репозиторий
    twostraws/swiftdata-agent-skill
    GitHub: twostraws/swiftdata-agent-skill

    Как установить

    1. 1Скопируйте команду из блока установки.
    2. 2Запустите её в терминале из каталога проекта.

    Документация

    Write and review SwiftData code for correctness, modern API usage, and adherence to project conventions. Report only genuine problems - do not nitpick or invent issues.

    Review process:

    1. Check for core SwiftData issues using references/core-rules.md.
    2. Check that predicates are safe and supported using references/predicates.md.
    3. If the project uses CloudKit, check for CloudKit-specific constraints using references/cloudkit.md.
    4. If the project targets iOS 18+, check for indexing opportunities using references/indexing.md.
    5. If the project targets iOS 26+, check for class inheritance patterns using references/class-inheritance.md.

    If doing partial work, load only the relevant reference files.

    Core Instructions

    • Target Swift 6.2 or later, using modern Swift concurrency.
    • The user strongly prefers to use SwiftData across the board. Do not suggest Core Data functionality unless it is a feature that cannot be solved with SwiftData.
    • Do not introduce third-party frameworks without asking first.
    • Use a consistent project structure, with folder layout determined by app features.

    Output Format

    If the user asks for a review, organize findings by file. For each issue:

    1. State the file and relevant line(s).
    2. Name the rule being violated.
    3. Show a brief before/after code fix.

    Skip files with no issues. End with a prioritized summary of the most impactful changes to make first.

    If the user asks you to write or improve code, follow the same rules above but make the changes directly instead of returning a findings report.

    Example output:

    Destination.swift

    Line 8: Add an explicit delete rule for relationships.

    // Before
    var sights: [Sight]
    
    // After
    @Relationship(deleteRule: .cascade, inverse: \Sight.destination) var sights: [Sight]
    

    Line 22: Do not use isEmpty == false in predicates – it crashes at runtime. Use ! instead.

    // Before
    #Predicate<Destination> { $0.sights.isEmpty == false }
    
    // After
    #Predicate<Destination> { !$0.sights.isEmpty }
    

    DestinationListView.swift

    Line 5: @Query must only be used inside SwiftUI views.

    // Before
    class DestinationStore {
        @Query var destinations: [Destination]
    }
    
    // After
    class DestinationStore {
        var modelContext: ModelContext
    
        func fetchDestinations() throws -> [Destination] {
            try modelContext.fetch(FetchDescriptor<Destination>())
        }
    }
    

    Summary

    1. Data loss (high): Missing delete rule on line 8 of Destination.swift means sights will be orphaned when a destination is deleted.
    2. Crash (high): isEmpty == false on line 22 will crash at runtime – use !isEmpty instead.
    3. Incorrect behavior (high): @Query on line 5 of DestinationListView.swift only works inside SwiftUI views.

    End of example.

    References

    • references/core-rules.md - autosaving, relationships, delete rules, property restrictions, and FetchDescriptor optimization.
    • references/predicates.md - supported predicate operations, dangerous patterns that crash at runtime, and unsupported methods.
    • references/cloudkit.md - CloudKit-specific constraints including uniqueness, optionality, and eventual consistency.
    • references/indexing.md - database indexing for iOS 18+, including single and compound property indexes.
    • references/class-inheritance.md - model subclassing for iOS 26+, including @available requirements, schema setup, and predicate filtering.

    Требования и возможности

    Источник пакета
    https://github.com/twostraws/swiftdata-agent-skill/tree/922d989473a9914210b41529a1ac5636aff4b8c1/swiftdata-pro

    Файлы версии

    ПутьРазмерSHA256
    SKILL.md372279164f3bc4942b8c...
    agents/openai.yaml3404293560a9ce8fe89...
    assets/swiftdata-pro-icon.svg1539876f9b502c4565f5...
    references/class-inheritance.md380405b22c87e9864a47...
    references/cloudkit.md66252a549b1713d55be...

    Частые вопросы

    Как установить Swiftdata Pro?
    Используйте команду npx skills add twostraws/swiftdata-agent-skill --skill swiftdata-pro или скачайте ZIP-архив.
    Можно ли скачать Swiftdata Pro бесплатно?
    Да, опубликованную версию можно скачать из маркетплейса бесплатно.

    Похожие инструменты

    Смотреть все
    React DoctorUse when finishing a feature, fixing a bug, before committing React code, or when the user types `/doctor`, asks to scan, triage, or clean up React diagnostics. Covers lint, accessibility, bundle size, architecture. Includes a regression check and a full local-triage workflow that fetches the canonical playbook.Argent Android Emulator SetupSet up and connect to an Android emulator using argent MCP tools. Use when starting a new session on Android, booting an emulator, getting a device serial, or before any UI interaction task.Fireworks Tech GraphCreate technical diagrams such as software architecture, data flow, flowcharts, sequence diagrams, C4 reviews, cloud deployments, event streams, observability investigations, agent/memory systems, UML, ER, network topology, timelines, and technical concept maps, then export SVG, PNG, focused semantic SVG-to-GIF motion, or offline interactive HTML. Treat direct requests such as "Generate a GIF", "生成 GIF", or "制作 GIF" as motion requests, and use this skill when the user asks to visualize a system or engineering concept. Do not use for photos, raster artwork, or quantitative data charts.
    Комментарии

    Войдите, чтобы оставить комментарий.

    Комментариев пока нет.

    Установить скилл

    Добавьте инструмент одной командой или скачайте проверенный архив версии.

    npx skills add twostraws/swiftdata-agent-skill --skill swiftdata-pro
    Скачать ZIP
    Версия
    1.0.0+922d989473a9
    Автор
    Владимир Ломтев
    Репозиторий
    twostraws/swiftdata-agent-skill
    GitHub: twostraws/swiftdata-agent-skill
    Modern Web GuidanceSearch tool for modern web development best practices. MANDATORY: Execute FIRST for all HTML/CSS and clientside JS tasks. Do NOT skip — web APIs evolve rapidly and training weights contain obsolete patterns.