Env check

From LowyShin/giip-fde-agent · View interactive version

Env check is an AI agent skill from the GitHub repository LowyShin/giip-fde-agent. Detects the current operating system, shell, and available tools to select the best execution strategy.

How to use this skill

Skill file

env-check Skill

This skill allows the agent to precisely identify the host environment to avoid cross-platform command errors.

🛠️ Usage

Use this skill before running any OS-specific terminal commands if the environment is unknown.

Detection Logic

  1. Check OS: Use ADDITIONAL_METADATA (preferred) or run_command with $PSVersionTable (Windows) or uname -a (POSIX).
  2. Check Shell: Identify if the terminal is PowerShell, cmd, bash, zsh, etc.
  3. Check Tool Availability: Verify if specific binaries like rg, grep, jq, or git are available in the PATH.

💻 Platform-Specific Command Mapping

| Task | Windows (PowerShell) | POSIX (Bash/Zsh) | Platform Tool (Best) |

| :--- | :--- | :--- | :--- |

| Search Text | Select-String -Pattern "query" -Path "file" | grep "query" "file" | grep_search |

| List Files | Get-ChildItem -Recurse | ls -R | list_dir |

| Read File | Get-Content "file" | cat "file" | view_file |

| JSON Parse | ConvertFrom-Json | jq | (N/A) |

🛡️ Best Practices

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.