devcontainer-generatorlisted
Install: claude install-skill MrBogomips/claude-code
# Devcontainer Generator
Generate a production-ready `.devcontainer` setup for any repository through an 11-step interactive workflow (Steps 0–9 with Step 1b). The skill scans the CWD, proposes smart defaults, and lets the user confirm or adjust at each step.
## Design Principles
- **Firewall always deployed**: `apply-firewall.sh` and `firewall-rules.conf` are always generated. When user doesn't want restrictions, the default policy is `ALLOW *`.
- **Prepopulated choices**: Each step comes with reasonable defaults pre-selected based on detection.
- **Every step = multiple choices + open option**: All steps use `AskUserQuestion(multiSelect: true)` with pre-selected defaults. The built-in "Other" escape allows user additions.
- **Host reachability**: Dev servers must bind to `0.0.0.0` not `localhost`/`127.0.0.1`. Generated configs and DEVCONTAINER.md include per-framework guidance.
- **Lean interaction**: Propose smart defaults, let user confirm or adjust, never ask for information you can detect.
## Workflow
### Step 0: Preflight Discovery
**Automatic — no user interaction.**
1. Parse `$ARGUMENTS` for explicit requests (e.g., "Next.js with PostgreSQL", "no firewall", "Claude Code only"). Use any explicit requests to pre-select options in subsequent steps.
2. Scan CWD for tech stack:
- **Languages**: `package.json` → Node.js, `*.csproj`/`*.sln`/`global.json` → .NET, `requirements.txt`/`pyproject.toml`/`setup.py`/`Pipfile` → Python, `go.mod` → Go, `Cargo.toml` → Rust,