원클릭으로
bat-powershell-caution
bat スクリプト(.bat / .cmd)や PowerShell スクリプト(.ps1)を書く・修正する・デバッグする際に発火する
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
bat スクリプト(.bat / .cmd)や PowerShell スクリプト(.ps1)を書く・修正する・デバッグする際に発火する
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | bat-powershell-caution |
| description | bat スクリプト(.bat / .cmd)や PowerShell スクリプト(.ps1)を書く・修正する・デバッグする際に発火する |
複雑な bat スクリプト(ログ出力、サブルーチン、エラーハンドリング等)で 無言終了や予期しない動作が発生した場合、以下を疑うこと:
メッセージ内の ) が if/else ブロックの終端として誤解釈される。
call :label 内で call other.bat → exit /b が発生すると実行コンテキストが破損する。
!variable! と %variable% の混在による予期しない展開。
BOM 無しの .ps1 を Windows PowerShell 5.x は CP932(ANSI) として読む。このため
param() ブロック内に非 ASCII(日本語等)コメントを書くと、マルチバイト列が誤読され
param パースが壊れる(NamedParameterNotFound、パラメータが見つからない等)。
モジュール先頭の日本語コメントは無害でも、param 構造の内側は危険。
対策(いずれか):
param() 内に足すコメントは ASCII で書く.ps1 + .cmd ラッパーを使用Fires when deciding whether a report or explanatory document needs figures, when designing a figure, or when writing the figures declaration in frontmatter. Designs cognitive-load-reducing figures via the trigger table, quantitative limits, and templates
Fires when generating or verifying deterministic HTML from report MDs. Runs render / verify / lint / selftest / check via the bundled md2html.cjs
Fires when producing a report or completion notice. Generates a report that includes the interlock verification section.
Discipline for preventing the stop bug (malformed tool call -> self-priming). Fires when the stopbug-observe hook emits a trip-wire (migration advice) or the time-based timer (calibration prompt), or as a minimal focus-check right before heavy processing.
報告書・説明文書で図を使うか判断する際、図を設計する際、frontmatter の figures 宣言を書く際に発火する。図トリガー表・定量上限・雛形で「認知負荷を減らす図」を設計する
報告書 MD から決定論 HTML を生成・検証する際に発火する。md2html.cjs(同梱)で render / verify / lint / selftest / check を実行する