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

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

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

Контакты

Москва

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

+7 (999) 760-24-41

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

lamooof@gmail.com

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

TelegramWhatsApp

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

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

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

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

    Swift Style

    Swift code style conventions for clean, readable code. Use when writing Swift code to ensure consistent formatting, naming, organization, and idiomatic patterns.

    Скиллы для разработки#GitHub#johnrogers/claude-swift-engineering#skills.sh
    Скачивания
    0
    В избранном
    0
    Комментарии
    0
    Просмотры
    2

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

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

    npx skills add johnrogers/claude-swift-engineering --skill swift-style
    Скачать ZIP
    Версия
    1.0.0+1dc2cf4d020b
    Автор
    Владимир Ломтев
    Репозиторий
    johnrogers/claude-swift-engineering
    GitHub: johnrogers/claude-swift-engineering

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

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

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

    Swift Style Guide

    Code style conventions for clean, readable Swift code.

    Core Principles

    Clarity > Brevity > Consistency

    Code should compile without warnings.

    Naming

    • UpperCamelCase — Types, protocols
    • lowerCamelCase — Everything else
    • Clarity at call site
    • No abbreviations except universal (URL, ID)
    // Preferred
    let maximumWidgetCount = 100
    func fetchUser(byID id: String) -> User
    

    Golden Path

    Left-hand margin is the happy path. Don't nest if statements.

    // Preferred
    func process(value: Int?) throws -> Result {
        guard let value = value else {
            throw ProcessError.nilValue
        }
        guard value > 0 else {
            throw ProcessError.invalidValue
        }
        return compute(value)
    }
    

    Code Organization

    Use extensions and MARK comments:

    class MyViewController: UIViewController {
        // Core implementation
    }
    
    // MARK: - UITableViewDataSource
    extension MyViewController: UITableViewDataSource { }
    

    Spacing

    • Braces open on same line, close on new line
    • One blank line between methods
    • Colon: no space before, one space after

    Self

    Avoid self unless required by compiler.

    // Preferred
    func configure() {
        backgroundColor = .systemBackground
    }
    

    Computed Properties

    Omit get for read-only:

    var diameter: Double {
        radius * 2
    }
    

    Closures

    Trailing closure only for single closure parameter.

    Type Inference

    Let compiler infer when clear. For empty collections, use type annotation:

    var names: [String] = []
    

    Syntactic Sugar

    // Preferred
    var items: [String]
    var cache: [String: Int]
    var name: String?
    

    Access Control

    • private over fileprivate
    • Don't add internal (it's the default)
    • Access control as leading specifier

    Memory Management

    resource.request().onComplete { [weak self] response in
        guard let self else { return }
        self.updateModel(response)
    }
    

    Comments

    • Explain why, not what
    • Use // or ///, avoid /* */
    • Keep up-to-date or delete

    Constants

    Use case-less enum for namespacing:

    enum Math {
        static let pi = 3.14159
    }
    

    Common Mistakes

    1. Abbreviations beyond URL, ID, UUID — Abbreviations like cfg, mgr, ctx, desc hurt readability. Spell them out: configuration, manager, context, description. The three exceptions are URL, ID, UUID.

    2. Nested guard/if statements — Deep nesting makes code hard to follow. Use early returns and guards to keep the happy path left-aligned.

    3. Inconsistent self usage — Either always omit self (preferred) or always use it. Mixing makes code scanning harder and confuses capture semantics.

    4. Overly generic type names — Manager, Handler, Helper, Coordinator are too vague. Names should explain responsibility: PaymentProcessor, EventDispatcher, ImageCache, NavigationCoordinator.

    5. Implied access control — Don't skip access control. Explicit private, public helps future maintainers understand module boundaries. internal is default, so omit it.

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

    Источник пакета
    https://github.com/johnrogers/claude-swift-engineering/tree/1dc2cf4d020bd524168f20bec95104da6cb2888c/plugins/swift-engineering/skills/swift-style

    Файлы версии

    ПутьРазмерSHA256
    SKILL.md33242bca6f774ac48fe6...

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

    Как установить Swift Style?
    Используйте команду npx skills add johnrogers/claude-swift-engineering --skill swift-style или скачайте ZIP-архив.
    Можно ли скачать Swift Style бесплатно?
    Да, опубликованную версию можно скачать из маркетплейса бесплатно.

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

    Смотреть все
    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 johnrogers/claude-swift-engineering --skill swift-style
    Скачать ZIP
    Версия
    1.0.0+1dc2cf4d020b
    Автор
    Владимир Ломтев
    Репозиторий
    johnrogers/claude-swift-engineering
    GitHub: johnrogers/claude-swift-engineering
    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.