Use when executing shell commands or external processes that require platform-aware procedures, federated identity handoff to a real browser session, agent-browser session retry, privilege elevation fallback paths, or destructive file deletion safety. Triggers when invariants in the `command-execution` rule module need procedural how-to detail.
This skill provides procedural how-to for the invariants defined
in the command-execution rule module. The rule module states
what must hold; this skill states how to comply.
When an automation-launched browser context is blocked or degraded during a federated identity flow (Google, Apple, Microsoft, GitHub):
The agent MUST NOT attempt to bypass provider anti-automation,
embedded-browser restrictions, or "this browser is not secure"
gates. Such bypasses are explicitly forbidden by the
command-execution rule module.
When the default agent-browser session bind fails on Windows:
task-<short-id>).The rule module requires sudo first; this is the fallback
ladder when sudo is unavailable:
sudo <command> directly.sudo is not on PATH, check for gsudo (a
PowerShell-friendly elevation tool) and use it if available.Start-Process -Verb RunAs from inside an automation flow —
the parent loses stdout/stderr capture and exit code
propagation.When the rule module requires verifying the final absolute target path before a destructive operation:
[System.IO.Path]::GetFullPath($candidate) or
Resolve-Path -LiteralPath $candidate.attrib -r -h -s) on read-only,
hidden, or system files before attempting deletion.[System.IO.File]::Delete() /
[System.IO.Directory]::Delete($path, $true) over the rm
alias, which dispatches through provider hooks that may
silently fail on locked files.The rule module forbids interactive git prompts. Apply one of these in every git invocation that might open an editor:
--no-edit to merge, revert, cherry-pick, etc.GIT_EDITOR=true for the invocation.-m "<msg>" or use a
here-doc.When the rule module requires checking the latest stable release:
<tool> --version or package manager query).