/acc:check-docker-compose-configfrom acc
Analyzes Docker Compose configs for PHP stacks, detecting missing health checks, improper dependencies, hardcoded secrets, and networking issues.
Ships in acc. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Analyze Docker Compose files for configuration issues in PHP application stacks.
# BAD: No healthcheck section for service
# GOOD: Health check present
services:
php-fpm:
healthcheck:
test: ["CMD-SHELL", "php-fpm-healthcheck || exit 1"]
interval: 10s
timeout: 3s
retries: 3
# BAD: No health condition (race condition on startup)
services:
app:
depends_on:
- mysql
# GOOD: Health condition enforced
services:
app:
depends_on:
mysql:
condition: service_healthy
# BAD: Credentials in plain text
services:
mysql:
environment:
MYSQL_ROOT_PASSWORD: secret123
# GOOD: Using .env file reference
services:
mysql:
env_file: [.env]
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
# GOOD: Resource limits defined
services:
php-fpm:
deploy:
resources:
limits:
cpus: "1.0"
memory: 512M
# GOOD: Restart policy defined
services:
app:
restart: unless-stopped
# BAD: Deprecated in Compose V2+
version: "3.8"
services:
app:
image: my-app
# GOOD: Explicit network isolation
services:
app:
networks: [frontend, backend]
mysql:
networks: [backend]
networks:
frontend:
backend:
internal: true
# GOOD: User mapping to avoid permission issues
services:
php-fpm:
user: "${UID:-1000}:${GID:-1000}"
volumes:
- ./src:/var/www/html
# BAD: Binding to all interfaces — ports: ["80:80"]
# GOOD: Specific host binding — ports: ["127.0.0.1:8080:80"]
# GOOD: Explicit env_file with variable interpolation
services:
app:
env_file: [.env]
# Hardcoded passwords
Grep: "PASSWORD.*:.*['\"]?[a-zA-Z0-9]" --glob "**/docker-compose*.yml"
# depends_on without condition
Grep: "depends_on:" --glob "**/docker-compose*.yml"
# Deprecated version field
Grep: "^version:" --glob "**/docker-compose*.yml"
# Port bindings
Grep: "ports:" --glob "**/docker-compose*.yml"
| Pattern | Severity | Impact |
|---|---|---|
| Hardcoded credentials | Critical | Security breach risk |
| No health checks | Major | Unreliable dependencies |
| depends_on without condition | Major | Race conditions on startup |
| No resource limits | Major | OOM kills, resource exhaustion |
| Port conflicts | Major | Service startup failure |
| Missing networks | Minor | No network isolation |
| Deprecated version field | Minor | Compatibility warning |
| No restart policy | Minor | Manual recovery needed |
| Volume permissions | Minor | File access errors |
| Missing .env reference | Minor | Undefined variable risk |
### Compose Issue: [Description]
**Severity:** Critical/Major/Minor
**File:** `docker-compose.yml:line`
**Issue:** [Description of the problem]
**Fix:** [Corrected configuration snippet]
**Impact:** [What could happen if not fixed]
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub dykyi-roman/awesome-claude-code --plugin acc283 skills in this plugin
/access-control-knowledgeAccess Control knowledge base. Provides ACL, RBAC, ABAC, ReBAC models, multi-tenancy patterns, and PHP implementations (Symfony Voters, Laravel Gates) for security audits and generation./adr-knowledgeAction-Domain-Responder pattern knowledge base. Provides patterns, antipatterns, and PHP-specific guidelines for ADR (web-specific MVC alternative) audits./adr-templateGenerates Architecture Decision Records (ADR) for PHP projects. Creates structured decision documentation with context, decision, and consequences.Other plugins' skills for the same job