Crowi Review logo

Crowi Review

OrganizationPopular
crowi
crowi-review

Codex を敵対的レビュアーに使い、指定スコープ (worktree 差分 / main 直作業範囲 / エリア) を review → 報告 (+ main clean なら低リスクだけその場修正) する単発レビュー skill。findings は事前の全件検証をせず unverified タグ付きで報告し、修正を適用する ものだけ着手時に実コードで裏取りする (verification-on-action)。PR/merge の自動化は しない (crowi は main-direct + integrate-worktree のため)。Codex が落ちたら Claude subagent で代替。 キーワード: review, code-review, codex, adversarial, レビュー, 品質

Overview

Publishercrowi
Repositorycrowi
Skill namecrowi-review
Stars
1.1K
Forks
166
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by crowi on GitHub. Read the source before you install it.

Installation

Install the Crowi Review AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/crowi/crowi/tree/main/.claude/skills/crowi-review
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/crowi/crowi.git /tmp/crowi
mkdir -p .claude/skills
cp -r /tmp/crowi/.claude/skills/crowi-review .claude/skills/crowi-review
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Crowi Review in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Crowi Review on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Crowi Review is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Crowi Review

Codex が敵対的レビュアー、Claude (あなた) がオーケストレータ + 修正者。 指定スコープに codex の敵対レビューを 1 回かけ、findings を報告し、低リスクのものだけ その場で修正する単発 skill。

「連続的にかける」役割は crowi-orchestrate C watcher が持つ (C が本 skill を呼ぶ)。 本 skill 自体は 1 回のスコープを最後までやって終わる。自己ループ (ScheduleWakeup) は 持たない。

非目標

  • PR 駆動のレビュー運用 (1 finding = 1 PR / auto-merge) — crowi は main-direct + integrate-worktree なので思想が合わない。
  • push / PR 作成 — 常にユーザー指示待ち。
  • worktree の作成 — 修正は現在の作業ツリーに直接 (main clean 時のみ・下記)。
  • 全 finding の事前 fleet 検証 — しない (Claude のコード再読を削減)。裏取りは 修正を適用する finding だけ、修正着手時に行う (verification-on-action)。

引数とスコープ解決

/crowi-review [scope]

scope の解決順 (最初に当たったもの):

  1. 明示引数 — path / エリア名 (packages/api/src/hono 等) or git range (abc123..HEAD) が渡されたらそれ。
  2. 未コミット変更がある (git status --porcelain 非空) → 作業ツリー差分 (git diff HEAD) をレビュー。
  3. ブランチが main 以外 → main...HEAD (ブランチが積んだ差分)。
  4. main 上 → 直近の実装 commit 範囲。crowi-orchestrate C 経由なら <lastReviewedMainSha>..main が渡ってくる前提。単発起動時は直近 1 commit (HEAD~1..HEAD) を既定にし、範囲が欲しければ引数で渡すよう促す。

解決したスコープ (range or path) を 1 回だけ確定し、以降ぶらさない。

状態ファイル

すべて .reviews/crowi-review/ 配下 (gitignore 済み・commit しない):

ファイル内容
prompt.md / schema.jsonwrapper に渡すレビュー指示 + FINDINGS schema
findings.json (+ .stderr / .log)Codex の構造化 findings (wrapper の out)
report.md最終報告 (severity 順 + unverified タグ。修正時に CONFIRMED / REFUTED へ更新)

codex / subagent の出力はまず .reviews/crowi-review/ に書き、そこから Read/Grep する。/tmp は使わない。

Stage 0 — Codex 敵対的レビュー (wrapper 経由)

すべての codex 呼び出しは .claude/scripts/codex-run.sh に集約する (直接 codex exec を叩かない)。常に exec モード + --sandbox read-only を使い、 findings は --out に構造化 JSON で受け取る。

wrapper の --mode review (codex 標準レビュー) は本 skill では使わない: codex-cli の review サブコマンドはカスタム prompt をターゲットフラグと併用できず、 --output-schema も無視する (0.142.5 実測)。敵対指示 + 構造化 findings が必須の 本 skill は exec モードでスコープ取得も codex 自身にやらせる。

  1. スコープを prompt 内の取得指示に翻訳する (<SCOPE_INSTRUCTIONS>):
    • 未コミット変更 → 「git status --porcelain + git diff HEAD で取得し、 untracked ファイルは直接読め」
    • ブランチ差分 → 「git diff main...HEAD」
    • 単一 commit → 「git show <sha>」
    • git range → 「git diff A..B」
    • path・エリア → 「<path> 配下のファイルを読め」
  2. 実行:
bash
mkdir -p .reviews/crowi-review
cat > .reviews/crowi-review/prompt.md <<'PROMPT'
Perform an adversarial code review of <SCOPE>. Gather the changes yourself:
<SCOPE_INSTRUCTIONS>. For each finding give: a stable id, severity
(critical/high/medium/low), file (+ line when known), the defect, a concrete
reproduction trigger, the impact, and a concrete fix. Be hostile — surface
everything that could be wrong (correctness, security, resource/leak, race,
API/contract drift). Do NOT edit code. Do NOT run destructive git commands.
Return JSON matching the output schema.
PROMPT
cat > .reviews/crowi-review/schema.json <<'SCHEMA'
{ "type": "object", "required": ["findings"], "additionalProperties": false,
  "properties": { "findings": { "type": "array", "items": {
    "type": "object",
    "required": ["id", "severity", "file", "line", "defect", "trigger", "impact", "fix"],
    "additionalProperties": false,
    "properties": {
      "id": {"type": "string"},
      "severity": {"type": "string", "enum": ["critical", "high", "medium", "low"]},
      "file": {"type": "string"},
      "line": {"anyOf": [{"type": "integer"}, {"type": "null"}]},
      "defect": {"type": "string"}, "trigger": {"type": "string"},
      "impact": {"type": "string"}, "fix": {"type": "string"}
    } } } } }
