lsky-uploader
Installation
SKILL.md
Lsky Uploader
Overview
This skill wraps the Lsky Pro API used by your self-hosted image bed. It explains how to authenticate with personal tokens, how to call /upload, and provides a ready-to-run Python helper (scripts/upload_image.py) that handles headers, multipart form-data, and prints the resulting URLs/Markdown snippets. See references/api_overview.md for a condensed manual extracted from the official docs.
Quick Start
- Credentials
- Generate a personal token inside the Lsky dashboard and copy the raw token string (without the
Bearerprefix). - Default base URL is
https://lsky.xueguo.us/api/v1. Override via the env varLSKY_BASE_URLor the--base-urlflag if your deployment differs. - Set the token in your shell (PowerShell:
$env:LSKY_TOKEN='1|xxxx', bash:export LSKY_TOKEN=1|xxxx).
- Generate a personal token inside the Lsky dashboard and copy the raw token string (without the
- Upload
- Run
python scripts/upload_image.py path/to/file.png. - Optional flags:
--album-id,--strategy-id,--permission 0|1,--name custom-display-name. - The script prints the direct URL, Markdown snippet, delete URL, and the full JSON payload so you can update
.lsky_upload_cache.json.
- Run
- Use the links
links.urlis the canonical image URL,links.markdowncan be pasted into blog Markdown,links.delete_urllets you remove the asset later.- If the script exits with
Lsky API error: ..., inspect the message/HTTP status and cross-check rate limits or permissions.