ignaciocervino

SwiftUI Empty App Init

開發程式設計v1.0.0
作者:ignaciocervino更新於 2026-05-11swiftui-empty-app-init@clawhub_ignaciocervino/swiftui-empty-app-init
程式碼生成前端開發指令碼工具

據 AlphaMoat 統計,截至 2026-09,SwiftUI Empty App Init 累計下載 3,299 次、獲 2 個星標,在全部 5,078 個 AI 技能中排名第 3,436 位,在「開發程式設計」分類(577 個)中排名第 439 位。

累計安裝
107
累計下載
3299
星標
2
全站排名
#3,436
全站前 68% · 「開發程式設計」前 77%
平台累計安裝累計下載星標評論
ClawHub ↗10732872-
SkillHub ↗10732992—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

主文要求透過 XcodeGen 生成單個 .xcodeproj,並限定為單一應用目標、不含 Swift packages,除非使用者明確要求也不建立測試目標。該流程會在當前目錄寫入專案檔案;執行前確認目錄正確且不會覆蓋重要內容。若缺少 Xcode 或 XcodeGen,主文要求停止並報告,不應自行安裝或換用其他腳手架。

資料釋出於 2026-10-29

可以用來做什麼

  • 規劃一個符合要求的 SwiftUI 專案結構
  • 檢查初始化前需要的 XcodeGen 和目標目錄
  • 說明該初始化器不會自動安裝缺失依賴

什麼時候用

  • 需要建立新的最小化 SwiftUI 專案時
  • Xcode 和 XcodeGen 已具備且目錄可寫時
  • 能夠先檢查目標目錄避免覆蓋時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

檢查專案初始化會寫入哪些檔案
確認單一專案目標和依賴要求
列出缺少的前提條件,不要安裝或建立專案

月度資料趨勢

累計下載3299
2179278133822026-03 · 累計下載 22622026-05 · 累計下載 26952026-06 · 累計下載 28322026-07 · 累計下載 30652026-08 · 累計下載 31822026-09 · 累計下載 329926-0326-09
星標2
1232026-03 · 星標 22026-05 · 星標 22026-06 · 星標 22026-07 · 星標 22026-08 · 星標 22026-09 · 星標 226-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-093299—2
2026-083182+3.8%2
2026-073065+8.2%2
2026-062832+5.1%2
2026-052695—2
2026-032262—2

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

2.3 KB · ClawHub v1.0.0
---
name: swiftui-empty-app-init
description: Initialize a minimal SwiftUI iOS app in the current directory by generating a single `.xcodeproj` with XcodeGen (no workspaces, packages, or tests unless explicitly requested).
---

# SwiftUI Empty App Init

## Overview
Initialize a clean, single-target SwiftUI iOS app in the current directory.
The project is generated using **XcodeGen** to produce a single `.xcodeproj`, leaving developers ready to start adding features immediately.
展開全部(共 63 行)

## Prerequisites
- Xcode installed and selected via `xcode-select`
- **XcodeGen** available on `PATH`

If any prerequisite is missing:
- Stop execution
- Tell the user exactly what is missing
- Do **not** attempt alternative scaffolding or auto-installation

## Inputs
- **Project name** (required)
- **Minimum iOS deployment target**
- **Optional bundle identifier** (or use default)

## Defaults (use without extra confirmation)
- Bundle identifier default: `com.example.<ProjectName>`
- Proceed immediately once required inputs are provided (do not ask extra confirmations)

## Core Requirements
The resulting project must:
- Be generated via **XcodeGen** (do not hand-author `project.pbxproj`)
- Use a single `.xcodeproj` (no `.xcworkspace`)
- Contain exactly one **app target**
- Use the SwiftUI `@main App` lifecycle
- Contain a minimal `ContentView` placeholder
- Contain a minimal `Info.plist` (avoid unnecessary scene or delegate keys)
- Contain **no Swift packages**
- Contain **no test targets** unless explicitly requested

## Generation
- Create a minimal `project.yml` using the provided inputs
- Generate `YourApp.xcodeproj` using XcodeGen
- Ensure the output matches all Core Requirements

## Expected Structure
- `project.yml`
- `YourApp.xcodeproj`
- `YourApp/` (app target source files)
- Optional config files only

No additional folders, packages, workspaces, scripts, or assets should be present.

## Minimal Verification (fast)
- Confirm `YourApp.xcodeproj` is generated successfully by XcodeGen.
- Confirm the default scheme exists (e.g., via a lightweight scheme listing).
- Do **not** boot simulators, build, install, or launch unless explicitly requested.

## Notes
- Keep the project minimal and unopinionated
- Do not add icons/scripts, packages, workspaces, or architecture scaffolding
- This skill is for **app initialization only**, not feature scaffolding

「開發程式設計」分類下的熱門技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。