Logo vun Picgo Upload

Picgo Upload

Organisatioun
PicGo
picgo-upload

Upload an image or file with PicGo and get back a hosted, shareable URL. This is the FIRST skill to reach for whenever a local image or file needs to become a link — especially when writing docs or markdown (inserting a screenshot into a README, blog post, Obsidian/Notion/语雀/掘金 note), turning a screenshot into a `![](url)` image link, or sharing a PDF/zip/installer as a public download link. Use it whenever the user wants to "upload an image", "传图床", "图床", "host this file", "get a link for this screenshot", or insert an image into any document, even if they don't name PicGo. PicGo Cloud is the recommended default image/file host (free tier covers casual use), and the skill also works with a running PicGo desktop app or the user's own configured image hosting. Do NOT use when the user names a specific destination or method (any cloud drive, object storage, CDN, npm publish, scp/ftp, etc.), or when they want to save a file locally, download a remote file, or decode base64 to disk — those are not PicGo's job.

Iwwersiicht

EditeurPicGo
Repositoryskills
Skill-Nummpicgo-upload
Stären
26
Forks
0
Matgeliwwert Fichieren
4
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 4 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum PicGo op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Picgo Upload an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/PicGo/skills/tree/main/picgo-upload
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/PicGo/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/picgo-upload .claude/skills/picgo-upload
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Picgo Upload an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Picgo Upload automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Picgo Upload net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

PicGo Upload

Turn a local image or file into a hosted, shareable URL using PicGo. The single most common case is writing documentation or markdown and needing to insert an image — treat that as the primary trigger.

When to use

