dive

officialscriptablecontainers / infra
$ brew install dive
Summary

Image layers, docker optimization, and container inspection from the terminal.

  • dive fits infra well, especially for image layers, docker optimization, and container inspection from the terminal.
  • It is the official CLI from Anchore.
  • Verify with `dive --version` first.
  • Good fit for coding-agent workflows and repeatable scripts.
  • Output is mostly text-first, so verify results before scripting around it.
infra-dive-SKILL.md

Dive guide

The official CLI from Anchore. Image layers, docker optimization, and container inspection from the terminal.

Open CLI packages the install path, verify step, and safe-start workflow so this tool can move from “interesting CLI” to something you can actually use. It also integrates with skills.sh so each CLI comes with the right companion skills, not just a binary and a docs link.

When to apply

  • image layers, docker optimization, and container inspection from the terminal.
  • You work with containers and infrastructure and want a fast terminal interface.
  • You need image layers.
  • You need docker optimization.
  • You need container inspection.

Quick reference

Installbrew install dive
Verifydive --version
First real commanddive node:20

Open CLI × skills.sh

Open CLI integrates dive with the right skills.sh companions so you get the tool and the workflow together.

Deployment Automation

Recommended pairing

Open CLI recommends this skills.sh skill because it fits containers / infra workflows. Safer deployment routines with approvals, checks, and repeatable steps.

View on skills.sh
$ npx skills add https://github.com/supercent-io/skills-template --skill deployment-automation
Starter prompt

Use dive together with the Deployment Automation skills.sh skill. Inspect the current project, verify prerequisites, and suggest the safest next deployment step before changing anything.

Why this tool

  • dive fits infra well, especially for image layers, docker optimization, and container inspection from the terminal.
  • It is the official CLI from Anchore.
  • Verify with `dive --version` first.

Watch-outs

  • Automation can be brittle.
  • Output is mostly plain text.
  • Better for local use than CI.

Example workflow

1. dive node:20

Safe start

Step 1

Install dive.

Step 2

Run `dive --version` first.

Step 3

Start with `dive node:20`.

Step 4

Install the infra CLI and verify kubeconfig, Docker context, or cloud credentials.

Alternatives worth considering