using-design-system

using-design-system is a skill for Claude Code, Codex from ThisIsSadeghi/KMPilot. It costs 37 tokens per session (1,088 once invoked), scanned A, original, MIT.

A set of instructions for building feature screens with the project's X-components design system, a shared collection of interface elements, instead of Material3.

In plain words
What is it for?
Use it when creating Compose UI screens, components, buttons, fields, text, loading states, or other feature-level interface code.
Why use it?
It prevents feature code from using inconsistent UI components and helps match existing design blueprints when they are available.

Skill for Claude CodeCodex

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 skills/thisissadeghi/kmpilot/using-design-system
Any agent
npx skills add ThisIsSadeghi/KMPilot --skill using-design-system
Clone the repo
git clone --depth 1 https://github.com/ThisIsSadeghi/KMPilot

Made for: Claude Code, 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 using-design-system

README.md
[![agentmods](https://agentmods.dev/badge/skills/thisissadeghi/kmpilot/using-design-system.svg)](https://agentmods.dev/skills/thisissadeghi/kmpilot/using-design-system)
Your own site
<a href="https://agentmods.dev/skills/thisissadeghi/kmpilot/using-design-system"><img src="https://agentmods.dev/badge/skills/thisissadeghi/kmpilot/using-design-system.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,088 The whole file, excluding the scripts and references it only reads on demand.
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.00037 $0.01088
Opus 5 $0.00018 $0.00544
Sonnet 5 $0.00007 $0.00218
Haiku 4.5 $0.00004 $0.00109

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

Security

Grade A, and why

using-design-system 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 4d 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.

.claude/skills/using-design-system/SKILL.md · 69 lines

How it starts

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

Using Design System

Use X-components from :core:designsystem instead of Material3 in feature modules.

Architecture Reference: @../_shared/patterns.md

Design-Aware Mode

If a Stitch design blueprint exists (.claude/docs/{featurename}/designs/{featurename}_blueprint.md with blueprintConsumed == false in stitch-project.json.features[featurename]), implementation skills auto-detect it and use the blueprint's component tree for UI implementation. This skill provides component mappings for existing code.

Core Rule

X-components ONLY in features. NO Material3 components.

Common Replacements

Material3 X-component
Button XButton (7 variants)
TextField XTextField
Text XText
Scaffold (feature screen) XScreen (Rule 13 — XScaffold is app-shell only)
CircularProgressIndicator XCircularProgressIndicator
coil3.compose.AsyncImage {CORE_DESIGNSYSTEM_PKG}.AsyncImage

Full mappings: @references/component-mappings.md Usage examples: @references/usage-examples.md

Key Rules

  1. Imports: import {CORE_DESIGNSYSTEM_PKG}.* (avoid Material3 in features)
  2. 4-State UI: Uninitialized → Loading → Success → Failed (mandatory)
  3. Theme: Never wrap screens in XTheme (app-level only). Feature screens use XScreen (Rule 13) — never a Scaffold/XScaffold, which would nest a second Scaffold and double the insets
  4. Navigation: Use XNavHost (pre-configured animations)
  5. ScreenRoot Pattern: {Feature}Screen + {Feature}ScreenRoot pair required
  6. Strings (Rule 12): XText/XIcon text args take stringResource(Res.string.*), never literals. Shared strings via DesignSystemResources; ViewModel-origin via UiText. See @../_shared/patterns.md → "Strings & Localization (Rule 12)".
  7. Typography (app-global type scale): text picks an M3 type-scale role — style = MaterialTheme.typography.{role} (or an XTextDefaults preset) — never raw fontSize/fontWeight/fontFamily, except a blueprint-recorded override (…typography.{role}.copy(...)). The font family is global (wired in XTheme.kt), never set per-screen. See @../_shared/patterns.md → "Typography".

Read the full file on GitHub · 69 lines

Files

What ships with it

2 files 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. 4d ago First seen · 69 lines · 37 tokens per session scan A 26938bbd9f29

Subscribe to this mod's changes

using-design-system is a skill published in the GitHub repository ThisIsSadeghi/KMPilot (56 stars, last pushed 26d ago), licensed MIT. It adds 37 tokens to every session and 1,088 once invoked, about $0.0002 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 skills, from other repositories

compose-focus-navigation

Use when writing or reviewing Jetpack Compose UI for TV, keyboard, desktop, accessibility focus, D-pad navigation, FocusRequester, focusProperties, key events, or initial focus behavior.

chrisbanes/skills · 41 tokens

create-wot-ui-theme

为 wot-ui 生成单文件主题 SCSS,并在用户明确要求接入时追加 App.vue 的 @use。当用户要做品牌主题、语义变量落地、单文件主题接入时使用。.

wot-ui/wot-starter · 55 tokens

android-accessibility

Expert checklist and prompts for auditing and fixing Android accessibility issues, especially in Jetpack Compose.

maxrave-dev/SimpMusic · 22 tokens

frontend-design

Designs, builds, or refactors user-facing web or application interfaces with deliberate visual direction, typography, color and spacing tokens, content hierarchy, responsive behavior, accessible interaction states, and real rendered-surface verification. Use for pages, components, dashboards, landing pages, design…

thiientv/godmode · 83 tokens

compose-multiplatform

Use when building one shared Compose UI in Kotlin across Android, iOS, and desktop — commonMain @Composables, expect/actual, source-set placement, native interop, multiplatform ViewModel/navigation/Koin. NOT a single-platform native build (that is kotlin-android / swift-ios), and NOT Dart/Flutter cross-platform UI…

ericrisco/rsc-harness · 80 tokens

design

Use for UI, UX, visual hierarchy, frontend-design judgment, references, redesigns, and design critique when the user's Emulo taste should guide the task. Do not use for unrelated execution or marketing/social writing alone.

ohad6k/emulo · 46 tokens