ワンクリックで
os-context
Detect the current OS and print shell syntax reminders for Windows vs Ubuntu
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Detect the current OS and print shell syntax reminders for Windows vs Ubuntu
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Write Bash commands that don't trigger unnecessary permission prompts. Use Read/Edit/Grep instead of head/tail/sed/awk/cat/echo; split chained commands (&&, ;, ||) into separate Bash calls; drop diagnostic suffixes like `; echo "EXIT=$?"`. The allowlist matches whole command strings — every mismatch costs the user attention.
Commit user-named files atomically via scripts/commit-pathspec.sh (which wraps `git commit -m "..." -- <files>` and writes the provenance token the pre-commit hook validates). Applies the CLAUDE.md "Pre-commit hook failures on unrelated changes" protocol when the hook fails. Never adds --no-verify silently — explicit user approval is required.
Scaffold a new epic file in docs/developers/tasks/open/ and run housekeep
Scaffold a new idea file in docs/developers/ideas/open/ and regenerate the ideas OVERVIEW.md
Set a task to active — updates status, moves to active/, runs housekeep. Also resumes paused tasks (paused/ → active/ or active/ with closed prerequisites).
Mark a task as closed — writes effort_actual, moves the file to closed/, runs housekeep, and commits
| name | os-context |
| description | Detect the current OS and print shell syntax reminders for Windows vs Ubuntu |
Detect the current OS and remind yourself of the correct shell/CLI syntax to use.
The system prompt always contains a Platform: field. Read it directly:
Platform: win32 → Windows 11 (Git Bash / MSYS2)Platform: linux → Ubuntu / LinuxPlatform: darwin → macOSOnly fall back to running uname -s && uname -m if the Platform: field is absent or ambiguous.
Windows 11 (Git Bash / MSYS2)
C:/Users/...ls, grep, cat, etc.cmd.exe syntax: no dir, type, copy, del, no backslasheswsl prefix only when a command truly requires the Linux kernelUbuntu / Linux
/dev/null, apt, package paths, symlinks all nativePrint a one-line context summary:
OS: Windows 11 (Git Bash/MSYS2) — using Unix shell syntax, Windows absolute paths where needed.
or
OS: Ubuntu Linux — using standard bash syntax.
Then apply the correct syntax for all subsequent shell commands in this session.