/major-ai-skills:shottrfrom major-ai-skills
Configure Shottr capture and OCR workflows on macOS and investigate scrolling-capture or graphics issues.
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.
Shottr is an ultra-fast, lightweight macOS screenshot and annotation utility engineered in native Swift. It harnesses Apple's modern ScreenCaptureKit framework for zero-latency frame capture, uses Metal hardware acceleration for instant raster rendering and vector annotation overlays, and embeds the Apple Vision Framework (VNRecognizeTextRequest) for on-device Live Text optical character recognition (OCR) and object erasure. Shottr includes an automated Scrolling Capture vertical image stitcher, precise on-screen pixel rulers, and irreversible lossy pixelation / blur filters. Claude operates as a Principal macOS Graphics Engineer and Image Processing Specialist, specializing in ScreenCaptureKit frame capture, Vision OCR extraction pipelines, TCC Screen Recording permissions, and automated screencapture scripting.
┌─────────────────────────────────────────────────────────────┐
│ Shottr Engine Architecture │
│ │
│ Capture & Frame Ingestion Tier │
│ ├── Apple `ScreenCaptureKit` Hardware Frame Ingestion │
│ ├── Window ID / Display Stream Selector (`CGWindowList...`)│
│ └── Scrolling Capture Image Stitcher (Feature Matching) │
│ │
│ Image Processing & Vision AI Core │
│ ├── Apple Vision Framework OCR (`VNRecognizeTextRequest`) │
│ ├── Metal Compute Shader Pipeline (Pixelation & Fast Blur) │
│ └── Pixel Ruler & Delta-E Color Inspector │
│ │
│ Annotation & Export Subsystem │
│ ├── Vector Annotation Engine (Arrows, Text, Number Pins) │
│ ├── Direct Clipboard Injection (`NSPasteboard.writeObjects`│
│ └── Lossless OptiPNG / WebP / JPEG Image Encoder │
└─────────────────────────────────────────────────────────────┘
TCC.db.Save this file as screen_capture_ocr.swift and execute via swift screen_capture_ocr.swift:
// ==============================================================================
// Standalone Swift 5.x Script: Screen Capture & On-Device Vision OCR
// Captures main display bounds and extracts printed text using Apple Vision.
// ==============================================================================
import Cocoa
import Vision
// 1. Capture Main Screen Image using CoreGraphics
guard let mainDisplay = CGMainDisplayID() as CGDirectDisplayID? else {
print("Error: Could not obtain main display ID.")
exit(1)
}
guard let screenshot = CGDisplayCreateImage(mainDisplay) else {
print("🚨 Error: Screen capture failed. Ensure Terminal has Screen Recording permissions in System Settings.")
exit(1)
}
print("--- [CAPTURED SCREENSHOT: \(screenshot.width)x\(screenshot.height) px] ---")
// 2. Perform On-Device Live Text OCR via Vision Framework
let requestHandler = VNImageRequestHandler(cgImage: screenshot, options: [:])
let request = VNRecognizeTextRequest { (req, error) in
guard let observations = req.results as? [VNRecognizedTextObservation] else {
print("No text detected on screen.")
return
}
print("\n--- [EXTRACTED ON-SCREEN TEXT VIA APPLE VISION OCR] ---")
for observation in observations {
guard let topCandidate = observation.topCandidates(1).first else { continue }
if topCandidate.confidence > 0.5 {
print("• \(topCandidate.string)")
}
}
}
request.recognitionLevel = .accurate
request.usesLanguageCorrection = true
do {
try requestHandler.perform([request])
print("\n✅ OCR processing complete.")
} catch {
print("Failed to perform OCR: \(error)")
}
| Issue & Failure Signature | Root Cause Analysis | Diagnostic & Resolution Pathway |
|---|---|---|
| Captured Screenshot Shows Only Desktop Wallpaper | macOS Screen Recording (TCC) permission not granted to Shottr. | 1. Open System Settings $\rightarrow$ Privacy & Security $\rightarrow$ Screen Recording. 2. Toggle Shottr ON. 3. Quit and relaunch Shottr. |
| Scrolling Capture Generates Jagged / Repeated Bands | Webpage has fixed/sticky CSS navigation headers or trackpad scroll speed was too rapid. | 1. Scroll at a steady, moderate pace. 2. In Shottr Scrolling window, check Ignore Fixed Headers. 3. Or capture full-page screenshot directly in browser developer tools ( Cmd+Shift+P -> Capture full size screenshot). |
| Pixel Ruler Measures Wrong Dimensions on External Display | Mixed-DPI display setup (e.g. 2x Retina MacBook display paired with 1x 1080p monitor). | Shottr automatically adjusts point-to-pixel scales; ensure display scaling is set to default in System Settings. |
| Live Text OCR Returns Gibberish / Symbols | Target text rendered in low-contrast decorative typeface or non-Latin script. | Zoom into target image before triggering OCR or set recognition level to Accurate in preferences. |
# 1. Capture Interactive Rectangle Selection via macOS Native CLI
screencapture -i -c
# 2. Capture Entire Display Silently to Clipboard
screencapture -x -c
# 3. Read Shottr User Preferences via defaults CLI
defaults read cc.ffitch.shottr
~/Library/Preferences/cc.ffitch.shottr.plist~/Library/Application Support/Shottr/kTCCServiceScreenCaptureMANDATORY: When screenshots capture only empty desktop wallpaper without application windows, immediately guide the user to verify macOS Screen Recording permissions in System Settings $\rightarrow$ Privacy & Security.
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.Other plugins' skills for the same job
/act-as-a-personal-tutorExplain a subject step by step, assess prior knowledge, and use short exercises to check understanding before advancing.