yulongwu-x

BriefCheck — AI skill for Claude Code

AI community

Catch hallucinated diff citations in any AI PR review — zero-dependency Python CLI (briefcheck check / verify), Agent Skill, and GitHub Action.

How to install BriefCheck

This entry records only its repository, not the path inside it, so there is no exact command to give. Open yulongwu-x/BriefCheck and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What BriefCheck does

Catch hallucinated diff citations in any AI PR review — zero-dependency Python CLI (briefcheck check / verify), Agent Skill, and GitHub Action.

Alternatives in AI

  • Image Use — Use your ChatGPT subscription to generate images from the command line — no OPENAI_API_KEY, no gateway, no dae 373 ★
  • The Pair — Open-source AI pair programming for desktop: a Mentor + Executor agent cross-check each other's code to catch 358 ★
  • ChatGPT Imagegen — Use your ChatGPT subscription to generate images from the command line — no OPENAI_API_KEY, no gateway, no dae 333 ★

README

BriefCheck

[![CI](https://github.com/yulongwu-x/BriefCheck/actions/workflows/ci.yml/badge.svg)](https://github.com/yulongwu-x/BriefCheck/actions/workflows/ci.yml) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)

English | [简体中文](README.zh-CN.md) · [v0.4.0 release](https://github.com/yulongwu-x/BriefCheck/releases/tag/v0.4.0) · [GitHub Action setup](#use-the-github-action)

BriefCheck catches hallucinated diff citations in AI PR reviews and verifies pull requests against GitHub issue acceptance criteria. Pipe **any** AI review (Claude Code, Codex, Cursor, or custom prompts) through `briefcheck check`, or pair the **Agent Skill**, **zero-dependency Python CLI**, and **GitHub Action** for end-to-end acceptance audits.

![BriefCheck deterministic citation verification demo](docs/briefcheck-demo.png)

Pipe any AI review through `briefcheck check`

Already using Claude Code, Codex, or your own PR-review prompt? Verify every `path:line` citation in free-form Markdown against the real git diff (reads from `stdin` by default, skips fenced code blocks, supports `--git-base`, `--staged`, `--diff`, or `--pr`):

# Check Claude Code or Codex output against your branch diff
claude -p "Review git diff with file:line citations" | briefcheck check --git-base origin/main
codex exec "Review my staged changes with file:line citations" | briefcheck check --staged

# Or check any saved Markdown review directly against a GitHub PR
briefcheck check --input review.md --pr owner/repo#123 --require-citations

Catch bad citations before posting

With Python 3.10+ you can run the bundled demo without a PR or API key.

python -m pip install https://github.com/yulongwu-x/BriefCheck/releases/download/v0.4.0/briefcheck-0.4.0-py3-none-any.whl
python -m briefcheck demo

This review cites `auth.py:3` as a new line even though the diff deleted it. It also cites `auth.py:99`, which is outside the visible diff. `briefcheck verify` reports both err