swiftui-view-refactor SKILL.md skillA
swiftui-view-refactor from steipete/agent-scripts is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add steipete/agent-scripts/swiftui-view-refactor@git:20260523.0a2d76cPins git:20260523.0a2d76c in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- steipete/agent-scripts
- Path
skills/swiftui-view-refactor/SKILL.md- Versions recorded
- 4
- Latest version
- git:20260523.0a2d76c, committed May 23, 2026
- First version recorded
- Dec 31, 2025
- Size
- 4,604 bytes
- Repository stars
- 7,470
- License
- MIT
SwiftUI view refactor/review: layout, DI, Observation, view models.
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 View Refactor _Attribution: copied from @Dimillian’s `Dimillian/Skills` (2025-12-31)._ ## Overview Apply a consistent structure and dependency pattern to SwiftUI views, with a focus on ordering, Model-View (MV) patterns, careful view model handling, and correct Observation usage. ## Core Guidelines ### 1) View ordering (top → bottom) - Environment - `private`/`public` `let` - `@State` / other stored properties - computed `var` (non-view) - `init` - `body` - computed view builders / other view helpers - helper / async functions ### 2) Prefer MV (Model-View) patterns - Default to MV: Views are lightweight state expressions; models/services own business logic. - Favor `@State`, `@Environment`, `@Query`, and `task`/`onChange` for orchestration. - Inject services and shared models via `@Environment`; keep views small and composable. - Split large views into subviews rather than introducing a view model. ### 3) Split large bodies and view properties - If `body` grows beyond a screen or has multiple logical sections, split it into smaller subviews. …
Read the whole file at its exact version.
How to install
mdr add steipete/agent-scripts/swiftui-view-refactor@sha256:547d62229ae1234aThe line at the top of this page pins the label git:20260523.0a2d76c, 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_p4hg7566kcxznqhl)
5 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 4 versions of this file, between Dec 31, 2025 and May 23, 2026, about one every 47 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260523.0a2d76c latest | 2026-05-23 | 0a2d76c | 4,604 B | A | view · diff |
| git:20260508.3a56241 | 2026-05-08 | 3a56241 | 4,639 B | A | view · diff |
| git:20260508.546b267 | 2026-05-08 | 546b267 | 4,637 B | A | view · diff |
| git:20251231.054c256 | 2025-12-31 | 054c256 | 4,845 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 (4604 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
steipete/agent-scripts · 7,470 stars · license MIT · pushed 2026-10-30 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_p4hg7566kcxznqhl GET https://markdownregistry.com/api/v1/resolve?ref=steipete/agent-scripts/swiftui-view-refactor GET https://markdownregistry.com/api/v1/blob/547d62229ae1234afa405fb46d1aab82d7bc3d74d55cd3d1fe3cf5e098509ed6
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 steipete/agent-scripts
Every file in steipete/agent-scripts