一键导入
ios-add-feature
Scaffold a new feature with View, ViewModel, and tests following ios-std conventions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Scaffold a new feature with View, ViewModel, and tests following ios-std conventions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | ios-add-feature |
| description | Scaffold a new feature with View, ViewModel, and tests following ios-std conventions. |
| argument-hint | <feature-name> [--with-detail] [--with-form] [--no-tests] |
| allowed-tools | Bash, Write, Read, Glob, Grep |
Add a complete feature module to an existing iOS project with View, ViewModel, and tests.
feature-name — Feature name in PascalCase (e.g., Settings, UserProfile)--with-detail — Include detail view for drill-down--with-form — Include form/edit view--no-tests — Skip test file generationFeatures/<Feature>/
├── <Feature>View.swift # Main view
├── <Feature>ViewModel.swift # ViewModel with state + intents
└── <Feature>Row.swift # List row component (if list-based)
Tests/UnitTests/
└── <Feature>ViewModelTests.swift # ViewModel tests
--with-detailFeatures/<Feature>/
├── <Feature>View.swift
├── <Feature>ViewModel.swift
├── <Feature>DetailView.swift # Detail view
└── <Feature>DetailViewModel.swift
--with-formFeatures/<Feature>/
├── <Feature>View.swift
├── <Feature>ViewModel.swift
├── <Feature>FormView.swift # Create/edit form
└── <Feature>FormViewModel.swift
<Feature>View.swift<Feature>ViewModel.swift<Feature>Row.swift<Feature>ViewModelTests.swift@MainActor final class@Published private(set) for statePersistenceStore protocol (not SwiftData directly)@StateObject for owned ViewModel@EnvironmentObject for shared servicesstruct (not XCTestCase class)init() for setup (not setUp())@Test func methodName() (no test_ prefix)#expect(condition) for assertions@Test(arguments:) for parameterized testsFeatures/./scripts/lint.sh and tests to verifySummarize: files created, how to access the feature, test coverage.
For templates and patterns, see reference/ios-add-feature-reference.md
Scaffold a pnpm + Turborepo MERN monorepo with Next.js, tooling, tests, CI, and optional GitHub repo creation.
Configure GitHub repository security with branch protection, Dependabot, security scanning, and CI workflows. Integrates with mern-scaffold, nean-scaffold, and iOS projects.
Harden a Vercel deployment with security headers, CSP, bot protection, and deployment configuration
Add authentication to an iOS app with Sign in with Apple, biometrics, and Keychain storage.
Review iOS code for compliance with standards, NFRs, and security policy.
Manage Swift Package Manager dependencies with security checks and update verification.