用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill arc-project-setup命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | arc-project-setup |
| description | | Use when this capability is needed. |
// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "ARCPackageName",
platforms: [
.iOS(.v17),
.macOS(.v14),
.watchOS(.v10),
.tvOS(.v17)
],
products: [
.library(name: "ARCPackageName",
targets: ["ARCPackageName"])
],
dependencies: [
.package(url: "https://github.com/arclabs-studio/ARCLogger", from: "1.0.0")
],
targets: [
.target(name: "ARCPackageName",
dependencies: [
.product(name: "ARCLogger", package: "ARCLogger")
],
path: "Sources/ARCPackageName",
swiftSettings: [
.enableUpcomingFeature("StrictConcurrency")
]),
.testTarget(name: "ARCPackageNameTests",
dependencies: ["ARCPackageName"],
path: "Tests/ARCPackageNameTests")
],
swiftLanguageModes: [.v6]
)
ARCPackageName/
├── Package.swift # Manifest
├── README.md # Documentation
├── LICENSE # MIT license
├── CHANGELOG.md # Version history
├── Sources/
│ └── ARCPackageName/
│ ├── Protocols/ # Abstractions
│ ├── Implementations/ # Concrete types
│ ├── Models/ # Data types
│ └── Resources/ # Assets
├── Tests/
│ └── ARCPackageNameTests/
│ ├── Unit/
│ └── Mocks/
├── Example/ # Demo app (standalone Xcode project)
│ └── ARCPackageNameDemoApp/
│ └── ARCPackageNameDemoApp.xcodeproj
└── Documentation.docc/
# 1. Install tools
brew install swiftlint swiftformat
# 2. Add as submodule
git submodule add https://github.com/arclabs-studio/ARCDevTools
# 3. Run setup
./ARCDevTools/arcdevtools-setup --with-workflows
# 4. Commit
git add .gitmodules ARCDevTools/ .swiftlint.yml .swiftformat Makefile
git commit -m "chore: integrate ARCDevTools"
make help # Show all commands
make lint # Run SwiftLint
make format # Check formatting
make fix # Apply SwiftFormat
make test # Run tests
make clean # Clean build
make setup # Re-run ARCDevTools setup
| File | Purpose |
|---|---|
.swiftlint.yml | SwiftLint rules (copied from ARCDevTools) |
.swiftformat | SwiftFormat rules (copied from ARCDevTools) |
Makefile | Common development commands |
.git/hooks/pre-commit | Auto-format and lint before commit |
.git/hooks/pre-push | Run tests before push |
# .github/workflows/tests.yml
name: Tests
on: [push, pull_request]
jobs:
test-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- run: swift test --parallel
test-linux:
runs-on: ubuntu-latest
container: swift:6.0
steps:
- uses: actions/checkout@v4
- run: swift test --parallel
# .github/workflows/tests.yml
name: Tests
on: [push, pull_request]
jobs:
test-ios:
runs-on: macos-15
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_16.2.app
- name: Test
run: |
xcodebuild test \
-scheme "YourApp" \
-destination "platform=iOS Simulator,name=iPhone 16" \
CODE_SIGNING_ALLOWED=NO
| Package | Purpose |
|---|---|
| ARCLogger | Structured logging with privacy |
| ARCNavigation | Type-safe MVVM+C routing |
| ARCStorage | Persistence (SwiftData, CloudKit, Keychain) |
| ARCMaps | Mapping (Google Places + Apple MapKit) |
| ARCUIComponents | Reusable UI components |
| ARCDesignSystem | Typography, colors, accessibility |
| ARCDevTools | Linting, formatting, CI/CD |
| ARCFirebase | Firebase integration |
| ARCNetworking | Network layer |
| ARCIntelligence | AI/ML integration |
| ARCMetrics | Analytics (MetricKit, TelemetryDeck) |
MAJOR.MINOR.PATCH
Breaking change -> MAJOR (1.0.0 -> 2.0.0)
New feature -> MINOR (1.0.0 -> 1.1.0)
Bug fix -> PATCH (1.0.0 -> 1.0.1)
Demo apps MUST be standalone Xcode projects:
Example/
└── ARCPackageNameDemoApp/
└── ARCPackageNameDemoApp.xcodeproj
NOT executable targets in Package.swift.
For complete guides:
brew reinstall swiftlint
chmod +x .git/hooks/pre-commit
./ARCDevTools/hooks/install-hooks.sh
xcodebuild -list # List available schemes
# In Xcode: Product -> Scheme -> Manage Schemes -> Check "Shared"
# Add CODE_SIGNING_ALLOWED=NO to xcodebuild
xcodebuild test -scheme "App" CODE_SIGNING_ALLOWED=NO
git submodule update --init --recursive
User says: "Create a new ARCAnalytics package"
Package.swift using templateSources/ARCAnalytics/ and Tests/ARCAnalyticsTests/ structureREADME.md following templatechore: initial package setupUser says: "Add ARCDevTools to my app"
git submodule add https://github.com/arclabs-studio/ARCDevTools./ARCDevTools/arcdevtools-setup --with-workflows.swiftlint.yml, .swiftformat, Makefile createdmake lint && make formatchore: integrate ARCDevTools| If you need... | Use |
|---|---|
| Architecture decisions | /arc-swift-architecture |
| Testing patterns | /arc-tdd-patterns |
| Code quality standards | /arc-quality-standards |
| Git workflow | /arc-workflow |
Source: arclabs-studio/ARCKnowledge — distributed by TomeVault.