Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add pproenca/dot-skills --skill swift-refactorgit clone --depth 1 https://github.com/pproenca/dot-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/pproenca/dot-skills/swift-refactor)<a href="https://agentmods.dev/skills/pproenca/dot-skills/swift-refactor"><img src="https://agentmods.dev/badge/skills/pproenca/dot-skills/swift-refactor/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/pproenca/dot-skills/swift-refactor"><img src="https://agentmods.dev/badge/skills/pproenca/dot-skills/swift-refactor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00098 | $0.02746 |
| Opus 5.5 | $0.00039 | $0.01098 |
| Sonnet 5.5 | $0.00020 | $0.00549 |
| Haiku 4.5 | $0.00010 | $0.00275 |
Grade A, and why
swift-refactor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 188 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Swift/SwiftUI Refactor (Modular MVVM-C)
Comprehensive refactoring guide for migrating Swift/SwiftUI code to modular MVVM-C with local SPM package boundaries and App-target composition root wiring.
Mandated Architecture Stack
┌───────────────────────────────────────────────────────────────┐
│ App target: DependencyContainer, Coordinators, Route Shells │
├───────────────────────────────────────────────────────────────┤
│ Feature modules: View + ViewModel (Domain + DesignSystem deps)│
├───────────────────────────────────────────────────────────────┤
│ Data package: repositories, remote/local stores, sync, retry │
├───────────────────────────────────────────────────────────────┤
│ Domain package: models, repository/coordinator/error protocols │
└───────────────────────────────────────────────────────────────┘
Dependency Rule: Feature modules never import Data and never import sibling features.
Clinic Architecture Contract (iOS 26 / Swift 6.2)
All guidance in this skill assumes the clinic modular MVVM-C architecture:
- Feature modules import
Domain+DesignSystemonly (neverData, never sibling features) - App target is the convergence point and owns
DependencyContainer, concrete coordinators, and Route Shell wiring Domainstays pure Swift and defines models plus repository,*Coordinating,ErrorRouting, andAppErrorcontractsDataowns SwiftData/network/sync/retry/background I/O and implements Domain protocols- Read/write flow defaults to stale-while-revalidate reads and optimistic queued writes
- ViewModels call repository protocols directly (no default use-case/interactor layer)
When to Apply
Reference these guidelines when:
- Migrating from deprecated SwiftUI APIs (ObservableObject, NavigationView, old onChange)
- Restructuring state management to use @Observable ViewModels
- Adding @Equatable diffing to views for performance
- Decomposing large views into 10-node maximum bodies
- Refactoring navigation to coordinator + route shell pattern
- Refactoring to Domain/Data/Feature/App package boundaries
- Setting up dependency injection through
DependencyContainer - Improving list/collection scroll performance
- Replacing manual Task management with
.task(id:)and cancellable loading
What ships with it
60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- assets/templates/_template.md 1007 B
- metadata.json 883 B
- references/_sections.md 3.4 KB
- references/api-alert-confirmation-dialog.md 3.0 KB
- references/api-environment-object-removal.md 2.4 KB
- references/api-list-foreach-identifiable.md 2.4 KB
- references/api-navigationstack-migration.md 2.0 KB
- references/api-observable-macro.md 3.2 KB
- references/api-onchange-signature.md 2.1 KB
- references/api-toolbar-migration.md 2.5 KB
- references/arch-environment-key-injection.md 2.4 KB
- references/arch-feature-module-extraction.md 2.3 KB
- references/arch-model-view-separation.md 3.5 KB
- references/arch-protocol-dependencies.md 3.3 KB
- references/arch-viewmodel-elimination.md 3.3 KB
- references/data-cancellation.md 2.7 KB
- references/data-error-loadable.md 2.9 KB
- references/data-task-modifier.md 2.0 KB
- references/di-container-composition.md 2.7 KB
- references/di-mock-testing.md 2.9 KB
- references/diff-closure-skip.md 2.5 KB
- references/diff-equatable-views.md 2.6 KB
- references/diff-identity-stability.md 2.4 KB
- references/diff-printchanges-debug.md 2.4 KB
- references/layer-dependency-rule.md 2.5 KB
- references/layer-no-view-repository.md 1.5 KB
- references/layer-repository-protocol.md 3.2 KB
- references/layer-usecase-protocol.md 2.0 KB
- references/layer-viewmodel-boundary.md 2.9 KB
- references/list-constant-viewcount.md 2.5 KB
- references/list-filter-in-model.md 2.4 KB
- references/list-id-keypath.md 1.9 KB
- references/list-lazy-stacks.md 1.9 KB
- references/nav-centralize-destinations.md 3.6 KB
- references/nav-path-state-management.md 2.9 KB
- references/nav-sheet-item-pattern.md 2.3 KB
- references/nav-split-view-adoption.md 2.8 KB
- references/nav-value-based-links.md 3.2 KB
- references/state-binding-extraction.md 2.0 KB
- references/state-derived-over-stored.md 1.9 KB
- references/state-onappear-to-task.md 2.0 KB
- references/state-remove-observation.md 2.8 KB
- references/state-scope-minimization.md 1.9 KB
- references/state-stateobject-placement.md 2.8 KB
- references/swift-camel-case-naming.md 1.5 KB
- references/swift-closures.md 2.1 KB
- references/swift-for-in-loops.md 1.5 KB
- references/swift-functions-clear-names.md 1.8 KB
- references/swift-let-vs-var.md 1.4 KB
- references/swift-optionals.md 1.8 KB
- references/swift-string-interpolation.md 1.5 KB
- references/swift-structs-vs-classes.md 1.5 KB
- references/type-force-unwrap-elimination.md 1.8 KB
- references/type-phantom-types.md 2.9 KB
- references/type-result-over-optionals.md 2.1 KB
- references/type-tagged-identifiers.md 1.9 KB
- references/view-body-complexity.md 4.0 KB
- references/view-computed-to-struct.md 2.8 KB
- references/view-conditional-content.md 2.3 KB
- references/view-eliminate-anyview.md 2.5 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 188 lines · 98 tokens per session scan A 54076ad9eed9
swift-refactor is a skill published in the GitHub repository pproenca/dot-skills (231 stars, last pushed 3mo ago), licensed MIT. It adds 98 tokens to every session and 2,746 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
swift-refactor compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| swift-refactorpproenca/dot-skills | Skill | 231 | 3mo ago | MIT | A | 98 | Claude Code, Codex |
| kotlin-specialistJeffallan/claude-skills | Skill | 13k | today | MIT | A | 86 | Claude Code |
| wear-compose-m3android/skills | Skill | 11k | 8d ago | Apache-2.0 | A | 108 | Claude Code |
| ink-custom-brush-builderandroid/skills | Skill | 11k | 8d ago | Apache-2.0 | A | 159 | Claude Code |
| swiftui-devOrkas-AI/Orkas | Skill | 8.1k | today | MIT | A | 3 | Claude Code, Codex |
| build-android-binarymicrosoft/power-platform-skills | Skill | 1.2k | today | MIT | A | 150 | Claude Code |
| kotlin-androidericrisco/rsc-harness | Skill | 691 | 6d ago | MIT | A | 78 | Claude Code, Codex |