# Frb Feature Flag

> Use when adding or testing flutter_rust_bridge feature flags, especially flags that require coverage for both enabled and disabled states or should have package-level config plus item-level #[frb(...)] overrides.

- Skill: `fzyzcjy/frb-feature-flag` (Agent Skill)
- Install (CLI): `npx skillmds@latest add fzyzcjy/frb-feature-flag`
- Raw SKILL.md: https://api.skillmd.com/api/skills/fzyzcjy/frb-feature-flag/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: fzyzcjy (https://skillmd.com/u/fzyzcjy)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/fzyzcjy/frb-feature-flag

---


# FRB Feature Flags

Use this skill when adding a feature flag, changing a feature flag, or writing coverage for a feature flag.

## API Surface

For feature flags requiring coverage for both enabled and disabled states:

- Expose the flag in `flutter_rust_bridge.yaml`.
- Expose the flag in the command-line interface.
- Prefer adding an item-level `#[frb(...)]` override when the behavior can reasonably be scoped to a Rust item.

## Test Coverage

In `frb_example/pure_dart`, prefer tests that use the item-level `#[frb(...)]` override so enabled and disabled cases are both exercised in the same package.

Do not rely only on package-level config differences when both states can be covered clearly with item-level Rust APIs.

