Agent skill

Frb Fix Codecov

by fzyzcjy in fzyzcjy/flutter_rust_bridge

A skill your agent uses when a flutterrustbridge PR has Codecov patch or project coverage drops, Codecov comments mention missing lines, or you need to decide whether to add tests or justified…

MITAuto-check passedMobile

Install Frb Fix Codecov

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

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

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

At a glance

A skill your agent uses when a flutterrustbridge PR has Codecov patch or project coverage drops, Codecov comments mention missing lines, or you need to decide whether to add tests or justified…

  • Works in 2 steps: Collect the Codecov Facts → Choose the Fix
  • A flutterrustbridge PR has Codecov patch
  • SKILL.md covers Overview, Workflow and Verification
  • Runs Python scripts from its folder; calls python3 and git

What it does

Frb Fix Codecov is an agent skill from fzyzcjy/flutter_rust_bridge. Use when a flutterrustbridge PR has Codecov patch or project coverage drops, Codecov comments mention missing lines, or you need to decide whether to add tests or justified coverage-ignore markers.

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `codecov_analyzer.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

  • A flutterrustbridge PR has Codecov patch
  • Project coverage drops
  • Codecov comments mention missing lines
  • You need to decide whether to add tests

Example prompts

  • “/frb-fix-codecov”

Requirements

  • Python 3

Workflow steps

2 steps, taken from the step headings in SKILL.md.

  1. Collect the Codecov Facts
  2. Choose the Fix

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:

    • python3
    • 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 Codecov loads about 1.6k tokens when it runs. Until then it costs about 54 tokens; SKILL.md has 811 words of instructions outside code blocks.

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

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). 811 words, ~1,606 tokens.

Download SKILL.mdSave it as .claude/skills/frb-fix-codecov/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
frb-fix-codecov
description
Use when a flutter_rust_bridge PR has Codecov patch or project coverage drops, Codecov comments mention missing lines, or you need to decide whether to add tests or justified coverage-ignore markers.

FRB Fix Codecov

Overview

Use this skill to turn a vague Codecov PR comment into concrete file/line facts, then decide whether the right fix is real coverage or a narrow, justified ignore marker.

Workflow

Step 1: Collect the Codecov Facts

Start from the latest PR head. Codecov comments can be edited and old comments/checks can describe stale commits.

Fetch the PR metadata, Codecov comments/checks, and the full Codecov report into a local temporary directory with the bundled analyzer:

bash
python3 .claude/skills/frb-fix-codecov/codecov_analyzer.py download --pr <number>
python3 .claude/skills/frb-fix-codecov/codecov_analyzer.py analyze --input-dir <output_dir>

download writes pr.json, check-runs.json, codecov-report.json, codecov-comment.md, codecov-checks.json, and codecov-files-summary.json under /private/tmp/frb-codecov-<pr>-<timestamp>/ by default. Use download --output-dir <dir> to choose a stable path for debugging or examples.

analyze is offline: it reads the downloaded directory, writes missing-patch-lines.txt, and prints the exact missing patch lines.

The full Codecov report?sha= endpoint is preferred because it returns all files in one response. Codecov also has file_report/<urlencoded-path>?sha=<sha> for one file; use it only when the full report is too large or you need to re-check a path precisely.

Read both Codecov statuses:

  • codecov/patch: coverage on changed lines only. This is the usual PR blocker.
  • codecov/project: whole-project coverage delta. A green project status does not make a red patch status irrelevant.

The GitHub comment usually lists files and missing counts, not precise line numbers. Compute exact missing patch lines by intersecting Codecov's missing lines with Git's added/changed lines. In Codecov's line_coverage, FRB's uploaded custom Rust coverage JSON uses:

  • null: not coverable or ignored
  • 0: covered
  • positive number: missing

The analyzer computes exact missing patch lines by intersecting the saved Codecov report with git diff --unified=0 <base_sha> <head_sha>. Read missing-patch-lines.txt first, then use the raw JSON files when the summary does not explain the status.

If the computed output disagrees with Codecov:

  • Check whether the Codecov comment/check describes a different HEAD_SHA.
  • Check whether Git has both SHAs locally; fetch the PR head/base if needed.
  • For a truncated file path in the comment, get the full path from the Codecov URL's filepath= query.
  • Verify Misc :: Codecov downloaded all expected *-coverage artifacts before upload; use the user's tom-ci skill for GitHub Actions logs.
Step 2: Choose the Fix
Option A: Exclude Non-Meaningful Coverage

In this repo the Rust-side marker is frb-coverage:ignore-start / frb-coverage:ignore-end (not frb-codecov-ignore). It is implemented by tools/frb_internal/lib/src/utils/codecov_transformer.dart, which removes those Rust lines before upload.

Dart-side code uses normal Dart coverage markers:

dart
// coverage:ignore-start
...
// coverage:ignore-end

Only use ignore markers when the code genuinely should not be judged by Codecov. Existing FRB examples usually have an explanatory comment immediately above the marker. Acceptable reasons include:

  • The code is definitely executed, but the coverage tool cannot see it, especially build-time or macro-time execution.
  • llvm-cov reports a branch as uncovered even though a focused test exercises it.
  • The branch is warning-only, defensive, tool-missing, OS-specific, or otherwise not worth forcing in normal CI.
  • The line is generated glue, FFI shape glue, or syntactic boilerplate where testing it would assert implementation trivia rather than behavior.

When adding Rust ignores, keep the ignored range as small as possible and write the reason first:

rust
// This is executed at build time, but llvm-cov does not observe that path.
// frb-coverage:ignore-start
...
// frb-coverage:ignore-end

Do not use ignore markers merely because adding a test is inconvenient. If the reason cannot be explained in one short public comment, treat the line as coverage-relevant.

Show full SKILL.md (289 more words)Show less
Option B: Add Meaningful Coverage

Investigate why each exact missing line is not covered.

Prefer real coverage when the uncovered line represents product behavior that should keep working. Good candidates for tests:

  • Pure functions, parsers, config decisions, path computations, generated text decisions, and error handling.
  • Integration/codegen behavior where the missing line affects generated files or public workflow behavior.
  • Regression-prone behavior introduced or modified by the PR.

For feature behavior, default to an E2E-style regression first, especially by extending an existing pure_dart scenario when that can exercise the real generated workflow.

Only fall back to narrower tests when the E2E route is brittle, too expensive, or cannot reach the behavior:

  • Add a codegen or integration test when generated output proves the behavior but a full E2E case is awkward.
  • Unit test the function directly when the behavior is local, stable, and not meaningfully tied to an FRB workflow.

Use the relevant skills after choosing the test path:

  • frb-develop-feature for feature/bug regression coverage.
  • frb-test for selecting local test commands.
  • frb-dev-env before running FRB tests or setup commands in Tom's environment.

If the behavior matters but a focused test would be brittle, very expensive, or require a product decision, summarize the exact missing lines, the suspected reason they are uncovered, and the realistic options, then ask the human which tradeoff to take.

Verification

After changing tests or ignore markers:

  1. Re-read the touched files immediately before editing.
  2. Commit the logical fix before long verification, following Tom's commit policy.
  3. Run the focused local test command when practical.
  4. Push and check the latest codecov/patch and codecov/project statuses on the new head.
  5. If Codecov is still red, repeat the workflow from the latest exact report instead of reusing stale line numbers.

© 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 1 other file in .claude/skills/frb-fix-codecov of fzyzcjy/flutter_rust_bridge.

  • SKILL.md
  • codecov_analyzer.py

Open the folder on GitHubat commit 848e438

Compare with similar skills

Frb Fix Codecov 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 Codecov compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Frb Fix Codecov this skillfzyzcjy/flutter_rust_bridge5.4k—~1.6kAutomated safety check: PassMIT
Puremusicqingyueyin/Pure-music186—~907Automated safety check: PassGPL-3.0
Core API Changelibnativeapi/nativeapi164—~2.5kAutomated safety check: PassMIT
Winapp CLIboshi-xixixi/TraeSkill276—~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…

    164 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.

    276 GitHub stars~1.9k tokensUpdated 5 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 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 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

Works with

Categories

Questions about Frb Fix Codecov

What does Frb Fix Codecov do?

A skill your agent uses when a flutterrustbridge PR has Codecov patch or project coverage drops, Codecov comments mention missing lines, or you need to decide whether to add tests or justified…. Frb Fix Codecov is an agent skill from fzyzcjy/flutter_rust_bridge. Use when a flutterrustbridge PR has Codecov patch or project coverage drops, Codecov comments mention missing lines, or you need to decide whether to add tests or justified coverage-ignore markers.

When should I use Frb Fix Codecov?

Frb Fix Codecov fits situations like: A flutterrustbridge PR has Codecov patch; project coverage drops; codecov comments mention missing lines; you need to decide whether to add tests.

How do I install Frb Fix Codecov in Claude Code?

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

How do I install Frb Fix Codecov in Codex?

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

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

What does Frb Fix Codecov need to run?

Going by SKILL.md and its folder, Frb Fix Codecov needs Python for the scripts in its folder and the command-line tools its instructions call (python3 and git). Our summary lists: Python 3.

Does Frb Fix Codecov 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 Codecov 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 Codecov use?

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

About 1.6k tokens (SKILL.md is roughly 6.4k 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 Codecov?

Skills that share tags, products or a category with Frb Fix Codecov: Puremusic (qingyueyin/Pure-music, 186 stars), Core API Change (libnativeapi/nativeapi, 164 stars), Winapp CLI (boshi-xixixi/TraeSkill, 276 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 Fix Codecov?

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.