ワンクリックで
check-code-hygiene
Check code for standardization, readability, maintenance complexity, and defensive coding
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Check code for standardization, readability, maintenance complexity, and defensive coding
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Prep the repo for a major release — refresh README.md to stay compelling and accurate, then review/revise the demo modes and flag which screenshots to recapture
Create a new bug ticket in Hot Sheet
Create a new feature ticket in Hot Sheet
Create a new investigation ticket in Hot Sheet
Create a new issue ticket in Hot Sheet
Create a new req change ticket in Hot Sheet
| name | check-code-hygiene |
| description | Check code for standardization, readability, maintenance complexity, and defensive coding |
| allowed-tools | Read, Grep, Glob, Bash, Agent |
Review the source for hygiene issues: standardization, readability, maintenance complexity, and defensive coding. This is a quality review, not a bug hunt — focus on consistency and maintainability.
Standardization — scan src/ and tests/ for inconsistencies:
.js extensions on relative importsError vs returned nulls) across modulessource/target, schema/table, PGliteLike)Readability — flag functions doing too much, unclear names, missing TSDoc on exported API, and SQL strings that would read better split or commented. Each src/ file should have one primary export.
Maintenance complexity — identify files growing too long or mixing concerns (candidates to split into sub-modules), and duplicated logic that should be shared (e.g. identifier quoting, qualified-name construction).
Defensive coding — check trust boundaries:
as casts (the only sanctioned cast is PGlite → PGliteLike in tests)src/ident.ts@electric-sql/pglite directly (structural PGliteLike only)PG_VERSION) fail loudly with a clear messageReport findings grouped by category (Standardization / Readability / Maintenance / Defensive), each with file:line and a concrete suggested fix. Lead with the highest-impact items. If a category is clean, say so in one line.