ワンクリックで
bat-powershell-caution
Fires when writing, fixing, or debugging batch scripts (.bat / .cmd) or PowerShell scripts (.ps1).
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Fires when writing, fixing, or debugging batch scripts (.bat / .cmd) or PowerShell scripts (.ps1).
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
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 を実行する
| name | bat-powershell-caution |
| description | Fires when writing, fixing, or debugging batch scripts (.bat / .cmd) or PowerShell scripts (.ps1). |
When a complex batch script (logging, subroutines, error handling, etc.) exits silently or behaves unexpectedly, suspect the following:
A ) inside a message is mis-parsed as the terminator of an if/else block.
When call other.bat followed by exit /b happens inside call :label,
the execution context gets corrupted.
Mixing !variable! and %variable% causes unexpected expansion.
Windows PowerShell 5.x reads a BOM-less .ps1 as CP932 (ANSI). Because of this,
a non-ASCII (e.g. Japanese) comment inside the param() block causes the
multibyte sequence to be misread and breaks param parsing
(NamedParameterNotFound, parameter not found, etc.).
A non-ASCII comment at the top of the module is harmless, but inside the
param structure it is dangerous.
Mitigation (either one):
param() in ASCII.ps1 + .cmd wrapper.