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 | $0.00049 | $0.01373 |
| Sonnet 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 6d 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.
- 6d 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 (205 stars, last pushed 24d ago), licensed MIT. It adds 98 tokens to every session and 2,746 once invoked, about $0.0005 per session on Opus 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.
Other skills, from other repositories
wear-compose-m3
Expert guidance for working with Wear OS Compose Material3. Use this skill when creating, updating, or migrating Wear OS projects. This includes the androidx.wear.compose.material3, androidx.wear.compose.foundation, and androidx.wear.compose.navigation3 libraries. Also working with core components such as AppScaffold…
kotlin-specialist
Provides idiomatic Kotlin implementation patterns including coroutine concurrency, Flow stream handling, multiplatform architecture, Compose UI construction, Ktor server setup, and type-safe DSL design. Use when building Kotlin applications requiring coroutines, multiplatform development, or Android with Compose.…
build-android-binary
Compile a PAM control's Android Kotlin module into the runtime-loadable DEX for a .ppmplugin. Creates a staged Gradle build with the pinned wrapper and react-android compile dependency, verifies manifest/module/package alignment and runtime-loading constraints, builds the release AAR, then runs d8 --min-api 24. Writes…
swiftui-dev
Use this skill for SwiftUI development, architecture, structure, performance, and Apple native app profiling. It combines.
android-navigation-3
Install and migrate to Jetpack Navigation 3. Use when implementing Navigation 3 patterns including NavDisplay, NavKey routes, deep links, multiple backstacks, scenes (dialogs, bottom sheets), or migrating from Navigation 2.
mobiai-kmp
Use when working on a Kotlin Multiplatform project — shared code, expect/actual declarations, platform-specific implementations, building and testing.