envdump

Dump system and environment variable information to a text file.

1.8k|303|Updated May 14, 2025
One-click install
npx skills add https://github.com/trpc-group/trpc-agent-go --skill envdump
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: envdump
Source: https://github.com/trpc-group/trpc-agent-go/tree/main/openclaw/skills/envdump
Command: npx skills add https://github.com/trpc-group/trpc-agent-go --skill envdump

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

When debugging environment-specific issues or auditing a machine's configuration, you often need a quick snapshot of the current system state and environment variables. This Skill automates that collection into a single text file.

Core Features & Use Cases

  • Environment Snapshot: Captures the current date, working directory, kernel info via uname, and all sorted environment variables.
  • File Output: Writes the collected information to a specified output path such as out/env.txt, creating parent directories automatically.
  • Use Case: When a CI job or deployment behaves differently across machines, run this Skill on each host and compare the generated env.txt files to spot configuration drift.

Quick Start

Run the envdump skill to collect basic system and environment info into out/env.txt.

Frequently Asked Questions about envdump

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I dump environment variables to a file in bash?

Run the envdump script with an output path, for example bash scripts/envdump.sh out/env.txt. It writes the date, working directory, uname output, and all sorted environment variables to that file.

What information does the envdump script capture?

It captures the current date, present working directory, kernel and system details from uname -a, and the full sorted list of environment variables. Everything is written into a single plain text file.

Does envdump require any special dependencies?

No external packages are needed. It only requires bash and standard Unix utilities such as date, uname, and env, which are available on virtually all Linux and macOS systems.

Is it safe to share the env.txt output file?

Be cautious, because environment variables often contain secrets like API keys and tokens. Review and redact sensitive values in env.txt before sharing it with others or committing it to version control.

Why does envdump fail with an output file required error?

The script requires exactly one argument: the destination file path. If you omit it, the parameter expansion triggers an error. Always pass a path such as out/env.txt when invoking the script.