Agent Skills › heyderekj/dinky › dinky-local-cli

dinky-local-cli

GitHub

提供 Dinky 本地图像压缩 CLI 及 localhost 服务的使用指南,涵盖构建、安全认证、JSON Schema 及依赖配置,适用于 macOS 环境下的自动化图像处理任务。

site/.well-known/agent-skills/dinky-local-cli/SKILL.md heyderekj/dinky

触发场景

需要本地执行图像压缩 调用 dinky serve 本地服务 查询本地 CLI 参数与认证方式

安装

npx skills add heyderekj/dinky --skill dinky-local-cli -g -y
更多选项

非标准路径

npx skills add https://github.com/heyderekj/dinky/tree/main/site/.well-known/agent-skills/dinky-local-cli -g -y

不安装直接使用

npx skills use heyderekj/dinky@dinky-local-cli

指定 Agent (Claude Code)

npx skills add heyderekj/dinky --skill dinky-local-cli -a claude-code -g -y

安装 repo 全部 skill

npx skills add heyderekj/dinky --all -g -y

预览 repo 内 skill

npx skills add heyderekj/dinky --list

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 dinky binary from DinkyCoreImage/ (SwiftPM) or use dinky serve on localhost.
  • dinky serve listens on 127.0.0.1/[::1] only (default port 17381). Except GET /v1/health, send Authorization: Bearer <token> (printed on stderr at startup, or the user's DINKY_SERVE_TOKEN); POSTs need Content-Type: application/json; requests with an Origin header or a non-localhost Host get 403.
  • 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.

版本历史

  • 261d8d1 当前 2026-09-27 22:39

    强化 dinky serve 安全性:限制仅监听回环地址,增加请求头校验、Bearer Token 鉴权及严格解析逻辑,修复潜在安全风险。

  • c05dec5 2026-07-24 21:57

同 Skill 集合

site/.well-known/agent-skills/dinky-overview/SKILL.md
site/.well-known/agent-skills/dinky-release-bump/SKILL.md

元信息

文件数
0
版本
ab73264
Hash
b1b8d249
收录时间
2026-07-24 21:57

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-03 18:44
浙ICP备14020137号-1