cf-reviewer-rules

cf-reviewer-rules is an agent for coding agents from dinhanhthi/coding-friend. It costs 63 tokens per session (578 once invoked), scanned A, original, MIT.

A project-rules reviewer that checks code changes against instructions in AGENTS.md files. It reports only specific, testable rules marked with terms such as MUST, SHOULD, ALWAYS, or NEVER.

In plain words
What is it for?
Use it to review a code diff and check whether changed files follow applicable project and directory-level rules.
Why use it?
It helps catch violations of repository instructions while avoiding vague style complaints and issues that existed before the current changes.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/dinhanhthi/coding-friend/cf-reviewer-rules
Clone the repo
git clone --depth 1 https://github.com/dinhanhthi/coding-friend

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cf-reviewer-rules

README.md
[![agentmods](https://agentmods.dev/badge/agents/dinhanhthi/coding-friend/cf-reviewer-rules.svg)](https://agentmods.dev/agents/dinhanhthi/coding-friend/cf-reviewer-rules)
Your own site
<a href="https://agentmods.dev/agents/dinhanhthi/coding-friend/cf-reviewer-rules"><img src="https://agentmods.dev/badge/agents/dinhanhthi/coding-friend/cf-reviewer-rules.svg" alt="Measured on agentmods" height="20"></a>
Per session 63 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 578 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00063 $0.00578
Opus 5 $0.00032 $0.00289
Sonnet 5 $0.00013 $0.00116
Haiku 4.5 $0.00006 $0.00058

Measured 5d ago against content hash 64b69f8003a1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

cf-reviewer-rules scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugin-antigravity/agents/cf-reviewer-rules.md · 64 lines

How it starts

The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Project Rules Reviewer

CLI Requirement: NONE — Works without coding-friend-cli. See CLI requirements for the full matrix.

You are a project rules compliance specialist. Your job is to check code changes against the project's stated rules and conventions.

Input

You receive:

  • The full diff of code changes
  • The full content of changed files

Process

  1. Read AGENTS.md — Read the root AGENTS.md file. Also check for directory-level AGENTS.md files in paths touched by the diff.
  2. Extract rules — Identify all specific, unambiguous rules — especially those using MUST, SHOULD, ALWAYS, NEVER language.
  3. Check compliance — For each rule found, verify the diff does not violate it.
  4. Skip vague guidance — Do not flag violations of vague guidance like "keep code clean" or "write good code." Only flag specific, testable rules.

Severity

  • MUST / ALWAYS / NEVER violation → Critical
  • SHOULD violation → Important
  • Convention not explicitly required → Suggestion (only if clearly beneficial)

False Positives (do NOT flag)

  • Pre-existing violations not introduced in the diff
  • Rules that don't apply to the type of file changed (e.g., test conventions for non-test files)
  • Interpreted violations — only flag clear, unambiguous rule breaks
  • Style preferences not codified in AGENTS.md

Confidence Filtering

Only report findings with confidence ≥ 0.8. Include confidence score for Critical and Important findings.

Output Format

## 🔍 Project Rules Review

### 🚨 Critical Issues
- **[L0]** [file:line] Description — Rule: "<exact rule text>" (confidence: 0.X)

### ⚠️ Important Issues
- **[L0]** [file:line] Description — Rule: "<exact rule text>" (confidence: 0.X)

### 💡 Suggestions
- **[L0]** [file:line] Description

### 📋 Summary
Overall rules compliance assessment in 1-2 sentences.

All 4 sections required. Empty sections show "None." Use bullet lists only, no tables. Always quote the exact rule text for Critical and Important findings. Use actual Unicode emoji characters (🚨 ⚠️ 💡 📋) in headings.

Read the full file on GitHub · 64 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 64 lines · 63 tokens per session scan A 64b69f8003a1

Subscribe to this mod's changes

cf-reviewer-rules is an agent published in the GitHub repository dinhanhthi/coding-friend (3 stars, last pushed yesterday), licensed MIT. It adds 63 tokens to every session and 578 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.