New advertisers: 50% off your first month with code FIRSTMONTHSee slots

General development utilities for file search, data processing, and diagrams in Claude Code.

version
2.16.2
GitHub stars
60
View on GitHub

What it does

  • Adds fd, rg, jq, and yq skills for finding files, searching code, and querying JSON and YAML
  • Covers nushell structured data, imagemagick conversion, Mermaid and D2 diagrams, and justfile recipes
  • Includes zsh-gotchas to flag zsh expansions that silently rewrite commands, plus binary-analysis for unknown files
  • Designed for developers who want common CLI tools available as ready-made skills inside their coding sessions

General utilities - fd, rg, jq, shell, imagemagick

Add marketplace

/plugin marketplace add laurigates/claude-plugins

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install tools-plugin@laurigates-claude-plugins

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

Apptainer

Run a container image as one batch command — a CUDA tool that reads files, writes files and exits — on a Linux host, without a daemon and without root. Apptainer pulls any OCI/Docker image, converts it to a single read-only .sif file, and runs it as you, on the host network, with your home directory mounted.

When to Use This Skill

Use Apptainer when...Use Docker/Podman/OrbStack instead when...
A GPU tool (COLMAP, OpenMVS, a trainer) must run from a pinned image on a Linux boxThe container is a long-running service needing port mapping, compose or networks
There is no root, or the distro's podman predates CDI GPU support (< 4.1)You need isolation from the host — Apptainer shares network, PIDs and $HOME by default
The job is "crunch this directory and exit"The host is macOS — Apptainer is Linux-only; OrbStack/Docker run there

Images stay OCI, so the same @sha256: image runs under Apptainer on the GPU box, Docker on a laptop and Kubernetes in CI.

Install

Ubuntu / Pop!_OS, maintained path (apt updates it; needs sudo once):

sudo add-apt-repository -y ppa:apptainer/ppa && sudo apt update && sudo apt install -y apptainer

Use the apptainer-suid package instead only if you need the setuid variant. On Ubuntu 24.04+, unprivileged user namespaces are restricted by AppArmor and must be allowed on the host — see the Apptainer admin guide, User Namespace Requirements.

No root at all: the official install-unprivileged.sh builds a relocatable install from EPEL RPMs. It needs rpm2cpio, which Debian/Ubuntu lack — see REFERENCE.md for the stand-in and the full command. Check user namespaces first: unshare -Ur true && echo ok.

The Root-Disk Trap: Cache Under $HOME, Temp Under /tmp

A pull downloads the OCI layers into $APPTAINER_CACHEDIR (default ~/.apptainer/cache) and assembles the SIF under $APPTAINER_TMPDIR (default /tmp). A 3.4 GB CUDA image therefore needs ~3.4 GB of layers plus the 3.2 GB SIF on the root disk unless both are redirected. Point them at the big disk, persistently, before the first pull:

export APPTAINER_CACHEDIR=/big/disk/apptainer/cache APPTAINER_TMPDIR=/big/disk/apptainer/tmp
mkdir -p "$APPTAINER_CACHEDIR" "$APPTAINER_TMPDIR"

The cache directory must be per-user; do not share one between accounts.

Pull by Digest Into a Named File

A tag can move; a digest cannot. Resolve the digest once, then pull into a file named for what it is. Docker Hub's digest already carries the sha256: prefix, so it follows the @ as-is:

curl -fsSL "https://hub.docker.com/v2/repositories/colmap/colmap/tags?page_size=5&ordering=last_updated" | jq -r '.results[] | "\(.name) \(.digest)"'
apptainer pull /big/disk/images/colmap-20260929.8466.sif docker://colmap/colmap@<digest>

warn rootless{…} ignoring (usually) harmless EPERM on setxattr "security.capability" during an unprivileged pull is expected: file capabilities cannot be set without root, and batch tools do not use them.

GPU: --nv

--nv binds the host NVIDIA driver libraries and device nodes into the container. No nvidia-container-toolkit, no CDI spec. Verify before a long run:

apptainer exec --nv image.sif nvidia-smi -L

The image's CUDA runtime must be supported by the host driver. Read the tool's own banner too — e.g. colmap help prints with CUDA for a GPU build.

Binds: Only Home, the Working Directory and /tmp Appear

By default Apptainer mounts $HOME, the current directory and /tmp (plus /proc, /sys, /dev, /etc/hosts and /etc/localtime — the mount * and bind path lines of apptainer.conf). Data on any other mount is absent inside the container, and the tool reports a plain "No such file or directory" — it looks like a wrong path, not a missing bind. Bind data disks explicitly:

apptainer exec --nv --bind /mnt/data image.sif colmap feature_extractor --image_path /mnt/data/images ...

Not a Sandbox

exec runs as your UID with your environment, your network and write access to everything bound — including $HOME. That is what makes it convenient for batch tools, and why it is no isolation boundary. For a cleaner run, add --cleanenv (drop host environment) and --containall (no automatic home/tmp mounts, own PID/IPC namespaces); then bind exactly what the job needs.

Scripting It

Wrap the call in a shell function, not a string variable:

colmap() { apptainer exec --nv --bind "$DATA" "$SIF" colmap "$@"; }
colmap feature_extractor --database_path "$W/db.db" --image_path "$IMG"

A string such as C="apptainer exec … colmap" followed by $C args fails in zsh with exit 127, because zsh does not word-split unquoted parameters (see tools-plugin:zsh-gotchas). This bites over ssh host '…' whenever the remote login shell is zsh. Run multi-line remote scripts as ssh host bash -s <<'EOF' … EOF.

For an overnight job, detach it from the SSH session and log to the data disk:

setsid nohup bash run.sh </dev/null >/big/disk/run.log 2>&1 &

Agentic Optimizations

ContextCommand
GPU visible inside the imageapptainer exec --nv image.sif nvidia-smi -L
Image size on diskls -lh /big/disk/images/*.sif
Tool options in the pinned versionapptainer exec image.sif <tool> <subcommand> -h | grep -E '<flag>'
Cache usagedu -sh "$APPTAINER_CACHEDIR"
Prune the layer cacheapptainer cache clean -f

Related

  • tools-plugin:hf-downloads — the same root-disk trap for Hugging Face caches
  • tools-plugin:zsh-gotchas — why a command string in a variable fails in zsh
  • configure-plugin:configure-container — building and publishing the OCI images Apptainer consumes

Readme

Tools Plugin

General development utilities for Claude Code - fd, rg, jq, yq, nushell, shell, imagemagick, mermaid, d2.

Overview

Collection of general-purpose development utilities for file finding, text search, data processing, and more.

Skills

General

SkillDescription
deps-installUniversal dependency installer - auto-detects package manager
generate-imageGenerate images using Nano Banana Pro (Gemini 3 Pro Image)

File & Search

SkillDescription
fd-file-findingFast file finding using fd
rg-code-searchFast code search using ripgrep

Data Processing

SkillDescription
nushell-data-processingStructured data processing with native tables (JSON, YAML, CSV, TOML)
jq-json-processingJSON querying and transformation with jq
yq-yaml-processingYAML querying and transformation with yq

System

SkillDescription
shell-expertShell scripting and bash patterns
zsh-gotchasZsh expansions that rewrite a command — $VAR:word modifiers, leading =, no word splitting, path tied to PATH, a bare local that lists every parameter
justfile-expertJust command runner and recipe development
cli-smoke-recipesAdvisory pattern for exposing transforming modules via CLI plus a bulk-smoke justfile recipe — decoders, codecs, parsers, formatters
imagemagick-conversionImage conversion and manipulation
hf-downloadsDisk-safe Hugging Face model downloads — HF_HOME/xet cache redirection, gated-repo auth, staging pattern
apptainerRun OCI images as rootless batch jobs on a Linux GPU box — --nv passthrough, digest-pinned SIF files, cache off the root disk

Diagrams

SkillDescription
mermaid-diagramsGenerate diagrams from text using Mermaid CLI (flowcharts, sequence, ERD, class)
d2-diagramsModern text-to-diagram language with themes, layouts, and advanced styling

Usage Examples

Find Files

fd -e ts                    # Find TypeScript files
fd -t f config              # Find files with "config" in name
fd -e md -x head -5         # Preview markdown files

Search Code

rg "TODO|FIXME"             # Find all TODOs
rg -t py "def.*async"       # Find async functions in Python
rg -l "import React"        # List files importing React

Process JSON

cat data.json | jq '.items[] | .name'
jq -r '.dependencies | keys[]' package.json

Process YAML

yq '.services' docker-compose.yml
yq -i '.version = "2.0"' config.yaml

Process Structured Data (Nushell)

# Visual table output
nu -c 'open package.json | get dependencies | transpose name version'

# Cross-file comparison
nu -c 'open .release-please-manifest.json | transpose plugin version | sort-by plugin'

# Multi-format conversion
nu -c 'open config.yaml | to json'

Run Project Tasks (Justfile)

just                        # Show available recipes
just test                   # Run tests
just lint                   # Run linters
just build                  # Build project
just dev                    # Development mode with watch

Generate Diagrams (Mermaid)

mmdc -i diagram.mmd -o diagram.svg    # Convert to SVG
mmdc -i diagram.mmd -o diagram.png    # Convert to PNG
mmdc -i diagram.mmd -o out.svg -t dark # Dark theme

Generate Diagrams (D2)

d2 diagram.d2 diagram.svg             # Convert to SVG
d2 --watch --browser diagram.d2       # Live preview
d2 -t 101 diagram.d2 out.svg          # Themed output
d2 --sketch diagram.d2 out.svg        # Hand-drawn style

Universal Dependency Install

/deps:install               # Auto-detects and uses npm/yarn/pnpm/uv/cargo
/deps:install axios --dev   # Install as dev dependency

Disk-Safe Hugging Face Downloads

# Redirect hub + xet cache to the same disk as the destination (avoids ENOSPC on root)
HF_HOME=/big/disk/hf-cache hf download <repo> <file> --local-dir /big/disk/staging

# Fix gated-repo 401s under HF_HOME (token read from $HF_HOME/token, not ~/.cache)
export HF_TOKEN="$(cat ~/.cache/huggingface/token)"

Installation

/plugin install tools-plugin@laurigates-claude-plugins

License

MIT

Details

Marketplace
laurigates/claude-plugins
Source
tools-plugin
Author
Lauri Gates
Category
Utilities
License
MIT
Keywords
tools, utilities, fd, rg, jq, shell
Listed since
Apr 7, 2026

More from laurigates/claude-plugins

All 52

Similar to tools-plugin

More Developer Tools