AGENT SKILL
slim
Use this skill when the user wants to shrink Docker images, analyze container layers, lint Dockerfiles, or debug running containers — Docker Slim toolkit for security and size optimization.
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 57
- Forks
- 5
01 前言 Front Matter
- name
- slim
- description
- Use this skill when the user wants to shrink Docker images, analyze container layers, lint Dockerfiles, or debug running containers — Docker Slim toolkit for security and size optimization.
03 SKILL.md 正文
slim Plugin
DockerSlim (slimtoolkit/slim) minifies container images by removing unused files, analyzes image layers, lints Dockerfiles, and attaches debug shells to running containers. CNCF sandbox project.
Commands
slim <resource> <action>— Execute slim commandsslim image build— Analyze, profile and optimize a container imageslim image xray— Perform static analysis on a container imageslim dockerfile lint— Lint a Dockerfile for best practicesslim container debug— Debug a running containerslim self version— Show slim version informationslim _ _— Passthrough to slim CLI
Installation
brew install docker-slim
# or
curl -sL https://raw.githubusercontent.com/slimtoolkit/slim/master/scripts/install-slim.sh | sudo -E bash -
Basic Usage
# Optimize an image (creates a smaller variant)
slim build myapp:latest
# Static analysis of layers and files
slim xray myapp:latest
# Lint a Dockerfile
slim lint Dockerfile
# Debug a running container
slim debug <container-id>
Common Flags
# Custom tag for optimized image
slim build myapp:latest --tag myapp:slim
# Include extra paths in the minified image
slim build myapp:latest --include-path /app/config
# Show layer change details
slim xray myapp:latest --changes all
Usage Examples
- "Shrink this Docker image for production"
- "Analyze what's inside this container image"
- "Lint my Dockerfile for best practices"
- "Debug a running container interactively"
SuperCLI
sc slim image build myapp:latest
sc slim image xray myapp:latest
sc slim dockerfile lint Dockerfile
sc plugins learn slim
04 同仓库更多 Skills
sc-machin-mcp
暂无简介
★ 57
supercli.quickstart
SuperCLI capability router — discover and execute CLI commands through namespace.resource.action interface
★ 57
zzdoc
Use this skill to compile scdoc manpages with a fast Zig-based compiler.
★ 57
zx
Use this skill when the user wants to a tool for writing better scripts using node.js.
★ 57
zvm
Use this skill when the user wants to manage multiple Zig compiler versions.
★ 57
quickstart
暂无简介
★ 57