Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/sampaio-tech/iOS-design-systemnpx agentmods add skills/sampaio-tech/ios-design-system/create-widgetWrote 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/skills/sampaio-tech/ios-design-system/create-widget)<a href="https://agentmods.dev/skills/sampaio-tech/ios-design-system/create-widget"><img src="https://agentmods.dev/badge/skills/sampaio-tech/ios-design-system/create-widget.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.1 | $0.00016 | $0.04350 |
| Opus 5 | $0.00008 | $0.02175 |
| Sonnet 5 | $0.00003 | $0.00870 |
| Haiku 4.5 | $0.00002 | $0.00435 |
Grade A, and why
create-widget 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 8d 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.
How it starts
The opening of the file, as written. The whole thing — 823 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Creating New Widgets
Step-by-step guide to creating widgets that follow the design system's architecture and conventions.
File Naming Conventions
Widget Files
Pattern: {widget_name}_widget.dart
// ✅ Good
scaffold_widget.dart
button_widget.dart
cupertino_text_field_widget.dart
// ❌ Avoid
scaffold.dart
btn_widget.dart
textfield.dart
Class Naming
Pattern: {Name}Widget
class ScaffoldWidget extends StatelessWidget {}
class ButtonWidget extends StatelessWidget {}
class IconWidget extends StatelessWidget {}
Widget Template
Basic StatelessWidget
// lib/src/widgets/my_custom_widget.dart
import 'package:flutter/cupertino.dart';
import '../../ios_design_system.dart';
/// iOS-style custom widget for [purpose].
///
/// This widget provides [main features] with automatic theme adaptation
/// for both light and dark modes.
///
/// ## Example
///
/// ```dart
/// MyCustomWidget(
/// title: 'Example',
/// subtitle: 'Description',
/// onPressed: () {},
/// )
/// ```
///
/// See also:
///
/// * [RelatedWidget], which provides similar functionality.
class MyCustomWidget extends StatelessWidget {
/// Creates a custom widget.
///
/// The [title] parameter is required and must not be null.
const MyCustomWidget({
required this.title,
this.subtitle,
this.onPressed,
super.key,
});
/// The primary title text.
final String title;
/// Optional subtitle text shown below the title.
final String? subtitle;
/// Called when the widget is tapped.
///
/// If null, the widget will be non-interactive.
final VoidCallback? onPressed;
@override
Widget build(BuildContext context) {
final theme = IosTheme.of(context);
return CupertinoButtonWidget(
onPressed: onPressed,
color: switch (theme) {
IosLightThemeData() => theme.defaultSystemBackgroundsColors.primaryLight,
IosDarkThemeData() => theme.defaultSystemBackgroundsColors.primaryDarkElevated,
},
borderRadius: BorderRadius.circular(12),
padding: const EdgeInsets.all(16),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
title,
style: theme.typography.bodyBold.copyWith(
color: theme.defaultLabelColors.primary,
),
),
if (subtitle != null) ...[
const SizedBox(height: 4),
Text(
subtitle!,
style: theme.typography.caption1Regular.copyWith(
color: theme.defaultLabelColors.secondary,
),
),
],
],
),
);
}
}
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.
- 8d ago First seen · 823 lines · 16 tokens per session scan A 729d348e874a
create-widget is a skill published in the GitHub repository sampaio-tech/iOS-design-system (19 stars, last pushed 1mo ago), licensed MIT. It adds 16 tokens to every session and 4,350 once invoked, about $0.0001 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 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. This skill covers foundational Glimmer design principles, workflows for implementing Jetpack Compose Glimmer, and interaction models for the glasses form factor. Use this skill to build an…
expo-design-system
Framework (OSS). 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…
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.
omh-apple-design
This is a Hermes-native apple-design workflow skill.
axiom-audit-liquid-glass
Use when the user mentions Liquid Glass review, iOS 26 UI updates, toolbar improvements, or visual effect migration.
axiom-audit-ux-flow
Use 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.