ワンクリックで
check-code-hygiene
Check code for standardization, readability, maintenance complexity, and defensive coding practices
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Check code for standardization, readability, maintenance complexity, and defensive coding practices
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Prep apple-fm for a major release — refresh the README so it advertises the current feature set, and review/revise the demo modes (the user captures the screenshots)
Read the Hot Sheet worklist and work through the current priority items
Run as a distributed worker — continuously claim, work, and release Up Next tickets
Create a new bug ticket in Hot Sheet
Create a new feature ticket in Hot Sheet
Create a new investigation ticket in Hot Sheet
| name | check-code-hygiene |
| description | Check code for standardization, readability, maintenance complexity, and defensive coding practices |
| allowed-tools | Read, Grep, Glob, Bash, Agent |
Analyze the apple-fm codebase for code hygiene issues. Generate a report on standardization, readability, maintenance complexity, and defensive coding.
Scope: src/, apple-fm-helper/main.swift, and (where relevant) tests/.
src/ is lowercase/camelCase matching the primary concept
(cliArgs.ts, protocol.ts, session.ts). Flag a name that matches neither..js; import type for type-only
imports (eslint enforces order — if lint passes, order is fine). The .js
check is your responsibility.--temp expects a number, got "abc"). Flag terse throw new Error('failed').src/protocol.ts,
apple-fm-helper/main.swift, tests/fixtures/stub-helper.js, and
docs/4-protocol.md must all agree. Flag any divergence.src/*.ts over ~200 LOC.apple-fm-helper/main.swift may touch FoundationModels;
only helper.ts spawns the process; pure logic stays in protocol.ts /
session.ts / cliArgs.ts. Flag any layer violation (e.g. session.ts
spawning directly instead of going through an injected GenerateFn).package.json dependencies stays empty. Flag additions.parseArgs rejects unknown commands/flags and bad
numbers; parseEvent throws on malformed lines; helper.ts bounds the
subprocess with a timeout and captures stderr. Verify these still hold.any / non-null: grep src/ for : any, as any, <any>, and !
non-null assertions (tests get a pass). House style is unknown + narrowing.error event (not a bare crash)
and exits nonzero; availability is checked before generation.For each finding: File (path + lines), Category (standardization | readability | maintenance | defensive), Severity (high | medium | low), Description, Suggestion.
End with a prioritized top-N (apple-fm is small — expect 0–5 in a healthy state).
Suggest Hot Sheet tickets (hs-task for cleanups, hs-bug for defects) for
non-trivial findings.