Token导航 LogoToken导航TokenDH.com
效率需要联网clawhub未标认证来源可访问clear审计提醒

dev-skill开发技能

Agent Skill

dev-skill 用于辅助前端页面、组件、样式和交互逻辑开发,适合在 OpenClaw 中需要维护前端项目、生成组件或检查界面实现时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

7,872

周安装

328

GitHub Stars

公开资料未说明

下载量

2,624
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:dev-skill(开发技能)
来源仓库:https://github.com/tc1993/dev-skill
安装命令:
openclaw skills install dev-skill
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install dev-skill

简介

从 PRD 文档自动生成 SwiftUI iOS 应用程序代码,加速移动端开发流程。

  • 适合在 OpenClaw 中需要维护前端项目、生成组件或检查界面实现时使用。
  • 支持将产品需求转化为可运行的 iOS 应用结构和交互逻辑。
  • 安装命令:openclaw skills install dev-skill;需确认是否会触发文件读写或命令执行。
  • 建议结合来源仓库查看支持的 UI 框架和输出格式细节。

SKILL.md

name
dev-skill
description
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 with proper architecture, UI components, and data management. This skill receives input from prd-skill and automatically triggers qa-skill after code generation.

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

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

90.05%
按下载量换算2,363

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills