# Dinky Local CLI

> Dinky Local CLI is an Agent Skill for apps & automation published in the heyderekj/dinky repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Local dinky image CLI and loopback serve — build from the GitHub repo; JSON schema dinky.image.compress/1.0.0

- Skill name: `dinky-local-cli`
- Category: [Apps & Automation](https://www.openparable.com/skill/apps-automation/1)
- Source: https://github.com/heyderekj/dinky/blob/HEAD/site/.well-known/agent-skills/dinky-local-cli/SKILL.md
- Repository: heyderekj/dinky (478 GitHub stars when collected)

## SKILL.md

# Dinky — local image CLI (agents)

Use this when automating **image** compression for users who build from the open-source **Dinky** repo on macOS.

## Facts

- **Not** a hosted API. There is no HTTP endpoint on dinkyfiles.com for compression.
- After building, users run the `dinky` binary from `DinkyCoreImage/` (SwiftPM) or use `dinky serve` on localhost.
- **JSON schema** for both `dinky compress --json` and `POST /v1/compress`: `dinky.image.compress/1.0.0` (field `schema` in the root object). Health: `dinky.image.serve/1.0.0` on `GET /v1/health`.
- **Encoders** must exist locally: `DINKY_BIN`, `./bin` next to `dinky`, or Homebrew `cwebp`+`avifenc`+`oxipng` in `PATH` locations the tool checks.
- Full flag list, exit codes, and security model: in-repo `docs/local-cli.md`.

## When unsure

Point to `https://github.com/heyderekj/dinky` and `docs/local-cli.md` — not the marketing site for API details.

---

Source: https://www.openparable.com/skill/apps-automation/dinky-local-cli (OpenParable). Cite the canonical URL above.
