Stuff: Skill for Codex

.agents/skills/building-ui/SKILL.md

building-ui is a skill for Codex from kyleve/Stuff. It costs 88 tokens per session (3,812 once invoked), scanned A, original, Apache-2.0.

A set of instructions for building and reviewing SwiftUI and UIKit screens in a specific repository. SwiftUI and UIKit are Apple frameworks for creating app interfaces.

In plain words
What is it for?
Use it when changing a view, screen, component, widget, app-extension interface, stylesheet, visual token, or animation. It also guides reuse and helps keep non-interface logic outside views.
Why use it?
It helps keep new interface code consistent with the repository's existing design system, layout, accessibility, localization, preview, and image-testing practices.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md.

This is kyleve/Stuff's own configuration. It tells Codex how to work on Stuff itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Stuff configures →

View source ↗ kyleve/Stuff
Reuse

Borrowing it

Nothing to install: this file belongs to kyleve/Stuff. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/kyleve/Stuff/main/.agents/skills/building-ui/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/kyleve/Stuff

Made for: Codex.

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 building-ui

README.md
[![agentmods](https://agentmods.dev/badge/skills/kyleve/stuff/building-ui/github.svg)](https://agentmods.dev/skills/kyleve/stuff/building-ui)
Your own site
<a href="https://agentmods.dev/skills/kyleve/stuff/building-ui"><img src="https://agentmods.dev/badge/skills/kyleve/stuff/building-ui/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.

agentmods 80×15 button for building-ui

Your own site · 80×15
<a href="https://agentmods.dev/skills/kyleve/stuff/building-ui"><img src="https://agentmods.dev/badge/skills/kyleve/stuff/building-ui.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,812 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00088 $0.03812
Opus 5.5 $0.00035 $0.01525
Sonnet 5.5 $0.00018 $0.00762
Haiku 4.5 $0.00009 $0.00381

Measured 3d ago against content hash ac5e1aa873bd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

building-ui 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 3d 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/skills/building-ui/SKILL.md · 317 lines

How it starts

The opening of the file, as written. The whole thing — 317 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Building UI

Build repository UI through the existing model, design-system, and rendering seams. Treat this skill as the repository-specific authority when generic SwiftUI guidance conflicts with it. For example, use a Broadway stylesheet, not a generic constants enum. Use swiftui-pro alongside this skill for current SwiftUI API, performance, and platform guidance.

Start from the existing shape

  1. Read the root AGENTS.md, then every AGENTS.md that scopes the files being changed. Local files retain module-specific product, dependency, and lifetime invariants.
  2. Inspect the feature's existing views, view models, reusable components, Broadway root, stylesheet, preview fixtures, and snapshot declarations before designing another path. Check supported themes and their local surface rules before choosing materials. For Where, follow the theme rules.
  3. Extend an existing view with a mode or shared subview when two surfaces express the same concept. Keep screen-specific registration and rendering declarations beside the represented screen. In-app examples and theme previews must reuse the production presentation component. If embedding needs a different size or interaction policy, add that input at the shared boundary.
  4. Identify the narrowest layer that owns the behavior before editing UI.

Keep views presentational

  • Put persistence, domain rules, detection, aggregation, cache policy, and side effects in Core/services. Put observable mirrors, lifecycle orchestration, and intent methods in a view model. Let a View render state and route intents.
  • Extract an @Observable model or focused child type when a view begins to own system logic, an internal state machine, or unrelated behavioral areas.
  • Model mutually dependent UI values as one enum or named value so invalid combinations cannot be represented.
  • Bind directly to observable state. For a derived binding, expose a computed get/set property on the model and bind to it. Do not build Binding(get:set:) in a view.
  • Keep previews and tests on the production data flow. Inject a protocol fake or production-shaped fixture instead of adding DEBUG state or a parallel refresh path to product code.
  • Scope presentation-driven work to actual visibility. Key tasks by every identity-relevant input and let cancellation return before changing durable presentation state, emitting haptics, or publishing late UI updates.

Read the full file on GitHub · 317 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3d ago Changed · +8 lines ac5e1aa873bd
  2. 6d ago Changed · +14 lines 11a822362da0
  3. 9d ago Changed · +24 lines 67b6c59f9459
  4. 22d ago Changed · +17 lines 16b346a43505
  5. 1mo ago Changed · +45 lines 288459529821
  6. 2mo ago First seen · 209 lines · 88 tokens per session scan A 364337814943

Subscribe to this mod's changes

building-ui is a skill published in the GitHub repository kyleve/Stuff (4 stars, last pushed today), licensed Apache-2.0. It adds 88 tokens to every session and 3,812 once invoked, about $0.0004 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-08-31.

Related

Other skills, from other repositories

display-glasses-with-jetpack-compose-glimmer

Provides guidelines for developing projected Android XR apps for display glasses using the Jetpack Compose Glimmer UI toolkit. Covers Glimmer design principles, workflows, and interaction models for the glasses form factor. Use this skill to build an Android XR Augmented Experience app with Jetpack Compose Glimmer.…

android/skills · 112 tokens

glance-canonical-layouts

Use this skill to create home screen widgets using Jetpack Glance Canonical Layouts from the Android Platform Samples project, or when asked to implement standard widget layout patterns (including Check List, Image Grid, Snap Scrolling, and Standard Toolbar).

android/skills · 56 tokens

expo-design-system

Build and maintain a design system inside an Expo app - a reusable theme of design tokens (color, spacing, typography, radius, shadow, motion), reusable component structure with variant/size/state prop conventions, and rules for when to extract a repeated view into a shared component. Use when creating or organizing…

expo/skills · 197 tokens

flutter-build-responsive-layout

Use LayoutBuilder, MediaQuery, or Expanded/Flexible to create a layout that adapts to different screen sizes. Use when you need the UI to look good on both mobile and tablet/desktop form factors.

flutter/agent-plugins · 51 tokens

omh-apple-design

This is an OMH apple-design workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).

rlaope/oh-my-hermes · 83 tokens

axiom-audit-liquid-glass

Use when the user mentions Liquid Glass review, iOS 26 UI updates, toolbar improvements, or visual effect migration.

CharlesWiltgen/Axiom · 32 tokens