Install
openclaw skills install @shaojun0/nginx-explorerExplore nginx-proxied directories to discover tools and utilities. Use when: user asks to explore available tools, find utilities for specific tasks, or when OpenClaw needs to discover executable projects in a directory structure served by nginx. Configuration requires nginx URL. Each directory contains README.md explaining contents and execution instructions.
openclaw skills install @shaojun0/nginx-explorerExplore directories served by nginx to discover tools, utilities, and executable projects. Each main directory contains a README.md file that explains what's available and how to use it.
This skill requires one environment variable:
NGINX_URL: The base URL of the nginx server (e.g., http://192.168.1.100:8080 or http://internal-tools.local)Optional environment variable:
NGINX_SKIP_SSL_VERIFY: Set to true to skip SSL certificate verification (useful for internal networks with self-signed certificates). Default is true.Configure in ~/.openclaw/openclaw.json:
{
skills: {
entries: {
"nginx-explorer": {
enabled: true,
env: {
NGINX_URL: "http://your-nginx-server:port",
NGINX_SKIP_SSL_VERIFY: "true" // Optional: skip SSL verification for internal networks
}
}
}
}
}
✅ USE this skill when:
❌ DON'T use this skill when:
The skill requires one configuration item:
NGINX_URL: The base URL of the nginx server (e.g., http://192.168.1.100:8080 or http://internal-tools.local)First, set the nginx URL in your environment or workspace:
# Set as environment variable
export NGINX_URL="http://192.168.1.100:8080"
# Or store in workspace config
echo '{"nginx_url": "http://192.168.1.100:8080"}' > /home/node/.openclaw/workspace/nginx-config.json
# Fetch directory listing
curl -s "$NGINX_URL/" | grep -o 'href="[^"]*"' | grep -v '^href="\.' | cut -d'"' -f2
For each discovered directory:
# Check if README.md exists
curl -s -I "$NGINX_URL/tool-directory/README.md" | head -1 | grep "200"
# Read the README
curl -s "$NGINX_URL/tool-directory/README.md"
When a useful tool is found:
# Download the tool (assuming it's a script or archive)
curl -o /tmp/tool.sh "$NGINX_URL/tool-directory/tool.sh"
# Make executable if needed
chmod +x /tmp/tool.sh
# Run according to README instructions
/tmp/tool.sh --help
#!/bin/bash
NGINX_URL="http://192.168.1.100:8080"
# Get all directories
echo "Exploring $NGINX_URL..."
DIRS=$(curl -s "$NGINX_URL/" | grep -o 'href="[^"]*/"' | grep -v '^href="\.' | cut -d'"' -f2 | sed 's|/$||')
for dir in $DIRS; do
echo "=== $dir ==="
# Try to read README
README=$(curl -s "$NGINX_URL/$dir/README.md" 2>/dev/null)
if [ -n "$README" ]; then
echo "$README" | head -5
else
echo "No README found"
fi
echo
done
#!/bin/bash
NGINX_URL="http://192.168.1.100:8080"
# Search for tools related to "data processing"
echo "Searching for data processing tools..."
DIRS=$(curl -s "$NGINX_URL/" | grep -o 'href="[^"]*/"' | grep -v '^href="\.' | cut -d'"' -f2 | sed 's|/$||')
for dir in $DIRS; do
README=$(curl -s "$NGINX_URL/$dir/README.md" 2>/dev/null)
if echo "$README" | grep -qi "data.*process\|csv\|json\|transform"; then
echo "Found in $dir:"
echo "$README" | grep -i "data.*process\|csv\|json\|transform" | head -3
echo "---"
fi
done
#!/bin/bash
NGINX_URL="http://192.168.1.100:8080"
TOOL_DIR="data-processor"
# Read instructions
README=$(curl -s "$NGINX_URL/$TOOL_DIR/README.md")
echo "Tool instructions:"
echo "$README"
# Download main script
curl -o /tmp/processor.py "$NGINX_URL/$TOOL_DIR/processor.py"
# Download dependencies if mentioned
if echo "$README" | grep -q "requirements.txt"; then
curl -o /tmp/requirements.txt "$NGINX_URL/$TOOL_DIR/requirements.txt"
pip install -r /tmp/requirements.txt
fi
# Run the tool
python /tmp/processor.py --help
This skill is designed to be used when OpenClaw encounters difficult problems. The workflow:
User Request → Can OpenClaw solve it directly? → Yes → Solve directly
↓
No
↓
Explore nginx directory
↓
Read README files
↓
Find relevant tools/utilities
↓
Download and apply tool to problem
Tools in the nginx directory should follow this README format:
# Tool Name
## Purpose
Brief description of what this tool does.
## Usage
```bash
./tool.sh [options]
# Basic usage
./tool.sh --input data.csv --output results.json
# Advanced usage
./tool.sh --config config.yaml --verbose
Any additional information or warnings.
## Security Considerations
- Only download from trusted nginx servers
- Validate scripts before execution
- Run in sandboxed environment when possible
- Check for malicious code in downloaded files