Logo: Miuix

Miuix

Communautéit
limczhh
miuix

Miuix (HyperOS) Compose 专家。用于 Miuix/HyperOS UI 构建、审查、重构;在 Miuix 项目或点名组件/API 时触发:MiuixTheme、ThemeController、miuix-ui、miuix-preference、miuix-blur、miuix-nav;NavigationBar/navigation bar、FloatingNavigationBar/floating navigation bar、NavigationRail、TopAppBar/top app bar、Scaffold、TabRow、Button/TextButton/IconButton、FloatingActionButton/FloatingToolbar、Card、TextField/text field、InputField、SearchBar/search bar、Switch/Checkbox/RadioButton、Slider/slider、SliderPreference/Overscroll、ProgressIndicator、Snackbar、Tooltip/TooltipBox/PlainTooltip/RichTooltip、Badge/BadgedBox、BreadcrumbBar/breadcrumb bar、PullToRefresh/pull to refresh、ColorPicker、OverlayDialog/OverlayBottomSheet/OverlayListPopup、WindowDialog/WindowBottomSheet、ArrowPreference/SwitchPreference/CheckboxPreference/RadioButtonPreference、Dropdown/Spinner、ProgressiveBlur、WindowNavigationEventScope、NavDisplay/NavController/NavKey/NavTransitions/NavDisplayEffects。覆盖设置、弹窗、导航、表单、主题、颜色、无障碍、自适应;指定 Material 3/MD3/其他系统时不触发;无 Miuix 上下文的通用 button/card/slider 不触发。

Iwwersiicht

Editeurlimczhh
Repositorymiuix-skill
Skill-Nummmiuix
Stären
63
Forks
1
Matgeliwwert Dateien
12
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 12 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    limczhh huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Miuix an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/limczhh/miuix-skill/tree/main
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/limczhh/miuix-skill.git \
  .claude/skills/miuix
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Miuix an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Miuix automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Miuix net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Miuix Skill

What Miuix Is

Miuix is a Compose Multiplatform UI component library that implements Xiaomi HyperOS design language. It targets Android, iOS, Desktop (JVM), macOS, and Web (Wasm/JS) from a single Kotlin codebase.

Modules:

ModulePurposeDependency
miuix-uiCore UI components — Button, Switch, TextField, NavigationBar, Scaffold, dialogs, etc.— (root module, includes miuix-core, miuix-squircle)
miuix-preferenceSettings-screen components — SwitchPreference, CheckboxPreference, SliderPreference, dropdown selectors, etc.depends on miuix-ui
miuix-icons100+ extended icons in 5 weights (Light/Normal/Regular/Medium/Demibold)includes miuix-core
miuix-blurBackdrop blur, texture effects, and progressive blur (Android effect paths require RuntimeShader/API 33)includes miuix-shader
miuix-shaderRuntimeShader abstraction layer (cross-platform shader support)— (transitively included by miuix-blur / miuix-squircle)
miuix-squircleSquircle shape — continuous-curvature corners that look smoother than RoundedCornerShape on screen. Auto-falls back to RoundedCornerShape below API 33.— (transitively included by miuix-ui)
miuix-navSelf-contained Compose Multiplatform navigation runtime with a serializable back stack, continuous-depth transitions, and predictive/edge back handlingindependent of miuix-ui; uses miuix-squircle, lifecycle/ViewModel, navigation-event, and kotlinx serialization APIs internally

Most projects start with miuix-ui and add miuix-preference for settings rows. Add miuix-icons, miuix-blur, or miuix-nav explicitly when those features are used. miuix-ui already brings in miuix-core and miuix-squircle; miuix-shader arrives transitively through miuix-blur or miuix-squircle. miuix-nav is the current navigation module; do not infer androidx.navigation3 APIs from the older module name.

