How slimtoolkit/slim works
SlimToolkit is a container inspection, optimization, and security CLI. Its principal workflow profiles a target image by running an instrumented container, observing application behavior, and producing reports and security artifacts; image-building capabilities can then produce smaller images. The README also documents separate analysis, debugging, image-management, registry, and vulnerability commands. Several command handlers and subsystem implementations were not sampled, so those branches are represented at their documented directory paths; edges are limited to documented capabilities or visible source references.
Main entry points: profile/handler.go Profile · xray/handler.go Xray · merge/handler.go Merge · command_report.go Command reports
Components 24
CLI workflows
- Slim CLI
pkg/app/master/app.go - Profile
pkg/app/master/command/profile/handler.go - Build
pkg/app/master/command/containerize/handler.go - Xray
pkg/app/master/command/xray/handler.go - Lint
pkg/app/master/command/lint/handler.go - Debug
pkg/app/master/command/debug - Merge
pkg/app/master/command/merge/handler.go - Registry
pkg/app/master/command/registry - Vulnerability
pkg/app/master/command/vulnerability
Container analysis
- Docker client
pkg/docker/dockerclient/client.go - Container inspector
pkg/app/master/inspectors/container/container_inspector.go - Image inspector
pkg/app/master/inspectors/image/image_inspector.go - HTTP probing
pkg/app/master/probe/http
Image operations
- Image builder
pkg/imagebuilder/imagebuilder.go - Build engine
pkg/imagebuilder/internalbuilder/engine.go - Image reader
pkg/imagereader/imagereader.go
Sensor runtime
- Sensor app
pkg/app/sensor/app.go - Execution modes
pkg/app/sensor/execution - Process monitors
pkg/app/sensor/monitor - Ptrace monitor
pkg/monitor/ptrace/ptrace.go
Reports and security
- Command reports
pkg/report/command_report.go - Dockerfile linter
pkg/docker/linter/linter.go - EPSS client
pkg/vulnerability/epss/client/client.go
Other components
- Developer
Connections 29
- Developer → Slim CLI: runs commands
- Slim CLI → Profile: dispatches
- Slim CLI → Build: dispatches
- Developer → Profile: profiles images
- Developer → Build: optimizes images
- Developer → Xray: inspects images
- Developer → Lint: lints images
- Developer → Debug: debugs containers
- Developer → Merge: merges images
- Developer → Registry: manages registry
- Developer → Vulnerability: checks vulnerabilities
- Profile → Docker client: creates client
pkg/app/master/command/profile/handler.go - Profile → Image inspector: inspects target
pkg/app/master/command/profile/handler.go - Profile → Container inspector: runs container
pkg/app/master/command/profile/handler.go - Profile → HTTP probing: starts probes
pkg/app/master/command/profile/handler.go - Profile → Command reports: records results
- Xray → Docker client: creates client
pkg/app/master/command/xray/handler.go - Xray → Image inspector: inspects image
pkg/app/master/command/xray/handler.go - Xray → Command reports: records results
- Lint → Dockerfile linter: runs checks
pkg/app/master/command/lint/handler.go - Merge → Image reader: reads images
pkg/app/master/command/merge/handler.go - Merge → Build engine: builds output
pkg/app/master/command/merge/handler.go - Merge → Command reports: records results
- Build → Build engine: builds image
- Build engine → Image builder: uses builder API
pkg/imagebuilder/internalbuilder/engine.go - Vulnerability → EPSS client: queries scores
pkg/app/master/command/vulnerability/handler_tool_epss.go - Sensor app → Execution modes: selects mode
pkg/app/sensor/app.go - Sensor app → Process monitors: uses monitors
pkg/app/sensor/app.go - Ptrace monitor → Command reports: publishes events
pkg/monitor/ptrace/ptrace.go