Agent skill

Frb Fix Merge Conflict

by fzyzcjy in fzyzcjy/flutter_rust_bridge

A skill your agent uses when resolving merge or rebase conflicts in flutterrustbridge, especially conflicts involving generated files after master/main changed independently from a PR branch.

MITAuto-check passedDevelopment

Install Frb Fix Merge Conflict

skills CLI
$ npx skills add fzyzcjy/flutter_rust_bridge --skill frb-fix-merge-conflict -a claude-code

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

GitHub CLI
$ gh skill install fzyzcjy/flutter_rust_bridge frb-fix-merge-conflict --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-fix-merge-conflict .claude/skills/frb-fix-merge-conflict && 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-fix-merge-conflict
GitHub stars
5.4k
Token cost
~1.2k tokens
SKILL.md length
562 words
Files
1
Skills in repo
28
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when resolving merge or rebase conflicts in flutterrustbridge, especially conflicts involving generated files after master/main changed independently from a PR branch.

  • Works in 4 steps: Read the FRB environment setup… → Read frb-code-generation to choose the… → If the conflict is discovered through CI… → …
  • Resolving merge
  • SKILL.md covers Core Rule, Before Starting, Classify Conflicts and Generated File Conflict Workflow, plus 2 more sections
  • Calls git

What it does

Frb Fix Merge Conflict is an agent skill from fzyzcjy/flutter_rust_bridge. Use when resolving merge or rebase conflicts in flutterrustbridge, especially conflicts involving generated files after master/main changed independently from a PR branch.

Its SKILL.md is about 1.2k 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 Git workflow and Cross-platform mobile apps. It works with Rust, Flutter and Dart. 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

  • Resolving merge
  • Rebase conflicts in flutterrustbridge
  • Especially conflicts involving generated files after master/main changed independently from a PR branch

Example prompts

  • “/frb-fix-merge-conflict”

Requirements

  • Docker

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Read the FRB environment setup instructions for the current checkout before running generation or tests.
  2. Read frb-code-generation to choose the minimal regeneration command.
  3. If the conflict is discovered through CI or PR checks, read frb-fix-ci before deeper investigation.
  4. Make sure the worktree starts clean except for the merge/rebase conflict you are intentionally resolving.

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

    Shell commands in SKILL.md call:

    • git

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

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    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 Fix Merge Conflict loads about 1.2k tokens when it runs. Until then it costs about 49 tokens; SKILL.md has 562 words of instructions outside code blocks.

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

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). 562 words, ~1,207 tokens.

