agent-briefing
Use when writing a prompt for a subagent or teammate, deciding how much context another agent needs, writing or reading a handoff…
Use when about to run the first shell command in a session or a new project, when installing dependencies, when a command fails with not found or not recognised, when writing platform-specific code or paths, or when entering a container, virtual machine, remote host or CI runner.
Claude Code
$ npx -y skills add NoobyGains/godmode --skill environment-awareness --agent claude-code
Codex
$ npx skills add NoobyGains/godmode --skill environment-awareness -a codex -y
Cursor
$ npx skills add NoobyGains/godmode --skill environment-awareness -a cursor -y
Gemini CLI
$ npx skills add NoobyGains/godmode --skill environment-awareness -a gemini-cli -y
GitHub Copilot
$ npx skills add NoobyGains/godmode --skill environment-awareness -a github-copilot -y
OpenCode
$ npx skills add NoobyGains/godmode --skill environment-awareness -a opencode -y
Windsurf
$ npx skills add NoobyGains/godmode --skill environment-awareness -a windsurf -y
name: environment-awareness description: "Use when about to run the first shell command in a session or a new project, when installing dependencies, when a command fails with not found or not recognised, when writing platform-specific code or paths, or when entering a container, virtual machine, remote host or CI runner."
Most wasted commands in an agent session come from a wrong guess about where the command runs: Unix syntax in PowerShell, npm in a pnpm project, a global Python instead of the project's virtual environment. You find out where you are with a few cheap probes and then write every command for that place. **Probe once, then act on what you saw, not on what is typical.**
NO SHELL COMMAND UNTIL YOU KNOW THE OS, THE SHELL AND THE PACKAGE MANAGER
No exceptions. No workarounds. No shortcuts.
**Required:**
**Skip:**
1. **Read what the harness already tells you.** Many harnesses state the platform, shell and working directory in the session context. Treat that as the first probe result, not as a guess, and note it. If it names two shells (for example a primary PowerShell and a POSIX shell for scripts), record which one each command will run in.
2. **Confirm the OS and shell with one probe** in the shell you will actually use. Pick the probe for that shell from [references/platform-commands.md](references/platform-commands.md). The evidence is the probe output, for example `MINGW64_NT-10.0` from `uname -s` (Git Bash on Windows) or a `PSVersion` of 7.x.
3. **Detect the package manager from the lockfile, never from habit.** List the project root and match lockfiles to managers with the table below. If two lockfiles disagree, stop and ask the user which one is authoritative; do not pick one.
4. **Detect pinned runtimes and active environments.** Look for version pins (`.nvmrc`, `.node-version`, `.python-version`, `.tool-versions`, `rust-toolchain.toml`, the `engines` or `packageManager` field in `package.json`, `requires-python` in `pyproject.toml`) and for a present or active virtual environment (a `.venv/` directory, the `VIRTUAL_ENV` or `CONDA_DEFAULT_ENV` variables). Probe a runtime's version only when you are about to use it.
5. **Check for a container or remote context** only when the project hints at one (a `Dockerfile`, a `.devcontainer/`, CI configuration) or when behaviour is unexpected. Probes are in the reference file.
6. **Write down the result in one line** and use it for every later command in the session:
Env: Windows 11, Git Bash (MINGW64) for commands, user terminal PowerShell 7, pnpm (pnpm-lock.yaml), Node 24 (.nvmrc), Python via .venv
7. **Re-probe on change.** A new install, a new shell, moving into a different repository, or an unexplained failure invalidates the line. Probe again rather than patching commands by trial and error.
<!-- Verified 2026-10-25: bun.lock is the text default since Bun 1.2 (https://bun.sh/docs/install/lockfile); uv.lock and .venv (https://docs.astral.sh/uv/guides/projects/). -->
| File in project root | Use | Never | |---|---|---| | `bun.lock` (or legacy `bun.lockb`) | `bun` | npm, which ignores the lockfile and writes its own | | `pnpm-lock.yaml` | `pnpm` | npm or yarn | | `yarn.lock` | `yarn` | npm | | `package-lock.json` | `npm` | another manager | | `uv.lock` | `uv` (`uv sync`, `uv run`) | bare `pip install` into the venv | | `poetry.lock` | `poetry` | pip | | `Pipfile.lock` | `pipenv` | pip | | `requirements*.txt` only | `pip` inside the project venv | the system interpreter | | `go.sum` | `go` modules | | | `Cargo.lock` | `cargo` | | | `Gemfile.lock` | `bundle` | `gem install` for project dependencies | | `composer.lock` | `composer` | |
No lockfile: read the `packageManager` field of `package.json`, then the README and CI configuration, then ask. Default to npm only for a brand-new project where the user has stated no preference.
<!-- Corepack is not distributed with Node.js from v25 (https://nodejs.org/dist/latest/docs/api/corepack.html). --> The `packageManager` field pins a manager version through Corepack. Corepack is no longer bundled with Node.js 25 and later, so on those versions run `corepack --version` before relying on it; the user may need to install it or the manager directly.
Windows is where guessing fails most often. Check these five facts every time.
1. **Three shells, three syntaxes.** cmd, PowerShell (Windows PowerShell 5.1 and PowerShell 7) and Git Bash (an MSYS2 bash) can all exist on one machine. Quoting, variables, redirection and chaining differ; the mapping table in the reference file shows how. PowerShell gained `&&` and `||` only in version 7, so a chained command that works in `pwsh` fails in Windows PowerShell 5.1. <!-- https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_pipeline_chain_operators -->
2. **The `bash` on PATH may be the WSL launcher.** Windows can carry a `bash.exe` that starts WSL (in `C:\Windows\System32` or under `WindowsApps`), and it can resolve before Git Bash. Calling it enters a different Linux environment without the user's tools, keys or files, or fails silently. Che
Engineering discipline for AI coding agents: question the request, verify against current docs, plan, build test-first on the cheapest capable model, review with a second model family, prove it before saying done. One repo for Claude Code, Codex, Antigravity, Cursor, Gemini CLI and OpenCode.
Use when writing a prompt for a subagent or teammate, deciding how much context another agent needs, writing or reading a handoff…
Use when a task, feature or bug fix is implemented and before it is committed, merged or handed back to the user, and when the…
Use when about to add or change code in an existing codebase: a new file, module, route, component, service, test, migration,…
Use when about to say that work is done, fixed, passing, working, deployed or ready, before committing, opening or merging a pull…
Use when a reviewed change is about to land on a shared branch, be released or be deployed, and when the user asks for a second…
Use when a written implementation plan is ready to execute in the current session and its tasks are mostly independent, so each…
Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…
Create a new Architecture Decision Record with sequential numbering and AgentDB registration