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.
npx agentmods add skills/kyto64/codex-pr-review-toolkit-minimal/code-simplifiernpx skills add kyto64/codex-pr-review-toolkit-minimal --skill code-simplifiergit clone --depth 1 https://github.com/kyto64/codex-pr-review-toolkit-minimalWrote 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.
[](https://agentmods.dev/skills/kyto64/codex-pr-review-toolkit-minimal/code-simplifier)<a href="https://agentmods.dev/skills/kyto64/codex-pr-review-toolkit-minimal/code-simplifier"><img src="https://agentmods.dev/badge/skills/kyto64/codex-pr-review-toolkit-minimal/code-simplifier.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00024 | $0.00692 |
| Opus 5 | $0.00012 | $0.00346 |
| Sonnet 5 | $0.00005 | $0.00138 |
| Haiku 4.5 | $0.00002 | $0.00069 |
Grade A, and why
code-simplifier 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 5d 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.
What it actually says
Code Simplifier (Review Mode)
変更されたコードの複雑さと明瞭さをレビューする。動作変更の提案はしない。cosmetic な整形ではなく、理解コスト・変更リスクを下げる簡潔化に集中する。pr-review の simplicity 観点として使う。
原典(Claude Code 版)はコードを直接書き換える agent だが、本 Skill は意図的にレビュー専用に変更している。
スコープ
PR 差分またはユーザー指定ファイルの変更部分に限定する。
レビュー観点
- 不要な複雑さ: 深いネスト、過剰な抽象化、ネストした三項演算子(if/else や switch を推奨)
- 冗長性: 重複ロジック、使われない分岐、過剰な中間変数、自明なコードを説明するだけのコメント
- 明瞭さ: 名前、責務の分離、読み手が追える制御フロー。簡潔さより明示性(compact な一行より explicit な数行)
- 規約整合:
AGENTS.mdや周辺コードのパターンと不揃いな書き方 - バランス: 過度な簡略化も指摘する — clever すぎる解、責務の混在、有用な抽象化の破壊、デバッグ・拡張が困難になる圧縮
重要度の目安
| 状況 | 重要度 |
|---|---|
| 理解・修正コストが著しく高い | P1 |
| 明らかな冗長・ネストで保守性が下がる | P2 |
| 軽微な整理余地 | P3(pr-review では通常除外) |
出力
### P2: [タイトル]
- File: `path`
- Lines: N-M
- Category: simplicity
- Problem: [何が複雑か]
- Impact: [保守性への影響]
- Suggested fix: [同等の振る舞いを保った簡潔化案。可能なら修正後コード例]
レビューのみ。コードの自動書き換えは行わない。
ルール
- DO: 振る舞いを変えない簡潔化案だけを提案する
- DO: 「行数を減らす」より「読みやすさ」を優先する
- DO NOT: 動作変更を含むリファクタを提案する
- DO NOT: プロジェクトの有用な抽象化を安易に削除提案する
- DO NOT: 好みレベルのスタイル指摘を出す
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.
- 5d ago First seen · 53 lines · 24 tokens per session scan A ebb8082e1a26
code-simplifier is a skill published in the GitHub repository kyto64/codex-pr-review-toolkit-minimal (1 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 24 tokens to every session and 692 once invoked, about $0.0001 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.
Other skills, from other repositories
ao-desktop-dev
Launch, restart, or troubleshoot the real AO Electron desktop app from this repository; run a checkout against isolated or real local AO data; combine PR branches for local UI review; and diagnose stale Electron processes, port conflicts, or preload bridge mismatches. Use whenever asked to run, open, show, or visually…
using-ao
Catalog of the AO (Agent Orchestrator) ao CLI: spawning workers, managing sessions and projects, sending messages, controlling the shared browser, previewing pages, and daemon control. Use when using the ao CLI, spawning workers, or managing AO sessions in an AO workspace.
html-portal-generator
Convert a codebase into a self-contained HTML portal app for ingestion into AI application systems. Produces a single deployable HTML file with embedded CSS, JS, and data.
api-designer
Design RESTful APIs with best practices for consistency and usability.
test-writer
Write thorough tests following TDD and BDD principles.
coding-assistant
Provides coding assistance with best practices and code review.