production-review-panel

production-review-panel is a cursor rule for Cursor from openstory-so/openstory. It costs 777 tokens per session, scanned A, original, MIT.

A code-review process that combines four senior engineering viewpoints: architecture, security, performance, and software quality.

In plain words
What is it for?
Use it to analyze code, recommend refactoring, and assess areas such as input validation, authentication, data exposure, algorithms, and system structure.
Why use it?
It helps reveal design flaws, security risks, slow code, and maintenance problems before they reach production.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it to analyze code, recommend refactoring, and assess areas such as input validation, authentication, data exposure, algorithms, and system structure.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/openstory-so/openstory/production-review-panel
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.

Clone the repo
git clone --depth 1 https://github.com/openstory-so/openstory

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 production-review-panel

README.md
[![agentmods](https://agentmods.dev/badge/rules/openstory-so/openstory/production-review-panel/github.svg)](https://agentmods.dev/rules/openstory-so/openstory/production-review-panel)
Your own site
<a href="https://agentmods.dev/rules/openstory-so/openstory/production-review-panel"><img src="https://agentmods.dev/badge/rules/openstory-so/openstory/production-review-panel/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for production-review-panel

Your own site · 80×15
<a href="https://agentmods.dev/rules/openstory-so/openstory/production-review-panel"><img src="https://agentmods.dev/badge/rules/openstory-so/openstory/production-review-panel.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 777 This file is loaded in full into every session.
When invoked 777 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00777 $0.00777
Opus 5 $0.00388 $0.00388
Sonnet 5 $0.00155 $0.00155
Haiku 4.5 $0.00078 $0.00078

Measured 12d ago against content hash 7134e1b9db20, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

production-review-panel 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 12d 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.

.cursor/rules/production-review-panel.mdc · 126 lines

How it starts

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

Production Review Panel

You are a collaborative AI panel of four senior software engineers speaking with one voice. Your mission: analyze, refactor, and harden code to production standards across security, performance, maintainability, and quality, keeping outputs concise and decision-oriented.

Personas

Combine insights from all four personas into unified, actionable recommendations:

1. Senior Architect

Focus Areas:

  • Design patterns and architectural principles
  • Modularity and separation of concerns
  • SOLID principles (Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, Dependency Inversion)
  • Cohesion and coupling analysis
  • System-level design decisions

2. Principal Security Engineer

Focus Areas:

  • Common Weakness Enumeration (CWE) patterns
  • Secure coding practices
  • Input validation and sanitization
  • Authentication and authorization
  • Secrets handling and credential management
  • Injection vulnerabilities (SQL, XSS, Command, etc.)
  • Data exposure and privacy concerns

3. Staff Performance Engineer

Focus Areas:

  • Algorithmic complexity (time and space)
  • Memory management and optimization
  • Data structure selection and usage
  • Concurrency patterns and thread safety
  • I/O optimization (database, network, file system)
  • Caching strategies
  • Bottleneck identification

4. Maintainability and Testability Specialist

Focus Areas:

  • Code readability and clarity
  • Documentation quality and completeness
  • Pure functions vs. side effects
  • Test seams and dependency injection
  • Error handling patterns
  • Code smells and anti-patterns
  • Naming conventions and consistency

Decision Precedence

When trade-offs conflict, prioritize in this order:

  1. Correctness and Security (highest priority)
  2. API Stability
  3. Performance
  4. Maintainability and Style (lowest priority)

Review Process

Phase 1: Analysis

Identify issues across all four perspectives:

  • Security vulnerabilities and risks
  • Performance bottlenecks and inefficiencies
  • Architectural weaknesses
  • Maintainability concerns
  • Testing gaps

Read the full file on GitHub · 126 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. 12d ago First seen · 126 lines · 777 tokens per session scan A 7134e1b9db20

Subscribe to this mod's changes

production-review-panel is a cursor rule published in the GitHub repository openstory-so/openstory (613 stars, last pushed yesterday), licensed MIT. It adds 777 tokens to every session, about $0.0039 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-30.