speckit.devops
Skill3 starsChanged 45 days agoMITView on GitHub
Docker Infrastructure & Security Hardening Specialist — Port ENV-first.
- Reads credentials
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 1 is distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Read .agents/memory/constitution.md, .env.example, existing Dockerfile, and docker-compose.yml.
- Very specific: line 20
Precedence Rule: If .env or system environment already defines port variables (e.g.
- Very specific: line 26
Check running Docker locally via: docker compose ps --format json 2>$null.
- Very specific: line 31
Use named volumes for package caches (e.g.
- Distinctive: line 42
Never hardcode secrets, credentials, or private keys in Dockerfile or compose files.
- Very specific: line 46
Document all port variables, defaults, and usage instructions in .env.example.
- Very specific: line 47
Update .agents/knowledge_base/infrastructure.md with container topology, networks, volumes, and health verification steps.
- Very specific: line 53
Never run docker compose down -v on production.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Mission
Architect, configure, and maintain robust, containerized runtime environments and reproducible Docker infrastructure with strict ENV-first port isolation and non-root security standards.
Inputs and Outputs
- Read
.agents/memory/constitution.md,.env.example, existingDockerfile, anddocker-compose.yml. - Produce and maintain
Dockerfile,docker-compose.yml,docker-compose.prod.yml,.dockerignore,.env.example, and.agents/knowledge_base/infrastructure.md.
Protocol
1. Port Allocation (ENV-first)
- Published and container ports MUST always be driven by environment variables:
- Local: read from
.envfile or environment. - Production/CI: read from server environment.
- Compose mapping format:
"${PUBLIC_PORT}:${WEB_CONTAINER_PORT}".
- Local: read from
- Precedence Rule: If
.envor system environment already defines port variables (e.g.PUBLIC_PORT,ADMIN_PORT,API_PORT), ABSOLUTELY PRESERVE existing ports and never trigger overwrite scans. - Port Discovery Policy:
- Existing ports in
.env: SKIP scan and use existing configuration. - Local without
.envand no running Docker: scan available host ports using helper and select consecutive available ports. - Local with already running containers: extract ports from active containers; do not re-scan.
- Staging/Production without
.env: perform initial scan and persist to.env.
- Existing ports in
- Check running Docker locally via:
docker compose ps --format json 2>$null. - Standard Port Spacing Pattern: Public Frontend
N→ Admin FrontendN+1→ Backend APIN+2.
2. Local Docker Runtime
- Configure compose with volume mounts for code hot-reloading.
- Use named volumes for package caches (e.g.
node_modules) to avoid host-container filesystem locking. - Declare healthchecks with interval, timeout, and retries for every service.
3. Production Multi-Stage Hardening
- Implement multi-stage builds separating build tooling from minimal runtime images (
builder→runner). - Enforce non-root execution (
USER nodeorUSER appuser). - Strip development dependencies and compiler artifacts from the final image.
- Standardize on Alpine or Slim official base images.
4. Security & Isolation Controls
- Maintain comprehensive
.dockerignoreblocking.env,.git, temporary artifacts, and host dependencies. - Never hardcode secrets, credentials, or private keys in Dockerfile or compose files.
- Expose only ports strictly required for inter-service communication or external reverse proxies.
5. Infrastructure Documentation
- Document all port variables, defaults, and usage instructions in
.env.example. - Update
.agents/knowledge_base/infrastructure.mdwith container topology, networks, volumes, and health verification steps.
Completion Gate
Docker configurations build cleanly, services reach healthy status without root privileges, ports are 100% ENV-driven without collisions, and .env.example is fully documented.
Guard Rails
Never run docker compose down -v on production. Never hardcode port numbers or credentials. Never scan ports if containers are already running or .env exists.
In this repository64 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/bro-skills.mdcCursor rule
- .agents/skills/llms.txtllms.txt
- brandkitSkill
- bro-mcp-loopSkill
- ci-security-scanning-with-strixSkill
- design-taste-frontendSkill
- fix-security-vulnerabilities-with-strixSkill
- full-output-enforcementSkill
- gpt-tasteSkill
- high-end-visual-designSkill
- imagegen-frontend-mobileSkill
- imagegen-frontend-webSkill
- image-to-codeSkill
- industrial-brutalist-uiSkill
- managed-pentesting-with-strixSkill
- minimalist-uiSkill
- penetration-testing-with-strixSkill
- ponytailSkill
- redesign-existing-projectsSkill
- speckit.ai-engineerSkill
- speckit.analyzeSkill
- speckit.architectureSkill
- speckit.backendSkill
- speckit.backlogSkill
- speckit.checkerSkill
- speckit.checklistSkill
- speckit.clarifySkill
- speckit.constitutionSkill
- speckit.contentSkill
- speckit.databaseSkill
- speckit.dddSkill
- speckit.debugSkill
- speckit.diffSkill
- speckit.event-realtimeSkill
- speckit.frontendSkill
- speckit.game-embeddedSkill
- speckit.game-native-jsSkill
- speckit.geoSkill
- speckit.identity-accessSkill
- speckit.identitySkill
- speckit.implementSkill
- speckit.mapSkill
- speckit.migrateSkill
- speckit.payment-fintechSkill
- speckit.planSkill
- speckit.quizmeSkill
- speckit.reviewerSkill
- speckit.roadmapSkill
- speckit.securitySkill
- speckit.seoSkill
- speckit.specifySkill
- speckit.sre-observabilitySkill
- speckit.statusSkill
- speckit.tasksSkill
- speckit.taskstoissuesSkill
- speckit.testerSkill
- speckit.uatSkill
- The first 60 shown.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

