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 agentmods add instructions/arjitj2/swiftui-design-principles/agents-mdgit clone --depth 1 https://github.com/arjitj2/swiftui-design-principlesWrote 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/instructions/arjitj2/swiftui-design-principles/agents-md)<a href="https://agentmods.dev/instructions/arjitj2/swiftui-design-principles/agents-md"><img src="https://agentmods.dev/badge/instructions/arjitj2/swiftui-design-principles/agents-md.svg" alt="Measured on agentmods" 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 | $0.00166 | $0.00166 |
| Opus 5 | $0.00083 | $0.00083 |
| Sonnet 5 | $0.00033 | $0.00033 |
| Haiku 4.5 | $0.00017 | $0.00017 |
Grade A, and why
swiftui-design-principles AGENTS.md 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 5d 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
SwiftUI Design Principles
This repository contains an agent skill for building polished SwiftUI apps and WidgetKit widgets.
Structure
SKILL.md— The skill definition with all design principlesmetadata.json— Skill metadata (version, author, abstract)LICENSE— MIT license
How the skill works
The skill is loaded when an agent detects SwiftUI or WidgetKit-related tasks. It provides:
- A base-4/8 spacing grid to prevent arbitrary padding values
- A typography hierarchy using weight differentiation (not just size)
- System semantic color usage instead of hardcoded opacity values
- Native WidgetKit patterns (Gauge, containerBackground)
- A pre-ship checklist for verification
The skill is purely instructional — no scripts or build steps required.
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.
- 5d ago First seen · 22 lines · 166 tokens per session scan A 9b8727e8c3d1
swiftui-design-principles AGENTS.md is an instructions file published in the GitHub repository arjitj2/swiftui-design-principles (26 stars, last pushed 5mo ago), licensed MIT. It adds 166 tokens to every session, about $0.0008 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-30.
Other instructions, from other repositories
ChunUI CLAUDE.md
Claude Code instructions for liseami/ChunUI: Swift Package(swift-tools 6.2 · Swift 5 语言模式 + 默认 MainActor 隔离 + 渐进并发)+ iOS 18.6+ + 唯一依赖 Pow(MIT) 定位:从 Zinner(阿奇)提取的可换肤设计系统——宿主只定义 CCColors 调色板即得同质感全家桶;所有 shader/点阵动效随包。.
figma-ios-codegen AGENTS.md
Instructions for mythkiven/figma-ios-codegen, covering project agent rules, 必读规则文件, 何时启用本流程, 铁律(最高优先级) and 架构(1 → 2 → 4;阶段 3 仓外).
figma-ios-codegen CLAUDE.md
Instructions for mythkiven/figma-ios-codegen, covering claude.md and how to run here (claude code).
flutter-design-engineer AGENTS.md
Instructions for musabekisakov-imj/flutter-design-engineer, a project described as: Agent skills for product-aware, adaptive, accessible, and visually verified Flutter UI design engineering.
arc-skill AGENTS.md
AGENTS.md instructions for art9mid/arc-skill, covering react native arc — agent instructions, agent commands, architecture reference, mobile design system and code templates.
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).