restart-dev-containers — community restart-dev-containers, WitchCityRope, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for Development Agents needing automated Docker container restart and validation for development environments. The live Witch City Rope repository

DarkMonkDev DarkMonkDev
[1]
[1]
Updated: 3/16/2026

Agent Capability Analysis

The restart-dev-containers skill by DarkMonkDev is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Perfect for Development Agents needing automated Docker container restart and validation for development environments.

Core Value

Empowers agents to safely restart and validate Docker development containers using `docker-compose` and project isolation, preventing interference with test containers and ensuring compilation checks and health verification.

Capabilities Granted for restart-dev-containers

Automating dev container restarts after code changes
Debugging unhealthy dev containers with compilation error checks
Validating dev container health endpoints for Web, API, and Database services

! Prerequisites & Limits

  • Requires Docker running and project root access
  • Limited to development containers only, use `restart-test-containers` for test environments
  • Must use `execute.sh` script for correct procedure and safety checks
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

restart-dev-containers

Install restart-dev-containers, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Restart Dev Containers Skill

Purpose: Restart Docker DEVELOPMENT containers the RIGHT way - this is the ONLY correct procedure.

CRITICAL: This skill is for DEVELOPMENT containers only. For TEST containers, use restart-test-containers skill.

When to Use:

  • After code changes that need container rebuild
  • When dev containers are unhealthy
  • When "Element not found" errors appear in dev testing (usually means compilation errors)

When NOT to Use:

  • For test containers - use restart-test-containers instead
  • For running E2E tests - use test-environment skill instead

CONTAINER ISOLATION

CRITICAL: Dev and test containers are isolated using different project names:

  • Dev containers: -p witchcityrope-dev
  • Test containers: -p witchcityrope-test

This prevents operations on one environment from affecting the other.

SINGLE SOURCE OF TRUTH

This skill is the ONLY place where dev container restart procedure is documented.

If you find container restart instructions elsewhere:

  1. They are outdated or wrong
  2. Report to librarian for cleanup
  3. Use THIS skill instead

DO NOT duplicate this procedure in:

  • Agent definitions
  • Lessons learned (reference this skill instead)
  • Process documentation (reference this skill instead)

The Correct Process

Common mistakes (DO NOT do these):

  • Running docker-compose up -d without the dev overlay
  • Running compose without -p witchcityrope-dev (will interfere with test containers)
  • Running ./dev.sh then immediately running tests without checking compilation

Instead: Always use execute.sh -- it handles overlay, project isolation, compilation checks, and health verification.


How to Use This Skill

Executable Script: execute.sh

bash
1# From project root 2bash .claude/skills/restart-dev-containers/execute.sh 3 4# Skip confirmation prompt (for automation) 5SKIP_CONFIRMATION=true bash .claude/skills/restart-dev-containers/execute.sh

What the script does:

  1. Shows pre-flight information (purpose, when/when NOT to use)
  2. Requires confirmation before proceeding (skippable with env var)
  3. Validates prerequisites (Docker running, project root, dev overlay exists)
  4. Stops existing dev containers (using -p witchcityrope-dev)
  5. Starts containers with dev overlay (docker-compose.yml + docker-compose.dev.yml)
  6. Checks for compilation errors in Web and API containers
  7. Verifies health endpoints (Web, API, Database)
  8. Reports status summary

Script includes safety checks - it will not run blindly without showing you what it's about to do.


Quick Reference

bash
1# From project root - with confirmation prompt 2bash .claude/skills/restart-dev-containers/execute.sh 3 4# For automation - skip confirmation 5SKIP_CONFIRMATION=true bash .claude/skills/restart-dev-containers/execute.sh 6 7# Force full rebuild (bypass Docker layer cache) - use after adding new npm/NuGet packages 8NO_CACHE=true SKIP_CONFIRMATION=true bash .claude/skills/restart-dev-containers/execute.sh

No manual steps documented here -- all logic lives in execute.sh. If the script is unavailable, read execute.sh directly for the correct procedure.


Common Issues & Solutions

Issue: Containers start but tests fail

Cause: Compilation errors in container. The skill automatically checks compilation logs and reports errors.

Issue: Port already in use

Cause: Old containers still running or other process using ports. Check running containers and kill orphans, or use lsof to find what's occupying the port.

Issue: Health checks fail after compilation succeeds

Cause: Services need more time to initialize. The skill retries health checks for up to 60 seconds.

Issue: Test containers were deleted when restarting dev

Cause: Missing project isolation flag. Always use this skill which includes the correct -p witchcityrope-dev flag.


Integration with Agents

react-developer / backend-developer

After code changes:

I'll restart dev containers to apply my changes.

Skill is invoked automatically

Result: Code changes applied, compilation verified


Output Format

When run via Claude Code, skill returns:

json
1{ 2 "skill": "restart-dev-containers", 3 "status": "success", 4 "timestamp": "2025-12-01T15:30:00Z", 5 "containers": { 6 "running": 3, 7 "expected": 3, 8 "healthy": true 9 }, 10 "compilation": { 11 "web": "clean", 12 "api": "clean" 13 }, 14 "healthChecks": { 15 "web": "healthy", 16 "api": "healthy", 17 "database": "healthy" 18 }, 19 "readyForTesting": true, 20 "message": "Environment ready for development and testing" 21}

On failure:

json
1{ 2 "skill": "restart-dev-containers", 3 "status": "failure", 4 "error": "Compilation errors in web container", 5 "details": "TypeError: Cannot read property 'foo' of undefined at line 42", 6 "action": "Fix source code and restart again" 7}

  • restart-test-containers: For restarting TEST containers (uses -p witchcityrope-test)
  • test-environment: For running E2E tests (calls restart-test-containers internally)

Maintenance

This skill is the single source of truth for DEV container restart.

To update the restart procedure:

  1. Update THIS file only
  2. Test the new procedure
  3. DO NOT update process docs, lessons learned, or agent definitions
  4. They should reference this skill, not duplicate it

Version History

  • 2026-02-24: Removed test-server from dev compose
    • test-server does not belong in dev environment; test infrastructure is handled by restart-test-containers skill
    • Reduced expected container count from 4 to 3 (postgres, api, web)
  • 2025-12-02: Removed seed data check
    • Was failing silently due to wrong database password
    • Unnecessary since API auto-seeds on startup and health checks verify connectivity
  • 2025-12-01: Added -p witchcityrope-dev project isolation
    • Added reference to restart-test-containers skill
  • 2025-11-04: Created as single source of truth for container restart

Remember: This skill is executable automation. Run it, don't copy it.

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is restart-dev-containers?

Perfect for Development Agents needing automated Docker container restart and validation for development environments. The live Witch City Rope repository

How do I install restart-dev-containers?

Run the command: npx killer-skills add DarkMonkDev/WitchCityRope/restart-dev-containers. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for restart-dev-containers?

Key use cases include: Automating dev container restarts after code changes, Debugging unhealthy dev containers with compilation error checks, Validating dev container health endpoints for Web, API, and Database services.

Which IDEs are compatible with restart-dev-containers?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for restart-dev-containers?

Requires Docker running and project root access. Limited to development containers only, use `restart-test-containers` for test environments. Must use `execute.sh` script for correct procedure and safety checks.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add DarkMonkDev/WitchCityRope/restart-dev-containers. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use restart-dev-containers immediately in the current project.

Related Skills

Looking for an alternative to restart-dev-containers or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI