kitflow
Build responsive and adaptive Kotlin Multiplatform (KMP) and Compose Multiplatform UIs using the KitFlow SDK (in.kitflow:kit-flow). Use when adding KitFlow to…
от vedangj72★ 34 звезды на GitHub
Установить kitflow в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
KitFlow Agent Skill
KitFlow is a Kotlin Multiplatform & Compose Multiplatform adaptive UI SDK (in.kitflow:kit-flow:1.1.1) for Android, iOS, Desktop (JVM), and Web (JS & Wasm).
- Official Website: https://kitflow.in/
- Repository: https://github.com/vedangj72/KitFlow
- Current Maven Coordinate:
in.kitflow:kit-flow:1.1.1(Legacy<= 1.1.0:io.github.vedangj72:kit-flow)
When to Use KitFlow
Activate this skill whenever the user asks to:
- Install or configure KitFlow in a Kotlin Multiplatform or Android Compose project.
- Build responsive layouts that adapt across phone, tablet, desktop, and browser viewports.
- Implement adaptive navigation (top bar on Web/Desktop, bottom bar on Mobile/Tablet, or collapsible/permanent drawer).
- Resolve screen-class vs. layout-width breakpoints (
Adaptive.valuevsAdaptive.layoutValue). - Create responsive multi-column grids (
AdaptiveFlowGrid). - Support cross-platform accessibility (
AdaptiveAccessibilityInfo,AdaptiveAccessibleLayout,AdaptiveIconButton,adaptiveAnimationSpec,adaptiveTouchTarget,adaptiveSemantics).
Recommended Implementation Workflow
- Add Dependency: Add
mavenCentral()andin.kitflow:kit-flow:1.1.1incommonMain.dependencies(or Androiddependencies). See installation.md. - Provide Adaptive Context: Wrap the root Composable UI once in
AdaptiveKitProvider { ... }. - Choose Navigation Scaffold (if needed):
- Use
KitNavScaffoldfor SPA layouts with a top navbar on Web/Desktop and bottom bar on Mobile/Tablet. - Use
KitDrawerScaffoldfor dashboard/app layouts with a collapsible or permanent (nonClosing = true) navigation drawer. - See components.md for exact parameters and defaults.
- Use
- Apply Responsive Values & Grids:
- Use
Adaptive.value(...)for stable properties tied to shortest side (e.g., padding, typography, corner radii that shouldn't jump on phone rotation). - Use
Adaptive.layoutValue(...)for layout-width decisions that should react to rotation, split-screen, or desktop window resizing. - Use
AdaptiveFlowGrid(...)for responsive card/metric grids. - See adaptive-layout.md.
- Use
- Apply Accessibility Helpers: Use
AdaptiveIconButton,Modifier.adaptiveTouchTarget(),AdaptiveAccessibleLayout, andadaptiveAnimationSpec(...)where appropriate. - Verify Build: Run the project's Gradle compile/test tasks (e.g.,
./gradlew :shared:desktopTestor target compile tasks) after edits.
Component Selection Guide
| Need | KitFlow API | Package |
|---|---|---|
| Root adaptive & accessibility provider | AdaptiveKitProvider |
com.adaptive.kit_flow |
| Responsive values (stable vs width-driven) | Adaptive.value / Adaptive.layoutValue |
com.adaptive.kit_flow |
| Window metrics & orientation | rememberWindowInfo(), Adaptive.currentInfo |
com.adaptive.kit_flow |
| Orientation branching | Adaptive.onOrientationChange |
com.adaptive.kit_flow |
| Responsive multi-column grid | AdaptiveFlowGrid |
com.adaptive.kit_flow.layout |
| Top-bar (Web/Desktop) + Bottom-bar (Mobile) scaffold | KitNavScaffold |
com.adaptive.kit_flow.modules.kitcomponent.scaffoldings |
| Drawer (Web/Desktop) + Bottom-bar/Drawer (Mobile) scaffold | KitDrawerScaffold |
com.adaptive.kit_flow.modules.kitcomponent.scaffoldings |
| Navigation item model | KitNavItem |
com.adaptive.kit_flow.modules.kitcomponent.utils |
| Font-scale / motion / touch target accessibility | AdaptiveAccessibleLayout, AdaptiveIconButton, adaptiveAnimationSpec |
com.adaptive.kit_flow.accessibility |
Reference Documentation
- Installation & Gradle Setup — Maven coordinates, version catalog, KMP & Android setup.
- Components API Reference — Exact signatures, parameters, defaults, and packages for all public components.
- Adaptive Layout & Breakpoints —
AdaptiveBreakpoint,AdaptiveBreakpointThresholds,AdaptiveFlowGrid,Adaptive.valuevslayoutValue. - Architecture Overview — Module structure,
CompositionLocalhierarchy, internal vs public APIs. - Platform Support — Android, iOS, Desktop JVM, JS, and WasmJs capabilities and accessibility differences.
- Best Practices & AI Guidelines — Rules for AI agents, state management, and avoiding common mistakes.
- Troubleshooting — Common errors, missing provider, desktop/iOS build notes.
Examples
- Getting Started — Minimal
commonMainsetup withAdaptiveKitProviderandAdaptive.value. - Drawer Navigation —
KitDrawerScaffoldwith collapsible/permanent drawer and extra toolbar items. - [SPA Navigation](ex
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- examples/dashboard.md
- examples/drawer.md
- examples/getting-started.md
- examples/navigation.md
- references/adaptive-layout.md
- references/architecture.md
- references/best-practices.md
- references/components.md
- references/installation.md
- references/platform-support.md
- references/troubleshooting.md
FAQ
Что делает скилл kitflow?
Build responsive and adaptive Kotlin Multiplatform (KMP) and Compose Multiplatform UIs using the KitFlow SDK (in.kitflow:kit-flow). Use when adding KitFlow to a project, wrapping apps with AdaptiveKitProvider, resolving breakpoint/orientation values via Adaptive, laying out responsive grids with AdaptiveFlowGrid, building adaptive navigation with KitNavScaffold or KitDrawerScaffold, or handling cross-platform accessibility across Android, iOS, Desktop, and Web.
Как установить скилл kitflow?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл kitflow запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…