rule-docker

Enforce Docker policy checks on Dockerfiles and docker-compose files.

1|1|Updated Mar 31, 2026
One-click install
npx skills add https://github.com/btabaska/simpler-grants-documentation-automation --skill rule-docker
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rule-docker
Source: https://github.com/btabaska/simpler-grants-documentation-automation/tree/main/.claude/skills/rule-docker
Command: npx skills add https://github.com/btabaska/simpler-grants-documentation-automation --skill rule-docker

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Dockerfiles and docker-compose configurations often drift from secure, maintainable conventions. This skill provides guardrails to enforce base image pinning, multi-stage builds, non-root user execution, layer hygiene, and secrets handling, ensuring consistent and auditable container practices across projects.

Core Features & Use Cases

  • Enforce pinned base images with digests and non-latest tags.
  • Enforce multi-stage build patterns and runtime minimal images.
  • Enforce non-root execution and proper file permissions.
  • Maintain layer hygiene and avoid caching pitfalls.
  • Enforce secure handling of secrets and environment variables.
  • Provide governance-ready checks for CI/CD pipelines and code reviews.
  • Use Case: Ensure a repository’s Docker configurations meet FedRAMP-like security and production-readiness standards.

Quick Start

Apply the rule-docker skill to validate Dockerfiles and docker-compose configurations against the defined conventions.

Frequently Asked Questions about rule-docker

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce Docker conventions for non-root users and base image pinning?

To enforce Docker conventions, apply policy checks to Dockerfiles and docker-compose files validating base image pinning with digests, non-latest tags, non-root execution, and proper file permissions. This ensures consistent and auditable container practices across projects.

What is layer hygiene in Dockerfiles and why does it matter for CI/CD pipelines?

Layer hygiene in Dockerfiles involves optimizing build layers to avoid caching pitfalls and maintain efficiency. It matters for CI/CD pipelines because it provides governance-ready checks that validate repository configurations against security and operational standards.

Can I use automated policy checks to validate docker-compose files for production readiness?

Yes, you can use automated policy checks to validate docker-compose files for production readiness. The skill analyzes repository configurations, supporting API and frontend services, multi-platform builds, and CI/CD pipelines to ensure they meet security standards like FedRAMP.

What's the best way to ensure multi-stage builds and minimal runtime images in Docker?

The best way to ensure multi-stage builds and minimal runtime images is to apply automated Docker policy checks. These checks enforce multi-stage build patterns and validate runtime images to maintain security, operational standards, and container efficiency.

How do I check for secure handling of secrets and environment variables in Docker configurations?

To check for secure handling of secrets and environment variables in Docker configurations, apply automated policy guardrails. These guardrails analyze Dockerfiles and docker-compose files to enforce secure practices and capture results for governance and security standards.

Does this Docker policy validation work with multi-platform builds and frontend services?

Yes, this Docker policy validation works with multi-platform builds and frontend services. It analyzes repository configurations across software development workflows, capturing validation results for governance, security, and operational standards across diverse service types.