Skip to content
FunCoding

environment-discovery

Systematic exploration of unknown environments before starting work

Star
1,081
License
MIT
Last commit
Oct 6, 2026

pydantic_deep/bundled_skills/environment-discovery/SKILL.md

View on GitHub

Environment Discovery

When dropped into an unfamiliar environment, ALWAYS explore before acting.

Step 1: Understand the workspace

ls -la /app/          # or the working directory
find . -type f | head -50
  • What files exist? What are their sizes?
  • Are there READMEs, Makefiles, config files?
  • What languages/frameworks are involved?

Step 2: Inspect data files

Before writing any code that reads data, understand the format:

  • file <filename> — detect file type (binary, text, encoding)
  • head -20 <file> — first lines of text files
  • xxd <file> | head -20 — hex dump for binary files
  • wc -l <file> — line count for text files
  • stat <file> — exact file size in bytes
  • python3 -c "import struct; ..." — parse binary headers

Step 3: Check available tools

which python3 gcc g++ make cmake node npm cargo rustc java go
pip list 2>/dev/null | head -20
  • What compilers/interpreters are installed?
  • What libraries are available?
  • What package managers can you use?

Step 4: Read existing code

If there are existing source files:

  • Read them FULLY before modifying
  • Understand the build system (Makefile, CMakeLists.txt, pyproject.toml)
  • Check for existing tests

Key Principles

  • NEVER assume file formats — always inspect first
  • NEVER assume tools are installed — always check
  • A 500MB file is NOT a "small file" — plan for it
  • Binary files need byte-level inspection, not cat
  • Spend 30 seconds exploring to save 5 minutes debugging

Similar Skills

test-driven-development

OBobra/superpowers298k2,631 new stars in the last 7 days

migrate-to-shoehorn

MAmattpocock/skills288k10,178 new stars in the last 7 days

agent-runtime-gateway-smoke-test

AFaffaan-m/ECC278k4,046 new stars in the last 7 days

Featured

accessibility

Audit accessibility on Web, iOS, and Android to meet WCAG 2.2, with keyboard navigation and screen-reader support.

AFaffaan-m/ECC278k4,046 new stars in the last 7 days

ai-regression-testing

AFaffaan-m/ECC278k4,046 new stars in the last 7 days

Official

firecrawl-build-interact

FIfirecrawl/firecrawl191k2,010 new stars in the last 7 days