Agent skill

Frb Categorize Code Diff

by fzyzcjy in 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.

MITAuto-check passedMobile

Install Frb Categorize Code Diff

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

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

GitHub CLI
$ gh skill install fzyzcjy/flutter_rust_bridge frb-categorize-code-diff --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-categorize-code-diff .claude/skills/frb-categorize-code-diff && 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-categorize-code-diff
GitHub stars
5.4k
Token cost
~524 tokens
SKILL.md length
231 words
Files
3
Skills in repo
28
Repo updated
First seen
Licence
MIT

At a glance

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

  • Classifying a flutterrustbridge branch
  • SKILL.md covers 2 Run, 3 Interpret, 4 Reliability and 5 Validation
  • Runs Python scripts from its folder; calls uv
  • PR diff into test and non-test changes

What it does

Frb Categorize Code Diff is an agent skill from fzyzcjy/flutter_rust_bridge. Use when classifying a flutterrustbridge branch or PR diff into test and non-test changes, including colocated Rust test modules.

Its SKILL.md is about 520 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `categorize_code_diff.py` and `test_categorize_code_diff.py`).

It sits in Mobile, covering 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

  • Classifying a flutterrustbridge branch
  • PR diff into test and non-test changes
  • Including colocated Rust test modules

Example prompts

  • “/frb-categorize-code-diff”

Requirements

  • Python 3

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

    Ships script files (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • uv

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

  • Network

    No URLs in SKILL.md. Its commands use uv, 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 Categorize Code Diff loads about 524 tokens when it runs. Until then it costs about 39 tokens; SKILL.md has 231 words of instructions outside code blocks.

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

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). 231 words, ~524 tokens.

Download SKILL.mdSave it as .claude/skills/frb-categorize-code-diff/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
frb-categorize-code-diff
description
Use when classifying a flutter_rust_bridge branch or PR diff into test and non-test changes, including colocated Rust test modules.

1 When to use

  • Use this skill to answer which changes in a branch or PR are tests and which are not.
  • Use the repository script instead of classifying paths by hand. Rust tests are commonly colocated in production .rs files.

2 Run

  • Fetch the PR base before relying on origin/master.
  • Run from the repository root:
bash
uv run --no-project .claude/skills/frb-categorize-code-diff/categorize_code_diff.py --base origin/master --head HEAD
  • Add --json when another tool will consume the result.
  • Pass the PR's actual base revision when it is not origin/master.

3 Interpret

  • test-only: every changed line is in a dedicated test path or a recognized colocated Rust test region.
  • non-test-only: every changed line is outside recognized test code.
  • mixed: the file contains both test and non-test changed lines.
  • unclassified: the diff cannot be mapped confidently, such as a binary patch.
  • Treat the non-test list as conservative. Unknown code is non-test rather than silently counted as test.

4 Reliability

  • The script compares base...head, matching GitHub pull request diff semantics.
  • Dedicated test paths include test/, tests/, test_fixtures/, and conventional test filenames.
  • Rust inline classification recognizes brace-delimited items preceded by #[cfg(test)] or #[test] in both the base and head revisions.
  • Re-run after every PR update. Line identities and rename targets may change.
  • Inspect mixed files manually before claiming that a PR contains no production changes.

5 Validation

  • Run the script tests after changing its classification logic:
bash
PYTHONDONTWRITEBYTECODE=1 uv run --no-project --with pytest --with typer pytest -q .claude/skills/frb-categorize-code-diff/test_categorize_code_diff.py
  • Keep PYTHONDONTWRITEBYTECODE=1; otherwise pytest leaves an untracked __pycache__/ inside the skill directory.

© 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

SKILL.md and 2 other files in .claude/skills/frb-categorize-code-diff of fzyzcjy/flutter_rust_bridge.

  • SKILL.md
  • categorize_code_diff.py
  • test_categorize_code_diff.py

Open the folder on GitHubat commit 848e438

Compare with similar skills

Frb Categorize Code Diff 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 Categorize Code Diff compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Frb Categorize Code Diff this skillfzyzcjy/flutter_rust_bridge5.4k—~524Automated safety check: PassMIT
Puremusicqingyueyin/Pure-music186—~907Automated safety check: PassGPL-3.0
Core API Changelibnativeapi/nativeapi161—~2.5kAutomated safety check: PassMIT
Winapp CLIboshi-xixixi/TraeSkill275—~1.9kAutomated safety check: PassMIT
Spec To Repoalirezarezvani/claude-skills28k—~2.7kAutomated safety check: NotesMIT
Engine Whats Newflutter/flutter179k—~978Automated safety check: PassBSD-3-Clause

Similar skills

  • Puremusic

    qingyueyin/Pure-music

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

    186 GitHub stars~907 tokensUpdated today
    MobileAuto-check passed
  • 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
  • Spec To Repo

    alirezarezvani/claude-skills

    A skill your agent uses when the user says 'build me an app', 'create a project from this spec', 'scaffold a new repo', 'generate a starter', 'turn this idea into code', 'bootstrap a project', 'I…

    28k GitHub stars~2.7k tokensUpdated 1 mo ago
    Backend & APIsAuto-check: notes
  • Engine Whats New

    flutter/flutter

    Generates the "what's new" release summary and diff file for changes in the Flutter engine (//engine/src/flutter) between two releases (e.g., 3.47 vs 3.44).

    179k GitHub stars~978 tokensUpdated today
    MobileAuto-check passed
  • Flutter Cherry Pick

    flutter/flutter

    How to land a formal cherry-pick of a merged PR for the flutter/flutter repo stable or beta channel.

    179k GitHub stars~1.8k tokensUpdated today
    MobileAuto-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 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 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 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 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

Categories

Questions about Frb Categorize Code Diff

What does Frb Categorize Code Diff do?

A skill your agent uses when classifying a flutterrustbridge branch or PR diff into test and non-test changes, including colocated Rust test modules. Frb Categorize Code Diff is an agent skill from fzyzcjy/flutter_rust_bridge. Use when classifying a flutterrustbridge branch or PR diff into test and non-test changes, including colocated Rust test modules.

When should I use Frb Categorize Code Diff?

Frb Categorize Code Diff fits situations like: classifying a flutterrustbridge branch; PR diff into test and non-test changes; including colocated Rust test modules.

How do I install Frb Categorize Code Diff in Claude Code?

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

How do I install Frb Categorize Code Diff in Codex?

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

Can I use Frb Categorize Code Diff 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-categorize-code-diff -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-categorize-code-diff, .gemini/skills/frb-categorize-code-diff, .github/skills/frb-categorize-code-diff and .opencode/skills/frb-categorize-code-diff in your project.

What does Frb Categorize Code Diff need to run?

Going by SKILL.md and its folder, Frb Categorize Code Diff needs Python for the scripts in its folder and the command-line tools its instructions call (uv). Our summary lists: Python 3.

Does Frb Categorize Code Diff access the network?

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

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

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

About 524 tokens (SKILL.md is roughly 2.1k 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 Categorize Code Diff?

Skills that share tags, products or a category with Frb Categorize Code Diff: Puremusic (qingyueyin/Pure-music, 186 stars), Core API Change (libnativeapi/nativeapi, 161 stars), Winapp CLI (boshi-xixixi/TraeSkill, 275 stars) and Spec To Repo (alirezarezvani/claude-skills, 28k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Frb Categorize Code Diff?

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.