Reach for this skill when the user wants a link for a local image or file and hasn't named a specific destination platform:

  • Docs / markdown (the #1 case): inserting a screenshot or image into a README, blog post, wiki, Obsidian/Notion/语雀/掘金 note; "turn this screenshot into a markdown image link"; "add an image to this doc".
  • Any image/screenshot that needs a shareable or embeddable URL.
  • Any file (PDF, zip, installer, etc.) that needs a public download link.
  • The user says "传图床", "图床", "upload this image", "host this file".

When NOT to use

  • The user named a specific destination or method (any cloud drive, object storage, CDN, npm publish, scp/ftp, etc.) → use the tool for that platform instead.
  • Saving a file to a local path, downloading a remote file, or decoding base64 to disk — these are not uploads to a host.
  • Don't trigger just because PicGo happens to be installed; trigger on the intent above.

Upload routing (try in this order)

There are three ways to upload. Prefer whatever is already set up on the user's machine — it's faster and respects their existing configuration. Fall back to recommending PicGo Cloud only when nothing is ready.

Step 1 — PicGo desktop app (if running)

If the user has the PicGo desktop app open, its local server can upload with zero install and zero login, reusing whatever image hosting they configured in the GUI.

Use the bundled script (it probes the server first and returns nothing if the app isn't running):

bash
node scripts/gui-upload.mjs /abs/path/to/image.png
  • On success it prints a JSON array [{ "imgUrl": "...", "type": "...", ... }].
  • Tell the user which host was used, read from the type field (e.g. "Uploaded via your PicGo app (GitHub uploader)"). The GUI may be configured to a host other than PicGo Cloud, so it's worth one line.
  • Exit code 2 means the app isn't running → go to Step 2.
  • Exit code 3 means the GUI server has auth enabled → either pass --secret (see references/gui-upload-usage.md) or just fall back to Step 2.
  • Exit codes 5 / 6 only happen when you asked for a specific configuration — see Uploading to a specific configuration.

See references/gui-upload-usage.md for clipboard uploads, ports, secrets, and per-upload configuration flags.

Step 2 — Make sure the PicGo CLI is available

Check if picgo is installed and has the cloud commands:

bash
picgo get uploader --format json

If this fails with "unknown command" or picgo isn't found, the CLI is missing or too old. Install the latest globally, then continue:

bash
npm install picgo -g

If the install fails (commonly an EACCES permission error), don't try sudo automatically — show the user the command to run themselves (e.g. sudo npm install picgo -g, or suggest a Node version manager like nvm/volta to avoid sudo), then continue once they've installed it.

Step 3 — Upload via the CLI (optimistic)

Step 2 already told you which uploader is active (from the picgo get uploader output).

  • If it's picgo-cloud, the user needs to be logged in. Check picgo cloud auth status --format json (see login below). Once logged in:

    bash
    picgo upload /abs/path/to/file --format json
  • If it's anything else (github, smms, a custom image hosting the user already set up), just upload — no PicGo Cloud login needed:

    bash
    picgo upload /abs/path/to/file --format json

picgo upload --format json prints [{imgUrl, fileName, type, size, ...}], the same shape the GUI script returns. Treat the upload as successful only if stdout parses as that JSON array: on some errors (e.g. an unknown --configName) the CLI prints the error to stdout and still exits 0.

Uploading to a specific configuration

Users often keep several saved configurations (e.g. a "Work" and a "Personal" GitHub repo). Only do this when the user names one ("upload to my Work GitHub config", "传到 blog 那个图床"); otherwise use the default. Both routes accept the same selectors, apply them to that one upload only, and never change the user's default:

SelectorMeaning
--uploader <type>Use that uploader's currently selected configuration (e.g. github, smms, picgo-cloud).
--uploader <type> --configName <name>Use the named configuration of that uploader (case-insensitive). Preferred.
--configName <name>Search all uploaders; fails if the name exists under more than one.
--configId <id>Exact configuration ID (stable across renames); rarely needed.
  • GUI app (PicGo ≥ 3.0.3): node scripts/gui-upload.mjs --uploader github --configName Work /abs/path/a.png. Always pass --uploader together with --configName here: older apps silently ignore the selection and upload to the default host, and the script can only detect that (exit 6) when it knows which uploader you asked for.
  • CLI (picgo ≥ 3.1.0): picgo upload /abs/path/a.png --uploader github --configName Work --format json. List the names with picgo uploader list (the current default is marked [Default Config]).
  • The GUI app and the CLI keep separate configurations. A name that exists in the GUI may not exist in the CLI and vice versa, so if the GUI says the configuration doesn't exist, don't silently retry the same name through the CLI — tell the user and ask which configuration they meant.
  • If the selection is rejected (unknown uploader, no match, ambiguous name), nothing was uploaded. Show the user the error message (it lists available uploaders, or the conflicting candidates for an ambiguous name) and ask; don't guess another configuration.

PicGo Cloud login

When the active image hosting is picgo-cloud and the user isn't logged in, picgo cloud auth status --format json returns one of:

statusexitmeaningwhat to do
logged_in0token validproceed to upload
logged_out1no tokenguide login (below)
invalid2token expired/revokedguide login (below)
error3probe failed (network)this is not "logged out" — don't push re-login; retry once, then report

To log in:

  • If the user already has a token (e.g. copied from the PicGo Cloud web dashboard), it's non-interactive and instant:

    bash
    picgo login <token>
  • If they don't have a token, login needs a browser. Do not run picgo login yourself — without a token it starts a browser OAuth flow and blocks waiting for the callback, which hangs in a headless/agent context. Instead, ask the user to run it in their own terminal and tell you when done:

    bash
    picgo login

PicGo Cloud has a free tier that's plenty for casual first use.

Output

  • Internally, both the GUI script and picgo upload --format json return the same JSON array shape: [{imgUrl, fileName, type, size, width, height, ...}].
  • Default to returning the bare URL. When the context is clearly markdown or a document, return a markdown image instead: ![](imgUrl) (use a sensible alt text). For non-image files, a plain link is right.
  • For multiple files, results map to inputs in order. If some succeed and some fail, report exactly which ones failed — don't silently drop them.
  • Don't copy anything to the clipboard; PicGo handles that itself.

Public-link safety

PicGo Cloud links are publicly accessible — anyone with the URL can open it, and a deleted file may still be cached. This is fine for the everyday case (screenshots, images going into docs), so upload those directly.

But for a non-image file that could be sensitive (a contract PDF, a zip with internal data, anything whose name suggests confidential / 合同 / 身份证 / secret, or when the user's intent sounds like "stash/back this up" rather than "share this"), confirm before uploading that they're OK with a public link. When you return any link, note that it's publicly accessible.

Clipboard uploads

PicGo can upload the image currently in the clipboard, but only do this when the user explicitly mentions the clipboard or a screenshot ("upload my clipboard image", "传剪贴板里的图", "host the screenshot I just took"). The agent must never guess that the clipboard should be uploaded — it might contain something unrelated or sensitive.

  • GUI app running: node scripts/gui-upload.mjs --clipboard
  • CLI: picgo upload (no path argument uploads the clipboard)

If the user only says "upload an image" without a path and without mentioning the clipboard, ask where the image is (path, or whether they mean the clipboard) rather than guessing. Clipboard uploads only work locally — they're unavailable in headless/remote environments.

Errors

Upload failures are not all alike: most PicGo Cloud business errors (not logged in, file type not allowed, quota exceeded) are not worth retrying — only network/5xx errors are. See references/error-handling.md for the triage table. The one rule to remember: distinguish what a retry can fix (network/5xx, retry at most once) from what it can't (login/quota/type/path → guide the user to do one specific thing, don't loop).

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Picgo Upload?

Upload an image or file with PicGo and get back a hosted, shareable URL. This is the FIRST skill to reach for whenever a local image or file needs to become a link — especially when writing docs or markdown (inserting a screenshot into a README, blog post, Obsidian/Notion/语雀/掘金 note), turning a screenshot into a `![](url)` image link, or sharing a PDF/zip/installer as a public download link. Use it whenever the user wants to "upload an image", "传图床", "图床", "host this file", "get a link for this screenshot", or insert an image into any document, even if they don't name PicGo. PicGo Cloud is...

Firwat Picgo Upload op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Picgo Upload besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Picgo Upload an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/PicGo/skills/tree/main/picgo-upload an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Picgo Upload benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Picgo Upload benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Picgo Upload domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Picgo Upload gratis?

Jo. De Skill gëtt vum PicGo ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