swiftui-development SKILL.md skillA
swiftui-development from projanvil/mindforge is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add projanvil/mindforge/swiftui-development@git:20261009.b4230f2Pins git:20261009.b4230f2 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- projanvil/mindforge
- Path
skills/zh-cn/swiftui-development/SKILL.md- Versions recorded
- 4
- Latest version
- git:20261009.b4230f2, committed Oct 9, 2026
- First version recorded
- Jan 16, 2026
- Size
- 3,193 bytes
- Repository stars
- 3
- License
- MIT
专注于使用 modern SwiftUI 构建用户界面,涵盖 NavigationStack, Observation 框架和 SwiftData 集成。使用此技能编写 SwiftUI 视图文件、设计应用导航结构、处理动画和转场效果,或将 ViewModel 数据绑定到界面时使用。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# SwiftUI 开发技能
## 指令
使用此技能编写声明式、响应式的 UI 代码。始终遵循 iOS 人机交互指南 (HIG)。
## 此技能的功能
- **UI 构建**: 使用 View, Modifier, Layout 容器构建界面。
- **状态管理**: 使用 Observation 框架 (`@Observable`, `@State`, `@Environment`) 管理数据流。
- **导航**: 使用 `NavigationStack` 和 `navigationDestination` 处理路由。
- **预览**: 使用 `#Preview` 宏快速迭代 UI。
- **持久化集成**: 将 SwiftData (`@Query`) 无缝集成到视图中。
## 何时使用此技能
触发场景:当用户提出以下请求时,使用本 skill:
- 编写 `.swift` 视图文件时。
- 设计 App 的导航结构时。
- 处理动画和转场效果时。
- 将 ViewModel 的数据绑定到界面时。
## 示例
### 示例 1:基于 Observation 的 ViewModel 和 View
```swift
@Observable
class CounterModel {
var count = 0
func increment() {
count += 1
}
}
struct CounterView: View {
@State private var model = CounterModel()
var body: some View {
VStack {
Text("Count: \(model.count)")
.font(.largeTitle)
Button("Add") {
model.increment()
}
}
}
}
#Preview {
CounterView()
}
```
### 示例 2:使用 NavigationStack 进行类型安全导航
```swift
enum Route: Hashable {
case profile(id: String)
case settings
}
struct ContentView: View {
@State private var path = NavigationPath()
var body: some View {
…Read the whole file at its exact version.
How to install
mdr add projanvil/mindforge/swiftui-development@sha256:401957bd37182298The line at the top of this page pins the label git:20261009.b4230f2, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_gsuqgg7k5mweulzn)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 4 versions of this file, between Jan 16, 2026 and Oct 9, 2026, about one every 89 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261009.b4230f2 latest | 2026-10-09 | b4230f2 | 3,193 B | A | view · diff |
| git:20260305.a2f116c | 2026-03-05 | a2f116c | 3,125 B | A | view · diff |
| git:20260303.0dd7018 | 2026-03-03 | 0dd7018 | 2,973 B | A | view · diff |
| git:20260116.5b9abf0 | 2026-01-16 | 5b9abf0 | 3,018 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (3193 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
projanvil/mindforge · 3 stars · license MIT · pushed 2026-10-21 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_gsuqgg7k5mweulzn GET https://markdownregistry.com/api/v1/resolve?ref=projanvil/mindforge/swiftui-development GET https://markdownregistry.com/api/v1/blob/401957bd37182298bb55a5503fc0e9bc69fde45e0daf78914ebd76afebf829b5
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from projanvil/mindforge
Every file in projanvil/mindforge