All skills
cat-xierluo avatar

/piclist-upload

@005c9f1

通过 PicList HTTP Server 将 Markdown 文件中的本地图片上传到图床,并替换为云端链接。本技能应在用户需要上传 Markdown 中的图片、处理包含本地图片引用的 Markdown、批量处理多个 Markdown 文件或目录、或替换本地路径为云端链接以实现跨设备访问时使用。

Use this Skill: https://skilld.dev/gh/cat-xierluo/legal-skills/piclist-upload

This session only. Nothing lands on disk.

referencessetup.md

≈754 tokens on demand. Your agent reads this file only when SKILL.md points to it.

PicList 安装与配置指南

什么是 PicList

PicList 是 PicGo 的持续维护版本,提供了更好的用户体验和更多功能。本项目使用 PicList 的内置 HTTP Server 功能来实现图片上传。

下载安装

macOS

# 通过 Homebrew 安装
brew install --cask piclist

或直接下载:https://github.com/Kuingsmile/PicList/releases

Windows

下载安装包:https://github.com/Kuingsmile/PicList/releases

Linux

下载 AppImage 或解压包:https://github.com/Kuingsmile/PicList/releases

启用 HTTP Server

方法一:通过界面启用

  1. 打开 PicList 应用
  2. 点击左侧「设置」图标
  3. 找到「插件设置」→「内置服务器」
  4. 勾选「启动内置服务器」
  5. 确认端口为 36677(默认)

方法二:通过配置文件

配置文件位置:

  • macOS: ~/Library/Application Support/piclist/data.json
  • Windows: %APPDATA%/piclist/data.json
  • Linux: ~/.config/piclist/data.json

添加以下配置:

{
  "picBed": {
    "current": "your-uploader",
    "uploader": "your-uploader",
    "transformer": "path"
  },
  "server": {
    "port": 36677,
    "host": "0.0.0.0",
    "enable": true
  }
}

配置图床

PicList 支持多种图床服务:

GitHub

  1. 进入「图床设置」→「GitHub图床」
  2. 配置参数:
    • 仓库名: username/repo
    • 分支: main 或 master
    • 路径: images/(可选)
    • 自定义域名: https://cdn.jsdelivr.net/gh/username/repo@main(可选,用于加速)
  3. 设置 Token:

阿里云 OSS

  1. 进入「图床设置」→「阿里云OSS图床」
  2. 配置参数:
    • KeyId: 阿里云 AccessKey ID
    • KeySecret: 阿里云 AccessKey Secret
    • 存储桶名: Bucket 名称
    • 存储区域: 如 oss-cn-shanghai
    • 存储路径: 如 images/
    • 自定义域名: 绑定的域名(可选)

腾讯云 COS

  1. 进入「图床设置」→「腾讯云COS图床」
  2. 配置参数:
    • 版本: v5 或 v4
    • SecretId: 腾讯云 SecretId
    • SecretKey: 腾讯云 SecretKey
    • 存储桶名: Bucket 名称
    • 存储区域: 如 ap-shanghai
    • 存储路径: 如 images/
    • 自定义域名: 绑定的域名(可选)

SM.MS

  1. 进入「图床设置」→「SM.MS图床」
  2. 配置参数:

验证配置

测试 HTTP Server

curl http://127.0.0.1:36677/upload

应返回 HTML 说明页面。

测试上传

curl -X POST "http://127.0.0.1:36677/upload" \
  -F "file=@/path/to/test.png"

应返回 JSON 格式的上传结果。

官方文档

Source: SKILL.md on GitHub

1 warning10d4 checks · Risk SAFE
  • Gen Agent Trust Hub10d

    This skill automates the process of uploading local images referenced in Markdown files to a PicList server and replacing the local paths with cloud URLs. It includes robust connectivity checks, path normalization, and support for batch processing with safety features like a preview mode. A potential security flag regarding network patterns was investigated and found to be a benign port-probing implementation.

  • Socket10d

    1 alert: gptAnomaly

  • Snyk10d

    Risk: LOW · No issues

  • Runlayer7mo

    2/5 files flagged

Signed by skilld at 005c9f1. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 17 hours ago.

Activeupdated last week
homepage
https://github.com/cat-xierluo/legal-skills
author
杨卫薪律师(微信ywxlaw)
version
1.5.0

README badge

README badge for cat-xierluo/legal-skills/piclist-upload