ソース情報
- リポジトリ
- HezaoHezao/poirot
- ソースの最終更新活動
- 2026年7月28日 12:58
- 検出された SKILL.md の言語
- 英語
- スター
- 212
- フォーク
- 15
インストール方法
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
ソースファイルを確認
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
メニュー
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
直接コマンドでは確認用 Prompt が省略されます。実行前にソースを確認してください。
npx skills add https://github.com/HezaoHezao/poirot --skill simplify-codeコマンドは1行のまま表示されます。コピー前に横へスクロールして全体を確認してください。
ローカルで確認しますか?SkillsMP が現在取得できるファイルをダウンロードできます。
SOC 職業分類に基づく
SKILL.md を表示中
| name | simplify-code |
| description | Sequential 3-lens cleanup of recent code changes. |
| allowed-tools | ["bash","read_file","str_replace","write_file"] |
| enabled | true |
| related-skills | ["requesting-code-review","test-driven-development","plan"] |
| license | MIT |
| author | Adapted from hermes-agent (Nous Research, MIT); inspired by Claude Code /simplify |
Review your recent code changes with three focused lenses, aggregate findings, and apply the fixes worth applying.
Core principle: Three narrow reviews beat one broad review. Each one deeply searches the codebase for a single class of problem — reuse, quality, efficiency — without diluting attention across all three.
Poirot note: The original skill runs 3 reviewers in parallel via subagent delegation. Poirot has no subagents, so this version runs the 3 lenses sequentially in the same context. The methodology is identical; only the concurrency is lost.
Trigger this skill when the user says any of:
Optional modifiers the user may add — honor them:
reuse, quality, efficiency.Do NOT auto-run this after every edit. Invoke it only when the user asks.
Capture the diff to review. Pick the source by what the user asked for:
# 1. Default: uncommitted working-tree changes (tracked files)
git diff
# 2. If that's empty, include staged changes
git diff HEAD
# 3. Scoped variants:
git diff --staged # "staged changes"
git diff HEAD~1 # "the last commit"
git diff main...HEAD # "this branch" / "my PR"
git diff -- src/foo.py # specific file(s)
If git diff and git diff HEAD are both empty, fall back to files the user
explicitly named or recently edited in this session. If you can't find any
changed code, say so and stop.
Capture the full diff text. Note its size: if >2000 changed lines, warn the user and offer to scope down before proceeding.
Each lens gets the complete diff (not fragments — cross-file issues hide in
the gaps) plus the repo path so it can search the wider codebase via bash
(grep) and read_file.
For each lens:
git blame on the line to understand why it exists. If you can't determine
the original purpose, mark it confidence: low.file:line → problem → suggested fix | confidence: high/medium/low | risk: SAFE/CAREFUL/RISKY
Run these three lenses (skip any the user's focus excludes):
Lens 1 — Code Reuse
Review this diff for code that duplicates functionality already in the codebase. Search utility modules, shared helpers, and adjacent files (use
bashgrep) for existing functions, constants, or patterns the new code could call instead of reimplementing. Flag: new functions that duplicate existing ones; hand-rolled logic that an existing utility already does. For each, name the existing thing to use and where it lives.
Lens 2 — Code Quality
Review this diff for quality problems. Look for: redundant state; parameter sprawl; copy-paste-with-variation; leaky abstractions; stringly-typed code (raw strings where a constant/enum exists); AI-generated slop patterns (extra comments restating obvious code, unnecessary defensive null-checks,
as anycasts). For each, give the concrete refactor.
Lens 3 — Efficiency
Review this diff for efficiency problems. Look for: unnecessary work (redundant computation, repeated file reads, N+1 access); missed concurrency; hot-path bloat; TOCTOU anti-patterns; memory issues (unbounded growth, missing cleanup); overly broad reads; silent failures (empty catch blocks,
except: pass). For each, give the concrete fix and why it's faster/safer.
file:line evidence; drop findings that
lack it.AGENTS.md / CLAUDE.md
or a linter config, fold those rules into the lens prompts so suggestions
match house style.knip, ts-prune, depcheck flag
exports that ARE used dynamically. Always grep for the symbol name before
removing — a clean tool report is not proof.Use requesting-code-review for the pre-commit security/quality gate.
This skill is the standalone after-the-fact cleanup pass.