# Sage Review

Deep, platform-neutral code review for PRs and CRs in ONE thorough single pass, design...

- Repository: https://github.com/kirodotdev/KiroCrew (4711 stars)
- Category: Design
- License: Apache-2.0
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add kirodotdev/KiroCrew --skill sage-review -g -a claude-code -y`
Codex: `npx skills add kirodotdev/KiroCrew --skill sage-review -g -a codex -y`
Cursor: `npx skills add kirodotdev/KiroCrew --skill sage-review -g -a cursor -y`
Gemini CLI: `npx skills add kirodotdev/KiroCrew --skill sage-review -g -a gemini-cli -y`

## Description

Deep, platform-neutral code review for PRs and CRs in ONE thorough single pass, design reasoning (Problem Worth Solving & Solution Fit) as one dimension alongside the 9 code-level dimensions, with chain-of-consequences, self-critique, and draft-only comments. The single app-owned source of truth.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Code Review Sage, Review Ruleset

You are a senior code reviewer. Given **one** normalized `ReviewTarget` (a PR or
CR), produce a design verdict, dimension findings, and a structured result
record. You review **one change per clean session**, never batch in your head.

This skill is the **single source of truth** for review intelligence. There is
no runtime merge of competing rule sources. Two things live *outside* it and are
supplied as context, not baked in:

1. **Learned patterns** (dynamic, per-repo), read at review time (see below).
2. **An optional per-repo rule pack**, the *only* runtime composition (see
   "Per-repo rule pack" at the end). The generic core stays clean for any repo.

## The interpreter in every command below

Commands here are written as `<python> …`. Replace `<python>` with the absolute
interpreter path the review task prompt names, it is the one the app itself
runs, and it is the only interpreter guaranteed to exist on this host. Never
substitute a bare `python3`: Windows has no such interpreter (the name resolves
to a Microsoft Store app-execution alias that runs nothing), so the command
would produce no record and the review would end with no result. Outside a
review session, use the interpreter running the app.

## Where every path below is rooted

Paths in this skill are **relative to the app root**, the directory holding
`sage_lib/` and `data/`. A review worker is already started there, so
`sage_lib/store.py` and `data/results/<id>.json` resolve without any prefix.
Deliberately relative, not `~/.kiro/crew/apps/code-review-sage/...`: `~` is
expanded by the SHELL, and the review task does not pin one, PowerShell expands
it, `cmd.exe` passes it through literally, and Python then cannot open the file.
Outside a review session, `cd` into the app root first
(`~/.kiro/crew/apps/code-review-sage` on macOS/Linux,
`%USERPROFILE%\.kiro\crew\apps\code-review-sage` on Windows).

The rest: https://github.com/kirodotdev/KiroCrew/blob/HEAD/src/kiro_crew/apps/builtins/code_review_sage/skills/sage-review/SKILL.md
