screenshot
从ShareX获取最新截图并在对话中显示。
📖 中文导读:从ShareX获取最新截图并在对话中显示。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: screenshot description: Get the latest screenshot from ShareX and display it in the conversation user: true
Screenshot - Latest ShareX Screenshot
Instructions
When the user runs /screenshot, you should:
Find the latest screenshot from ShareX Screenshots folder:
C:\Users\AnveshJarabani\Downloads\sharex\ScreenshotsWSL path:
/mnt/c/Users/AnveshJarabani/Downloads/sharex/ScreenshotsUse the Read tool to display the image in the conversation
Show the image filename and timestamp
Implementation
# Find latest screenshot (all common image formats)
SHAREX_DIR="/mnt/c/Users/AnveshJarabani/Downloads/sharex/Screenshots"
LATEST=$(find "$SHAREX_DIR" -type f \( -name "*.png" -o -name "*.jpg" -o -name "*.jpeg" -o -name "*.gif" -o -name "*.bmp" \) -printf '%T@ %p\n' 2>/dev/null | sort -rn | head -1 | cut -d' ' -f2-)
if [ -n "$LATEST" ]; then
echo "Latest screenshot: $(basename "$LATEST")"
echo "Created: $(date -r "$LATEST" '+%Y-%m-%d %H:%M:%S')"
# Then use Read tool to display it
else
echo "No screenshots found in ShareX folder"
fi
Steps
- Use Bash to find the latest image file (any format: png, jpg, jpeg, gif, bmp)
- Show the filename and creation time
- Use Read tool to display the image (Read supports image files)
- Ask user if they want to analyze or discuss the screenshot