Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

docker-local-dev

БесплатноЗапускает вложенные скриптыНе проверен

Create or repair local Docker Compose services, Dockerfiles, mounts, networking, and readiness checks. Use when container configuration is the deliverable…

thienanblogот thienanblog★ 69 звёзд на GitHub

Об этом скилле

Docker Local Development

Delegation

Run in the main conversation by default. Delegation can increase usage: obtain explicit approval for the proposed agent count and scope before using subagents. Reuse that approval within its bounds; ask again before expanding the approved count or scope.

Guardrails

  • Design for local development. Keep production images, secrets, deployment, certificates, and runtime topology separate.
  • Inspect before asking questions or proposing services. Treat detection as evidence, not authority.
  • Preserve existing Docker files and unrelated working-tree changes. Keep a semantic diff for material stack changes. Ordinary configuration edits are covered by a setup or repair request; volume deletion, destructive resets, and data migrations need authorization covering those effects.
  • Generate only services the project uses or the user explicitly requests. A database is not mandatory when the project uses SQLite, a host service, or an external database.
  • Prefer direct foreground commands and one concern per service. Add Supervisor or PM2 only when the project already requires it or production-parity testing justifies it.
  • Prefer a stable top-level Compose name: and role-based service names. Do not set container_name by default because it prevents service scaling and creates cross-project collisions.
  • Select images by project constraints, team or production compatibility, trusted publisher, supported version, and architecture. Treat an already-downloaded image only as a tie-breaker. Avoid floating latest tags in generated files.
  • Publish only ports needed by the host. Bind local-only ports to 127.0.0.1 by default; keep databases, caches, SMTP, PHP-FPM, and internal APIs unexposed when possible.
  • Keep secrets out of committed files, generated documentation, command output, and frontend or proxy containers. Generate an ignored local env file plus a safe example when configuration is needed.

Workflow

1. Inspect the project

Run project commands from the target project directory. Resolve bundled helpers through <skill-directory>/scripts/; their location is separate from the project working directory. Check Docker and Compose capabilities before selecting syntax:

docker version
docker compose version

Inspect, when present:

  • compose.yaml, compose.yml, docker-compose*.yml, and override files
  • Dockerfile*, .dockerignore, .devcontainer/, Makefiles, and package scripts
  • application manifests, lockfiles, runtime-version files, env examples, and monorepo/workspace files
  • existing local proxy conventions, Compose project names, networks, volumes, and host port mappings
  • Git status and repository instructions before editing tracked files

Use stack detection when it adds useful evidence; direct inspection is enough for a known, narrow repair. Resolve the script from this skill directory:

"<skill-directory>/scripts/detect-stack.sh" "<project-root>"

The script emits JSON on stdout and diagnostics on stderr. Confirm uncertain findings from source files without printing secret values.

When Docker is available, optionally inspect local images and networks:

"<skill-directory>/scripts/detect-images.sh"
"<skill-directory>/scripts/detect-network.sh"

Do not let cached images or a detected network override project compatibility or isolation requirements.

2. Resolve the design

Infer and summarize:

  • apps in scope, dev commands, internal ports, shared packages, and live-reload needs
  • runtime and package-manager versions from constraints and lockfiles
  • database, cache, queue, scheduler, mail, and debugging services actually used
  • existing reverse proxy, explicit .localhost hostnames, same-origin /api routing, and required host exposure
  • bind mounts versus Compose Watch; use Watch only when supported by the installed Compose version
  • merge versus focused repair versus replacement of existing Docker files

Resolve ordinary setup choices from evidence. Ask only when missing information changes the apps in scope, data compatibility, network exposure, or a material replacement not already requested.

3. Load only relevant references

Need Read
Detection rules and monorepo discovery references/tech-stack-detection.md
Images, processes, dependencies, mounts, environment, Dockerfiles references/service-configuration-guide.md
WordPress, Drupal, or Joomla references/cms-configuration-guide.md
Ports, proxies, domains, networks, host access references/networking-ports-guide.md
Existing Compose or Dockerfile changes references/merge-backup-strategy.md
Readiness checks and smoke tests references/health-check-patterns.md

Use assets as starting points, not immutable output. Remove unselected services and adapt placeholders, healthchecks, commands, paths, users, and versions to the detected project.

4. Preview and generate

For a material change to

Полный SKILL.md на GitHub

Установить docker-local-dev в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

agents/openai.yamlassets/templates/docker-compose/base.ymlassets/templates/docker-compose/node.ymlassets/templates/docker-compose/php-drupal.ymlassets/templates/docker-compose/php-joomla.ymlassets/templates/docker-compose/php-laravel.ymlassets/templates/docker-compose/php-wordpress.ymlassets/templates/docker-compose/python.ymlassets/templates/dockerfile/node.dockerfileassets/templates/dockerfile/php-drupal.dockerfileassets/templates/dockerfile/php-joomla.dockerfileassets/templates/dockerfile/php-laravel.dockerfileassets/templates/dockerfile/php-wordpress.dockerfileassets/templates/dockerfile/python-django.dockerfileassets/templates/dockerfile/python-fastapi.dockerfileassets/templates/docs/COMMANDS.md.templateassets/templates/docs/USAGE.md.templateassets/templates/nginx/drupal.confassets/templates/nginx/joomla.confassets/templates/nginx/laravel.confassets/templates/nginx/node-proxy.confassets/templates/nginx/python-wsgi.confassets/templates/nginx/wordpress.confassets/templates/wordpress/wp-config-docker.phpreferences/cms-configuration-guide.mdreferences/health-check-patterns.mdreferences/merge-backup-strategy.mdreferences/networking-ports-guide.mdreferences/service-configuration-guide.mdreferences/tech-stack-detection.mdscripts/db-test.shscripts/detect-images.shscripts/detect-network.shscripts/detect-stack.shscripts/health-check.shscripts/port-check.shscripts/scan-host-ports.mjs

FAQ

Что делает скилл docker-local-dev?

Create or repair local Docker Compose services, Dockerfiles, mounts, networking, and readiness checks. Use when container configuration is the deliverable; ordinary container commands and production deployment are separate concerns.

Как установить скилл docker-local-dev?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл docker-local-dev запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить docker-local-dev с