Agent skill

Getx Patterns

by bladeofgod in bladeofgod/flutter-ai-harness

适用:代码使用 GetxController、GetxService、Rx、Obx、GetBuilder、Get.find、Bindings 或 Worker。不适用:GetX 路由、Dialog、Snackbar,或 Controller 内隐式查找 API。触发词:GetX、Obx、.obs、Rx、Get.find、GetxService、Worker、Binding。

MITAuto-check passedMobile

Install Getx Patterns

skills CLI
$ npx skills add bladeofgod/flutter-ai-harness --skill getx-patterns -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install bladeofgod/flutter-ai-harness getx-patterns --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/bladeofgod/flutter-ai-harness.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/getx-patterns .claude/skills/getx-patterns && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
getx-patterns
GitHub stars
116
Token cost
~462 tokens
SKILL.md length
139 words
Files
1
Skills in repo
11
Repo updated
First seen
Licence
MIT

At a glance

适用:代码使用 GetxController、GetxService、Rx、Obx、GetBuilder、Get.find、Bindings 或 Worker。不适用:GetX 路由、Dialog、Snackbar,或 Controller 内隐式查找 API。触发词:GetX、Obx、.obs、Rx、Get.find、GetxService、Worker、Binding。

  • Mobile work in your project
  • SKILL.md covers Fork 依赖与能力边界, 依赖规则, 状态选择 and 生命周期, plus 1 more section
  • Reaches github.com

What it does

Getx Patterns is an agent skill from bladeofgod/flutter-ai-harness. 适用:代码使用 GetxController、GetxService、Rx、Obx、GetBuilder、Get.find、Bindings 或 Worker。不适用:GetX 路由、Dialog、Snackbar,或 Controller 内隐式查找 API。触发词:GetX、Obx、.obs、Rx、Get.find、GetxService、Worker、Binding。

Its SKILL.md is about 460 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Mobile. The repository describes itself as: An AI-native engineering harness for production Flutter and hybrid mobile app repositories. The licence is MIT.

When your agent uses it

  • Mobile work in your project

Example prompts

  • “/getx-patterns”

What it can do on your machine

Read from SKILL.md and the folder at commit 9f1a1ca. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are yaml).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Getx Patterns loads about 462 tokens when it runs. Until then it costs about 51 tokens; SKILL.md has 139 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~51
When it runs · the whole SKILL.md, loaded when a task matches
~462

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from bladeofgod/flutter-ai-harness at commit 9f1a1ca, republished under its MIT licence (© bladeofgod). 139 words, ~462 tokens.

