swiftui-design-principles AGENTS.md

swiftui-design-principles AGENTS.md is an instructions file for Codex, OpenCode from arjitj2/swiftui-design-principles. It costs 166 tokens per session, scanned A, original, MIT.

An instructional guide for designing SwiftUI apps and WidgetKit widgets, Apple technologies for building interfaces and home-screen widgets.

In plain words
What is it for?
It helps build SwiftUI interfaces with a shared spacing system, clear text hierarchy, system colours, and standard WidgetKit patterns.
Why use it?
It gives an agent consistent rules for spacing, typography, colours, native widgets, and final checks.

Instructions file for CodexOpenCode

Install

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.

agentmods
npx agentmods add instructions/arjitj2/swiftui-design-principles/agents-md
Clone the repo
git clone --depth 1 https://github.com/arjitj2/swiftui-design-principles

Made for: Codex, OpenCode.

Wrote 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.

agentmods badge for swiftui-design-principles AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/arjitj2/swiftui-design-principles/agents-md.svg)](https://agentmods.dev/instructions/arjitj2/swiftui-design-principles/agents-md)
Your own site
<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>
Per session 166 This file is loaded in full into every session.
When invoked 166 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 5d ago against content hash 9b8727e8c3d1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

AGENTS.md · 22 lines

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 principles
  • metadata.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:

  1. A base-4/8 spacing grid to prevent arbitrary padding values
  2. A typography hierarchy using weight differentiation (not just size)
  3. System semantic color usage instead of hardcoded opacity values
  4. Native WidgetKit patterns (Gauge, containerBackground)
  5. A pre-ship checklist for verification

The skill is purely instructional — no scripts or build steps required.

Changes

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.

  1. 5d ago First seen · 22 lines · 166 tokens per session scan A 9b8727e8c3d1

Subscribe to this mod's changes

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.

Related

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/点阵动效随包。.

liseami/ChunUI · 1,165 tokens

figma-ios-codegen AGENTS.md

Instructions for mythkiven/figma-ios-codegen, covering project agent rules, 必读规则文件, 何时启用本流程, 铁律(最高优先级) and 架构(1 → 2 → 4;阶段 3 仓外).

mythkiven/figma-ios-codegen · 1,739 tokens

figma-ios-codegen CLAUDE.md

Instructions for mythkiven/figma-ios-codegen, covering claude.md and how to run here (claude code).

mythkiven/figma-ios-codegen · 226 tokens

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.

musabekisakov-imj/flutter-design-engineer · 283 tokens

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.

art9mid/arc-skill · 1,365 tokens

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).

microsoft/vscode · 6,785 tokens