Frb Feature Flag
Developmentfrb-feature-flagFrb Feature Flag is an Agent Skill for development published in the fzyzcjy/flutter_rust_bridge repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
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.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/fzyzcjy/flutter_rust_bridge/blob/HEAD/.claude/skills/frb-feature-flag/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/frb-feature-flag, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
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.