/major-ai-skills:sharexfrom major-ai-skills
Configure ShareX capture, recording, OCR, and custom uploader workflows with CLI or API integrations.
Ships in major-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
ShareX is an open-source screen capture, file sharing, and productivity utility for Windows built on C# / .NET and WinForms. Operating via GDI+ and Direct2D capture pipelines, ShareX integrates an embedded FFmpeg engine for high-framerate desktop video/GIF recording, native Windows Media OCR & Tesseract 5, and a Custom Uploader System (.sxcu) supporting HTTP REST endpoint integrations. Claude operates as a Principal Windows Systems Automation Architect and Media Pipeline Specialist, specializing in ShareX Custom Uploader (.sxcu) engineering, FFmpeg recording optimization, OCR pipeline scripting, and automated workflow orchestration via CLI.
┌─────────────────────────────────────────────────────────────┐
│ ShareX System Architecture │
│ │
│ Capture Engine & Input Interceptors │
│ ├── Region, Window, Full Screen & Scrolling Capture GDI+ │
│ ├── Global Hotkey Manager (`RegisterHotKey` Win32 API) │
│ └── Image Editor & Annotator (Canvas Drawing, Pin to Screen│
│ │
│ Processing, OCR & Transcoding Subsystems │
│ ├── Embedded FFmpeg Core (NVENC, x264, VP9, GIF PalettGen) │
│ ├── Windows Media OCR & Tesseract 5 Multi-Language Engine │
│ └── Post-Capture Tasks (Auto-Watermark, Border, Metadata) │
│ │
│ Uploaders & Automation Core │
│ ├── Custom Uploader Engine (`.sxcu` JSON REST Profiles) │
│ ├── CLI Execution Engine (`ShareX.exe -workflow ...`) │
│ └── Config Stores (`%DOCUMENTS%\ShareX\ApplicationConfig`) │
└─────────────────────────────────────────────────────────────┘
.sxcu) Architecture: Author JSON custom uploader configurations defining HTTP POST multipart/form-data parameters, authorization headers, and JSON response body parsing paths ($json:url$).virtual-audio-capturer) and tuning NVENC hardware encoding..sxcu ProfileShareX_Custom_Uploader.sxcu (ShareX Profile Schema)Save and double-click to import into ShareX:
{
"Version": "15.0.0",
"Name": "Local Python Secure Vault",
"DestinationType": "ImageUploader, FileUploader",
"RequestMethod": "POST",
"RequestURL": "http://127.0.0.1:5000/upload",
"Headers": {
"X-Auth-Token": "secret_vault_token_123"
},
"Body": "MultipartFormData",
"FileFormName": "file",
"URL": "$json:url$",
"ErrorMessage": "$json:error$"
}
upload_server.py (Local Secure File Receiver)Save and execute with python upload_server.py (requires pip install flask):
"""
ShareX Custom Uploader HTTP Endpoint Server (Flask)
Receives multipart uploads from ShareX, validates auth tokens, stores files, and returns JSON URLs.
"""
import sys
import os
import uuid
from flask import Flask, request, jsonify, send_from_directory
app = Flask(__name__)
UPLOAD_DIR = r"C:\ShareX_Vault"
AUTH_TOKEN = "secret_vault_token_123"
SERVER_PORT = 5000
os.makedirs(UPLOAD_DIR, exist_ok=True)
@app.route("/upload", methods=["POST"])
def handle_sharex_upload():
# 1. Validate Authentication Token
client_token = request.headers.get("X-Auth-Token")
if client_token != AUTH_TOKEN:
return jsonify({"error": "Unauthorized: Invalid auth token"}), 403
# 2. Extract Uploaded File
if "file" not in request.files:
return jsonify({"error": "Bad Request: Missing 'file' form data"}), 400
uploaded_file = request.files["file"]
if uploaded_file.filename == "":
return jsonify({"error": "Empty filename"}), 400
# 3. Save File with Unique Name
ext = os.path.splitext(uploaded_file.filename)[1]
unique_filename = f"{uuid.uuid4().hex[:8]}{ext}"
dest_path = os.path.join(UPLOAD_DIR, unique_filename)
uploaded_file.save(dest_path)
file_url = f"http://127.0.0.1:{SERVER_PORT}/files/{unique_filename}"
print(f"✅ Received and stored: {unique_filename} -> URL: {file_url}")
# 4. Return JSON response for ShareX parser ($json:url$)
return jsonify({"url": file_url, "filename": unique_filename})
@app.route("/files/<filename>")
def serve_uploaded_file(filename):
return send_from_directory(UPLOAD_DIR, filename)
if __name__ == "__main__":
print(f"--- [SHAREX UPLOAD SERVER RUNNING ON PORT {SERVER_PORT}] ---")
app.run(host="0.0.0.0", port=SERVER_PORT, debug=False)
| Issue & Failure Signature | Root Cause Analysis | Diagnostic & Resolution Pathway |
|---|---|---|
| FFmpeg Screen Recording Fails with Audio Error | Virtual audio capture device not installed or DirectShow source missing. | In ShareX $\rightarrow$ Task Settings $\rightarrow$ Screen Recorder, click Screen recording options $\rightarrow$ Click Install virtual-audio-capturer. |
Custom Uploader Returns HTTP 400/500 Error | Mismatch between FileFormName in .sxcu and server parameter (e.g. file vs image). | Match form name: ensure FileFormName: "file" in .sxcu corresponds to request.files['file'] in server code. |
| OCR Returns Empty String / Question Marks | OCR engine attempting to parse non-Latin characters without language pack. | In ShareX Settings $\rightarrow$ OCR, switch engine from Tesseract to Windows Media OCR and install target language in Windows Settings. |
Hotkey Fails to Register: Error code 1409 | Another background app (Discord, Snipping Tool) already registered the global hotkey. | In ShareX $\rightarrow$ Hotkey settings, rebind the conflict hotkey (e.g. change PrintScreen to Ctrl + Shift + S). |
# 1. Capture Rectangle Region
"C:\Program Files\ShareX\ShareX.exe" -RectangleRegion
# 2. Trigger Screen Recording (Video/GIF)
"C:\Program Files\ShareX\ShareX.exe" -ScreenRecorder
# 3. Capture Screen and Trigger OCR Text Extraction
"C:\Program Files\ShareX\ShareX.exe" -OCR
%USERPROFILE%\Documents\ShareX\ApplicationConfig.json%USERPROFILE%\Documents\ShareX\CustomUploaders.json%USERPROFILE%\Documents\ShareX\History.jsonMANDATORY: When developing
.sxcuCustom Uploader files for ShareX, verify that theURLresponse regex matches the exact JSON schema emitted by the backend server ($json:url$).
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alivirgo/major-ai-skills --plugin major-ai-skills412 skills in this plugin
/3d-slicerAutomate 3D Slicer research workflows with MRML, VTK/ITK, DICOM data, and Segment Editor. Use for software workflows, not clinical interpretation./abbreviated-git-statusInspect Git branch, staging, and working-tree changes with short or porcelain status output when a compact repository check is needed./ableton-liveAutomate Ableton Live sessions with Python MIDI Remote Scripts, Max for Live, AbletonOSC, and Link synchronization./act-as-a-personal-tutorExplain a subject step by step, assess prior knowledge, and use short exercises to check understanding before advancing.Other plugins' skills for the same job