Key concepts:

  • The application UI subtree must be under an ancestor MiuixTheme, which provides MiuixTheme.colorScheme.* and MiuixTheme.textStyles.*; individual screens should not duplicate the root theme
  • Natural-language color requests need role lookup: read Color semantics and visual lookup and map the user's visual description to a verified token or component *Defaults factory; do not invent warning/alert tokens or equate a default blue sample with a permanent semantic hue
  • Overlay components (OverlayDialog, OverlayBottomSheet, etc.) render inside Scaffold's popup layer — they follow the page lifecycle and need a Scaffold ancestor. Window components (WindowDialog, WindowBottomSheet, etc.) render in an independent window layer — they're standalone, ideal for cross-page global popups.
  • Scaffold can host a floatingToolbar with a ToolbarPosition; this slot predates 0.9.4, while the current stable layout keeps the Snackbar above a bottom-positioned toolbar.
  • PullToRefresh keeps isRefreshing hoisted, while rememberPullToRefreshState(refreshThreshold = ...) owns indicator mechanics and exposes full-range progress for optional observers.
  • miuix-nav separates route/back-stack ownership from NavigationBar/NavigationRail chrome. rememberNavBackStack requires @Serializable route keys for save/restore; the v1 runtime is a flat stack, does not provide dialog scenes or a built-in result channel, and defaults transition input blocking off.
  • In stable 0.9.4, NavigationRail has separate fixed-layout and non-null expandable-state overloads; state = null is no longer a valid compatibility call. NavigationBarItem and FloatingNavigationBarItem accept a shared NavigationBarItemColors value before badge.
  • Stable miuix-nav provides LocalNavTransitionScope inside each entry, adds the composition-safe NavTransitionScope.isRunning signal, and passes the parent saved-state creation context into entry ViewModels so SavedStateHandle/Hilt integrations can work without custom owner plumbing.
  • Stable miuix-ui includes PagerGestureUtils for HorizontalPager/nested-list conflicts, including pagerGestureOverride, explicit interception modes, and spring page navigation. TabRow now contains horizontal nested scroll/overscroll instead of forwarding it to a parent pager.
  • Treat an exact Miuix English component name or its common spaced form as a direct signal: map navigation bar, floating navigation bar, slider, search bar, and similar names to the component catalog before applying generic Compose UI advice.
  • Public components generally follow a recognizable parameter order, but exact signatures must be verified in docs/demo/source rather than inferred
  • Many configurable components expose a dedicated *Defaults object for supported dimensions, shapes, colors, and state styling

References

Read only the reference files required for the task:

Workflows

Design and component selection

Setup and evidence

Resolve Code Context

Decide which layer the requested code owns before writing it:

ContextRuleRead next
Existing application screen or componentInspect the existing root theme and page host. Reuse them; do not add another MiuixTheme or Scaffold unless the requested behavior needs a new page boundary or popup host.Project setup and theme, then the task-specific reference
Standalone runnable App or complete exampleOwn the root explicitly: create a remembered ThemeController, wrap one MiuixTheme, and add Scaffold only when the example needs page slots, insets, snackbar, or Overlay hosting.Project setup and theme + the selected component/page evidence
Isolated component snippetShow the smallest useful call and state its required ancestor context. Include a local Scaffold only when the snippet itself must run and host an Overlay.Component catalog + doc/demo; source for uncertain APIs

Working Method

Do not stop after locating a component or source file. Turn the evidence into an implementation:

  1. Confirm that the target project's Miuix dependency is 0.9.4 before using a version-sensitive example: inspect its Gradle files, version catalog, dependency lock, or build output and identify the platform/source set. This Skill's current API guidance is for stable 0.9.4; if the target uses another version, state the mismatch instead of presenting these examples as version-correct. For a v0.9.3 → v0.9.4 upgrade, use the single migration reference.
  2. Resolve the code context above, then understand the user's visual and behavioral goal.
  3. Inspect the target project's theme, page shell, hierarchy, state ownership, navigation, insets, and existing conventions when project code is available.
  4. For an existing UI review or polish task, follow UI review and improvement workflow. Inspect both code and available visual evidence before changing geometry.
  5. Classify the request by scenario, then select Miuix components from the relevant catalog.
  6. Load evidence at the required depth. For the current catalog, use the pinned web-source paths in Source verification: read the relevant Markdown doc, demo, Example code, and source from the stable v0.9.4 snapshot at commit 39c40f99. If the user is explicitly migrating from v0.9.3, use the single migration reference and its comparison evidence.
  7. Before designing or restructuring a page, read Example-derived usage patterns and Design language and Defaults. Extract the pattern; do not copy the showcase application wholesale.
  8. Implement with public Miuix components, semantic theme tokens, and component Defaults first. Customize only for an explicit product need or established project convention.
  9. Verify exact APIs against the pinned stable snapshot in Source verification. Compile code changes and validate visual changes with a render, screenshot, preview, emulator, or device when available.

