Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Env Debug

FSecurity

Debug environment issues with PATH, permissions, environment variables, and configuration problems. Use when user asks to "fix PATH", "command not found", "permission denied", "debug environment", "env vars not working", "fix shell config", "debug node/python not found", or any environment troubleshooting tasks.

207 stars
0 votes
0 copies
0 views
Added 9/4/2026
toolspythonrustgoshellbashnodedockerdebugginggitapi

Works with

cliapi

Security Analysis

F10/100
mediumUses curl or wget to download content
criticalAccesses sensitive system or user directories
highPerforms destructive filesystem operations
criticalReads or references SSH private keys
criticalModifies startup scripts or system services for persistence
criticalModifies startup scripts or system services for persistence
criticalModifies startup scripts or system services for persistence
criticalSends environment variables or credentials to an external URL
mediumInstalls packages at runtime which could introduce malicious dependencies

Scanned 9/4/2026

Install to Claude Code

$npx -y skills add NeverSight/skills_feed --skill env-debug --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Env Debug?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Env Debug
[![Security: F — Skills Directory](https://www.skillsdirectory.com/api/skills/neversight-env-debug/badge)](https://www.skillsdirectory.com/skills/neversight-env-debug)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: env-debug
description: Debug environment issues with PATH, permissions, environment variables, and configuration problems. Use when user asks to "fix PATH", "command not found", "permission denied", "debug environment", "env vars not working", "fix shell config", "debug node/python not found", or any environment troubleshooting tasks.
---

# Environment Debugging

Troubleshoot PATH, permissions, env vars, and configuration issues.

## "Command Not Found"

```bash
# Check if command exists
which node
which python
command -v node
type node

# Check PATH
echo $PATH
echo $PATH | tr ':' '\n'  # One per line

# Find where a binary lives
which -a python       # All matches in PATH
whereis python       # Binary, source, and man pages

# Common fixes
export PATH="/usr/local/bin:$PATH"           # Prepend
export PATH="$HOME/.local/bin:$PATH"         # User binaries
export PATH="$HOME/.cargo/bin:$PATH"         # Rust
export PATH="$HOME/go/bin:$PATH"             # Go
export PATH="$HOME/.nvm/versions/node/v20.0.0/bin:$PATH"  # nvm

# Make permanent - add to shell config:
# ~/.bashrc (bash), ~/.zshrc (zsh), ~/.profile (login shell)
```

## Shell Configuration

```bash
# Which shell am I using?
echo $SHELL
echo $0

# Config file load order:
# bash login:    /etc/profile → ~/.bash_profile → ~/.bashrc
# bash non-login: ~/.bashrc
# zsh login:     ~/.zprofile → ~/.zshrc
# zsh non-login: ~/.zshrc

# Reload config
source ~/.zshrc
source ~/.bashrc

# Check if interactive/login
[[ $- == *i* ]] && echo "Interactive" || echo "Non-interactive"
shopt -q login_shell && echo "Login" || echo "Non-login"  # bash
[[ -o login ]] && echo "Login" || echo "Non-login"        # zsh
```

## Environment Variables

```bash
# View all
env
printenv

# View specific
echo $NODE_ENV
printenv NODE_ENV

# Set for current session
export API_KEY="abc123"
export NODE_ENV=production

# Set for single command
NODE_ENV=test npm test
DATABASE_URL=postgres://localhost/test python manage.py migrate

# Unset
unset API_KEY

# Check if set
[ -z "$API_KEY" ] && echo "NOT SET" || echo "SET: $API_KEY"

# .env file loading
# Node.js: dotenv, or node --env-file=.env app.js (Node 20.6+)
# Python: python-dotenv
# Shell: source .env or export $(cat .env | xargs)
```

## Permission Issues

```bash
# Check file permissions
ls -la /path/to/file

# Permission format: drwxrwxrwx
# d = directory, r = read, w = write, x = execute
# [owner][group][others]

# Make executable
chmod +x script.sh
chmod 755 script.sh    # rwxr-xr-x

# Fix npm global permissions
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
export PATH="$HOME/.npm-global/bin:$PATH"

# Fix SSH key permissions
chmod 700 ~/.ssh
chmod 600 ~/.ssh/id_rsa
chmod 644 ~/.ssh/id_rsa.pub
chmod 644 ~/.ssh/config

# Check who owns a file
ls -la /usr/local/bin/node

# Fix ownership
sudo chown -R $(whoami) /usr/local/lib/node_modules
```

## Port Issues

```bash
# What's using a port?
lsof -i :3000              # macOS/Linux
ss -tlnp | grep 3000       # Linux
netstat -tlnp | grep 3000  # Linux

# Kill process on port
lsof -ti :3000 | xargs kill -9   # macOS/Linux
fuser -k 3000/tcp                 # Linux

# Check if port is available
nc -z localhost 3000 && echo "IN USE" || echo "FREE"
```

## Node.js Issues

```bash
# Multiple Node versions?
which -a node
node --version

# nvm issues
nvm ls                     # List installed versions
nvm use 20                 # Switch version
nvm alias default 20       # Set default
nvm current                # Current version

# npm cache issues
npm cache clean --force
rm -rf node_modules package-lock.json && npm install

# Global packages location
npm root -g
npm list -g --depth=0

# npx not finding package
npx --yes package-name     # Force install
npm exec -- package-name   # Alternative
```

## Python Issues

```bash
# Multiple Python versions?
which -a python
which -a python3
python --version
python3 --version

# Virtual environment active?
echo $VIRTUAL_ENV

# Wrong pip?
which pip
pip --version      # Shows which Python it's linked to
python -m pip --version  # Use specific Python's pip

# Module not found?
python -c "import sys; print('\n'.join(sys.path))"
python -c "import package; print(package.__file__)"

# pyenv issues
pyenv versions
pyenv which python
pyenv shell 3.12.1
```

## DNS / Network Issues

```bash
# DNS resolution
nslookup example.com
dig example.com
host example.com

# Test connectivity
ping -c 3 example.com
curl -v https://example.com

# Check proxy settings
echo $HTTP_PROXY
echo $HTTPS_PROXY
echo $NO_PROXY

# SSL certificate issues
openssl s_client -connect example.com:443

# Test specific port
nc -zv example.com 443
curl -v telnet://example.com:443
```

## Docker Issues

```bash
# Docker daemon running?
docker info

# Permission denied?
sudo usermod -aG docker $USER
# Then log out and back in

# DNS issues in container
docker run --dns 8.8.8.8 myimage

# Can't connect to container?
docker inspect <container> | grep IPAddress
docker port <container>
```

## Disk Space

```bash
# Check disk usage
df -h

# Find large files/dirs
du -sh *
du -sh * | sort -rh | head -20

# Node.js specific
du -sh node_modules/
npx npkill    # Interactive node_modules cleaner

# Docker specific
docker system df
docker system prune -a --volumes
```

## Quick Diagnostic Script

```bash
#!/bin/bash
echo "=== System ==="
uname -a
echo ""
echo "=== Shell ==="
echo "$SHELL ($0)"
echo ""
echo "=== PATH ==="
echo $PATH | tr ':' '\n'
echo ""
echo "=== Key Tools ==="
for cmd in node npm python python3 pip git docker; do
  printf "%-10s" "$cmd:"
  command -v $cmd 2>/dev/null && $cmd --version 2>/dev/null | head -1 || echo "NOT FOUND"
done
echo ""
echo "=== Env Vars ==="
for var in NODE_ENV VIRTUAL_ENV HOME USER SHELL TERM; do
  printf "%-15s %s\n" "$var:" "${!var:-NOT SET}"
done
```

## Reference

For tool-specific troubleshooting: `references/troubleshooting.md`

Attribution

NeverSightNeverSight
View sourceMore from NeverSight →
SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

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 (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

Related Skills

ucoz-landing-skill

Playbook for creating and editing uCoz landing pages via MCP tools (`templates_tool`, `ftp_tool`, `modules_tool`). Use for tasks such as: "build a landing page", "update the homepage as a landing page", "create a promo page on the homepage", "add a lead form / menu / SEO to the homepage". Homepage: `page_list`, `page_get`; first publish — `page_update` with full `page_tmpl`; HTML edits after generation — `patch_template` (module_id=2, template_id=1), not `update_template`. Activate the mail f...

107 votes

Paperclip

Interact with the Paperclip control plane API for task coordination and governance. Use when checking assignments, updating issue status, posting comments, delegating work, managing routines, or calling Paperclip API endpoints.

805541 votes

Daw Music

Digital Audio Workstation usage, music composition, interactive music systems, and game audio implementation for immersive soundscapes.

761 votes

Instantly Rdsthomas Mission Control

Instantly.ai cold email outreach API - manage campaigns, leads, accounts, and analytics. Use for cold email automation, lead management, campaign creation/monitoring, and email account warmup.

761 votes

Caveman Compress

Compress natural language memory files (CLAUDE.md, todos, preferences) into caveman format to save input tokens. Preserves all technical substance, code, URLs, and structure. Compressed version overwrites the original file. Human-readable backup saved as FILE.original.md. Trigger: /caveman-compress FILEPATH or "compress memory file"

1023330 votes
View all in tools →