agentsclimarketplace

OpenList skill

Skill drfccv/OpenList-skill

OpenList skill for fast API-driven file listing and automation in chat workflows.

Install
npx -y skills add drfccv/OpenList-skill

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

OpenList / AList 文件管理技能。用于浏览目录、搜索文件、获取直链、上传、改名、移动、复制、删除、分享和索引维护。适用于用户提到 OpenList、AList、网盘管理、文件同步或需要操作远程存储内容的场景。

SKILL.md

5.2 KB, as published. Nobody here has run it

OpenList 文件管理

通过 scripts/openlist.py 调用 OpenList(AList 社区分支)HTTP API。以脚本实现为准,references/api.md 只作接口参考,不作为执行规则。

使用原则

  1. 先发现,再修改。只读操作优先使用 listgetsearch,写操作前先确认目标路径存在。
  2. 不要臆造参数。只使用脚本里真实支持的命令和参数,不要补不存在的选项,也不要把参考文档当成脚本能力。
  3. 避免破坏性尝试。removerenamemovecopyindex-build 这类操作必须基于明确路径;当目标不明确时先列目录或获取文件信息。
  4. 搜索失败时不要立刻重建索引。先换关键词,再 list 定位,最后才考虑 index-updateindex-build
  5. 自动化场景优先输出 JSON。需要机器读取结果时使用 --json,仅在人工浏览时再用默认格式。

配置

脚本会从 config.json 读取配置,路径是 scripts/../config.json。支持两种方式:

  1. OpenList 实例地址 + 用户名 / 密码,先 login 再保存 token。
  2. OpenList 实例地址 + 现成 token,直接通过 --token 传入或写入配置。

如果参数中给了 --url--token,优先使用参数值,不依赖配置文件。

命令速查

运行方式:python scripts/openlist.py <command> [options]

基础命令

命令作用必需参数
login登录并保存 token--url --username --password
list列出目录内容--path
get获取文件或目录信息--path
search搜索文件--keyword
mkdir新建目录--path
rename重命名文件或目录--path --new-name
move移动文件或目录--path --dst
copy复制文件或目录--path --dst
remove删除文件或目录--names
link获取下载直链--path
upload上传文件--path --file
batch-rename批量重命名--src-dir --rename-pairs
regex-rename正则重命名--src-dir --src-regex --dst-regex

分享命令

命令作用必需参数
share-list列出分享
share-create创建分享--files
share-get获取分享信息--id
share-update更新分享--id
share-delete删除分享--id

索引命令

命令作用
index-progress查看索引进度
index-update增量更新索引
index-clear清除索引
index-build全量重建索引,最后手段

决策流程

目录浏览

  1. 要看目录内容,先用 list --path <dir> --json
  2. 要确认单个对象是否存在或查看属性,用 get --path <path>
  3. 目录不明确时,先从父目录开始列,再逐层定位。

搜索

  1. 先用 search --path <root> --keyword <keyword>
  2. 如果结果为空或明显不对,换更短、更模糊的关键词再试。
  3. 再不行就用 list 逐级查找。
  4. 只有在确认某个目录确实需要补索引时,才用 index-update --paths <dir>
  5. 只有索引损坏、首次配置或明确要求全量重建时,才用 index-build

写操作

  1. renamemovecopyremove 前先确认完整路径。
  2. 对于删除,必须确认是精确目标,不要用模糊名称代替完整路径。
  3. 上传前确认目标路径是目录还是带文件名的完整目标路径。

关键参数说明

  • list 支持 --path--page--per-page--refresh
  • search 支持 --path--keyword--page--per-page--max-depth--no-api
  • upload 支持 --replace--async-upload
  • remove--names 是逗号分隔的完整路径列表。
  • share-create 使用 --files,不是 --paths
  • share-getshare-updateshare-delete 统一使用 --id
  • index-build 支持 --async
  • --json 让输出保持机器可解析,--quiet 只保留核心结果。

推荐示例

python scripts/openlist.py list --path / --json
python scripts/openlist.py get --path /Quark
python scripts/openlist.py search --path /Quark --keyword report --json
python scripts/openlist.py link --path /Quark/video.mp4 --json
python scripts/openlist.py upload --path /Backup/ --file ./report.pdf --replace
python scripts/openlist.py share-create --files /Quark/report.pdf --json
python scripts/openlist.py index-update --paths /Quark --json
python scripts/openlist.py index-build --async --json

返回格式

成功示例:

{"code": 200, "message": "success", "data": {...}}

失败示例:

{"code": 400, "message": "error description", "data": null}

参考

完整端点、请求体和响应字段见 references/api.md。当你需要核对参数细节时再查它;如果脚本与文档不一致,以脚本当前实现为准。

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.