skills/smithery.ai/lsky-uploader

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

  1. Credentials
    • Generate a personal token inside the Lsky dashboard and copy the raw token string (without the Bearer prefix).
    • Default base URL is https://lsky.xueguo.us/api/v1. Override via the env var LSKY_BASE_URL or the --base-url flag if your deployment differs.
    • Set the token in your shell (PowerShell: $env:LSKY_TOKEN='1|xxxx', bash: export LSKY_TOKEN=1|xxxx).
  2. 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.
  3. Use the links
    • links.url is the canonical image URL, links.markdown can be pasted into blog Markdown, links.delete_url lets 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.
Installs
1
First Seen
Apr 20, 2026