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 makifbaysal/tasktrooper --skill swiftui-patternsgit clone --depth 1 https://github.com/makifbaysal/tasktrooperWrote 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/makifbaysal/tasktrooper/swiftui-patterns)<a href="https://agentmods.dev/skills/makifbaysal/tasktrooper/swiftui-patterns"><img src="https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/swiftui-patterns/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/makifbaysal/tasktrooper/swiftui-patterns"><img src="https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/swiftui-patterns.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.00042 | $0.01633 |
| Opus 5.5 | $0.00017 | $0.00653 |
| Sonnet 5.5 | $0.00008 | $0.00327 |
| Haiku 4.5 | $0.00004 | $0.00163 |
Grade A, and why
swiftui-patterns 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 8d 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 — 113 lines — stays where its author put it; the contents beside it link to each section on GitHub.
SwiftUI Patterns
Overview
Native iOS (SwiftUI) is chosen when a task needs deep Apple-platform integration or the app is already native (see native-vs-flutter-decision). Same discipline as Flutter: small composed views, state out of the view, reusable atomic components.
Core principle: Views are a function of state. Data and business logic live in an observable model, not in the View.
Rules
- Small views, composed. Extract subviews as their own
Viewtypes (not@ViewBuilderfuncs) so each has its own body and preview. - State ownership is explicit:
@Statefor local ephemeral UI only (and it is alwaysprivate); app/business state in an@MainActor @Observablemodel injected viainit/@Environment. Views send intents to the model; the model owns the logic and the networking. - Atomic components: a shared component library (atoms → molecules → organisms) of reusable views. Reuse before building; grep before adding.
- System styling over hardcoded values: colors from the asset catalog /
Colorsemantic roles, spacing/typography from a tokens file (seemobile-design-system-foundation) — not scattered magic numbers. Support Dynamic Type and dark mode. #Previewevery reusable view in its key states (loading/data/error), and in the matrix: Dynamic Type.accessibility3, dark,traits: .landscapeLeft.- Value types (
struct) for models and view state; reference types only where identity is needed. - Never name a domain type
Task— it shadows_Concurrency.Task, which everyasync/.task {}call site needs; a rename (BoardItem,WorkItem, …) is a five-minute fix versus a confusing compile error later.
Concurrency
- Follow the target's default actor isolation: a new Xcode 26 project defaults to
@MainActorisolation, so a view model that touches UI state should be@MainActor @Observableexplicitly rather than relying on inference holding across Swift versions. - No GCD (
DispatchQueue.main.async, etc.) in new code —async/await,Task { },Task.sleep(for:). - Kick off async work from
.task { }on the view, notonAppear+ a detachedTask.
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.
- 8d ago First seen · 113 lines · 42 tokens per session scan A a738babab62e
swiftui-patterns is a skill published in the GitHub repository makifbaysal/tasktrooper (113 stars, last pushed yesterday), licensed Apache-2.0. It adds 42 tokens to every session and 1,633 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-10-05.
Other skills, from other repositories
architecture-design
Use this skill to design system architecture with documented trade-offs and decisions before any implementation begins. Activates when a feature, system, or component requires non-trivial structural decisions about how components interact, what data stores to use, or how to decompose a problem.
repository-discovery
Use this skill to systematically explore an unfamiliar codebase before making any changes. Activates when starting work in an unknown repository, adding a new feature, debugging without prior context, or when no CONTEXT.md exists. Produces a grounded understanding of architecture, conventions, and constraints.
rapid-prototyping
Use this skill to build disposable, rapid proof-of-concept prototypes and spikes to test feasibility, validate API designs, or explore library capabilities before committing to a full production architecture.
ramp
Fetch and follow Ramp's published agent playbooks inside Paperclip, with mandatory approval gates for spend, incorporation, cards, account setup, and other financial actions.
github-pr-workflow
Prepare a GitHub pull request from a feature branch — branch hygiene, commit shape, title/body, verification notes, screenshots for UI work, and replies to review comments.
paperclip-task-bridge
Create, comment on, update, and list Paperclip tasks from Hermes using scoped Paperclip API credentials.