code-reviewer

code-reviewer is a cursor rule for Cursor from galyarderlabs/galyarder-framework. It costs 34 tokens per session (932 once invoked), scanned A, a copy of architect, MIT.

A code-review specialist that checks software changes for quality, security, and ease of maintenance.

In plain words
What is it for?
Use it after modifying code to review the changes and identify issues that need attention.
Why use it?
It helps catch problems soon after code is written or changed, before they reach users or become expensive to correct.

Cursor rule for Cursor

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 rules/galyarderlabs/galyarder-framework/code-reviewer
Clone the repo
git clone --depth 1 https://github.com/galyarderlabs/galyarder-framework

Made for: Cursor.

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 code-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/rules/galyarderlabs/galyarder-framework/code-reviewer.svg)](https://agentmods.dev/rules/galyarderlabs/galyarder-framework/code-reviewer)
Your own site
<a href="https://agentmods.dev/rules/galyarderlabs/galyarder-framework/code-reviewer"><img src="https://agentmods.dev/badge/rules/galyarderlabs/galyarder-framework/code-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 932 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 77% copy Near-identical to another mod 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 $0.00034 $0.00932
Opus 5 $0.00017 $0.00466
Sonnet 5 $0.00007 $0.00186
Haiku 4.5 $0.00003 $0.00093

Measured 5d ago against content hash 8375a68bc7b0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

code-reviewer 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.

Origin

This is a copy

77% identical to architect — 245 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.cursor/rules/code-reviewer.mdc · 79 lines

How it starts

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

THE Agentic Company Framework GLOBAL PROTOCOLS (MANDATORY)

1. Token Economy: The RTK Prefix

The local environment is optimized with rtk (Rust Token Killer). Always use the rtk prefix for shell commands (e.g., rtk npm test) to minimize token consumption.

  • Example: rtk npm test, rtk git status, rtk ls -la.
  • Note: Never use raw bash commands unless rtk is unavailable.

2. Traceability: Linear is Law

No cognitive labor happens outside of a tracked ticket. You operate exclusively within the bounds of a project-scoped issue.

  • Project Discovery: Before any work, check if a Linear project exists for the current workspace. If not, CREATE it.
  • Issue Creation: ALWAYS create or link an issue WITHIN the specific Linear project. NEVER operate on 'No Project' issues.
  • Status: Transition issues to "In Progress" before coding and "Done" after verification.

3. Cognitive Integrity: Scratchpad Reasoning

Before executing any high-impact tool (write_file, replace, run_shell_command), it is standard protocol to output a <scratchpad> block demonstrating your internal reasoning, trade-off analysis, and specific execution plan.

4. Technical Integrity: The industry experts Principles

Combat AI slop through rigid adherence to the four principles of Andrej industry experts:

  1. Think Before Coding: Don't guess. If uncertain, STOP and ASK. State assumptions explicitly. If ambiguity exists, present multiple interpretationsdon't pick silently. Push back if a simpler approach exists.
  2. Simplicity First: Implement the minimum code that solves the problem. No speculative abstractions. If 200 lines could be 50, rewrite it. No "configurability" unless requested.
  3. Surgical Changes: Touch ONLY what is necessary. Every changed line must trace to the request. Don't "improve" adjacent code or refactor things that aren't broken. Remove orphans YOUR changes made, but leave pre-existing dead code (mention it instead).
  4. Goal-Driven Execution: Define success criteria via tests-first. Loop until verified.
    • Multi-step tasks MUST use this syntax:
      1. [Step] verify: [check]
      2. [Step] verify: [check]

Read the full file on GitHub · 79 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 · 79 lines · 34 tokens per session scan A 8375a68bc7b0

Subscribe to this mod's changes

code-reviewer is a cursor rule published in the GitHub repository galyarderlabs/galyarder-framework (22 stars, last pushed 1mo ago), licensed MIT. It adds 34 tokens to every session and 932 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 77% identical to architect, differing in 245 lines, and is treated as a copy.