KS
Killer-Skills

restart-dev-containers — how to use restart-dev-containers how to use restart-dev-containers, restart-dev-containers setup guide, docker development container restart, restart-dev-containers vs restart-test-containers, restart-dev-containers install, docker container restart best practices

v1.0.0
GitHub

About this Skill

Ideal for Development Agents requiring efficient Docker container management and restart capabilities. restart-dev-containers is a skill that restarts Docker development containers, used for rebuilding containers after code changes or resolving issues with unhealthy containers

Features

Restarts Docker development containers after code changes
Resolves issues with unhealthy dev containers
Fixes 'Element not found' errors in dev testing
Used in conjunction with 'restart-test-containers' skill for test containers
Rebuilds containers to reflect updated code

# Core Topics

DarkMonkDev DarkMonkDev
[1]
[1]
Updated: 2/24/2026

Quality Score

Top 5%
57
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add DarkMonkDev/WitchCityRope/restart-dev-containers

Agent Capability Analysis

The restart-dev-containers MCP Server by DarkMonkDev is an open-source Categories.community integration for Claude and other AI agents, enabling seamless task automation and capability expansion. Optimized for how to use restart-dev-containers, restart-dev-containers setup guide, docker development container restart.

Ideal Agent Persona

Ideal for Development Agents requiring efficient Docker container management and restart capabilities.

Core Value

Empowers agents to restart Docker development containers correctly, utilizing Docker protocols to rebuild containers after code changes, fix unhealthy containers, and resolve compilation errors, ensuring seamless development testing and Element not found error resolution.

Capabilities Granted for restart-dev-containers MCP Server

Restarting dev containers after code updates
Debugging unhealthy dev containers
Resolving Element not found errors in dev testing

! Prerequisites & Limits

  • Exclusively for development containers
  • Requires Docker environment
  • Not applicable for test containers, use restart-test-containers skill instead
Project
SKILL.md
5.9 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
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

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}

Related Skills

  • 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.

Related Skills

Looking for an alternative to restart-dev-containers or building a Categories.community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

widget-generator is an open-source AI agent skill for creating widget plugins that are injected into prompt feeds on prompts.chat. It supports two rendering modes: standard prompt widgets using default PromptCard styling and custom render widgets built as full React components.

149.6k
0
Design

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication

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
Communication

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
Communication