Agent skill

Frb PR Chain Split

by fzyzcjy in fzyzcjy/flutter_rust_bridge

A skill your agent uses when an FRB PR contains independently landable work that should be extracted into predecessor PRs and connected as a GitHub PR chain without wasting full automatic CI.

MITAuto-check passedMobile

Install Frb PR Chain Split

skills CLI
$ npx skills add fzyzcjy/flutter_rust_bridge --skill frb-pr-chain-split -a claude-code

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

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

At a glance

A skill your agent uses when an FRB PR contains independently landable work that should be extracted into predecessor PRs and connected as a GitHub PR chain without wasting full automatic CI.

  • Mobile work in your project
  • Calls gh and git

What it does

Frb PR Chain Split is an agent skill from fzyzcjy/flutter_rust_bridge. Use when an FRB PR contains independently landable work that should be extracted into predecessor PRs and connected as a GitHub PR chain without wasting full automatic CI.

Its SKILL.md is about 1.9k 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 Mobile. It works with GitHub. 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

  • Mobile work in your project

Example prompts

  • “/frb-pr-chain-split”

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:

    • gh
    • git

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

  • Network

    No URLs in SKILL.md. Its commands use gh and 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 PR Chain Split loads about 1.9k tokens when it runs. Until then it costs about 48 tokens; SKILL.md has 973 words of instructions outside code blocks.

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

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). 973 words, ~1,916 tokens.

