Skip to content
Back to skills

Inspecting The Environment

ASecurity

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.).

  • 666 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added February 9, 2026
developmentpythonshellnodegit

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill inspecting-the-environment --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Inspecting The Environment?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Inspecting The Environment
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-inspecting-the-environment/badge)](https://www.skillsdirectory.com/skills/majiayu000-inspecting-the-environment)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: inspecting-the-environment
description: 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.).
---
# 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):
```text
python scripts/inspect_environment.py
```
Readable text:
```text
python scripts/inspect_environment.py --format text
```

Key fields:
- `os`: system, release, version, machine
- `shell`: detected shell/command host
- `environment`: container hint, WSL flag, VM hint (via systemd-detect-virt when available)
- `git`: repo presence, root, branch, upstream, dirty state
- `python`: interpreter path/version, active venv/conda, whether running inside a venv
- `virtualenv_dirs`: nearby `.venv`/`venv`/`env` folders
- `markdown_dirs`: directories (depth-limited) containing `.md` files worth skimming
- `tools`: availability of common CLIs (uv, mcpc, rg/grep/jq/git/python/node/npm/pnpm, etc.)

## Options
- `--root PATH` to inspect a different directory (default: cwd).
- `--format json|text` for programmatic vs quick-read output (default: json).
- `--md-limit N` / `--md-depth N` to cap markdown directory discovery (defaults: 40 dirs, depth 5; skips .git/node_modules/.venv/venv/.tox/dist/build/.cache).
- `--extra-tool NAME` (repeatable) to probe additional binaries.

## Notes and Heuristics
- Container detection uses marker files and `/proc/1/cgroup`; WSL is reported separately.
- VM detection is opportunistic via `systemd-detect-virt`; missing tools yield `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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.