swift-tooling
БесплатноБез исполняемых скриптовНе проверенConfigure SPM packages, SwiftLint, and build settings for Swift projects. Use when managing Swift packages with SPM, configuring build settings, or enforcing…
от HoangNguyen0403★ 598 звёзд на GitHubОб этом скилле
Swift Tooling Standards
Priority: P0 (CRITICAL)
Define SPM Packages
- Package.swift: Define clear targets, products, and dependencies.
- Modularization: Break large projects into local packages for faster builds.
- Versioning: Use semantic versioning (Major.Minor.Patch) for shared packages.
- Compatibility Preflight: Keep four contracts separate — compiler version, Swift language mode (
-swift-version5/6 and strict-concurrency settings), SDK/Xcode version, and deployment targets (per-API availability).swift-tools-versionis not a fifth "manifest-only" knob: in SwiftPM, tools-version 6.0+ makes Swift 6 language mode the default for the package's targets (override withswiftLanguageModesor.swiftLanguageModeper target), so bumping it silently enables full concurrency checking. Xcode targets useSWIFT_VERSIONinstead. Swift 6.4-only syntax needs a 6.4 compiler and matching SDK — see 6.4 gated features.
See implementation examples for Package.swift structure, SwiftLint config, and environment-specific code.
Enforce Code Quality
- SwiftLint: Use for consistent style enforcement. Create
.swiftlint.ymlin project root withdisabled_rulesandopt_in_rulessections. - Compiler Warnings: Treat warnings as errors in CI to maintain code health.
- Documentation: Use triple slashes
///for documentation comments on public APIs (DocC-compatible).
Manage Build Configurations
- Xcconfig: Use external configuration files to manage build settings.
- Environment Flags: Use
#if DEBUGfor development-only code, closed with#endif. - Schemes: Maintain separate schemes for Development, Staging, and Production.
Anti-Patterns
- No API keys in code: Use environment variables or build configs.
- No // swiftlint:disable: Fix underlying issue.
- No manually added frameworks: Use SPM.
References
Установить swift-tooling в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл swift-tooling?
Configure SPM packages, SwiftLint, and build settings for Swift projects. Use when managing Swift packages with SPM, configuring build settings, or enforcing Swift code quality.
Как установить скилл swift-tooling?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл swift-tooling запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic