Agent skill

Frb Code Generation

by fzyzcjy in fzyzcjy/flutter_rust_bridge

A skill your agent uses when modifying Rust APIs, codegen, generated examples, or platform scaffolds in flutterrustbridge to select generation commands and preserve source-of-truth and convergence…

MITAuto-check passedDevelopment

Install Frb Code Generation

skills CLI
$ npx skills add fzyzcjy/flutter_rust_bridge --skill frb-code-generation -a claude-code

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

GitHub CLI
$ gh skill install fzyzcjy/flutter_rust_bridge frb-code-generation --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/fzyzcjy/flutter_rust_bridge.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/frb-code-generation .claude/skills/frb-code-generation && 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
frb-code-generation
GitHub stars
5.4k
Token cost
~1.5k tokens
SKILL.md length
678 words
Files
1
Skills in repo
28
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when modifying Rust APIs, codegen, generated examples, or platform scaffolds in flutterrustbridge to select generation commands and preserve source-of-truth and convergence…

  • Modifying Rust APIs
  • SKILL.md covers Overview, Quick Reference and Important Rules
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Generated examples

What it does

Frb Code Generation is an agent skill from fzyzcjy/flutter_rust_bridge. Use when modifying Rust APIs, codegen, generated examples, or platform scaffolds in flutterrustbridge to select generation commands and preserve source-of-truth and convergence rules

Its SKILL.md is about 1.5k 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 Development, covering Project scaffolding and Cross-platform mobile apps. It works with Rust and Flutter. The repository describes itself as: Flutter/Dart <- Rust binding generator, feature-rich, but seamless and simple. The licence is MIT.

When your agent uses it

  • Modifying Rust APIs
  • Generated examples
  • Platform scaffolds in flutterrustbridge to select generation commands and preserve source-of-truth and convergence rules

Example prompts

  • “/frb-code-generation”

What it can do on your machine

Read from SKILL.md and the folder at commit 848e438. 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 bash).

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

  • Network

    No URLs in SKILL.md.

    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

Frb Code Generation loads about 1.5k tokens when it runs. Until then it costs about 51 tokens; SKILL.md has 678 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
~1.5k

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 fzyzcjy/flutter_rust_bridge at commit 848e438, republished under its MIT licence (© fzyzcjy). 678 words, ~1,464 tokens.

Download SKILL.mdSave it as .claude/skills/frb-code-generation/SKILL.md (or your agent's skills folder).
name
frb-code-generation
description
Use when modifying Rust APIs, codegen, generated examples, or platform scaffolds in flutter_rust_bridge to select generation commands and preserve source-of-truth and convergence rules

FRB Code Generation

Note: Read frb-dev-env before running commands and follow the active user's environment rules.

Overview

flutter_rust_bridge requires code generation when Rust APIs change. This skill maps change types to the minimal generation commands needed.

Core principle: Run only the generation commands needed for your change type.

Validation rule: If regenerated outputs cause previously green non-Generate jobs to fail, treat the generated outputs as suspect until they are validated from a clean environment.

After codegen: Follow frb-dev-env and verify generated output is present in the selected worktree before reviewing the diff.

Quick Reference

Change TypeCommand
Example Rust API (frb_example/**/rust/src/api/*.rs)./frb_internal precommit-generate
Flutter integrate examples./frb_internal precommit-integrate
frb_codegen/ generation logic./frb_internal precommit-generate + generate-internal-rust
frb_rust/src/ core API./frb_internal generate-internal-rust
frb_example/pure_dart generator./frb_internal generate-internal-frb-example-pure-dart
CLI help documentation./frb_internal generate-internal-book-help
Root README.md or CHANGELOG.md./frb_internal generate-internal-readme
Other non-generated docs, comments, tests, or frb_dart/ sourceNo generation needed

Important Rules

Root Documentation Fan-Out

Treat the root README.md and CHANGELOG.md as sources of truth. After changing either file, run:

bash
./frb_internal generate-internal-readme

Commit the generated package documentation in the same change. Do not manually edit frb_dart/README.md, frb_dart/CHANGELOG.md, or frb_hooks/CHANGELOG.md.

Integrate Template Drift

If a diff touches Flutter integrate example outputs, platform scaffolds, or copied cargokit files under frb_example/**, check whether the real source of truth should also change under frb_codegen/assets/integration_template/.

Do not submit only downstream integrate output changes when the behavior belongs in the template. Update the template first, then run:

bash
./frb_internal precommit-integrate

Treat frb_codegen/assets/integration_template/**/cargokit as the source of truth for copied cargokit output. If the actual bug belongs inside the external cargokit submodule, read the frb-cargokit skill before deciding whether to patch the submodule and update its pointer.

For CI diagnosis rules about generated-file format/lint failures, repeated package-level Generate drift, or Generate :: FRB Codegen :: Command Integrate failures, you MUST read frb-fix-ci first. This skill is for command selection, not CI failure-propagation diagnosis.

For pure_dart / pure_dart_pde generation issues, treat frb_example/pure_dart as the upstream source and frb_example/pure_dart_pde as the derived copy. See frb-fix-ci for the CI diagnosis workflow.

If CI repair has already entered repeated package-level drift, you MUST stop choosing narrower commands and switch to frb-fix-ci.

Do not manually patch generated files as the final fix. The final accepted result should be produced by the corresponding generation command in a clean matching environment.

Show full SKILL.md (304 more words)Show less
Generation Convergence
  • Run the narrowest owning generator before broad generation.
  • Normalize the intended source inputs, resolve dependencies, run final code generation, and format with the target toolchain. Do not hand formatter-unstable intermediate text to a different generation lane.
  • Run the owning generation command a second time and require a clean diff. A single successful run is not convergence.
  • Preserve semantic equivalence in templates. Do not move construction, scope, lifetime, or callback boundaries merely to make new formatter output look smaller.
Generated Output Provenance

Classify every changed path before accepting generated drift:

ProvenanceRequired action
Integration templateChange the template source and regenerate consumers
Apple scaffold assetRefresh through the owning scaffold workflow
CargoKit copyRead frb-cargokit and follow its ownership and synchronization rules
Generated example outputKeep the generator and snapshot together
Flutter migrator edit in a legacy exampleApply the exact current scaffold migration and record it as direct
Unexplained manual editRevert it or identify its owning source before proceeding
  • When an old example has no supported regeneration entry point, compare it with a fresh target-Flutter scaffold and directly apply only required tool-defined migrations.
  • Record direct legacy scaffold migrations separately from automatic output.
OHOS Integrate Composition
  • Treat the checked-in package and the older OHOS Flutter fork as two distinct sources of truth.
  • Generate generic Flutter scaffold files with the current Flutter package.
  • Overlay only explicit OHOS-owned paths from the OHOS fork: ohos and, when required by the package, rust_builder/ohos and rust_builder/pubspec.yaml.
  • Exclude transient trees such as node_modules and preserve intentional deletions instead of resurrecting stale files.
  • Stage and validate the composed result before replacing the canonical package. Restore the original package if create, dependency resolution, code generation, formatting, or the final swap fails.
  • Test both success and failure paths. Do not add production APIs whose only purpose is exposing internals to tests.

© fzyzcjy, 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/frb-code-generation of fzyzcjy/flutter_rust_bridge.

Open the folder on GitHubat commit 848e438

Compare with similar skills

Frb Code Generation 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.

Frb Code Generation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Frb Code Generation this skillfzyzcjy/flutter_rust_bridge5.4k—~1.5kAutomated safety check: PassMIT
Core API Changelibnativeapi/nativeapi161—~2.5kAutomated safety check: PassMIT
Winapp CLIboshi-xixixi/TraeSkill275—~1.9kAutomated safety check: PassMIT
Update Dependenciessesori-ai/sesori_apps_monorepo126—~7.8kAutomated safety check: PassCustom licence
Solidnank1ro/solid165—~3.1kAutomated safety check: PassMIT
Puremusicqingyueyin/Pure-music186—~907Automated safety check: PassGPL-3.0

Similar skills

  • Core API Change

    libnativeapi/nativeapi

    Carry a change to the C++ public API in core/ all the way downstream — design check, header edit, six platform implementations, C ABI + Rust/Dart/C/JS/Python regeneration, per-binding verification…

    161 GitHub stars~2.5k tokensUpdated today
    MobileAuto-check passed
  • Winapp CLI

    boshi-xixixi/TraeSkill

    Windows App Development CLI (winapp) for building, packaging, signing, debugging, and UI-automating Windows applications.

    275 GitHub stars~1.9k tokensUpdated 4 mo ago
    MobileAuto-check passed
  • Update Dependencies

    sesori-ai/sesori_apps_monorepo

    Weekly dependency update workflow for Sesori Apps Monorepo. An agent skill from sesori-ai/sesori_apps_monorepo.

    126 GitHub stars~7.8k tokensUpdated today
    DevelopmentAuto-check passed
  • Solid

    nank1ro/solid

    PRIORITY — read this skill FIRST before writing Dart code when pubspec.yaml declares solidannotations or solidgenerator.

    165 GitHub stars~3.1k tokensUpdated 1 mo ago
    MobileAuto-check passed
  • Puremusic

    qingyueyin/Pure-music

    Pure-music 项目开发指南,覆盖 Windows Flutter/Dart 前端、Rust 后端、音频播放、歌词解析与渲染、桌面歌词、主题背景、设置、FFI、文档和测试。处理此仓库的代码理解、问题诊断、功能开发、缺陷修复、性能优化或代码审查时使用。

    186 GitHub stars~907 tokensUpdated today
    MobileAuto-check passed
  • Flutter App

    ccplugins/awesome-claude-code-plugins

    Bootstrap a new Flutter mobile app with clean architecture, Riverpod, FVM-pinned SDK, current packages, and no deprecated APIs.

    968 GitHub stars~1.1k tokensUpdated 1 mo ago
    MobileAuto-check: notes

More from fzyzcjy/flutter_rust_bridge

All 28 skills in this repo
  • Frb Add Contributor

    fzyzcjy/flutter_rust_bridge

    Add or reconcile flutterrustbridge contributors through all-contributors PRs.

    5.4k GitHub stars~1.6k tokensUpdated today
    Auto-check passed
  • Frb Android Emulator Prepare

    fzyzcjy/flutter_rust_bridge

    A skill your agent uses when preparing, installing, diagnosing, or explaining the host Android Emulator environment for flutterrustbridge local runtime validation, including Android SDK command-line…

    5.4k GitHub stars~2.1k tokensUpdated today
    Auto-check: notes
  • Frb Cargokit Dev

    fzyzcjy/flutter_rust_bridge

    Develop or update CargoKit for flutterrustbridge. An agent skill from fzyzcjy/flutter_rust_bridge.

    5.4k GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • Frb Categorize Code Diff

    fzyzcjy/flutter_rust_bridge

    A skill your agent uses when classifying a flutterrustbridge branch or PR diff into test and non-test changes, including colocated Rust test modules.

    5.4k GitHub stars~524 tokensUpdated today
    Auto-check passed
  • Frb CI Filter

    fzyzcjy/flutter_rust_bridge

    A skill your agent uses when running focused flutterrustbridge GitHub Actions CI via cifilter, adding/removing the ci-manual-dispatch PR label, choosing exact CI jobs or matrix entries, documenting…

    5.4k GitHub stars~2.4k tokensUpdated today
    Auto-check passed
  • Frb Develop Feature

    fzyzcjy/flutter_rust_bridge

    A skill your agent uses when fixing bugs, adding regression tests, adding new features, when compilation is slow, or when learning twin test naming conventions in flutterrustbridge

    5.4k GitHub stars~2.3k tokensUpdated today
    Auto-check passed

Works with

Questions about Frb Code Generation

What does Frb Code Generation do?

A skill your agent uses when modifying Rust APIs, codegen, generated examples, or platform scaffolds in flutterrustbridge to select generation commands and preserve source-of-truth and convergence…. Frb Code Generation is an agent skill from fzyzcjy/flutter_rust_bridge.

When should I use Frb Code Generation?

Frb Code Generation fits situations like: modifying Rust APIs; generated examples; platform scaffolds in flutterrustbridge to select generation commands and preserve source-of-truth and convergence rules.

How do I install Frb Code Generation in Claude Code?

Run `npx skills add fzyzcjy/flutter_rust_bridge --skill frb-code-generation -a claude-code`. Or copy the skill folder (.claude/skills/frb-code-generation in fzyzcjy/flutter_rust_bridge) into .claude/skills/frb-code-generation in your project. Claude Code loads it when a task matches its description.

How do I install Frb Code Generation in Codex?

Run `npx skills add fzyzcjy/flutter_rust_bridge --skill frb-code-generation -a codex`. Or copy the skill folder (.claude/skills/frb-code-generation in fzyzcjy/flutter_rust_bridge) into .agents/skills/frb-code-generation in your project. Codex loads it when a task matches its description.

Can I use Frb Code Generation 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 fzyzcjy/flutter_rust_bridge --skill frb-code-generation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/frb-code-generation, .gemini/skills/frb-code-generation, .github/skills/frb-code-generation and .opencode/skills/frb-code-generation in your project.

What does Frb Code Generation need to run?

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

Does Frb Code Generation access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Frb Code Generation 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 Frb Code Generation use?

Frb Code Generation 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 Frb Code Generation use?

About 1.5k tokens (SKILL.md is roughly 5.9k 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 Frb Code Generation?

Skills that share tags, products or a category with Frb Code Generation: Core API Change (libnativeapi/nativeapi, 161 stars), Winapp CLI (boshi-xixixi/TraeSkill, 275 stars), Update Dependencies (sesori-ai/sesori_apps_monorepo, 126 stars) and Solid (nank1ro/solid, 165 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Frb Code Generation?

fzyzcjy (a GitHub user) maintains it in fzyzcjy/flutter_rust_bridge, which has 5,442 GitHub stars. The repository holds 28 skills in this directory. The repository was last updated on October 7, 2026.

Source: fzyzcjy/flutter_rust_bridge on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.