self-setuplisted
Install: claude install-skill GrazianoGuiducci/d-nd-seed
# D-ND Self-Setup — Node Discovery & Configuration
Run this after installing the d-nd-core plugin to configure it for your environment.
## What it does
1. **Environment scan**: Detects available repos, tools, access
2. **Capability mapping**: Tests SSH, Docker, API connectivity
3. **Configuration**: Writes `.env.d-nd` with discovered settings
## Setup procedure
### Step 1 — Detect environment
```bash
echo "=== D-ND Node Discovery ==="
echo "Hostname: $(hostname)"
echo "User: $(whoami)"
echo "OS: $(uname -s 2>/dev/null || echo 'Windows')"
echo "CWD: $(pwd)"
echo ""
# Detect repos
echo "## Detected Repositories"
for dir in */; do
if [ -d "$dir/.git" ]; then
commit=$(git -C "$dir" rev-parse --short HEAD 2>/dev/null)
branch=$(git -C "$dir" branch --show-current 2>/dev/null)
echo " $dir — $branch @ $commit"
fi
done
echo ""
# Detect capabilities
echo "## Capabilities"
command -v ssh >/dev/null 2>&1 && echo " SSH: available" || echo " SSH: not available"
command -v docker >/dev/null 2>&1 && echo " Docker: available" || echo " Docker: not available"
command -v node >/dev/null 2>&1 && echo " Node.js: $(node --version 2>/dev/null)" || echo " Node.js: not available"
command -v python3 >/dev/null 2>&1 && echo " Python: $(python3 --version 2>/dev/null)" || echo " Python: not available"
command -v git >/dev/null 2>&1 && echo " Git: $(git --version 2>/dev/null)" || echo " Git: not available"
echo ""
# Test API connectivity (if configured)
i