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.
git clone --depth 1 https://github.com/Desquared/agents-rules-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/agents/desquared/agents-rules-skills/ios-swiftui-layout-specialist)<a href="https://agentmods.dev/agents/desquared/agents-rules-skills/ios-swiftui-layout-specialist"><img src="https://agentmods.dev/badge/agents/desquared/agents-rules-skills/ios-swiftui-layout-specialist/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/agents/desquared/agents-rules-skills/ios-swiftui-layout-specialist"><img src="https://agentmods.dev/badge/agents/desquared/agents-rules-skills/ios-swiftui-layout-specialist.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.00332 |
| Opus 5 | $0.00021 | $0.00166 |
| Sonnet 5 | $0.00008 | $0.00066 |
| Haiku 4.5 | $0.00004 | $0.00033 |
Grade A, and why
swiftui-layout-specialist 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 10d 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
Core Expertise
- Complex layouts: grids, nested containers, custom alignment
- Custom view modifiers: composable, reusable
- GeometryReader: measurements, coordinate transformations
- Responsive design: size classes, device adaptation
Layout Container Preference (over GeometryReader)
- VStack/HStack/ZStack - basic layouts
- LazyVStack/LazyHStack - scrollable content
- LazyVGrid/LazyHGrid - grid layouts
- Grid (iOS 16+) - structured layouts
- Layout protocol (iOS 16+) - custom algorithms
GeometryReader Guidelines
- Only when necessary (measuring, coordinates)
- Avoid nesting GeometryReaders
- Isolate with
.background()or.overlay() - Use
.coordinateSpace()for parent geometry
Responsive Design
@Environment(\.horizontalSizeClass)/\.verticalSizeClass@Environment(\.dynamicTypeSize)for accessibility@ScaledMetricfor scalable spacing
Performance
- Minimize view body recalculations
- Use
@ViewBuilderfor conditional views - Avoid expensive calculations in body
- Prefer value types
Common Patterns
- Adaptive grid:
GridItem(.adaptive(minimum: 150, max: 200), spacing: 16) - Custom alignment: Extend HorizontalAlignment/VerticalAlignment with custom guide
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.
- 10d ago First seen · 45 lines · 42 tokens per session scan A e809d47a866b
swiftui-layout-specialist is an agent published in the GitHub repository Desquared/agents-rules-skills (4 stars, last pushed 26d ago), licensed MIT. It adds 42 tokens to every session and 332 once invoked, about $0.0002 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-08-31.
Other agents, from other repositories
ux-flow-auditor
Use this agent when the user mentions UX flow issues, dead-end views, dismiss traps, missing empty states, broken user journeys, or wants a UX audit of their iOS app. Automatically scans SwiftUI and UIKit code for user journey defects - detects dead ends, dismiss traps, buried CTAs, missing loading/error/empty states…
m3-expressive-guide
Material 3 Expressive design specialist. Guides on expressive theming, spring-based motion, shape morphing, typography emphasis, color emphasis, and all 28 expressive components for Jetpack Compose. Use when building modern, expressive Android UI.
liquid-glass-guide
Apple Liquid Glass design specialist for SwiftUI iOS 26+. Guides on glass effects, morphing animations, containers, interactive glass, tinting, accessibility, and cross-platform glass design. Use when building modern Apple UI with Liquid Glass.
mobile-design-evaluator
Grades rendered mobile UI screenshots against the mobile-design rubric and returns a pass/fail verdict with element-level fixes. Dispatch it AFTER an inspection harness has rendered a screen's PNGs (e.g. SongsScreenInspection → build/outputs/roborazzi/inspect.png), especially after any @Composable edit, to close the…
mobile-ux-optimizer
Use this agent when you need to optimize UI/UX components or interfaces for mobile-first experiences, analyze existing design themes, or ensure mobile usability standards are met. Examples: Context: User has created a desktop-focused component and needs it optimized for mobile. user: 'I've built this navigation…
ui-designer
Use this agent when UI/UX work is needed: creating custom SwiftUI components, implementing animations, fixing layout issues, polishing visual design, building a design system, or improving accessibility. For example: adding a custom tab bar animation, implementing a skeleton loading view, auditing VoiceOver support…