SCHEMA
bash .claude/scripts/codex-run.sh --sandbox read-only --tier terra \
  --prompt-file .reviews/crowi-review/prompt.md \
  --schema-file .reviews/crowi-review/schema.json \
  --out .reviews/crowi-review/findings.json --label crowi-review

(schema は OpenAI strict 準拠 — additionalProperties: false + 全 property を required に。緩めると codex が 400 で落ちる。)

  1. exit code で分岐:
    • 0 → findings.json を読み Stage 1 へ。
    • 2 / 3(codex 不可 / 出力不正。retry は wrapper 内蔵)→ Claude fallback: 同じスコープの敵対レビューを general-purpose subagent に同じ FINDINGS 形式で 書かせ、止まらない。報告に「Codex fallback (Claude subagent) で実行」と明記し、 findings のタグは unverified (claude-fallback) にする。

大きいスコープはファイル群/エリアで区切って複数回に分けてよい。

Stage 1 — 報告 (verification-on-action)

全 finding の事前検証はしない。 report.md に severity 順で全 finding を列挙し、 各 finding に unverified (codex) タグ(fallback 時は unverified (claude-fallback)) を付けて、そのまま会話でも報告する。critical / high があれば PushNotification で ping。

裏取りは修正を適用する finding だけ、修正着手時に行う(直すためにどうせコードを 読むので実質無料):

  • 裏付けが取れた → 修正し、report のタグを CONFIRMED に更新。
  • 実コードで反証された → 修正せず、report のタグを REFUTED に更新 (反証根拠 file:line を 1 行添える)。

修正しない finding は unverified のまま残る(ユーザー triage 用)。

Stage 2 — 修正の扱い (低リスクのみその場修正)

crowi-orchestrate C と同じルール:

  • main が clean かつ low-risk (局所・挙動不変・テスト裏付け可) → 裏取り (上記) の上でその場で修正し 別 commit (fix(review): … / refactor(review): …)。 type-check / test / lint が通ることを確認してから commit。
  • main が dirty (ユーザー作業中) → 勝手に commit しない。報告に留め、適用は main clean 時 or ユーザー承認後。
  • 大きい / 判断系 → 報告してユーザーの判断を仰ぐ(直す指示が出れば直す、出なければ捨てる)。 退避はしない(fix or drop — 退避先は存在しない)。重要なら ping。
  • push / PR はしない。commit までで止め、push はユーザー指示待ち。

API surface/behavior を変える修正は勝手に入れない (report に留めて確認を仰ぐ)。

crowi-orchestrate / integrate-worktree との連携

  • crowi-orchestrate C: main 直作業が閾値に達したら、本 skill を <lastReviewedMainSha>..main スコープで呼ぶ (C 系統の既定)。 発火条件・lastReviewedMainSha 更新は C 側のまま。
  • integrate-worktree Step 7: simplify (Claude 3 agent) の敵対レビュー版として、 統合差分 (git diff <merge>^..HEAD) に本 skill をかけてもよい。simplify は reuse/quality/efficiency、本 skill は correctness/security の敵対レビューで役割が違う (併用可)。

ルール

  • codex は必ず .claude/scripts/codex-run.sh 経由で呼ぶ (レビューは read-only で完結。 --full-auto / --dangerously-bypass-approvals-and-sandbox は使わない)。
  • Codex に破壊的操作 (delete / force-push / reset) を渡さない。
  • 修正は現在の作業ツリーに 順次 適用 (並列 subagent で同一ツリーを編集しない)。 ファンアウトが要るレベルなら worktree を切る運用 (整合は integrate-worktree) に回す。
  • main dirty 時は commit しない。push は常にユーザー指示待ち。
  • 出力は .reviews/crowi-review/ に置く (/tmp 不可・commit 不可)。

Frequently asked questions

What does the Crowi Review AI skill do?

Codex を敵対的レビュアーに使い、指定スコープ (worktree 差分 / main 直作業範囲 / エリア) を review → 報告 (+ main clean なら低リスクだけその場修正) する単発レビュー skill。findings は事前の全件検証をせず unverified タグ付きで報告し、修正を適用する ものだけ着手時に実コードで裏取りする (verification-on-action)。PR/merge の自動化は しない (crowi は main-direct + integrate-worktree のため)。Codex が落ちたら Claude subagent で代替。 キーワード: review, code-review, codex, adversarial, レビュー, 品質

Why use Crowi Review on TypingMind?

Because you install it once and use it with any model. Crowi Review is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Crowi Review in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/crowi/crowi/tree/main/.claude/skills/crowi-review. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Crowi Review?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Crowi Review?

As many as you like. As long as a model supports skills, you can use Crowi Review with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Crowi Review AI skill free?

Yes. It is published on GitHub by crowi under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