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 SwiftfulThinking/SwiftfulStarterProject --skill creating-extensiongit clone --depth 1 https://github.com/SwiftfulThinking/SwiftfulStarterProjectWrote 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/swiftfulthinking/swiftfulstarterproject/creating-extension)<a href="https://agentmods.dev/skills/swiftfulthinking/swiftfulstarterproject/creating-extension"><img src="https://agentmods.dev/badge/skills/swiftfulthinking/swiftfulstarterproject/creating-extension/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/swiftfulthinking/swiftfulstarterproject/creating-extension"><img src="https://agentmods.dev/badge/skills/swiftfulthinking/swiftfulstarterproject/creating-extension.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.00051 | $0.00453 |
| Opus 5.5 | $0.00020 | $0.00181 |
| Sonnet 5.5 | $0.00010 | $0.00091 |
| Haiku 4.5 | $0.00005 | $0.00045 |
Grade A, and why
creating-extension 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 3mo 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.
What it actually says
Creating Extension
Create a Swift extension file following the project's naming and folder conventions.
Steps
- Identify the type being extended (e.g.,
String,Color,Array, a custom model type) - Check if
Extensions/{TypeName}+EXT.swiftalready exists — if so, add to that file instead of creating a new one - If new, create the file in
SwiftfulStarterProject/Extensions/
File Naming
All extension files follow: {TypeName}+EXT.swift
Examples: String+EXT.swift, Color+EXT.swift, Date+EXT.swift, UserModel+EXT.swift
Template
import SwiftUI
extension {TypeName} {
}
Key Patterns
- Always check first if
{TypeName}+EXT.swiftalready exists — add to it rather than creating a duplicate - One file per type — group all extensions for a type in a single
+EXTfile - Multiple extension blocks in the same file are fine for grouping related functionality
- Import: use
import SwiftUI(covers Foundation) unless the extension only needsimport Foundation - Access level: use
publiconly if the type itself is public (e.g.,public extension Color), otherwise use default internal access - No business logic — extensions add convenience methods, computed properties, and static helpers, not app logic
- Prefer after-object notation —
myValue.doSomething()overDoSomething(myValue)(instance methods over free functions) - Prefer computed properties when there are no parameters —
myValue.asStringovermyValue.asString() - Be explicit with naming — do NOT abbreviate or shorten names, clarity over brevity (e.g.,
replaceSpacesWithUnderscoresnotreplaceSpaces)
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.
- 3mo ago First seen · 43 lines · 51 tokens per session scan A 65ba7e798e0c
creating-extension is a skill published in the GitHub repository SwiftfulThinking/SwiftfulStarterProject (75 stars, last pushed 1mo ago), licensed MIT. It adds 51 tokens to every session and 453 once invoked, about $0.0002 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-04.
creating-extension compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| creating-extensionSwiftfulThinking/SwiftfulStarterProject | Skill | 75 | 1mo ago | MIT | A | 51 | Claude Code |
| wear-compose-m3android/skills | Skill | 11k | 2d ago | Apache-2.0 | A | 112 | Claude Code |
| kotlin-specialistJeffallan/claude-skills | Skill | 13k | today | MIT | A | 86 | Claude Code |
| ink-custom-brush-builderandroid/skills | Skill | 11k | 2d ago | Apache-2.0 | A | 159 | Claude Code |
| swiftui-devOrkas-AI/Orkas | Skill | 7.7k | today | MIT | A | 3 | Claude Code, Codex |
| build-android-binarymicrosoft/power-platform-skills | Skill | 1.2k | today | MIT | A | 150 | Claude Code |
| compose-multiplatformericrisco/rsc-harness | Skill | 709 | 3d ago | MIT | A | 80 | Claude Code, Codex |