Swiftui View Refactor
Dimillian/Skills
Refactor and review SwiftUI view files with strong defaults for small dedicated subviews, MV-over-MVVM data flow, stable view trees, explicit dependency injection, and correct Observation usage.
Refactor and review SwiftUI view files for consistent structure, dependency injection, and Observation usage.
$ npx skills add harperreed/dotfiles --skill swiftui-view-refactor -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install harperreed/dotfiles swiftui-view-refactor --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/harperreed/dotfiles.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/swiftui-view-refactor .claude/skills/swiftui-view-refactor && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "swiftui-view-refactor" agent skill from https://github.com/harperreed/dotfiles/tree/master/.claude/skills/swiftui-view-refactor into .claude/skills/swiftui-view-refactor/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "swiftui-view-refactor", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/harperreed/dotfiles/tree/master/.claude/skills/swiftui-view-refactorType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add harperreed/dotfiles --skill swiftui-view-refactor -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install harperreed/dotfiles swiftui-view-refactor --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/harperreed/dotfiles.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/swiftui-view-refactor .agents/skills/swiftui-view-refactor && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "swiftui-view-refactor" agent skill from https://github.com/harperreed/dotfiles/tree/master/.claude/skills/swiftui-view-refactor into .agents/skills/swiftui-view-refactor/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "swiftui-view-refactor", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add harperreed/dotfiles --skill swiftui-view-refactor -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install harperreed/dotfiles swiftui-view-refactor --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/harperreed/dotfiles.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/swiftui-view-refactor .cursor/skills/swiftui-view-refactor && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "swiftui-view-refactor" agent skill from https://github.com/harperreed/dotfiles/tree/master/.claude/skills/swiftui-view-refactor into .cursor/skills/swiftui-view-refactor/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "swiftui-view-refactor", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/harperreed/dotfiles.git --path .claude/skills/swiftui-view-refactor--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add harperreed/dotfiles --skill swiftui-view-refactor -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install harperreed/dotfiles swiftui-view-refactor --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/harperreed/dotfiles.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/swiftui-view-refactor .gemini/skills/swiftui-view-refactor && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "swiftui-view-refactor" agent skill from https://github.com/harperreed/dotfiles/tree/master/.claude/skills/swiftui-view-refactor into .gemini/skills/swiftui-view-refactor/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "swiftui-view-refactor", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install harperreed/dotfiles swiftui-view-refactorInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add harperreed/dotfiles --skill swiftui-view-refactor -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/harperreed/dotfiles.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/swiftui-view-refactor .github/skills/swiftui-view-refactor && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "swiftui-view-refactor" agent skill from https://github.com/harperreed/dotfiles/tree/master/.claude/skills/swiftui-view-refactor into .github/skills/swiftui-view-refactor/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "swiftui-view-refactor", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add harperreed/dotfiles --skill swiftui-view-refactor -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install harperreed/dotfiles swiftui-view-refactor --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/harperreed/dotfiles.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/swiftui-view-refactor .opencode/skills/swiftui-view-refactor && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "swiftui-view-refactor" agent skill from https://github.com/harperreed/dotfiles/tree/master/.claude/skills/swiftui-view-refactor into .opencode/skills/swiftui-view-refactor/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "swiftui-view-refactor", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
swiftui-view-refactorRefactor and review SwiftUI view files for consistent structure, dependency injection, and Observation usage.
Swiftui View Refactor is an agent skill from harperreed/dotfiles. Refactor and review SwiftUI view files for consistent structure, dependency injection, and Observation usage. Use when asked to clean up a SwiftUI view’s layout/ordering, handle view models safely (non-optional when possible), or standardize how dependencies and @Observable state are initialized and passed.
Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/mv-patterns.md`).
It sits in Development, covering Refactoring and Design patterns. It works with SwiftUI. The repository describes itself as: Dotfiles. Managed by YADM.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit b78c10e. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are swift).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Swiftui View Refactor loads about 1.3k tokens when it runs, and up to ~3.3k if it reads all its reference files. Until then it costs about 83 tokens; SKILL.md has 470 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
Without a licence we can't republish the file, so here is its outline and opening line. It has 470 words (~1,314 tokens).
“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.”
SKILL.md and 1 other file (references) in .claude/skills/swiftui-view-refactor of harperreed/dotfiles.
Open the folder on GitHubat commit b78c10e
We found 5 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 5 other GitHub owners. This page covers the copy in harperreed/dotfiles, which our catalogue first saw on October 7, 2026.
Swiftui View Refactor next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Swiftui View Refactor this skillharperreed/dotfiles | 334 | 5 repos | ~1.3k | Automated safety check: Pass | None | |
| Swiftui View RefactorDimillian/Skills | 4k | 5 repos | ~2k | Automated safety check: Pass | MIT | |
| RTK Rust Design Patternsrtk-ai/rtk | 83k | — | ~1.9k | Automated safety check: Pass | Apache-2.0 | |
| Architecture PatternsKartikLabhshetwar/better-shot | 2.4k | 2 repos | ~1.4k | Automated safety check: Pass | Custom licence | |
| AST Visitor Pattern for Unionsprisma/orm | 48k | — | ~830 | Automated safety check: Pass | Apache-2.0 | |
| Coding Best PracticesKartikLabhshetwar/better-shot | 2.4k | 2 repos | ~1.8k | Automated safety check: Pass | Custom licence |
Dimillian/Skills
Refactor and review SwiftUI view files with strong defaults for small dedicated subviews, MV-over-MVVM data flow, stable view trees, explicit dependency injection, and correct Observation usage.
rtk-ai/rtk
Describes seven Rust design patterns for the RTK CLI filter modules, with when to use each, RTK examples, and notes on when a pattern is overkill.
KartikLabhshetwar/better-shot
Deep dive into software architecture for macOS. An agent skill from KartikLabhshetwar/better-shot.
prisma/orm
Replaces a plain TypeScript union plus switch statements with frozen subclasses and a visitor interface when several places dispatch on the same variants.
KartikLabhshetwar/better-shot
Reviews macOS Swift 6+ code for modern idioms, SOLID principles, SwiftData patterns, and concurrency best practices.
ramziddin/solid-skills
A skill your agent uses when writing code, implementing features, refactoring, planning architecture, designing systems, reviewing code, or debugging.
harperreed/dotfiles
Implement, review, or improve SwiftUI features using the iOS 26+ Liquid Glass API.
harperreed/dotfiles
Audit and improve SwiftUI runtime performance from code review and architecture.
harperreed/dotfiles
Create or update a Codex skill with appropriately scoped instructions and any needed supporting resources.
harperreed/dotfiles
Create user-facing App Store release notes by collecting and summarizing all user-impacting changes since the last git tag (or a specified ref).
harperreed/dotfiles
This skill should be used when the user explicitly says "Nothing style", "Nothing design", "/nothing-design", or directly asks to use/apply the Nothing design system.
harperreed/dotfiles
Native macOS/iOS app performance profiling via xctrace/Time Profiler and CLI-only analysis of Instruments traces.
Works with
Categories
Refactor and review SwiftUI view files for consistent structure, dependency injection, and Observation usage. Swiftui View Refactor is an agent skill from harperreed/dotfiles. Refactor and review SwiftUI view files for consistent structure, dependency injection, and Observation usage.
Swiftui View Refactor fits situations like: asked to clean up a SwiftUI views layout/ordering; handle view models safely (non-optional when possible); standardize how dependencies and @Observable state are initialized and passed.
Run `npx skills add harperreed/dotfiles --skill swiftui-view-refactor -a claude-code`. Or copy the skill folder (.claude/skills/swiftui-view-refactor in harperreed/dotfiles) into .claude/skills/swiftui-view-refactor in your project. Claude Code loads it when a task matches its description.
Run `npx skills add harperreed/dotfiles --skill swiftui-view-refactor -a codex`. Or copy the skill folder (.claude/skills/swiftui-view-refactor in harperreed/dotfiles) into .agents/skills/swiftui-view-refactor in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add harperreed/dotfiles --skill swiftui-view-refactor -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/swiftui-view-refactor, .gemini/skills/swiftui-view-refactor, .github/skills/swiftui-view-refactor and .opencode/skills/swiftui-view-refactor in your project.
SKILL.md names no scripts, command-line tools or credentials: Swiftui View Refactor is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
No licence was found for Swiftui View Refactor or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.
About 1.3k tokens (SKILL.md is roughly 5.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Swiftui View Refactor: Swiftui View Refactor (Dimillian/Skills, 4k stars), RTK Rust Design Patterns (rtk-ai/rtk, 83k stars), Architecture Patterns (KartikLabhshetwar/better-shot, 2.4k stars) and AST Visitor Pattern for Unions (prisma/orm, 48k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
harperreed (a GitHub user) maintains it in harperreed/dotfiles, which has 334 GitHub stars. The repository holds 32 skills in this directory. The repository was last updated on October 3, 2026.
Source: harperreed/dotfiles on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.