kmshdev/claude-swift-toolkit/swift-project-scaffold

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when creating a new iOS or macOS Xcode project. Provides XcodeGen project.yml templates, app entry point archetypes, and post-scaffold build setting patches for Swift 6.2 / iOS 26 / macOS 26 with strict concurrency.

Install

npx vskill@latest install kmshdev/claude-swift-toolkit/swift-project-scaffold

SKILL.md

1. Template Variables

VariableDescription
__APP_NAME__App display name and target name
__BUNDLE_PREFIX__Bundle ID prefix (e.g., com.username)
__BUNDLE_ID__Full bundle ID (__BUNDLE_PREFIX__.__APP_NAME__)
__MACOS_TARGET__macOS deployment target (default: 26.0)
__IOS_TARGET__iOS deployment target (default: 26.0)

2. XcodeGen Path (Primary)

Steps when xcodegen is available:

  1. Create directory structure: Sources/<AppName>/, Tests/<AppName>Tests/
  2. Write project.yml from template (select macos.project.yml or ios.project.yml)
  3. Replace all __TEMPLATE_VAR__ placeholders with actual values
  4. Write AppEntry.swift and ContentView.swift from templates
  5. Write .gitignore from template
  6. Run xcodegen generate
  7. Open the generated project in Xcode and verify with BuildProject when the bridge is available, otherwise use xcodebuild

3. Manual Xcode Fallback

Steps when xcodegen is NOT available:

  1. Stop the automated scaffold path and tell the user there is no official Xcode

MCP project-scaffolding tool in this toolkit.

  1. Ask the user to either install XcodeGen or create a new App project in Xcode

manually.

  1. Once the project exists, write the template-based AppEntry.swift,

ContentView.swift, and .gitignore files into that project structure.

  1. Verify with BuildProject if the project is open in Xcode, otherwise use

xcodebuild.

4. App Archetypes

Standard (WindowGroup)
swift
@main
struct __APP_NAME__App: App {
var body: some Scene {
WindowGroup {
ContentView()
}
}
}
Document-Based
swift
@main
struct __APP_NAME__App: App {
var body: some Scene {
DocumentGroup(newDocument: __APP_NAME__Document()) { file in
ContentView(document: file.$document)
}
}
}
Menu Bar Extra
swift
@main
struct __APP_NAME__App: App {
var body: some Scene {
MenuBarExtra("__APP_NAME__", systemImage: "star.fill") {
ContentView()
}
.menuBarExtraStyle(.window)
}
}
Utility (Single Window)
swift
@main
struct __APP_NAME__App: App {
var body: some Scene {
Window("__APP_NAME__", id: "main") {
ContentView()
}
.defaultSize(width: 600, height: 400)
}
}

5. Post-Scaffold Checklist

RequirementHow to verify
Swift 6.2 strict concurrencySWIFT_STRICT_CONCURRENCY = complete in build settings
Correct deployment targetCheck MACOSX_DEPLOYMENT_TARGET or IPHONEOS_DEPLOYMENT_TARGET
Working .xcodeprojBuildProject succeeds with clean build
Test target wiredRunAllTests runs (even with 0 tests)
RenderPreview worksContentView has #Preview block
Proper app bundle (.app)Target type is application
Git-friendly.gitignore excludes .xcodeproj (if XcodeGen), includes project.yml

Cross-References

  • apple-app-architect:swift-app-lifecycle — scene structure details
  • apple-app-builder:xcode-mcp — BuildProject, diagnostics, previews, and targeted tests

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/kmshdev/claude-swift-toolkit/swift-project-scaffold/badge)](https://verified-skill.com/skills/kmshdev/claude-swift-toolkit/swift-project-scaffold)

Something wrong with this skill or its page? Tell us.