← 返回 Skills 市场
tc1993

Dev Skill

作者 唐超 · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
260
总下载
0
收藏
1
当前安装
2
版本数
在 OpenClaw 中安装
/install dev-skill
功能描述
Generate SwiftUI iOS application code from PRD documents. Use when a PRD document is available and needs to be transformed into a working iOS application wit...
使用说明 (SKILL.md)

Dev Skill - SwiftUI iOS Development Generator

Overview

This skill transforms Product Requirements Documents (PRD) into fully functional SwiftUI iOS applications. It analyzes PRD requirements and generates production-ready code with proper architecture, UI components, data models, and business logic.

Architecture Pattern

MVVM Architecture

All generated code follows the Model-View-ViewModel pattern:

Model Layer

  • Data models (structs conforming to Codable)
  • Data persistence (Core Data or SwiftData)
  • Network layer (URLSession or Alamofire)

ViewModel Layer

  • Business logic and state management
  • Data transformation and validation
  • Service coordination

View Layer

  • SwiftUI views with proper componentization
  • Navigation stack management
  • UI state binding

Code Generation Workflow

1. PRD Analysis

  • Parse PRD document for functional requirements
  • Extract screen specifications and user flows
  • Identify data models and relationships
  • Determine required third-party integrations

2. Project Structure Generation

Create a complete Xcode project with:

ProjectName/
├── ProjectName.xcodeproj
├── ProjectName/
│   ├── Models/
│   │   ├── DataModel.swift
│   │   └── APIModels.swift
│   ├── ViewModels/
│   │   ├── MainViewModel.swift
│   │   └── [Feature]ViewModel.swift
│   ├── Views/
│   │   ├── ContentView.swift
│   │   ├── [Feature]View.swift
│   │   └── Components/
│   │       ├── ButtonStyles.swift
│   │       └── CustomViews.swift
│   ├── Services/
│   │   ├── APIService.swift
│   │   └── DataService.swift
│   └── Utilities/
│       ├── Extensions.swift
│       └── Constants.swift
└── ProjectNameTests/
    └── [Feature]Tests.swift

3. Core Components Generation

3.1 Data Models

struct Task: Identifiable, Codable {
    let id: UUID
    var title: String
    var isCompleted: Bool
    var dueDate: Date?
    var category: String
    var priority: Priority
}

enum Priority: String, Codable, CaseIterable {
    case low, medium, high
}

3.2 ViewModels

class TaskViewModel: ObservableObject {
    @Published var tasks: [Task] = []
    @Published var selectedCategory: String?
    
    private let dataService: DataService
    
    init(dataService: DataService = .shared) {
        self.dataService = dataService
        loadTasks()
    }
    
    func addTask(_ task: Task) { ... }
    func deleteTask(_ task: Task) { ... }
    func toggleCompletion(_ task: Task) { ... }
}

3.3 SwiftUI Views

struct TaskListView: View {
    @StateObject private var viewModel = TaskViewModel()
    @State private var showingAddTask = false
    
    var body: some View {
        NavigationView {
            List {
                ForEach(viewModel.tasks) { task in
                    TaskRowView(task: task)
                }
                .onDelete(perform: deleteTask)
            }
            .navigationTitle("Tasks")
            .toolbar {
                Button(action: { showingAddTask = true }) {
                    Image(systemName: "plus")
                }
            }
            .sheet(isPresented: $showingAddTask) {
                AddTaskView()
            }
        }
    }
}

4. Feature Implementation

4.1 Navigation

  • TabView for main navigation
  • NavigationStack for hierarchical navigation
  • Sheet presentations for modal views

4.2 Data Persistence

  • Core Data for complex relationships
  • @AppStorage for simple preferences
  • FileManager for document storage

4.3 Networking

  • Async/Await for modern API calls
  • Error handling with Result type
  • JSON decoding with Codable

4.4 UI/UX

  • Adaptive layout for all device sizes
  • Dark mode support
  • Accessibility features
  • Haptic feedback

Example: Todo App from PRD

PRD Input: Todo app with categories, reminders, sharing

Generated Code:

  1. Models: Task, Category, Reminder
  2. ViewModels: TaskListViewModel, CategoryViewModel
  3. Views: TaskListView, CategoryView, AddTaskView, SettingsView
  4. Services: NotificationService, SharingService
  5. Features:
    • Push notifications for reminders
    • Share sheet integration
    • iCloud sync for data
    • Widgets for quick access

Auto-Trigger Next Steps

After generating the iOS project, this skill automatically:

  1. Creates a complete Xcode project in dev-output/ directory
  2. Verifies code compiles without errors
  3. Triggers qa-skill with the generated code as input
  4. Provides build instructions and next steps

Integration Requirements

Input Format

  • PRD markdown document from prd-skill
  • Structured requirements with priorities
  • Technical specifications and constraints

Output Validation

  • All code must compile in Xcode 15+
  • Follows SwiftUI best practices
  • Includes proper error handling
  • Supports iOS 16+ deployment target

Quality Standards

  • 100% SwiftUI (no UIKit unless absolutely necessary)
  • Proper separation of concerns
  • Comprehensive documentation
  • Follows Apple's Human Interface Guidelines