Evidence Loading Strategy

Load only what the request needs:

IntentReadUse it to
Project setupProject setup and theme, then docs/guide/getting-started.mdConfigure modules and the root theme
Single component explanationRelevant catalog row + component docExplain purpose, states, and parameters
Single component codeComponent doc + matching docs/demo/<Component>Demo.kt; read source for uncertain parameters; add Project setup and theme if the example owns App/theme/hostProduce a minimal, version-correct call in the right ancestor context
Page creation or redesignExample-derived usage patterns + Design language and Defaults + the closest page or section under example/shared/; add setup/theme when the code owns the rootReuse integrated composition and semantic visual roles without duplicating hosts
Natural-language color or visual stylingColor semantics and visual lookup + Design language and Defaults + tagged Colors.kt and the selected component's DefaultsResolve hue plus visual role to a real Miuix token/factory, preserve container/on* pairing, and distinguish fixed default samples from dynamic theme output
Existing UI review or polishUI review and improvement workflow + Design language and Defaults + target code and available visual evidenceDiagnose hierarchy, styling, state, inset, adaptive, and accessibility problems before editing
Accessibility, adaptive, or platform-sensitive UIUI review and improvement workflow + Styling, icons, and effects + target platform evidenceCheck semantics, targets, text scaling, RTL, IME, light/dark/dynamic color, and supported platform behavior instead of treating a screenshot as the whole contract
Popup, dialog, or dropdownOverlay and window component catalog or Preference and dropdown menu catalog + matching demo + sourceChoose the correct host/lifecycle and state model
Navigation architectureExample-derived usage patterns + miuix-nav guide + example/shared/.../AppState.kt, AppContent.kt, and navigation/Separate NavDisplay routing/back-stack architecture from NavigationBar or NavigationRail chrome
Internal behavior or debuggingPath conventions and supporting internals + doc + demo + sourceTrace implementation instead of guessing

Stop loading evidence

Stop expanding the evidence set when the task has the minimum proof it needs:

  • For an explanation, the public purpose and relevant parameters are supported by the pinned documentation and, where behavior is non-obvious, source.
  • For a component snippet, the exact signature, imports/dependency, required ancestor, and state/callback contract are known from the doc/demo/source path.
  • For a page, the hierarchy, host, state owner, insets, and relevant Example composition are mapped; do not keep reading unrelated component demos.
  • For a review, the target code and available visual evidence have been classified, and the applicable static/render/runtime validation level is chosen.
  • For a migration, the exact target tag/commit, affected API diff, and target compilation/regression checks are identified.

Reopen already-read references only when a version, platform, or source conflict appears. If the required pinned web evidence is unavailable, stop and report the verification gap instead of silently widening to unpinned sources.

Code Delivery Contract

When the task includes code, this is the authoritative delivery checklist. Reference files add domain-specific guidance; they do not define a second completion contract.

Requested scopeDeliverable shape
Standalone runnable appExact imports, a complete @Composable App, root ThemeController + MiuixTheme, any required Scaffold, and working state/callbacks
Page-level integrationA complete page @Composable with its parameters, hoisted state/callbacks, required imports or explicit existing-context assumptions, and no duplicate application root
Component-level snippetThe smallest useful call plus the state/callbacks it needs and a one-line ancestor/dependency assumption; do not add an App wrapper unless requested

Before returning code:

  • Default to the smallest integration-ready snippet that fulfills the interaction. Return a complete root App only when the user asks for a standalone/runnable example or project setup owns the root; include exact imports for standalone code.
  • Preserve or explicitly define state ownership. Hoist persistent/business state; keep only transient presentation state such as local popup visibility in remember.
  • Make theme, Scaffold, popup-host, and inset ownership explicit according to Resolve Code Context. Never add a bare root MiuixTheme {} when the example is responsible for system theme behavior; use the ThemeController pattern from setup/theme.
  • Include dependency lines only when setup is part of the task or the target project is missing them. The dependency examples and catalog in this Skill target stable 0.9.4; do not silently apply them to another Miuix version.
  • Do not omit callbacks, dismissal paths, disabled behavior, or selected-value updates needed to make the demonstrated interaction work.
  • Use Miuix components that match the scenario, consume Scaffold/inset padding, and prefer theme tokens/component Defaults before literal styling. Do not present Example-only helpers as library requirements.
  • Report source/API verification, compilation, and visual/device validation as separate facts.

