Claude-skill-registry inspecting-the-environment
Fast environment briefing for agents and subagents. Use at session start to learn OS/shell, container/WSL/VM status, git repo + upstream + dirty state, Python venv status/locations, markdown folders to read, and availability of common tools (uv, mcpc, rg/grep/jq/git/python/node/npm/pnpm, etc.).
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/inspecting-the-environment" ~/.claude/skills/majiayu000-claude-skill-registry-inspecting-the-environment && rm -rf "$T"
manifest:
skills/data/inspecting-the-environment/SKILL.mdsource content
Environment Inspection
Overview
Collect a quick, machine-readable snapshot of the current workspace so agents know operating constraints, dev tooling, and where to look first for context.
Quick Start
Generate JSON (default):
python scripts/inspect_environment.py
Readable text:
python scripts/inspect_environment.py --format text
Key fields:
: system, release, version, machineos
: detected shell/command hostshell
: container hint, WSL flag, VM hint (via systemd-detect-virt when available)environment
: repo presence, root, branch, upstream, dirty stategit
: interpreter path/version, active venv/conda, whether running inside a venvpython
: nearbyvirtualenv_dirs
/.venv
/venv
foldersenv
: directories (depth-limited) containingmarkdown_dirs
files worth skimming.md
: availability of common CLIs (uv, mcpc, rg/grep/jq/git/python/node/npm/pnpm, etc.)tools
Options
to inspect a different directory (default: cwd).--root PATH
for programmatic vs quick-read output (default: json).--format json|text
/--md-limit N
to cap markdown directory discovery (defaults: 40 dirs, depth 5; skips .git/node_modules/.venv/venv/.tox/dist/build/.cache).--md-depth N
(repeatable) to probe additional binaries.--extra-tool NAME
Notes and Heuristics
- Container detection uses marker files and
; WSL is reported separately./proc/1/cgroup - VM detection is opportunistic via
; missing tools yieldsystemd-detect-virt
.null - Git checks are no-op outside a repo and never modify state.
- Traversal is pruned to avoid heavy dirs; adjust limits if you need more coverage.