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 hmj1026/dhpk --skill swiftgit clone --depth 1 https://github.com/hmj1026/dhpkWrote 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/hmj1026/dhpk/swift)<a href="https://agentmods.dev/skills/hmj1026/dhpk/swift"><img src="https://agentmods.dev/badge/skills/hmj1026/dhpk/swift/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/hmj1026/dhpk/swift"><img src="https://agentmods.dev/badge/skills/hmj1026/dhpk/swift.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00071 | $0.00929 |
| Opus 5.5 | $0.00028 | $0.00372 |
| Sonnet 5.5 | $0.00014 | $0.00186 |
| Haiku 4.5 | $0.00007 | $0.00093 |
Grade A, and why
swift scanned grade A with 1 finding 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 yesterday.
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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
(network + curl + a rasterizer) or `scripts/generate_icons.swift` for SF Symbols How it starts
The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Swift
Use $swift <task>; optional test, build, and icon actions select the
same internal task paths. Complete the requested task with the smallest local
reference set; specialist references are procedures, not independent skills.
Resolve the target before loading
- Establish the target package, Xcode project/scheme, or asset catalog from the request and project evidence. Ask and wait when a monorepo has several plausible targets. An intentional explicit target/version override wins; report the override separately from the observed configuration.
- For version-sensitive work read the target's
SWIFT_VERSION,SWIFT_STRICT_CONCURRENCY, deployment target, and applicable Package.swift tools version. The installedswift --versionis execution-environment evidence, not target compatibility. Preserve the precision of the evidence. - Missing, conflicting, or broad incompatible constraints require a question and an answer before version-specific references or dependent actions. A migration needs an explicit destination version. For several destinations, group resources, changes, and verification by target.
Select only the task's resources
| Task | Local procedure | Load additional references when needed |
|---|---|---|
| Swift language/concurrency/errors | language | concurrency, value/reference, error handling; approachable-concurrency only for resolved Swift 6.2+ |
| SwiftUI state/navigation/interop | UI | observation-state, navigation, mvvm-coordinator, interop |
Test authoring and strategy (test) |
testing | swift-testing-api, xctest-bridging, xcuitest, snapshot-testing, test-taxonomy, protocol-di-host-testing |
| iOS SDK persistence/privacy/crypto/OCR | platform | matching SDK reference only |
Xcode/SPM/lint/CI (build) |
build | swiftlint-config, xcodebuild-spm, scheme-signing |
In-app symbol imageset (icon) |
icon | local icon scripts below |
What ships with it
37 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.
- agents/openai.yaml 226 B
- distribution.yaml 6.4 KB
- evals/evals.json 3.8 KB
- references/actor-persistence.md 6.0 KB
- references/approachable-concurrency.md 3.5 KB
- references/build.md 3.0 KB
- references/concurrency.md 3.7 KB
- references/coredata-encryption.md 3.1 KB
- references/cryptokit-keychain.md 3.4 KB
- references/error-handling.md 2.2 KB
- references/healthkit-read.md 1.5 KB
- references/icon.md 2.8 KB
- references/interop.md 2.1 KB
- references/language.md 4.0 KB
- references/local-authentication.md 2.2 KB
- references/mvvm-coordinator.md 2.3 KB
- references/navigation.md 1.8 KB
- references/notifications.md 2.3 KB
- references/observation-state.md 2.1 KB
- references/platform.md 3.2 KB
- references/privacy-compliance.md 2.8 KB
- references/protocol-di-host-testing.md 5.5 KB
- references/scheme-signing.md 1.7 KB
- references/snapshot-testing.md 1.7 KB
- references/swift-testing-api.md 2.3 KB
- references/swift5-compat-notes.md 2.0 KB
- references/swiftlint-config.md 1.9 KB
- references/test-taxonomy.md 2.3 KB
- references/testing.md 3.4 KB
- references/ui.md 3.5 KB
- references/value-vs-reference.md 2.0 KB
- references/vision-ocr.md 2.2 KB
- references/xcodebuild-spm.md 4.8 KB
- references/xctest-bridging.md 1.5 KB
- references/xcuitest.md 1.8 KB
- scripts/generate_icons.swift 3.9 KB
- scripts/iconify_gen.sh 3.9 KB runs code
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.
- yesterday First seen · 73 lines · 71 tokens per session scan A 8eadc32e8b7d
swift is a skill published in the GitHub repository hmj1026/dhpk (2 stars, last pushed today), licensed MIT. It adds 71 tokens to every session and 929 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-16.
Other skills, from other repositories
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…
build-ios-binary
Compile a PAM control's iOS Obj-C/Swift module into the FLAT device-slice .framework for a .ppmplugin bundle (never an .xcframework — the wrap CI won't descend into one). Mac-only (Xcode). Builds from a throwaway staged copy so canonical ios/ and the podspec stay untouched, references React-Core headers only (React is…
jetpack-compose-expert
Use when working in a native Android Jetpack Compose project - build.gradle.kts with androidx.compose BOM or org.jetbrains.kotlin.plugin.compose, .kt files containing @Composable functions, MainActivity with setContent, or mentions of Compose, Material 3, recomposition, ViewModel, StateFlow, Hilt, Room, or Navigation…
swiftui-expert
Use when working in a native iOS/SwiftUI project - .swift files, an .xcodeproj or Package.swift, Xcode schemes, or mentions of SwiftUI, Swift 6, @Observable, SwiftData, NavigationStack, actors, or Swift Testing. Builds views and features, wires Observation-based state, fixes Swift 6 strict-concurrency errors, models…
swiftui-expert
This skill should be used when the user is building, reviewing, or debugging SwiftUI views and apps. Detects iOS and Swift version from the project. Covers creating views, state management with @Observable, NavigationStack routing, animations, accessibility, performance optimization, Liquid Glass adoption, design…
bootstrap-xcode-workspace
Create, adopt, extend, and align one Swift product workspace with app, extension, package, and service components under one permanent Xcode entrypoint.