安全使用建议
What to check before installing: - Clarify build environment requirements: ask the publisher whether the skill expects Xcode, xcodebuild, or other local build tools and whether it will run compilation in your environment. If it does, ensure your environment has those tools and that you consent to builds running. - Ask about Apple Developer credentials and entitlements: push notifications, iCloud sync, and App Store provisioning require developer account certificates/profiles. The skill currently does not request any credentials — ask how it manages entitlements and signing, and never supply developer credentials unless you understand why and how they will be used. - Confirm what 'trigger qa-skill' means: the skill will send the generated source to another skill (qa-skill). Ask what QA does, where results or artifacts are sent, and whether the QA step transmits code off your machine or to external services. - Review produced code before sharing: ensure the output goes to an isolated output path (dev-output/) and manually inspect generated code and any autogenerated keys/certificates before letting any automated step publish or upload it. - Consider limiting autonomy: if possible, require user confirmation before the skill runs compilation or triggers other skills — especially when dealing with proprietary PRDs or sensitive designs. Questions to ask the skill author/developer: - How does the skill verify code compiles (local xcodebuild, remote CI, container)? - Does the skill ever contact external servers (for templates, dependencies, or analytics) while generating code? If so, which domains and for what purpose? - Does it generate or require provisioning profiles/certificates? If yes, how should users provide them securely? - What does qa-skill do with the code and where might QA results or artifacts be sent? Given these mismatches (compile verification and Apple-service integrations without declared build tools or credentials), treat the skill as usable only after the publisher clarifies how builds, signing, and cross-skill data sharing are implemented and how sensitive credentials are handled. If you cannot get clear answers, avoid running automated compilation or auto-triggering downstream skills.
功能分析
Type: OpenClaw Skill Name: dev-skill Version: 1.0.1 The 'dev-skill' bundle is a standard instruction set for an AI agent to generate SwiftUI iOS applications based on Product Requirements Documents (PRD). The SKILL.md file outlines a legitimate MVVM architecture and project structure without any evidence of malicious instructions, data exfiltration, or unauthorized execution patterns.
能力评估
Purpose & Capability
The skill's stated purpose (generate SwiftUI iOS apps from PRDs) is consistent with the SKILL.md content: project layout, models, viewmodels, views and features are all about producing iOS code. However the skill also claims to verify that code compiles and to implement features that require Apple platform entitlements (push notifications, iCloud sync, provisioning). The skill declares no required binaries (Xcode/xcbuild) and no environment variables or credentials (Apple Developer account), which is inconsistent with the claimed compile-and-deploy-style capabilities.
Instruction Scope
Instructions are focused on code generation and state that the project will be created under dev-output/, compiled/verified, and then the skill will trigger qa-skill with the generated code. The instructions do not instruct reading unrelated system files or secrets, but they do direct the agent to send generated code to another skill (qa-skill). That cross-skill data flow is expected for a pipeline but is a potential privacy/exfiltration vector unless you trust qa-skill. The compile/verify step implies executing build tools which are not declared in requirements.
Install Mechanism
This is an instruction-only skill with no install spec and no code files — lowest install risk. Note: because it promises to verify compilation, practical use will require Xcode/command-line build tools in the runtime environment; there is no install guidance for those tools.
Credentials
The skill requests no environment variables or credentials, yet its feature list includes push notifications, iCloud sync, and verifying builds — all of which normally require Apple Developer account access, provisioning profiles, certificates, or a local Xcode toolchain. The absence of any declared credentials or config paths is disproportionate to the claimed functionality and should be clarified.
Persistence & Privilege
always:false and no special persistence are fine. The skill does write output to dev-output/ and autonomously triggers qa-skill with generated code; autonomous triggering of another skill can expose generated source to that downstream skill. This is expected pipeline behavior but increases data-sharing risk; consider requiring user confirmation before triggering QA/other skills.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install dev-skill
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /dev-skill 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Updated SKILL.md with a complete English rewrite and greater detail. - Expanded documentation for architecture, workflow, project structure, and integration requirements. - Added explicit example outputs and code snippets, including models, view models, and views. - Clarified input, output, and auto-trigger logic for downstream skills. - Set higher minimum requirements (iOS 16+, Xcode 15+), code quality, and best practice adherence.
v1.0.0
- Initial release of dev-skill. - Automatically generates complete SwiftUI iOS project code based on PRD documents. - Integrates with prd-skill for input and qa-skill for downstream QA automation. - Supports MVVM architecture, code templates, and code quality checks. - Outputs ready-to-run Xcode project with SwiftUI views, models, business logic, and resources. - Provides configurable options for architecture, tech stack, and code style.
元数据
Slug dev-skill
版本 1.0.1
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 2
常见问题

Dev Skill 是什么?

Generate SwiftUI iOS application code from PRD documents. Use when a PRD document is available and needs to be transformed into a working iOS application wit... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 260 次。

如何安装 Dev Skill?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install dev-skill」即可一键安装,无需额外配置。

Dev Skill 是免费的吗?

是的,Dev Skill 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Dev Skill 支持哪些平台?

Dev Skill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Dev Skill?

由 唐超(@tc1993)开发并维护,当前版本 v1.0.1。

💬 留言讨论