Download SKILL.mdSave it as .claude/skills/getx-patterns/SKILL.md (or your agent's skills folder).
name
getx-patterns
description
适用:代码使用 GetxController、GetxService、Rx、Obx、GetBuilder、Get.find、Bindings 或 Worker。不适用:GetX 路由、Dialog、Snackbar,或 Controller 内隐式查找 API。触发词:GetX、Obx、.obs、Rx、Get.find、GetxService、Worker、Binding。
paths
app/apps/**/lib/**, app/packages/**/lib/**

GetX 状态与 DI 模式

本仓库使用公开、固定 Commit 的 GetX 精简版 fork,只提供状态管理和轻量依赖注册。路由归 go_router,UI Overlay 使用 Flutter/Context 所有的 API。

Fork 依赖与能力边界

所有真实消费者必须使用同一个依赖源,不得写成 get: ^4.x:

yaml
get:
  git:
    url: https://github.com/bladeofgod/getx.git
    ref: 7bfcd9c3711c8880ee730579724dabe54f4e2598

精简 fork 保留 GetxController、GetxService、Rx、Obx、GetBuilder、Worker、轻量 DI,以及适配 go_router 页面生命周期的 Binder<T>。

以下官方 GetX 全家桶能力已经移除,不得假设存在:

  • GetMaterialApp、GetPage 和 GetX 导航 API
  • Get.snackbar、Get.dialog、Get.bottomSheet
  • Translations、Middleware、GetConnect
  • Get.context、Get.overlayContext

页面级 Controller 可由路由装配点显式构造后交给页面管理;需要服务定位与自动释放时,优先在 GoRoute.builder 使用 fork 的 Binder<T>。两种方式都必须保证 Controller 只创建一次并随 Route 销毁。

依赖规则

  • Controller 通过构造函数接收必需 API。
  • API 在 Route 或模块装配点解析。
  • Controller 内 Get.find 只允许查找已记录的全局 GetxService。
  • UI 不得持有 API,也不得把服务定位器结果沿 Widget Tree 传递;交互走 Controller Facade。

状态选择

  • UI 不观察的值使用普通字段。
  • 明确的粗粒度刷新使用 GetBuilder。
  • 独立细粒度状态使用 Rx/Obx。
  • Obx 只包裹读取 .value 的最小子树,不包整页。

生命周期

  • 页面 Controller 随 Route 创建和销毁。
  • 全局 Service 只注册一次,不持有页面 BuildContext。
  • 在 onClose 或真实所有者中释放 Worker、Stream、Timer、FocusNode 和 TextController。
  • 副作用进入 Worker 或显式方法,不在响应式 Widget Builder 中执行。

测试

直接用 Fake/Mock 构造 Controller;teardown 中重置全局 GetX 状态。必需 API 的测试不得依赖服务定位器。

该 fork 的 Obx 通过 microtask 调度 markNeedsBuild。Widget Test 在测试代码中直接修改 Rx 后,应先让 microtask 入队,再推进重建帧(通常连续两次 pump(),有持续异步任务时使用有界的 pumpAndSettle()),不要在首个 pump() 后立即断言新 UI。

修改依赖 lint 时读取 .claude/memories/api-injection-gate.md。

© bladeofgod, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/getx-patterns of bladeofgod/flutter-ai-harness.

Open the folder on GitHubat commit 9f1a1ca

Compare with similar skills

Getx Patterns next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Getx Patterns compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Getx Patterns this skillbladeofgod/flutter-ai-harness116—~462Automated safety check: PassMIT
React Native Best Practicesvercel-labs/openreview1.7k17 repos~1.1kAutomated safety check: PassMIT
Swiftui Protwostraws/SwiftUI-Agent-Skill5k2 repos~1kAutomated safety check: PassMIT
Ip As LogoKartikLabhshetwar/better-shot2.4k1 repos~4.3kAutomated safety check: PassMIT
Compose Multiplatform Patternsmonta-app/ocpp-emulator1795 repos~2kAutomated safety check: PassApache-2.0
Aso Appstore Screenshotsadamlyttleapps/claude-skill-aso-appstore-screenshots1.8k1 repos~9.6kAutomated safety check: PassMIT

Similar skills

  • React Native Best Practices

    vercel-labs/openreview

    Official

    A prioritized rule set for React Native and Expo apps covering list performance, animation, navigation, UI patterns, state, rendering, monorepos and configuration.

    1.7k GitHub starsUsed in 17 repos~1.1k tokens
    MobileAuto-check passed
  • Swiftui Pro

    twostraws/SwiftUI-Agent-Skill

    Comprehensively reviews SwiftUI code for best practices on modern APIs, maintainability, and performance.

    5k GitHub starsUsed in 2 repos~1k tokens
    MobileAuto-check passed
  • Ip As Logo

    KartikLabhshetwar/better-shot

    Generate extremely simple, cute, personified square character images with rounded heavy forms, two purposeful character colors, one solid background color, and a dominant lower-corner composition.

    2.4k GitHub starsUsed in 1 repo~4.3k tokens
    MobileAuto-check passed
  • Compose Multiplatform Patterns

    monta-app/ocpp-emulator

    Compose Multiplatform and Jetpack Compose patterns for KMP projects — state management, navigation, theming, performance, and platform-specific UI.

    179 GitHub starsUsed in 5 repos~2k tokens
    MobileAuto-check passed
  • Aso Appstore Screenshots

    adamlyttleapps/claude-skill-aso-appstore-screenshots

    Generate high-converting App Store screenshots by analyzing your app's codebase, discovering core benefits, and creating ASO-optimized screenshot images using Nano Banana Pro.

    1.8k GitHub starsUsed in 1 repo~9.6k tokens
    MobileAuto-check passed
  • Swiftui UI Patterns

    AFK-surf/OpenBridge

    Best practices and example-driven guidance for building SwiftUI views and components.

    430 GitHub starsUsed in 4 repos~887 tokens
    MobileAuto-check passed

More from bladeofgod/flutter-ai-harness

All 11 skills in this repo
  • UI Behavior Spec

    bladeofgod/flutter-ai-harness

    适用:根据已批准任务、产品规则、原型或 Figma 输入生成、审计或执行 Version 1 UI 行为 Spec。不适用:替代产品决策、实现 UI、操作系统原生界面或探索未定义流程。触发词:UI Spec、行为契约、plan-spec、spec-writer、spec-auditor、app-operator、Marionette 验收。

    116 GitHub stars~1.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Flutter Debug Runtime

    bladeofgod/flutter-ai-harness

    适用:在 App Operator 或 Marionette 验证前,为 Android/iOS 构建、安装并启动 Flutter Debug App,获取 VM Service URI。不适用:Release 构建、签名配置、系统权限自动化、账号登录或测试数据准备。触发词:flutter run、Debug App、设备安装、VM Service URI、App Operator 前置环境。

    116 GitHub stars~274 tokensUpdated 1 mo ago
    Auto-check passed
  • Dart Coding Standards

    bladeofgod/flutter-ai-harness

    适用:编写或审查 Dart/Flutter 生产代码,尤其是 Controller、Service、Stream、异步任务和依赖注入。不适用:Kotlin、Swift 或生成代码规范。触发词:Dart、Controller、Service、StreamSubscription、unawaited、dynamic、DI、重构。

    116 GitHub stars~228 tokensUpdated 1 mo ago
    Auto-check passed
  • Figma To Flutter

    bladeofgod/flutter-ai-harness

    适用:读取 Figma 或根据节点实现 Flutter UI,包括 Token 反查、Auto Layout、组件 Variant、Asset 和视觉验证。不适用:替代产品决策,或从像素推断设计稿不可见的数据行为。触发词:Figma URL、node-id、design-to-code、视觉还原、Auto Layout、design token。

    116 GitHub stars~270 tokensUpdated 1 mo ago
    Auto-check passed
  • Go Router

    bladeofgod/flutter-ai-harness

    适用:新增 Route、Redirect、ShellRoute/StatefulShellRoute、DeepLink、路由参数、Observer 或 Route 级 Controller 装配。不适用:GetX 导航或没有明确兼容边界的任意 Navigator Stack。触发词:GoRouter、GoRoute、redirect、deep link、shell…

    116 GitHub stars~295 tokensUpdated 1 mo ago
    Auto-check passed
  • Kotlin Android Standards

    bladeofgod/flutter-ai-harness

    适用:编写或审查 Android Kotlin Native Module、Bridge Adapter、Host 接线、Manifest、Gradle 和原生 UI。不适用:Swift/iOS、Dart Client 或 Wire Contract 设计。触发词:Kotlin、Android、Gradle、Manifest、Coroutine、Flow、CameraX、Activity。

    116 GitHub stars~352 tokensUpdated 1 mo ago
    Auto-check passed

Categories

Questions about Getx Patterns

What does Getx Patterns do?

适用:代码使用 GetxController、GetxService、Rx、Obx、GetBuilder、Get.find、Bindings 或 Worker。不适用:GetX 路由、Dialog、Snackbar,或 Controller 内隐式查找 API。触发词:GetX、Obx、.obs、Rx、Get.find、GetxService、Worker、Binding。. Getx Patterns is an agent skill from bladeofgod/flutter-ai-harness.

When should I use Getx Patterns?

Getx Patterns fits situations like: mobile work in your project.

How do I install Getx Patterns in Claude Code?

Run `npx skills add bladeofgod/flutter-ai-harness --skill getx-patterns -a claude-code`. Or copy the skill folder (.claude/skills/getx-patterns in bladeofgod/flutter-ai-harness) into .claude/skills/getx-patterns in your project. Claude Code loads it when a task matches its description.

How do I install Getx Patterns in Codex?

Run `npx skills add bladeofgod/flutter-ai-harness --skill getx-patterns -a codex`. Or copy the skill folder (.claude/skills/getx-patterns in bladeofgod/flutter-ai-harness) into .agents/skills/getx-patterns in your project. Codex loads it when a task matches its description.

Can I use Getx Patterns in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add bladeofgod/flutter-ai-harness --skill getx-patterns -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/getx-patterns, .gemini/skills/getx-patterns, .github/skills/getx-patterns and .opencode/skills/getx-patterns in your project.

What does Getx Patterns need to run?

SKILL.md names no scripts, command-line tools or credentials: Getx Patterns is instructions for the agent only.

Does Getx Patterns access the network?

SKILL.md names 1 domain. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Getx Patterns safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Getx Patterns use?

Getx Patterns is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Getx Patterns use?

About 462 tokens (SKILL.md is roughly 1.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Getx Patterns?

Skills that share tags, products or a category with Getx Patterns: React Native Best Practices (vercel-labs/openreview, 1.7k stars), Swiftui Pro (twostraws/SwiftUI-Agent-Skill, 5k stars), Ip As Logo (KartikLabhshetwar/better-shot, 2.4k stars) and Compose Multiplatform Patterns (monta-app/ocpp-emulator, 179 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Getx Patterns?

bladeofgod (a GitHub user) maintains it in bladeofgod/flutter-ai-harness, which has 116 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on September 7, 2026.

Source: bladeofgod/flutter-ai-harness on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.