env-lookup

Resolve environment variables across Unix-like and Windows systems with tool-aware aliases.

7|Updated Nov 30, 2019
One-click install
npx skills add https://github.com/dstanberry/dotfiles --skill env-lookup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: env-lookup
Source: https://github.com/dstanberry/dotfiles/tree/main/ai/claude/skills/env-lookup
Command: npx skills add https://github.com/dstanberry/dotfiles --skill env-lookup

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Resolves environment variables and environment abstractions across tools to enable consistent configuration lookups in mixed environments (Unix-like and Windows), including special variables such as AI_CONFIG_DIR and MEMORY_DIR.

Core Features & Use Cases

  • Platform-aware lookups: use Unix commands like printenv on Unix-like systems and PowerShell on Windows.
  • Tool-aware alias resolution: maps AI_CONFIG_DIR to COPILOT_HOME or CLAUDE_CONFIG_DIR depending on the running tool, and derives MEMORY_DIR accordingly.
  • Robust, user-friendly responses: reports when a variable is not set and provides clear paths for resolution across different tools and shells.

Quick Start

Ask me to resolve a specific environment variable using the correct platform command and the defined tool-based aliases for AI_CONFIG_DIR and MEMORY_DIR.

Frequently Asked Questions about env-lookup

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

FAQPage Schema
How do I resolve environment variables across Unix and Windows platforms?

To resolve environment variables across Unix and Windows, use platform-aware commands like printenv on Unix-like systems and PowerShell on Windows to return values or meaningful not-found messages.

What is the best way to map AI_CONFIG_DIR for different coding tools?

Mapping AI_CONFIG_DIR involves tool-based alias resolution that maps the variable to COPILOT_HOME or CLAUDE_CONFIG_DIR depending on the running tool, ensuring consistent configuration lookups across mixed environments.

Can I use PowerShell to look up environment variables in a mixed OS workflow?

Yes, you can use PowerShell to look up environment variables on Windows, while Unix-like systems use printenv, allowing consistent environment variable resolution across mixed OS workflows.

How do I get the path for MEMORY_DIR when configuring AI agents?

To get the path for MEMORY_DIR when configuring AI agents, the system derives the directory accordingly based on the resolved AI_CONFIG_DIR alias mapping for the active tool context.

Why does my environment variable lookup return a not-found message?

Your environment variable lookup returns a not-found message when the specified variable is not set in the system, providing a clear path for resolution across different tools and shells.