Download SKILL.mdSave it as .claude/skills/frb-fix-merge-conflict/SKILL.md (or your agent's skills folder).
name
frb-fix-merge-conflict
description
Use when resolving merge or rebase conflicts in flutter_rust_bridge, especially conflicts involving generated files after master/main changed independently from a PR branch.

FRB Fix Merge Conflict

Use this skill before resolving merge or rebase conflicts in flutter_rust_bridge.

Core Rule

Resolve hand-written files semantically. Do not hand-resolve generated files as the final result.

Generated conflict output should be treated as a stale artifact from two independently valid histories. After the hand-written sources are merged, regenerate the generated outputs and commit that regenerated result.

Before Starting

  1. Read the FRB environment setup instructions for the current checkout before running generation or tests.
  2. Read frb-code-generation to choose the minimal regeneration command.
  3. If the conflict is discovered through CI or PR checks, read frb-fix-ci before deeper investigation.
  4. Make sure the worktree starts clean except for the merge/rebase conflict you are intentionally resolving.

Classify Conflicts

List unmerged files:

bash
git diff --name-only --diff-filter=U

Classify each file into one of these buckets:

BucketExamplesResolution
Hand-written sourceRust APIs, codegen logic, Dart tests, docs, configsResolve manually with normal semantic merge
Generated outputfrb_generated.*, *.freezed.dart, *.g.dart, generated API wrappers, generated test entrypointsPick one side only as a temporary placeholder, then regenerate
Ambiguous generated-like outputlockfiles, copied template outputs, integrate scaffoldsConfirm source of truth before choosing; use frb-fix-ci dependency graph if unsure

Do not use the generated-file shortcut for hand-written files merely because they are noisy.

Generated File Conflict Workflow

When a generated file conflicts because both base and PR independently added tests or APIs:

  1. Resolve all hand-written source conflicts first.
  2. For each generated conflicted file, choose a conflict-free placeholder from either side. The chosen side is not the final answer; it only clears conflict markers so the generator can run.
  3. Stage those placeholder generated files.
  4. Run the appropriate generation command from frb-code-generation. For broad PR-vs-master generated drift, prefer:
bash
./frb_internal precommit-generate

For frb_example/pure_dart and frb_example/pure_dart_pde conflicts, the internal generator and package codegen cover different outputs. If the merge touches generated test entrypoints, copied PDE files, or the pure-Dart chain, run:

bash
./frb_internal generate-internal-frb-example-pure-dart

If the merge also brings in hand-written Rust or Dart API changes, run package codegen after the internal generator:

bash
./frb_internal generate-run-frb-codegen-command-generate --package frb_example/pure_dart
./frb_internal generate-run-frb-codegen-command-generate --package frb_example/pure_dart_pde

Do not stop after the internal generator when CI errors mention missing methods on generated Dart APIs such as RustLibApi; that usually means the package frb_generated.* files are stale.

  1. Inspect the regenerated diff. The final generated files should reflect both sides' hand-written sources.
  2. Commit the merge/rebase resolution.
Show full SKILL.md (181 more words)Show less
Placeholder Commands

For a normal git merge master into a PR branch, this is usually enough for generated paths:

bash
git checkout --ours -- <generated-path>
git add <generated-path>

For a git rebase, remember Git reverses the intuitive meaning of ours/theirs: --ours is the branch being rebased onto, and --theirs is the replayed commit. Since generated files are only placeholders, either side can be acceptable if the file still exists and regeneration will overwrite it. When deletion/addition is involved, prefer the side that leaves the path in the shape expected by the generator, then verify after regeneration.

Validation

After regeneration:

bash
git diff --check
git diff --name-only --diff-filter=U
git status --short

Then run the relevant local Docker-backed checks from the project skills. For broad generated-file conflict repairs, start with the same generation command CI would run, then use CI to validate the full matrix.

If CI later reports more generated diff, add the experience back to this skill so the next repair has a sharper rule.

Commit Shape

Keep the conflict-resolution commit focused:

  • Include semantic hand-written conflict resolutions.
  • Include regenerated outputs from the chosen generation command.
  • Do not include unrelated cleanup.
  • Mention the generation command in the commit message body when useful.

© 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-fix-merge-conflict of fzyzcjy/flutter_rust_bridge.

Open the folder on GitHubat commit 848e438

Compare with similar skills

Frb Fix Merge Conflict 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 Fix Merge Conflict compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Frb Fix Merge Conflict this skillfzyzcjy/flutter_rust_bridge5.4k—~1.2kAutomated safety check: PassMIT
Core API Changelibnativeapi/nativeapi166—~2.5kAutomated safety check: PassMIT
Puremusicqingyueyin/Pure-music188—~907Automated safety check: PassGPL-3.0
Code Guidelinesgetsentry/sentry-dart873—~2.2kAutomated safety check: PassMIT
Bump VersionVeryGoodOpenSource/very_good_analysis477—~2.6kAutomated safety check: PassMIT
MCP Debuggerdebugmcp/mcp-debugger174—~4.2kAutomated safety check: PassMIT

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…

    166 GitHub stars~2.5k tokensUpdated today
    MobileAuto-check passed
  • Puremusic

    qingyueyin/Pure-music

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

    188 GitHub stars~907 tokensUpdated today
    MobileAuto-check passed
  • Code Guidelines

    getsentry/sentry-dart

    Official

    Enforce Sentry Dart/Flutter SDK code guidelines for implementation, refactoring, and review.

    873 GitHub stars~2.2k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Bump Version

    VeryGoodOpenSource/very_good_analysis

    Bumps the verygoodanalysis package to a new version. An agent skill from VeryGoodOpenSource/very_good_analysis.

    477 GitHub stars~2.6k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • MCP Debugger

    debugmcp/mcp-debugger

    A skill your agent uses when investigating a bug, failing test, or unexpected runtime behavior and the mcp-debugger MCP server is available — drives real step-through debuggers (breakpoints, stack…

    174 GitHub stars~4.2k tokensUpdated today
    DevelopmentAuto-check passed
  • Signals Core Advanced Primitives

    rodydavis/signals.dart

    Reference for the advanced parts of Dart's signals_core: reactive primitives, async signals, reactive collections and utility types, with a linked page for each.

    819 GitHub stars~1.7k tokensUpdated 27 days ago
    DevelopmentAuto-check passed

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 yesterday
    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 yesterday
    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 yesterday
    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 yesterday
    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 yesterday
    Auto-check passed
  • Frb Code Generation

    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…

    5.4k GitHub stars~1.5k tokensUpdated yesterday
    Auto-check passed

Works with

Questions about Frb Fix Merge Conflict

What does Frb Fix Merge Conflict do?

A skill your agent uses when resolving merge or rebase conflicts in flutterrustbridge, especially conflicts involving generated files after master/main changed independently from a PR branch. Frb Fix Merge Conflict is an agent skill from fzyzcjy/flutter_rust_bridge. Use when resolving merge or rebase conflicts in flutterrustbridge, especially conflicts involving generated files after master/main changed independently from a PR branch.

When should I use Frb Fix Merge Conflict?

Frb Fix Merge Conflict fits situations like: resolving merge; rebase conflicts in flutterrustbridge; especially conflicts involving generated files after master/main changed independently from a PR branch.

How do I install Frb Fix Merge Conflict in Claude Code?

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

How do I install Frb Fix Merge Conflict in Codex?

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

Can I use Frb Fix Merge Conflict 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-fix-merge-conflict -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-fix-merge-conflict, .gemini/skills/frb-fix-merge-conflict, .github/skills/frb-fix-merge-conflict and .opencode/skills/frb-fix-merge-conflict in your project.

What does Frb Fix Merge Conflict need to run?

Going by SKILL.md and its folder, Frb Fix Merge Conflict needs the command-line tools its instructions call (git). Our summary lists: Docker.

Does Frb Fix Merge Conflict access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Frb Fix Merge Conflict 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 Fix Merge Conflict use?

Frb Fix Merge Conflict 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 Fix Merge Conflict use?

About 1.2k tokens (SKILL.md is roughly 4.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 Frb Fix Merge Conflict?

Skills that share tags, products or a category with Frb Fix Merge Conflict: Core API Change (libnativeapi/nativeapi, 166 stars), Puremusic (qingyueyin/Pure-music, 188 stars), Code Guidelines (getsentry/sentry-dart, 873 stars) and Bump Version (VeryGoodOpenSource/very_good_analysis, 477 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Frb Fix Merge Conflict?

fzyzcjy (a GitHub user) maintains it in fzyzcjy/flutter_rust_bridge, which has 5,446 GitHub stars. The repository holds 28 skills in this directory. The repository was last updated on October 10, 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.