# Flaggems PR review flagos

> Flaggems PR review flagos is an open-source agent skill for developer tools. Reviews FlagGems operator pull requests against structural and naming rules. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/flagos-ai/skills/tree/main/skills/flaggems-pr-review-flagos
- **Repository:** https://github.com/flagos-ai/skills
- **GitHub stars:** 22
- **License:** Apache-2.0
- **Skill name:** flaggems-pr-review-flagos
- **Collection:** https://github.com/flagos-ai/skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill checks pull requests to the FlagGems operator library for formatting and structural conventions. It covers kernel file layout, operator registration across the config files, test and benchmark file pairing, and repository hygiene such as dtype hardcoding and line length. Checks are run by bundled Python scripts that fetch the diff, evaluate 31 structured rules, and produce a findings report.

The workflow verifies GitHub CLI authentication and the local FlagGems checkout before starting, then fetches the PR diff or the local branch diff against upstream master. Findings are graded as error, warning or suggestion, and the reviewer can preview them before anything is posted. Confirmed findings are published as a single GitHub review with inline comments, requesting changes when an error is present.

The skill is scoped to format and convention review and does not judge operator correctness, which is left to CI tests. It needs a GitHub personal access token, Python 3.10 or newer, the gh CLI and the pyyaml package, plus a local clone of the FlagGems repository.

## When your agent uses it

> This skill should be used when reviewing FlagGems operator PRs, performing code review, self-reviewing before submission, or when the user mentions "review PR", "审PR", "代码review", "code review", "review #123", "self-review", "自审", "检查PR", "审查算子", "review operator". It fetches PR diffs, applies FlagGems domain-specific review rules (structural checks, naming, registration, tests, benchmarks), and posts inline review comments directly on GitHub.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs Python scripts](https://github.com/flagos-ai/skills/tree/HEAD/skills/flaggems-pr-review-flagos)
- [No network calls found in its scripts](https://github.com/flagos-ai/skills/tree/HEAD/skills/flaggems-pr-review-flagos)
- [License: Apache-2.0](https://github.com/flagos-ai/skills/tree/HEAD/skills/flaggems-pr-review-flagos)

## Features

- **Structural rule checks:** Runs 31 automated checks across kernel, registration, test, benchmark and cross-file conventions.
- **Operator registration validation:** Confirms new operators are registered in the init file and the YAML and full-config records agree.
- **Naming and logger format:** Checks kernel naming, logger format and benchmark operator names against the YAML identifiers.
- **Test and benchmark presence:** Flags registered operators that lack a matching test file or benchmark file.
- **Inline GitHub review posting:** Turns findings into one GitHub review with inline comments, after an optional preview.
- **Self-review mode:** Reviews the local branch against upstream master and prints findings without posting.

## Good for

- Review a FlagGems operator pull request before merging
- Check my operator branch for registration errors before I submit it
- Find missing test or benchmark files for a new operator
- Post review comments on a contributor's FlagGems PR

## Install

### Claude Code

This skill ships in the `flagos-skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add flagos-ai/skills
/plugin install flagos-skills@flagos-skills
```

Or copy only this skill to `~/.claude/skills/flaggems-pr-review-flagos`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/flagos-ai/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/flaggems-pr-review-flagos &&
cp -R "$tmp/skills/flaggems-pr-review-flagos" ~/.claude/skills/flaggems-pr-review-flagos &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/flaggems-pr-review-flagos` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/flaggems-pr-review-flagos` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/flagos-ai/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/flaggems-pr-review-flagos &&
cp -R "$tmp/skills/flaggems-pr-review-flagos" ~/.agents/skills/flaggems-pr-review-flagos &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/flaggems-pr-review-flagos` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/flaggems-pr-review-flagos` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/flagos-ai/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/flaggems-pr-review-flagos &&
cp -R "$tmp/skills/flaggems-pr-review-flagos" ~/.cursor/skills/flaggems-pr-review-flagos &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/flaggems-pr-review-flagos` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/flagos-ai/skills.git --path skills/flaggems-pr-review-flagos
```

Or copy the folder to `~/.gemini/skills/flaggems-pr-review-flagos` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/flaggems-pr-review-flagos`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/flagos-ai/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/flaggems-pr-review-flagos &&
cp -R "$tmp/skills/flaggems-pr-review-flagos" ~/.copilot/skills/flaggems-pr-review-flagos &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/flaggems-pr-review-flagos` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/flagos-ai/skills.git
```

Then copy `skills/skills/flaggems-pr-review-flagos` into your agent's skills folder as `flaggems-pr-review-flagos`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

A GitHub token set as GH_TOKEN, Python 3.10 or newer, the gh CLI, the pyyaml package, and a local FlagGems repository checkout.

### Does Flaggems PR review flagos check whether the operator computes correct results?

No. It only checks formatting, naming, registration and file structure; operator correctness is covered by CI tests.

### Will Flaggems PR review flagos post comments to GitHub without asking?

By default it previews findings and asks for confirmation. Users can choose to publish directly or keep results local with a dry run.

### Which agents does Flaggems PR review flagos work with?

The content describes it as a Claude Code skill installed through a Claude Code plugin marketplace.

### How do I install Flaggems PR review flagos in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/flaggems-pr-review-flagos to use it in all your projects, or to .claude/skills/flaggems-pr-review-flagos in one project. Or install the flagos-skills plugin, which includes it: /plugin marketplace add flagos-ai/skills, then /plugin install flagos-skills@flagos-skills.

### Does Flaggems PR review flagos run scripts?

Yes. It runs Python scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Flaggems PR review flagos?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Flaggems PR review flagos?

The closest alternatives to Flaggems PR review flagos are Flaggems PR submit flagos, Code review, Code review, PR review and Code review edho ferdian.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Flaggems PR submit flagos](https://ai-powered.com/skills/flaggems-pr-submit-flagos): Flaggems PR submit flagos is an open-source agent skill for developer tools.
- [Code review](https://ai-powered.com/skills/code-review-flutter): Code review is an open-source agent skill for developer tools.
- [Code review](https://ai-powered.com/skills/code-review-mattpocock): Code review is an open-source agent skill for developer tools.
- [PR review](https://ai-powered.com/skills/pr-review): PR review is an open-source agent skill for developer tools.
- [Code review edho ferdian](https://ai-powered.com/skills/code-review-edho-ferdian): Code review edho ferdian is an open-source agent skill for developer tools.
- [Go code review](https://ai-powered.com/skills/go-code-review): Go code review is an open-source agent skill for developer tools.
- [Shiplog review](https://ai-powered.com/skills/shiplog-review): Shiplog review is an open-source agent skill for developer tools.
- [Review](https://ai-powered.com/skills/review-diffpal): Review is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/flaggems-pr-review-flagos
