with one click
danger-audit
Audit a diff for the five dangerous AI patterns
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Audit a diff for the five dangerous AI patterns
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Add user-facing entries to CHANGELOG.md's Unreleased section for recent changes
Remove AI-generated code slop from a diff, path, branch, or repository
Review a diff for AI-shaped code before a PR, commit, or final summary
Remove useless comments and keep only human-useful context
Flatten nested conditionals and make the happy path readable
Propose a conventional commit message for the current diff
| name | danger-audit |
| description | Audit a diff for the five dangerous AI patterns |
Use this skill before finishing any non-trivial AI-assisted code change.
These patterns can hide bugs or break Modrex-specific behavior. They are stricter than a general style review.
Default to git diff HEAD.
If the user provides a path, branch, or file, audit that target.
A change is not ready if it introduces one of these without a strong project-specific reason:
if/else nestingRead AI_DANGER_PATTERNS.md for full examples.
Block:
catch { return }
catch { return [] }
return data ?? [] // when this hides a failed load, parse, or install
Ask:
Accept only when the fallback is genuinely optional (missing thumbnail, cache miss).
Block helpers that collapse game-specific behavior into generic behavior.
Danger signs:
getModsPath, getGamePath, processGame, handleLoaderMods conventionpayday2, payday3, pdth, or crimeboss branchingAsk:
Block defensive checks inside trusted code paths.
Danger signs:
InstalledMod to InstalledMod | null | undefinednull instead of fixing the callerif (!value) return deep inside business logic?? "", ?? [], ?? false used to silence type errorsAsk:
if/else nestingBlock new nested pyramids.
Danger signs:
ifelse after return, throw, continue, or breakFix with: guard clauses, early returns, named booleans, smaller functions, switch for exclusive domain cases.
Block abstractions that are not needed now.
Danger signs:
Manager, Service, Factory, Adapter, Strategy, Handler added for one usedryRun, force, silent, experimental, modeAsk:
## Danger audit
### Blockers
- ...
### Cleanups
- ...
### Accepted
- ...
### Recommended next step
...
If clean:
## Danger audit
No blocker-level AI danger patterns found.