Index of every page on this site: llms.txt
All skills
xinvtech avatar

/mobile-design-system

@0672be6
Run it yourself

Extract, define, and govern reusable mobile design tokens, foundations, components, themes, accessibility semantics, and platform variants from Design DNA, UI specifications, or an existing app. Use when Codex needs a standalone mobile design system instead of product-specific screen styling, or when a UI package must become a maintainable implementation library.

Use this Skill: https://skilld.dev/gh/xinvtech/mobile-design-os/mobile-design-system

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈97 tokens for metadata: the name and description. ≈746 when used: this file. ≈1.1k more on demand in 5 files.

Description uses 4.9% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈388 characters, or 4.9%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Mobile Design System

Turn visual intent and repeated UI behavior into a small, semantic, accessible system that can survive new screens and platform variants.

Establish the input contract

Prefer design-dna.json, ui-design.json, and the selected visual-direction.md. For new or replacement visual work, require the ui-design.json visual lock and consume its selected style family, reference IDs, theme variant, and exact theme tokens. Preserve provenance: inherited values come from an upstream artifact, specified values are deliberate target decisions, and estimated values remain estimates. Never turn a screenshot guess into an observed token.

Build the system in layers

  1. Define foundations: color roles, type roles, spacing, shape, elevation/material, iconography, motion, content voice, and accessibility rules.
  2. Copy the locked reference fingerprint into the system thesis and keep the selected semantic theme tokens as the renderer source of truth.
  3. Define tokens as primitive → semantic → component where the system benefits from the extra layer. Prefer semantic roles over raw values in screen contracts.
  4. Define components by user meaning and repeated anatomy, not by a generic “card” bucket.
  5. Specify default, pressed, focused, selected, disabled, loading, success, warning, failure, stale, expired, and permission states as applicable.
  6. Record light/dark, compact/regular, iOS/Android, large-text, keyboard, Reduce Motion, and localization variants.
  7. Establish governance: naming, deprecation, change ownership, contrast/target-size checks, and acceptance signals.

Read references/system-rules.md for token and component boundaries. Use references/design-system-schema.md before creating structured output.

Produce and validate

Create:

Run python3 scripts/validate_design_system.py <path-to-design-system.json> and fix every error. When a UI artifact is available, also validate that every referenced UI token and component has a system definition.

If ui-design.json contains visualExploration, run the validator with --source-ui and reject any Design System whose visualLock is missing, unlocked, or inconsistent with the chosen direction. Never rebuild the system from Design DNA alone after a visual lock exists.

Enforce the output order

  1. System thesis, scope, and provenance.
  2. Foundations and semantic tokens.
  3. Component contracts and state behavior.
  4. Themes, platform variants, and accessibility pressure.
  5. Governance, coverage, open questions, and confidence.

Do not finish with a color palette alone, a component gallery with no state semantics, or a system that cannot explain how a new screen consumes its roles.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts3mo3 checks · Risk SAFE
  • Gen Agent Trust Hub3mo

    The skill is designed to extract and manage mobile design systems. It includes a local Python script for validating design system integrity. No malicious behavior, obfuscation, or unauthorized data access was detected. The execution of the local validation script and the ingestion of design files are consistent with the skill's stated purpose and represent standard functional behavior.

  • Socket3mo

    No alerts

  • Snyk3mo

    Risk: LOW · No issues

Signed by skilld at 0672be6. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 4 months ago

README badge

README badge for xinvtech/mobile-design-os/mobile-design-system