Skip to content

autosave Setup

Installation

To install the autosave skill:

bash
npx skills add tnnevol/skills --skill autosave -g -y

Configuration

The skill requires the following environment variables:

VariableDescription
AUTO_SAVE_BASE_URLBackend service address
AUTO_SAVE_TOKENAuthentication token (passed as URL parameter ?token=xxx)

These should be set in your shell environment before using the skill.

Action Mapping

ActionAPI MethodEndpoint
add-taskPOST/api/add_task?token=xxx
configGET/data?token=xxx
update-configPOST/update?token=xxx
run-nowPOST/run_script_now?token=xxx
searchGET/task_suggestions?q=xxx&d=xxx&token=xxx(带有效性预检查)
detailPOST/get_share_detail?token=xxx

API Endpoints

get_share_detail 接口

POST /get_share_detail?token=xxx

请求体:

json
{
  "shareurl": "分享链接",
  "stoken": "首次为空,浏览子目录时传入上一步返回的 stoken",
  "task": {  config 自动补全 },
  "magic_regex": {  config 获取 }
}

浏览子目录:shareurl 格式为 "https://pan.quark.cn/s/xxx#/list/share/{fid}"

Security Guidelines

  • Token values are never exposed in chat, files, code, logs, or command arguments
  • All API calls go through the provided script (scripts/api.cjs)
  • Environment variables are read via process.env at runtime only
  • Sensitive values in logs are automatically sanitized

基于非商业使用许可证发布