code-review-template

code-review-template is a cursor rule for Cursor from Opti-kjh/palette. It costs 1,393 tokens per session, scanned A, original, MIT.

A code-review checklist for React Native and TypeScript projects. It covers side effects, project structure, type safety, style, state, navigation, and performance.

In plain words
What is it for?
Use it when reviewing React Native code, especially changes involving shared state, APIs, navigation, caching, lists, or TypeScript types.
Why use it?
It helps reviewers check important areas consistently and spot changes that could break existing features or project conventions.

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/opti-kjh/palette/code-review-template
Clone the repo
git clone --depth 1 https://github.com/Opti-kjh/palette

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-review-template

README.md
[![agentmods](https://agentmods.dev/badge/rules/opti-kjh/palette/code-review-template.svg)](https://agentmods.dev/rules/opti-kjh/palette/code-review-template)
Your own site
<a href="https://agentmods.dev/rules/opti-kjh/palette/code-review-template"><img src="https://agentmods.dev/badge/rules/opti-kjh/palette/code-review-template.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,393 This file is loaded in full into every session.
When invoked 1,393 The same file — it is already loaded in full.
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 $0.01393 $0.01393
Opus 5 $0.00696 $0.00696
Sonnet 5 $0.00279 $0.00279
Haiku 4.5 $0.00139 $0.00139

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

Security

Grade A, and why

code-review-template 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 3d 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/code-review-template.mdc · 133 lines

How it starts

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

코드 리뷰 프롬프트 템플릿

이 템플릿은 코드 리뷰 시 체계적으로 검토하기 위한 가이드입니다.

리뷰 전 확인사항

1. 사이드이펙트 점검

  • 변경된 코드가 기존 기능에 영향을 주는가?
  • 다른 모듈/컴포넌트와의 의존성이 있는가?
  • 전역 상태나 캐시에 영향을 주는가?
  • API 호출 패턴이 변경되었는가?

2. 아키텍처 및 구조

  • MVVM 패턴을 올바르게 따르고 있는가?
  • Feature-based 구조를 준수하고 있는가?
  • 디렉토리 구조가 프로젝트 규칙에 맞는가?
    • features/: 도메인별 기능
    • services/: HTTP 호출만 담당
    • components/: 공용 UI 컴포넌트
    • hooks/: 범용 훅
    • stores/: 전역 Zustand store

3. TypeScript 타입 안전성

  • 모든 타입이 명확히 정의되어 있는가?
  • any 타입 사용이 최소화되어 있는가?
  • 인터페이스와 타입이 적절히 분리되어 있는가?
  • 타입 정의가 src/types/ 또는 feature 내 types.ts에 있는가?

4. 코드 스타일 및 품질

  • 네이밍 컨벤션이 준수되는가?
    • 컴포넌트: PascalCase
    • 함수/변수: camelCase
    • 상수: UPPER_SNAKE_CASE
  • ESLint 규칙을 준수하는가?
  • 불필요한 주석이나 코드가 없는가?
  • 함수와 기능 단위로 적절한 주석이 있는가?

5. React Native 특화 검토

  • 네비게이션 타입 안전성이 보장되는가?
    • RootStackParamList 타입 활용
    • 화면 전환 시 적절한 파라미터 전달
  • 상태 관리가 적절한가?
    • 로컬 상태: useState, useEffect
    • 서버 상태: TanStack Query (Query Key 규칙 준수: ['domain','resource',params])
    • 전역 UI 상태: Zustand (feature별 store 분리)
  • 스타일링이 StyleSheet.create()를 사용하는가?
    • 일관된 색상과 스페이싱 활용
    • 반응형 디자인 고려
  • 성능 최적화가 고려되었는가?
    • 불필요한 리렌더링 방지
    • FlatList 사용 (리스트 성능)
    • 이미지 최적화 (imageCacheService 활용)
    • 캐시 정책 준수 (ETag·LRU·per-room)

6. 데이터 관리

  • API 전용 데이터 처리 규칙을 준수하는가?
    • 하드코딩된 데이터 배열/객체 사용 금지
    • 기본 데이터, 예시 데이터, 더미 데이터 사용 금지
    • 모든 서버 데이터는 API를 통해서만 처리
  • AsyncStorage 사용이 적절한가?
    • 사용자 데이터만 로컬 저장
    • 서버 데이터는 API에서만 가져오기
  • 에러 처리가 적절한가?
    • try-catch 블록으로 모든 비동기 작업 감싸기
    • 사용자 친화적인 에러 메시지

7. 성능 및 최적화

  • 불필요한 리렌더링이 없는가?
  • 메모이제이션이 필요한 부분에 적용되었는가?
  • 네트워크 호출이 최적화되어 있는가?
  • 이미지/미디어 최적화가 고려되었는가?

8. 테스트 및 QA

  • 주요 기능에 대한 테스트가 있는가?
  • 에러 케이스가 처리되었는가?
  • 엣지 케이스가 고려되었는가?
  • 인증 상태 동기화 확인 (필요시)
    • AuthBridge가 AsyncStorage 하이드레이션 후 동기화
    • hydrated 전 렌더 금지
  • Screen이 ViewModel 하나만 구독하는지 확인
  • Query Key 규칙 일관성 확인 (['domain','resource',params])

리뷰 체크리스트

필수 항목 (Critical)

  • 사이드이펙트 없음
  • 타입 안전성 보장
  • 아키텍처 패턴 준수
  • API 데이터 처리 규칙 준수

Read the full file on GitHub · 133 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. 3d ago First seen · 133 lines · 1,393 tokens per session scan A 922b468371ae

Subscribe to this mod's changes

code-review-template is a cursor rule published in the GitHub repository Opti-kjh/palette (1 stars, last pushed 7mo ago), licensed MIT. It adds 1,393 tokens to every session, about $0.0070 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.