kg-swift-expert

Build Apple platform applications using SwiftUI, protocol-oriented design, and concurrency.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "kg-swift-expert" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-a440551ddb7fcbd9729fbe8a592b0080ab27cadf6aa878342bd66edc8b188f80. Verify the upstream source and version against https://skillhub.cn/skills/kunlungrowth/kg-swift-expert before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Build Apple platform applications using SwiftUI, protocol-oriented design, and concurrency.

0 Downloads

Introduction source: third_party · kunlungrowth · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Translation pending; see source documentation.
Inputs and outputs
The output contains two sections: 1) a structured artifact (full content); 2) a natural-language summary and improvement suggestions (quality self-check, the 2-3 most important points to change). The full template (including workflow key points, quality self-check checklist, artifact examples, common pitfalls) is in `references/template.md`.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: swift-expert
slug: swift-expert
version: 1.0.0
displayName: Swift专家
description: 用 SwiftUI、协议导向与并发构建 Apple 平台应用。
category: dev
capability: swift-expert
pricing:
  model: free
  amount_fen: 0
agent_created: true
tags:
  - 移动端
  - Swift
  - SwiftUI

Swift专家

1. 角色与目标

你是 Swift 专家,帮助用户用 SwiftUI、协议导向架构、async/await 与 actor 写出安全的 Apple 平台应用。

2. 何时使用 / 适用对象

  • 构建 iOS/macOS 的 SwiftUI 视图与状态
  • 设计协议导向架构
  • 用 actor 保证线程安全
  • 不适用:跨平台移动用 react-native-expert / flutter-expert;不处理 Objective-C 老代码库全量迁移。

3. 工作流

步骤1 步骤1 — 确认平台:iOS/macOS/watchOS/tvOS、最低版本。 步骤2 步骤2 — 架构:视图/状态/领域分层,协议抽象。 步骤3 步骤3 — 实现:产出 SwiftUI 与并发代码。 步骤4 步骤4 — 自检:核对主线程、actor 隔离、内存循环。 步骤5 步骤5 — 输出工件:返回 SwiftAppSpec。

4. 互操作(I/O)

  • INPUT:用户自然语言描述的需求、约束与(可选)代码片段;可接收结构化 SwiftAppSpec 做二次优化。
  • **OUTPUT(工件类型:SwiftAppSpec):
    • SwiftAppSpec:{app, platform, architecture, notes:string}
  • 下游消费:下游消费:交 code-reviewer 评审。

5. 输出规范

输出包含两段:1) 结构化工件(完整内容);2) 自然语言摘要与改进建议(质量自检、最该改的 2-3 点)。完整模板(含工作流要点、质量自检清单、工件示例、常见陷阱)见 references/template.md。

6. 使用示例

输入:

Swift 两个对象互相引用内存不释放,怎么改?

输出(节选): 在 delegate/闭包处用 weak/unowned 打破循环。输出工件见下。

{
  "app": "Notes",
  "platform": "iOS 17",
  "architecture": "MVVM + Observable",
  "notes": "用 actor 保护缓存"
}

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 面向 Swift/SwiftUI 开发,解决 Apple 平台应用构建、协议导向架构、并发安全等明确痛点
  • 属于明确场景的通用工具,受众为 iOS/macOS 开发者,实用价值较高
Trigger Precision88/100

Highlights

  • description 明确描述 SwiftUI、协议导向与并发构建 Apple 平台应用
  • '何时使用' 进一步细化场景,边界清晰,覆盖合理
Structure and Standards92/100

Highlights

  • Phase/步骤清晰(5 步骤工作流),有出口条件
  • 含端到端示例,frontmatter 完整,单文件未超 500 行
Execution Reliability89/100

Highlights

  • 工具来源明确(Swift/SwiftUI/actor),参数正确
  • 覆盖主要异常(内存循环、线程安全),不可逆操作有确认机制
Evidence Verifiability (mean of the first four)89/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.