Guardrails

These rules prevent the most common failure mode: fabricating APIs that don't exist.

Why this matters

Miuix is an independent library — its API surface is completely different from Material Design, Material 3, or any other Compose library. Guessing parameter names, icon names, or color tokens from memory of those other libraries will produce code that doesn't compile. Always verify against the actual source files.

Apply these non-negotiable checks:

  • Read the evidence depth required by the task: component intent from the upstream Markdown doc, isolated usage from its demo when producing a call shape, integrated composition from the closest Example page when composing a page, and uncertain or version-sensitive contracts from the exact snapshot in Source verification. Do not load every reference or every upstream file by default.
  • Treat Example as a reference implementation, not an API contract. Reuse hierarchy and state flow without importing showcase-only helpers or effects.
  • When the stable snapshot has no public Miuix component for the requested interaction, compose it first from Compose Foundation/Layout/Animation primitives under MiuixTheme, reuse Miuix semantic tokens and nearby component Defaults, and keep the custom wrapper application-owned. Mix Material or Material 3 only when the target project intentionally does so or the user explicitly requests it. Disclose the custom behavior and verify its semantics, disabled/error states, and platform behavior.
  • Verify BreadcrumbBar, the existing Scaffold.floatingToolbar slot and its stable snackbar spacing, InputField.color (not SearchBar.color), OverlayDialog/WindowDialog maxWidth/largeScreen/cornerRadius, WindowNavigationEventScope, PullToRefresh progress APIs, RadioButtonPreference.colors, NavigationRail's two stable overloads, NavigationBarItem.colors, and ProgressiveBlur before giving migration-sensitive examples.
  • For miuix-nav, verify NavKey, rememberNavBackStack, NavDisplay's entry<T> { ... } DSL, NavTransitions, NavDisplayEffects, LocalNavTransitionScope, and NavTransitionScope.isRunning in the stable source. Do not fabricate androidx.navigation3 scene APIs or a built-in result channel.
  • For pager conflicts, verify the stable PagerGestureUtils configuration (userScrollEnabled = false plus PagerGestureNestedScrollConnection for cross-axis interception) instead of inventing a generic nested-scroll workaround.
  • Use only color and typography tokens present in tagged Colors.kt and TextStyles.kt; do not infer Material or Material 3 names.
  • For color descriptions such as “蓝色主按钮”“红色警告”“黄色警告”“灰色摘要文字”, read Color semantics and visual lookup. Verify the actual Colors source and the selected component's Defaults; use error only for the stable release's red status role, and use an app-owned semantic token for yellow/non-error warning states instead of fabricating alert/warning/success properties. For named controls such as Switch, Checkbox, RadioButton, Badge, Snackbar, TabRow, ProgressIndicator, ScrollBar, and Tooltip, preserve their state-specific Defaults rather than inferring colors from hue alone.
  • For icon dependencies, verified icon names, blur limits, and the actual squircle modifiers, read Styling, icons, and effects.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Miuix?

Miuix (HyperOS) Compose 专家。用于 Miuix/HyperOS UI 构建、审查、重构;在 Miuix 项目或点名组件/API 时触发:MiuixTheme、ThemeController、miuix-ui、miuix-preference、miuix-blur、miuix-nav;NavigationBar/navigation bar、FloatingNavigationBar/floating navigation bar、NavigationRail、TopAppBar/top app bar、Scaffold、TabRow、Button/TextButton/IconButton、FloatingActionButton/FloatingToolbar、Card、TextField/text field、InputField、SearchBar/search bar、Switch/Checkbox/RadioButton、Slider/slider、SliderPreference/Overscroll、ProgressIndicator、Snackbar、Tooltip/TooltipBox/PlainTooltip/RichTooltip、Badge/BadgedBox、BreadcrumbBar/breadcrumb bar、PullT...

Firwat Miuix op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Miuix besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Miuix an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/limczhh/miuix-skill/tree/main an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Miuix benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Miuix benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Miuix domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Miuix gratis?

limczhh huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