← Commit history

Add adompkg installer files

Kyle Bergstedt ·ba0ee3025f ·4mo ago ·parent ceba0f8
5 files changed +58−1
README.md+1−1
@@ -77,4 +77,4 @@ No parameters are required. The widget opens immediately in the active AV panel. |-------|---------|---------| | Initial (before AI) | `sp-{timestamp}-{width}x{height}.png` | `sp-20260307-152030-1568x975.png` | | After AI naming | `{ai-name}-{width}x{height}.png` | `dart-green-line-route-editor-1568x975.png` |-| Original (after AI) | `{ai-name}-{width}x{height}-original.png` | `dart-green-line-route-editor-2400x1493-original.png` |\ No newline at end of file+| Original (after AI) | `{ai-name}-{width}x{height}-original.png` | `dart-green-line-route-editor-2400x1493-original.png` |
SKILL.mdadded+27
@@ -0,0 +1,27 @@+---+name: adom-screenshot-paste+description: Open the Screenshot Paste widget in Adom Viewer for pasting clipboard screenshots. Auto-resizes, compresses, AI-names, and saves images.+---++# Screenshot Paste++Open the Screenshot Paste widget in the Adom Viewer.++## Usage++Call the MCP tool to open the widget:++```+mcp__adom-viewer__av_screenshot_paste({ title: 'Paste Screenshots' })+```++The widget handles everything automatically — resize, compress, AI-name, and save.++## Key facts++- Images are resized to Claude's ideal 1568px max dimension (skipped if already small enough)+- PNGs compressed with sharp level 9+- AI naming via Haiku — descriptive kebab-case with dimensions+- Both optimized and original saved to `screenshots/sp/`+- Clipboard write fails in VS Code webviews — widget shows right-click copy fallback when needed+- Widget renders as non-sandboxed iframe with `allow="clipboard-write"`
install.shadded+15
@@ -0,0 +1,15 @@+#!/bin/bash+set -e+PKG_DIR="$(cd "$(dirname "$0")" && pwd)"+SKILLS_DIR="$HOME/.claude/skills"+mkdir -p "$SKILLS_DIR/adom-screenshot-paste"+if [ -f "$PKG_DIR/SKILL.md" ]; then+  cp "$PKG_DIR/SKILL.md" "$SKILLS_DIR/adom-screenshot-paste/SKILL.md"+fi+for skill_dir in "$PKG_DIR/skills"/*/; do+  [ -d "$skill_dir" ] || continue+  skill_name=$(basename "$skill_dir")+  mkdir -p "$SKILLS_DIR/$skill_name"+  cp -r "$skill_dir"* "$SKILLS_DIR/$skill_name/"+done+echo "Installed adom-screenshot-paste"
package.jsonadded+11
@@ -0,0 +1,11 @@+{+  "slug": "adom-screenshot-paste",+  "version": "1.0.0",+  "type": "skill",+  "description": "Paste screenshots from clipboard into the Adom Viewer. Auto-resizes to Claude's ideal 1568px, compresses with sharp, AI-names files via Haiku, and saves both optimized and original versions.",+  "dependencies": {},+  "scripts": {+    "install": "./install.sh",+    "uninstall": "./uninstall.sh"+  }+}
uninstall.shadded+4
@@ -0,0 +1,4 @@+#!/bin/bash+set -e+rm -rf "$HOME/.claude/skills/adom-screenshot-paste"+echo "Uninstalled adom-screenshot-paste"