xs-code-reviewer

xs-code-reviewer is a skill for Claude Code, Codex from karaage0703/ai-assistant-workspace. It costs 87 tokens per session (1,870 once invoked), scanned A, original, MIT.

A procedure for reviewing GitHub pull requests, which are proposed code changes submitted for discussion and merging.

In plain words
What is it for?
Use it to inspect pull-request details and diffs, analyze changed files, combine review findings, and report issues by priority.
Why use it?
It helps find bugs, security risks, regressions, and missing tests in a consistent order without automatically posting changes to GitHub.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is CONFIG_PATH="$(bash skills/xs-multi-agent/scripts/check_agents.sh)".

Good fit Use it to inspect pull-request details and diffs, analyze changed files, combine review findings, and report issues by priority.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/karaage0703/ai-assistant-workspace
agentmods
npx agentmods add skills/karaage0703/ai-assistant-workspace/xs-code-reviewer

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/karaage0703/ai-assistant-workspace/xs-code-reviewer/github.svg)](https://agentmods.dev/skills/karaage0703/ai-assistant-workspace/xs-code-reviewer)
Your own site
<a href="https://agentmods.dev/skills/karaage0703/ai-assistant-workspace/xs-code-reviewer"><img src="https://agentmods.dev/badge/skills/karaage0703/ai-assistant-workspace/xs-code-reviewer/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 xs-code-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/skills/karaage0703/ai-assistant-workspace/xs-code-reviewer"><img src="https://agentmods.dev/badge/skills/karaage0703/ai-assistant-workspace/xs-code-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,870 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00087 $0.01870
Opus 5.5 $0.00035 $0.00748
Sonnet 5.5 $0.00017 $0.00374
Haiku 4.5 $0.00009 $0.00187

Measured 1mo ago against content hash 6f478b238207, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

xs-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 1mo 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.

skills/xs-code-reviewer/SKILL.md · 214 lines

How it starts

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

プルリクエストコードレビュー

GitHub CLIを使用してプルリクエストを分析し、バグ・リスク・回帰・不足テストを優先してレビューする。

重要: デフォルトはチャット上でのレビュー報告。GitHubへのコメント投稿、review投稿、approve/request changes は外部状態変更なので、ユーザーの明示OKを取ってから行う。

使用方法

PR#123をレビューして
owner/repo の PR#123 をレビューして
このPRを複数AIで見て

レビュー完了の定義

通常レビュー:

  1. PR情報と差分を確認した
  2. 必要に応じて xs-multi-agent で外部AIにも見せた
  3. findings を重要度順に統合した
  4. チャットでレビュー結果を報告した

GitHub投稿まで依頼された場合:

  1. 投稿対象(repo / PR / コメント種別)を明示してユーザーのOKを取った
  2. GitHubに投稿した
  3. 投稿URLまたはPR URLを報告した

レビュー手順

Step 1: PR情報の確認

# PRテンプレートがあれば確認
test -f .github/pull_request_template.md && cat .github/pull_request_template.md

# PR詳細
gh pr view <PR番号> --repo <owner>/<repo> --json title,body,headRefOid,baseRefName,headRefName,files,additions,deletions,url

# 差分
gh pr diff <PR番号> --repo <owner>/<repo>

# 変更ファイル一覧
gh pr diff <PR番号> --repo <owner>/<repo> --name-only

--repo <owner>/<repo> を明示する。remote が複数ある環境では、gh が別リポジトリを選ぶ事故が起きやすい。

Step 2: ファイル別詳細分析

各変更ファイルについて必要に応じて確認する。

gh pr diff <PR番号> --repo <owner>/<repo> -- <ファイルパス>

ローカルにブランチを取得する場合は、既存未コミット変更を確認してから行う。

Step 3: レビュー観点

優先順位:

  1. セキュリティ、データ損失、権限、公開範囲の問題
  2. バグ、回帰、エラーハンドリング不足
  3. テスト不足、検証不足
  4. 仕様・ドキュメントとの不整合
  5. 保守性、可読性、設計上の懸念
  6. 好みの問題や軽微なスタイル

コードレビューでは、良い点より先に findings を出す。問題がない場合は「ブロッカーなし」と明示し、残るリスクや未検証項目を書く。

Step 4: マルチエージェント検証

複数AIで見る依頼、重要PR、大きめの差分では xs-multi-agent を併用する。

CONFIG_PATH="$(bash skills/xs-multi-agent/scripts/check_agents.sh)"
cat "$CONFIG_PATH"

依頼プロンプトはファイルに保存してから、利用可能な外部エージェントへ渡す。

cat > /tmp/pr-review-prompt.txt <<'EOF'
以下のPR差分をレビューしてください。
バグ、セキュリティ、回帰、不足テストを優先し、好みの指摘は後回しにしてください。

<PR情報と差分>
EOF

# 必要なPR差分と関連資料だけを置いたディレクトリを指定する
TARGET_WORKSPACE="/path/to/review-materials"
bash skills/xs-multi-agent/scripts/run_agent.sh codex /tmp/pr-review-prompt.txt "$TARGET_WORKSPACE"

外部AIが使えない場合は、自分だけでレビューしてよい。その場合は「外部AIは検出したが使用できなかった」と報告する。

Step 5: 結果統合

複数AIの意見はそのまま並べず、重複をまとめて重要度順に統合する。

重要度:

  • blocker: セキュリティ、データ損失、明確なバグ、重大な回帰
  • major: 修正した方がよい設計・仕様・テスト不足
  • minor: 軽微な改善
  • nit: 好みや表記揺れ。必要な時だけ

Read the full file on GitHub · 214 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago Changed · +2 lines 6f478b238207
  2. 2mo ago First seen · 212 lines · 87 tokens per session scan A de64b529adbc

Subscribe to this mod's changes

xs-code-reviewer is a skill published in the GitHub repository karaage0703/ai-assistant-workspace (137 stars, last pushed 1mo ago), licensed MIT. It adds 87 tokens to every session and 1,870 once invoked, about $0.0003 per session on Opus 5.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.

Related

xs-code-reviewer compared with skills from other repositories

xs-code-reviewer next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
xs-code-reviewerkaraage0703/ai-assistant-workspaceSkill1371mo agoMITA87Claude Code, Codex
prYeachan-Heo/oh-my-claudecodeSkill41ktodayMITA47Claude Code
merge-batchdiegosouzapw/OmniRouteSkill85kyesterdayMITA46Claude Code
otto-pr-review-loopomnigent-ai/omnigentSkill11ktodayApache-2.0A17Claude Code, Codex
engram-branch-prGentleman-Programming/engramSkill7.9kyesterdayMITA37Claude Code, Codex
github-contributordaymade/claude-code-skillsSkill1.5ktodayMITA105Claude Code, Codex
revdiffumputun/revdiffSkill9473d agoMITA250Claude Code