Agent skill
docker-next-config-mounts
Use when asked to fix Docker Compose bind mounts for Next.js config so they mount next.config.mjs (not next.config.js) and avoid the next.config.js/ directory bug.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/docker-next-config-mounts
SKILL.md
Goal: ensure Docker Compose mounts the correct Next.js config file and avoid Docker creating a next.config.js/ directory when a bind source path is missing.
Workflow:
-
Confirm the repo uses
next.config.mjs- Check that
next.config.mjsexists at the expected path.
- Check that
-
Fix compose files
- Replace mounts of
next.config.jswithnext.config.mjs. - Prefer read-only mounts:
:ro.
- Replace mounts of
-
Prevent recurrence
- Ensure the mounted source file exists in the repo.
- Optionally add
next.config.js/to.gitignoreto prevent accidental commits if it was created previously.
-
Validate
- Rebuild or restart dev containers as needed.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?