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.

Install it, pinned
mdr add steipete/agent-scripts/swiftui-view-refactor@git:20260523.0a2d76c

Pins 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

The exact contents, by fingerprint
mdr add steipete/agent-scripts/swiftui-view-refactor@sha256:547d62229ae1234a

The 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_p4hg7566kcxznqhl.svg)](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.

versioncommittedcommitsizeaudit
git:20260523.0a2d76c latest2026-05-23 0a2d76c 4,604 BA view · diff
git:20260508.3a562412026-05-08 3a56241 4,639 BA view · diff
git:20260508.546b2672026-05-08 546b267 4,637 BA view · diff
git:20251231.054c2562025-12-31 054c256 4,845 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • 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

GitHub

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

agent-transcript SKILL.md skill
steipete/agent-scripts · skills/agent-transcript/SKILL.md · Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.
git:20260905.1d5ff53 · audit A · 7,470 stars
beeper SKILL.md skill
steipete/agent-scripts · skills/beeper/SKILL.md · Beeper cache: contact hints, room lookup, WhatsApp/iMessage traces, FTS.
git:20260523.0a2d76c · audit A · 7,470 stars
browser-use SKILL.md skill
steipete/agent-scripts · skills/browser-use/SKILL.md · Control the user's existing signed-in Chrome: callable Codex Chrome plugin first, then OpenClaw extension-backed…
git:20260911.866c26d · audit B · 7,470 stars
clawsweeper-status SKILL.md skill
steipete/agent-scripts · skills/clawsweeper-status/SKILL.md · ClawSweeper status: URLs, workflow health, active workers, ops snapshot.
git:20260828.8cfe7b9 · audit A · 7,470 stars
clickclack SKILL.md skill
steipete/agent-scripts · skills/clickclack/SKILL.md · ClickClack ops: chat app, Cloudflare Workers deploy, DNS/docs/app, container rollout.
git:20260705.c9a6fb0 · audit A · 7,470 stars
cloudflare-registrar SKILL.md skill
steipete/agent-scripts · skills/cloudflare-registrar/SKILL.md · Cloudflare Registrar: domain availability, prices, registration via mcporter.
git:20260523.0a2d76c · audit A · 7,470 stars
codex-debugging SKILL.md skill
steipete/agent-scripts · skills/codex-debugging/SKILL.md · Codex debugging: codex-rs core/tui/exec/cli/app-server/config.
git:20260523.0a2d76c · audit A · 7,470 stars
codex-first SKILL.md skill
steipete/agent-scripts · skills/codex-first/SKILL.md · Claude Code / OpenClaw-on-Claude work routing: delegate hands-on work to Codex under the native-Claude model gate. Keep…
git:20261030.d210c0a · audit A · 7,470 stars
codex-huge-context SKILL.md skill
steipete/agent-scripts · skills/codex-huge-context/SKILL.md · Codex 1M context: direct OpenAI Responses API inference, safe Astra/Sol/Terra/Luna input headroom, Keychain delivery…
git:20261012.5a54cf3 · audit B · 7,470 stars
codexbar SKILL.md skill
steipete/agent-scripts · skills/codexbar/SKILL.md · AI service usage/quota via CodexBar CLI: Codex/OpenAI, Claude, Kimi and other provider limits, credits, reset times.
git:20260810.68e90b8 · audit A · 7,470 stars
create-cli SKILL.md skill
steipete/agent-scripts · skills/create-cli/SKILL.md · CLI UX/spec: args, flags, help, output, errors, config, dry-run.
git:20260509.51ee7e5 · audit A · 7,470 stars
discord-clawd SKILL.md skill
steipete/agent-scripts · skills/discord-clawd/SKILL.md · Discord-backed OpenClaw agent/session relay; not archive search.
git:20260523.0a2d76c · audit A · 7,470 stars

Every file in steipete/agent-scripts

Other files named swiftui-view-refactor

swiftui-view-refactor SKILL.md skill
omarshahine/homeclaw · .claude/skills/swiftui-view-refactor/SKILL.md · Refactor and review SwiftUI view files with strong defaults for small dedicated subviews, MV-over-MVVM data flow…
git:20260510.35d37d5 · audit A · 191 stars
swiftui-view-refactor SKILL.md skill
velimirmueller/claude-skills · skills/swift/swiftui-view-refactor/SKILL.md · Use when cleaning up a SwiftUI view, splitting long bodies, removing inline actions or side effects, reducing computed…
git:20261028.88809da · audit A · 7 stars
swiftui-view-refactor SKILL.md skill
velimirmueller/lab-claude-skills · skills/swift/swiftui-view-refactor/SKILL.md · Use when cleaning up a SwiftUI view, splitting long bodies, removing inline actions or side effects, reducing computed…
git:20261028.88809da · audit A · 7 stars
swiftui-view-refactor SKILL.md skill
jordancoin/ios-skills-collection · skills/dimillian--swiftui-view-refactor/SKILL.md · Refactor and review SwiftUI view files with strong defaults for small dedicated subviews, MV-over-MVVM data flow…
git:20260330.1853d9e · audit A · 6 stars
swiftui-view-refactor SKILL.md skill
patrickserrano/lacquer · profiles/ios/skills/swiftui-view-refactor/SKILL.md · Refactor a SwiftUI view file for consistent property ordering, MV patterns, view model handling, and Observation usage…
git:20260725.3f0d943 · audit A · 5 stars

Browse by kind, by grade A, or by owner.