返回顶部
s

superpicky-cli超级挑剔CLI

>-

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.2.0
安全检测
已通过
118
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

superpicky-cli

SuperPicky CLI (技能)

SuperPicky — 鸟类照片AI筛选工具(superpickycli.py、birdid_cli.py)。本技能仅涵盖 $SKILL(包含本文件的目录)下的 CLI路径

三种入口模式(run.sh)

所有面向用户的命令均通过 ${SKILL}/scripts/run.sh 执行(当当前工作目录不是 $SKILL 时,请使用绝对路径)。共有三种入口模式(外加一个辅助模式):

#调用方式程序用途
1${SKILL}/scripts/run.sh 后接与 superpickycli.py 相同的参数superpickycli.py主流程: process / reset / restar / info / burst / identify(文件夹筛选、EXIF、星级评定、可选自动鸟类识别)
2
${SKILL}/scripts/run.sh --birdid 后接与 birdidcli.py 相同的参数 | birdidcli.py | 独立鸟类识别: 批量 identify、按物种 organize、reset、list-countries;OSEA / eBird 过滤器 |
| 3 | ${SKILL}/scripts/run.sh --region-query 后接 ebirdregionquery.py 的参数 | ebirdregionquery.py | 仅代码查询: 模糊匹配地名 → eBird 国家/地区代码,用于(1)或(2)(--birdid-country、--birdid-region、-c、-r) |

辅助模式(非独立“产品”入口): --py PATH — 使用相同虚拟环境运行脚本。PATH 可以是绝对路径,也可以是相对于 .upstream/ 的路径(在 exec 前内部会规范化为绝对路径)。

绝对路径(代理/定时任务必需)

  • - install.sh / run.sh / capture-cli-help.sh: 当其他工具调用它们时,请使用完整绝对路径(例如 ${SKILL}/scripts/run.sh,切勿依赖 cd + ./scripts/run.sh)。
  • run.sh 内部: 始终使用绝对路径 exec Python 脚本(superpickycli.py、birdidcli.py、ebirdregionquery.py 和 --py 脚本;相对路径参数会变为 ${SKILL}/.upstream/...)。

交互式(从 $SKILL 目录):

bash
./scripts/run.sh process /photos

自动化(示例):

bash
SKILL=$(cd /path/to/superpicky-cli && pwd)
${SKILL}/scripts/run.sh process /photos
${SKILL}/scripts/run.sh --py ${SKILL}/.upstream/scripts/download_models.py

目录结构

$SKILL = 技能根目录。

$SKILL/
├── SKILL.md
├── .gitignore # .upstream/
├── reference/ # CLI帮助 + 小型文档集(见下表)
└── scripts/
├── install.sh
├── run.sh # 入口(+ --region-query → ebirdregionquery.py)
├── ebirdregionquery.py # 模糊eBird国家/地区代码查询
├── ebirdregionquery_test.py
├── capture-cli-help.sh
└── setup-upstream-venv.sh → install.sh

$SKILL/.upstream/ # 克隆(被git忽略)
├── .venv/
├── superpicky_cli.py
├── birdid_cli.py
└── …

脚本角色
scripts/install.sh安装到 .upstream/ + .upstream/.venv/
scripts/run.sh
三个入口: 默认 → superpickycli.py;--birdid → birdidcli.py;--region-query → ebirdregionquery.py;辅助 --py | | scripts/ebirdregionquery.py | 模糊查询(也可通过 run.sh --region-query 调用);测试:ebirdregionquery_test.py | | scripts/capture-cli-help.sh | 刷新 reference/cli-help-captured.txt |

参考资料(精简)

文件用途
reference/cli-help-captured.txt标志(--help 输出)
reference/docs/cli-reference.md
简短双语CLI说明 | | reference/docs/manifest机制说明.md | 重置/清单行为 | | reference/docs/BIRDIDOPTIMIZATION_GUIDE.md | 鸟类识别调优 | | reference/requirements*.txt | Pip锁定(上游镜像) | | reference/SOURCE.md | 捕获元数据、pip问题 | | reference/README-INDEX.md | reference/ 索引 |

安装

$SKILL 目录(或通过绝对路径调用 ${SKILL}/scripts/install.sh):

bash
./scripts/install.sh
${SKILL}/scripts/install.sh --with-models
./scripts/install.sh --skip-verify
./scripts/install.sh --no-clone
PY=python3.12 ${SKILL}/scripts/install.sh

  1. 1. 首选 Python 3.10–3.12python -m venv 必须可用。
  2. $SKILL/.upstream/ + $SKILL/.upstream/.venv/
  3. Torch: macOS → 基础版 + PyPI torch;NVIDIA + nvidia-smi → requirementscuda.txt;否则 requirements.txt 或回退方案。
  4. pip 安装后执行 verifyenvironment,除非使用 --skip-verify / SKIP_VERIFY=1 — 失败时显示 [superpicky-cli verify] ERROR: 并 退出码 1

入口详情与示例

包装器元帮助:${SKILL}/scripts/run.sh --help。SuperPicky 顶层帮助:${SKILL}/scripts/run.sh -h

bash
${SKILL}/scripts/run.sh process /path/to/photos
${SKILL}/scripts/run.sh --birdid identify /path/to.jpg
${SKILL}/scripts/run.sh --py ${SKILL}/.upstream/scripts/download_models.py

相对路径 --py 也可以:相对于 .upstream/ 解析,然后以绝对路径执行


${SKILL}/scripts/run.sh --py scripts/download_models.py

ebirdregionquery.py(入口3)— --region-query

解析国家代码(例如 AU、CN)和地区代码(例如 AU-SA、CN-31),用于 --birdid-country、--birdid-region、birdid_cli 的 -c/-r 参数,以及 process --birdid-* 参数。

  • - 数据: .upstream/birdid/data/ebirdregions.json(英文 + namecn)+ 来自 birdid/avonetfilter.py REGIONBOUNDS 的代码(JSON 中不存在的条目带有内联 # 标签)。
  • 匹配:代码英文名称中文名称进行不区分大小写的子串匹配;如果 .venv 中安装了可选的 pypinyin(pip install pypinyin),则支持拼音匹配。模糊匹配: 对令牌/整个字段使用 difflib 比率;通过 --min-score 调整(默认 0.5)。

bash
${SKILL}/scripts/run.sh --region-query shanghai

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 superpicky-1776023209 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 superpicky-1776023209 技能

通过命令行安装

skillhub install superpicky-1776023209

下载

⬇ 下载 superpicky-cli v0.2.0(免费)

文件大小: 22.42 KB | 发布时间: 2026-4-13 12:13

v0.2.0 最新 2026-4-13 12:13
superpicky 0.2.0

- Added initial README.md to the repository.
- No changes to code or functionality.

Archiver·手机版·闲社网·闲社论坛·智能体自动化市场· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large
返回顶部