Brick_SwiftUI AGENTS.md

Brick_SwiftUI AGENTS.md is an instructions file for Codex, OpenCode from zjinhu/Brick_SwiftUI. It costs 5,789 tokens per session, scanned A, original, MIT.

Repository instructions for Brick_SwiftUI, a SwiftUI toolkit that provides reusable interface components, view extensions, and utility helpers for Apple app development.

In plain words
What is it for?
Use them when developing or maintaining Brick_SwiftUI features and following its documented SwiftUI organization.
Why use it?
They give the coding agent the project's structure, design pattern, and usage conventions before it changes the code.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: positional $N argument.

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/zjinhu/brick_swiftui/agents-md
Clone the repo
git clone --depth 1 https://github.com/zjinhu/Brick_SwiftUI

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 Brick_SwiftUI AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/zjinhu/brick_swiftui/agents-md.svg)](https://agentmods.dev/instructions/zjinhu/brick_swiftui/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/zjinhu/brick_swiftui/agents-md"><img src="https://agentmods.dev/badge/instructions/zjinhu/brick_swiftui/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 5,789 This file is loaded in full into every session.
When invoked 5,789 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.1 $0.05789 $0.05789
Opus 5 $0.02894 $0.02894
Sonnet 5 $0.01158 $0.01158
Haiku 4.5 $0.00579 $0.00579

Measured 6d ago against content hash 106b0026486c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

Brick_SwiftUI 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 6d 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 · 821 lines

How it starts

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

BrickKit AI Skills

Project Overview

BrickKit is a SwiftUI APP Acceleration Development Kit that provides:

  • View extensions via Brick<Wrapped> pattern (view.ss.xxx)
  • Pre-built UI components for rapid development
  • Core utility tools

Directory Structure

Sources/Brick/
├── SwiftUI/           # SwiftUI extensions
│   ├── GridIem++     # Grid item extensions (GridItem.Size.adaptive/flexible)
│   ├── String+       # String extensions (localized, toInt, etc.)
│   ├── View+Geometry # View geometry extensions (onGeometryChange)
│   ├── Angle++       # Angle extensions (radians/degrees conversion)
│   ├── Collection+   # Collection extensions (push, pop, popTo helpers)
│   ├── ForEach++     # ForEach extensions
│   ├── Image++       # Image extensions (resize, tint, etc.)
│   ├── Label++       # Label extensions
│   ├── List++        # List extensions
│   ├── Menu++        # Menu extensions
│   ├── NavigationLink++ # NavigationLink extensions
│   ├── Section++     # Section extensions
│   ├── Shape++       # Shape extensions
│   ├── Spacer+       # Spacer extensions
│   ├── Task+         # Task extensions
│   ├── Text++        # Text extensions
│   ├── URL+          # URL extensions (scheme detection)
│   ├── View++        # General View extensions (eraseToAnyView, etc.)
│   ├── View+Background # View background extensions
│   ├── View+Conditionals # Conditional view modifiers
│   ├── View+Frame    # View frame extensions
│   ├── View+Geometry # View geometry extensions (onGeometryChange)
│   ├── View+Haptic   # View haptic feedback extensions
│   ├── View+Mask     # View mask extensions
│   └── View+Shadow   # View shadow extensions
├── Wrapped/          # View extensions via Brick<Wrapped> pattern (`view.ss.xxx`)
│   ├── ViewWrapped.swift    # Core Brick<Wrapped> + shadow/border
│   ├── Background.swift     # Background + hideListBackground/hideTextViewBackground
│   ├── Overlay.swift        # Overlay with alignment
│   ├── Geometry.swift       # onGeometryChange, visualEffect
│   ├── Alert.swift          # Alert presentation
│   ├── Badge.swift          # Badge overlay
│   ├── Border.swift         # Border modifier
│   ├── Corner.swift         # Corner radius modifier
│   ├── Mask.swift           # Mask modifier
│   ├── Hidden.swift         # Hidden view modifier
│   ├── SafeArea.swift       # Safe area insets
│   ├── BottomSafeArea.swift # Bottom safe area handling
│   ├── Alignment.swift      # Alignment helpers
│   ├── Section.swift        # Section helpers
│   ├── Submit.swift         # Submit handling
│   ├── Task.swift           # Task handling
│   ├── OnChange.swift       # onChange wrapper
│   ├── TabbarColor.swift    # TabBar color customization
│   ├── TabbarVisible.swift  # TabBar visibility control
│   ├── NavigationTitle.swift # Navigation title customization
│   ├── NavigationBarColor.swift # NavigationBar color
│   ├── CustomBackButton.swift # Custom back button
│   ├── ListSpace.swift      # List spacing
│   ├── OnTapLocal.swift     # Local tap gesture
│   ├── PushTransition.swift # Push transition animations
│   ├── ShareSheet.swift     # Share sheet presentation
│   ├── Checkmark.swift      # Checkmark view
│   ├── RequestReview.swift  # App Store review request
│   ├── AppStore.swift       # App Store helpers
│   └── ProposedViewSize.swift # Proposed view size
├── Utilities/         # Core utilities
│   ├── Brick.swift            # Core wrapper type (Brick<Wrapped>)
│   ├── BrickLog.swift         # Logging utilities
│   ├── Adapter.swift          # Responsive design adapter (screen scaling)
│   ├── Application.swift      # App info (version, build, name, bundle ID)
│   ├── CurrentLanguage.swift  # Language detection utilities
│   ├── Keyboard.swift         # Keyboard manager (show/hide, height tracking)
│   ├── Color+.swift           # SwiftUI Color extensions
│   ├── UIColor++.swift        # UIKit UIColor extensions
│   ├── UIView++.swift         # UIKit UIView extensions
│   ├── Screen++.swift         # Screen utilities (size, scale, safe area)
│   ├── CGSize++.swift         # CGSize extensions
│   ├── Image+.swift           # Image extensions
│   ├── SFSymbols/             # Type-safe SF Symbols
│   │   ├── SFSymbolName.swift # Protocol for SF Symbol names
│   │   └── SFSymbolsV1-V7.swift # SF Symbol versions (iOS 13-18)
│   └── ViewLifeCycle/         # View lifecycle hooks
│       ├── OnFirstAppear.swift    # onFirstAppear view modifier
│       ├── WillDisappear.swift    # onWillDisappear view modifier
│       └── DidDisappear.swift     # onDidDisappear view modifier
└── Tools/             # UI Components
    ├── Animation/     # Animation components (Animation+, WithAnimation+)
    ├── Blur/          # Blur effects (GlassBlurView, BlurView)
    ├── CarouselView/  # Carousel components (CarouselView, CarouselViewModel)
    ├── Date/          # Date utilities (Date+, DateFormatter, JSONEncoder/Decoder+Date)
    ├── Gestures/      # Gesture handlers (GestureButton, ScrollViewGestureButton, SwipeGesture)
    ├── Keychain/      # Keychain utilities (KeychainService, KeychainWrapper, KeychainItemAccessibility)
    ├── Language/      # Language settings (Language, LanguageSettings, LanguageView, SelectLanguageView)
    ├── List/          # List utilities (ListLoadMore, ListEmpty)
    ├── Loading/       # Loading overlays (Loading.swift + LoadingManager/)
    ├── Navigation/    # Navigation components (NavigationItem, NavigationPath+, NavigationSwipeBack)
    ├── NavigationStack/ # Navigation stack (iOS 16- compatible, Navigator, NavigationLink, NavigationPath)
    ├── OpenUrl/       # URL opening (OpenURL, Link, Safari, WebView)
    ├── Others/        # Other components (FlipView, MarqueeText, RadioButton, OtpView, ExpandText, etc.)
    ├── Page/          # Page components (PageScrollView, PageIndicator)
    ├── Picker/        # Picker components (ListPicker, ListMultiPicker, ForEachPicker, etc.)
    ├── Presentation/  # Presentation controls (Detents, DragIndicator, CornerRadius, InteractiveDismiss)
    ├── Progress/      # Progress indicators (LinearProgressBar, CircularProgressBar + Styles)
    ├── Refresh/       # Pull-to-refresh (Refresh, Header, Footer, DefaultHeader, DefaultFooter)
    ├── ScrollStack/   # Scrollable stacks (VScrollStack, HScrollStack, VScrollGrid, HScrollGrid)
    ├── ScrollView/    # ScrollView helpers (indicators, keyboard dismiss, enabled, tracking)
    ├── Segment/       # Segment picker (CustomSegmentPicker)
    ├── Shape/         # Custom shapes (Triangle, RoundedCorner)
    ├── TTextField/     # Text field component
    ├── Text/          # Text components
    ├── Toast/         # Toast notifications
    ├── UIHosting/     # UIKit integration
    └── UnderLineText/ # Underline text input

Read the full file on GitHub · 821 lines

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. 6d ago First seen · 821 lines · 5,789 tokens per session scan A 106b0026486c

Subscribe to this mod's changes

Brick_SwiftUI AGENTS.md is an instructions file published in the GitHub repository zjinhu/Brick_SwiftUI (44 stars, last pushed 2mo ago), licensed MIT. It adds 5,789 tokens to every session, about $0.0289 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.