Download SKILL.mdSave it as .claude/skills/frb-pr-chain-split/SKILL.md (or your agent's skills folder).
name
frb-pr-chain-split
description
Use when an FRB PR contains independently landable work that should be extracted into predecessor PRs and connected as a GitHub PR chain without wasting full automatic CI.

1 When to use

  • Use this skill while developing or reviewing a flutter_rust_bridge PR when part of its diff is independent of the PR's stated objective.
  • Split the independent work proactively. Do not wait for the user to notice the mixed scope.
  • Treat a change as independently landable when it:
    • has a coherent behavior or maintenance objective of its own;
    • can be implemented and validated against the current default branch;
    • does not require the main task's API, schema, generated output, or version change;
    • leaves the main PR smaller and easier to review.
  • Keep inseparable companion changes in the main PR. Generated snapshots, tests, and documentation required by the main change are not independent merely because they touch different files.

2 Choose the chain boundary

Classify every suspicious change before moving commits:

ClassificationDestinationReason
Independent bug fix or hardeningPredecessor PRIt can land and provide value before the main task
Independent mechanical refactorPredecessor PRIt removes review noise from the main task
Main-task prerequisite with its own contractPredecessor PRThe main PR can depend on a separately reviewable foundation
Generated output caused by the main taskMain PRIt cannot land meaningfully by itself
Test or documentation for the main behaviorMain PRSplitting would separate the contract from its implementation
  • Prefer the smallest coherent predecessor, not the smallest textual diff.
  • Create several predecessor PRs when the extracted work contains multiple independent contracts.
  • Order predecessors by dependency. Do not infer order from commit timestamps.

3 Build each predecessor

  • Fetch the canonical default branch before creating branches.
  • Create the first predecessor from the current default branch.
  • Create each later predecessor from the preceding predecessor branch.
  • Reconstruct the coherent final delta. Do not blindly cherry-pick commits that mix predecessor and main-task changes.
  • Include the predecessor's own tests and documentation.
  • Validate the predecessor independently before pushing.
  • Read frb-prepare-pr for generation, lint, test, and review requirements.
  • Use one branch and one PR per independently landable unit.
  • Push every chain branch to the same repository as the main PR. GitHub cannot use an unpushed local branch as a PR base.

4 Construct the GitHub PR chain

  • Build a stacked branch chain, not sibling PRs that all target the default branch:
text
master <- predecessor-a <- predecessor-b <- main-task
  • Use GitHub's official github/gh-stack extension through gh stack.
  • Use gh stack for every stack operation: initialization, restructuring, linking, submission, synchronization, rebasing, pushing, and verification.
  • Never construct or maintain a stack with gh pr create --base, gh pr edit --base, direct API base edits, or branch ancestry alone.
  • Git commands may prepare the commits and linear branch ancestry, but the result is not complete until gh stack creates or updates the native GitHub stack object.
  • Check and install the extension when necessary. The extension requires gh 2.0 or later; a missing gh stack command normally means the extension is absent, not that core gh is outdated.
bash
gh stack --help
gh extension install github/gh-stack
  • For an unpublished main branch, branch it directly from the final predecessor.
  • Initialize and submit a new local stack with gh stack init and gh stack submit.
  • For an already published main PR:
    • create a timestamped backup tag before non-trivial history work;
    • record the original final tree and three-dot PR diff;
    • restack the main branch onto the final predecessor with a fully linear history;
    • do not introduce merge commits because native GitHub stacks require linear ancestry;
    • compare the rebuilt tree and PR delta with the recorded originals before pushing;
    • use --force-with-lease only after those checks when published history must be rewritten.
  • Adopt existing branches or PRs with gh stack link. It pushes branches, creates missing PRs, corrects their base branches, and creates the native GitHub stack object.
  • Create and connect a new stack with commands shaped like:
bash
gh stack init --base master <predecessor-branch> <main-task-branch>
gh stack submit
  • Adopt already prepared branches or existing PRs with:
bash
gh stack link --base master <predecessor-branch> <main-task-branch>
  • Verify local ancestry, native stack metadata, and PR bases:
bash
git merge-base --is-ancestor <predecessor-branch> <main-task-branch>
gh stack view --json
  • Compare three-dot diffs after constructing the chain:
    • <previous-branch>...<predecessor-branch> contains only that predecessor;
    • <final-predecessor-branch>...<main-task-branch> no longer contains the extracted work;
    • the final main-task tree is unchanged except for intentional cleanup.
Show full SKILL.md (317 more words)Show less

5 Conserve CI on predecessor PRs

  • Read frb-ci-filter before manipulating CI.
  • Immediately add ci-manual-dispatch after creating every predecessor PR:
bash
gh pr edit <predecessor-pr-number> --add-label ci-manual-dispatch
  • Add the label even when local validation is already green. Predecessor PRs must not spend the full CI matrix merely because they were split for reviewability.
  • The label action triggers a new pull_request:labeled run. The workflow concurrency group cancels the earlier automatic PR run, and the labeled run produces an empty heavy-job plan.
  • Do not dispatch GitHub CI when local validation is sufficient.
  • When a predecessor specifically needs GitHub-only evidence:
    • keep ci-manual-dispatch on the PR;
    • validate the filter locally;
    • dispatch only the smallest relevant job or matrix entry.
bash
./frb_internal plan-ci --filter '<filter>'
gh workflow run ci.yaml --ref <predecessor-branch> -f 'ci_filter=<filter>'
  • Do not treat filtered CI as full merge-readiness evidence.
  • When a predecessor becomes the next PR to merge, remove ci-manual-dispatch and obtain the normal required CI unless the maintainer explicitly accepts narrower evidence.

6 Completion checks

  • Confirm each predecessor can be reviewed without understanding the main task.
  • Confirm each PR's GitHub base matches its immediate predecessor branch.
  • Confirm Git ancestry matches the GitHub base chain.
  • Confirm the main PR diff excludes all extracted changes.
  • Confirm every predecessor PR has ci-manual-dispatch while it is not awaiting final full CI.
  • Report the PR numbers, branch order, validation performed, and any intentionally dispatched ci_filter.

7 Reliability pitfalls

  • Do not create independent sibling PRs and merely call them a chain.
  • Do not substitute manual PR base edits for gh stack link or gh stack submit.
  • Do not treat matching branch ancestry as sufficient; verify the native stack with gh stack view --json.
  • Do not force-push a published main PR merely to make its history prettier.
  • Do not split generated files away from the generator or source change that owns them.
  • Do not leave an extracted commit duplicated in the visible main PR diff.
  • Do not spend full CI on every dormant predecessor.
  • Do not leave ci-manual-dispatch on the PR when claiming normal full-CI readiness.

© 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-pr-chain-split of fzyzcjy/flutter_rust_bridge.

Open the folder on GitHubat commit 848e438

Compare with similar skills

Frb PR Chain Split 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 PR Chain Split compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Frb PR Chain Split this skillfzyzcjy/flutter_rust_bridge5.4k—~1.9kAutomated safety check: PassMIT
Maa Issue Log AnalysisMaaAssistantArknights/MaaAssistantArknights24k—~4kAutomated safety check: PassAGPL-3.0
Workbuddy Skin Studiocdredfox/workbuddy-skin-studio198—~1.5kAutomated safety check: PassMIT
Fix CrashMartinStyk/apk-analyzer369—~2.5kAutomated safety check: PassGPL-3.0
TriageK9i-0/ccpocket1.1k—~334Automated safety check: PassMIT
PRn0an/VivaDicta131—~1.2kAutomated safety check: PassMIT

Similar skills

  • Maa Issue Log Analysis

    MaaAssistantArknights/MaaAssistantArknights

    分析 MaaAssistantArknights 上游仓库公开 Issue(https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/...

    24k GitHub stars~4k tokensUpdated today
    MobileAuto-check passed
  • Workbuddy Skin Studio

    cdredfox/workbuddy-skin-studio

    Apply a reversible theme/skin to the WorkBuddy desktop app (Tencent AI office agent) via local Chromium DevTools Protocol (CDP) injection.

    198 GitHub stars~1.5k tokensUpdated 2 mo ago
    MobileAuto-check passed
  • Fix Crash

    MartinStyk/apk-analyzer

    A skill your agent uses to fix a specific production crash or non-fatal — pulling its Crashlytics data, finding the linked GitHub issue, root-causing it, reproducing it, fixing it, and verifying the…

    369 GitHub stars~2.5k tokensUpdated 4 days ago
    MobileAuto-check passed
  • Triage

    K9i-0/ccpocket

    GitHub Issueの対応判断と、PRの調査・手直し・検証・マージを行う。PR指定時は取り込みまで進めるのが既定. An agent skill from K9i-0/ccpocket.

    1.1k GitHub stars~334 tokensUpdated 6 days ago
    MobileAuto-check passed
  • PR

    n0an/VivaDicta

    Create a GitHub Pull Request in Claude Code with Claude and Codex review requests and built-in polling workflow

    131 GitHub stars~1.2k tokensUpdated 4 days ago
    MobileAuto-check passed
  • Prcdx

    n0an/VivaDicta

    Create a GitHub Pull Request in Codex with Claude and Codex review requests and standard GitHub polling

    131 GitHub stars~1.4k tokensUpdated 4 days ago
    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 2 days ago
    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 2 days ago
    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 2 days ago
    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 2 days ago
    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 2 days ago
    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 2 days ago
    Auto-check passed

Works with

Categories

Questions about Frb PR Chain Split

What does Frb PR Chain Split do?

A skill your agent uses when an FRB PR contains independently landable work that should be extracted into predecessor PRs and connected as a GitHub PR chain without wasting full automatic CI. Frb PR Chain Split is an agent skill from fzyzcjy/flutter_rust_bridge. Use when an FRB PR contains independently landable work that should be extracted into predecessor PRs and connected as a GitHub PR chain without wasting full automatic CI.

When should I use Frb PR Chain Split?

Frb PR Chain Split fits situations like: mobile work in your project.

How do I install Frb PR Chain Split in Claude Code?

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

How do I install Frb PR Chain Split in Codex?

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

Can I use Frb PR Chain Split 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-pr-chain-split -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-pr-chain-split, .gemini/skills/frb-pr-chain-split, .github/skills/frb-pr-chain-split and .opencode/skills/frb-pr-chain-split in your project.

What does Frb PR Chain Split need to run?

Going by SKILL.md and its folder, Frb PR Chain Split needs the command-line tools its instructions call (gh and git).

Does Frb PR Chain Split access the network?

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

Is Frb PR Chain Split 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 PR Chain Split use?

Frb PR Chain Split 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 PR Chain Split use?

About 1.9k tokens (SKILL.md is roughly 7.7k 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 PR Chain Split?

Skills that share tags, products or a category with Frb PR Chain Split: Maa Issue Log Analysis (MaaAssistantArknights/MaaAssistantArknights, 24k stars), Workbuddy Skin Studio (cdredfox/workbuddy-skin-studio, 198 stars), Fix Crash (MartinStyk/apk-analyzer, 369 stars) and Triage (K9i-0/ccpocket, 1.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Frb PR Chain Split?

fzyzcjy (a GitHub user) maintains it in fzyzcjy/flutter_rust_bridge, which has 5,444 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.