talira

shiplist

Verified

Put every file in a repository in exactly one list, and check what ships in your Docker images and packages

open sourceMIT OR Apache-2.0self-hostablefree

shiplist is a small static Rust binary that makes every file tracked in a git repository belong to exactly one list in .shiplist.yml, and removes each list before a named build stage (such as test and production). shiplist check fails CI when a file is in no list or in two, or when a pattern matches nothing, so every new file needs a decision about whether it ships. shiplist prune deletes a stage's files before the tests or the image build, and shiplist verify checks what actually shipped (a build directory, an image saved with docker save, or an npm, gem, wheel, crate, Helm or zip package) against the config and a forbid list. It turns a .dockerignore-style denylist into an allowlist, and ships an Agent Skill and JSON output for coding agents.

Problems it solves

  • a setup script with a test key in it ended up inside our production Docker image
  • our .dockerignore is a denylist, so every new file ships until someone remembers to add it
  • make sure internal notes and dev scripts never get into the image we give customers to run on-premise
  • the tests pass on the full repo but the production image is missing a file the code reads
  • CI should fail when someone adds a file without deciding whether it ships
  • source maps and .env files keep sneaking into our published npm package
  • check the contents of a gem or wheel before publishing it to the registry
  • our ignore file is full of paths for files that were deleted years ago
  • verify a docker save tarball contains only the files we meant to ship, without running Docker
  • keep internal files out of a public mirror of part of our private repo
  • drafts and source maps keep ending up in the static site bucket
  • Lambda deployment zips include test fixtures and secrets nobody meant to upload
  • explain why a particular file is or isn't in the production build

Features

  • every tracked file in exactly one list (from git ls-files)
  • named build stages, each removing its list
  • fails on patterns that match nothing
  • prune a stage's files in CI or a Dockerfile build stage (--no-git)
  • verify a directory, a docker save image or a package archive
  • forbid patterns for files that must never ship
  • explain which patterns match a path
  • JSON output on every command
  • GitHub Action that checks build provenance
  • Agent Skill for Claude Code, Codex, Cursor and other agents

Capabilities

Has a command line toolplan not known

Alternatives

The same job

These do what shiplist does.

  1. dive Explore each layer of a Docker image and find ways to shrink it

Compare shiplist with the top 3