跳到主要内容

Lang Swift

Navigate, test, and build Swift via SPM tooling.

Skill metadata​

SourceBundled (installed by default)
Pathskills/software-development/lang-swift
Version1.1.0
AuthorVibeOS
LicenseMIT
Platformsmacos, linux

Reference: full SKILL.md​

信息

The following is the complete skill definition that VibeOS loads when this skill is triggered. This is what the agent sees as instructions when the skill is active.

Swift Language Pack Skill

Drive Swift work with the project index and standard CLI recipes. LSP hint: sourcekit-lsp (editor-side when applicable). Zero new core tools.

What this language is (beginner)​

Язык Apple для iOS, macOS и экосистемы Apple. SPM работает и на Linux для серверного Swift.

Лучше всего для:

  • iOS / iPadOS / macOS приложения
  • SwiftUI интерфейсы
  • пакеты Swift Package Manager
  • серверный Swift (реже, но возможен)

When to Use​

Выбирай этот pack, если:

  • нужно нативное Apple-приложение
  • есть Package.swift или *.xcodeproj
  • пользователь явно просит iOS/macOS

Manifests (автодетект репозитория): Package.swift, *.xcodeproj

Обычно рядом: Часто отдельно Kotlin для Android; либо Flutter вместо обоих.

См. также skill choose-language-pack, если цель ещё не ясна.

When NOT to use​

  • Android → Kotlin
  • один UI на iOS+Android → Flutter/Dart
  • веб-сайт → TypeScript

Prerequisites​

vibeos pack apply lang-swift --apply
vibeos pack apply project-intelligence --apply

How to Run​

vibeos project index build
swift test
swift build

Quick Reference​

GoalCommand
Apply packvibeos pack apply lang-swift --apply
Doctorvibeos language doctor swift
Primary testswift test
Choose guideskill choose-language-pack

Procedure​

  1. Если язык ещё не выбран для нового проекта — сначала choose-language-pack.
  2. Work from the project root that matches pack manifests.
  3. Index query → read_file → edit → path-scoped tests when iterating.
  4. Prefer the package manager / toolchain already locked in the repo.
  5. Explain non-obvious toolchain choices in plain language for the user.

Pitfalls​

  • SwiftUI/iOS remain macOS-first with Xcode.
  • SPM on Linux does not replace Xcode for App Store apps.
  • Do not invent core tools; stay on terminal + read_file + index CLI.

Verification​

vibeos language doctor swift
swift test