Agent Skills
› heyderekj/dinky
› dinky-local-cli
dinky-local-cli
GitHub提供 Dinky 本地图像压缩 CLI 及 localhost 服务的使用指南,涵盖构建、安全认证、JSON Schema 及依赖配置,适用于 macOS 环境下的自动化图像处理任务。
触发场景
需要本地执行图像压缩
调用 dinky serve 本地服务
查询本地 CLI 参数与认证方式
安装
npx skills add heyderekj/dinky --skill dinky-local-cli -g -y
SKILL.md
Frontmatter
{
"name": "dinky-local-cli",
"description": "Local dinky image CLI and loopback serve — build from the GitHub repo; JSON schema dinky.image.compress\/1.0.0"
}
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
dinkybinary fromDinkyCoreImage/(SwiftPM) or usedinky serveon localhost. dinky servelistens on127.0.0.1/[::1]only (default port 17381). ExceptGET /v1/health, sendAuthorization: Bearer <token>(printed on stderr at startup, or the user'sDINKY_SERVE_TOKEN); POSTs needContent-Type: application/json; requests with anOriginheader or a non-localhostHostget 403.- JSON schema for both
dinky compress --jsonandPOST /v1/compress:dinky.image.compress/1.0.0(fieldschemain the root object). Health:dinky.image.serve/1.0.0onGET /v1/health. - Encoders must exist locally:
DINKY_BIN,./binnext todinky, or Homebrewcwebp+avifenc+oxipnginPATHlocations 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.
版本历史
-
261d8d1
当前 2026-09-27 22:39
强化 dinky serve 安全性:限制仅监听回环地址,增加请求头校验、Bearer Token 鉴权及严格解析逻辑,修复潜在安全风险。
- c05dec5 2026-07-24 21:57


