원클릭으로
danger-audit
Audit a diff for the five dangerous AI patterns
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Audit a diff for the five dangerous AI patterns
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
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.