microsoft/using-screenshots
Use this to capture screen context.
npx skills add https://github.com/microsoft/FluidFramework --skill using-screenshots
You CAN take screenshots by combining the Bash tool with platform-specific screenshot commands. Screenshots are saved as image files, then loaded into your context using the Read tool for visual analysis.
Use this skill when I ask you to:
| Platform | Command | Interactive Selection |
| -------- | ---------------------------------------- | -------------------------- |
| macOS | screencapture | -i flag (area selection) |
| Linux | gnome-screenshot, scrot, or import | -a or -s flag |
Standard workflow:
uname -s/tmp/screenshot_$(date +%s).pnguname -s
Darwin for macOSLinux for LinuxmacOS: screencapture is always available (built-in)
Linux: Check in priority order:
which gnome-screenshot || which scrot || which import || echo "none"
Priority order (best compatibility):
gnome-screenshot - works on both X11 and Waylandscrot - lightweight, X11 onlyimport - part of ImageMagickUse timestamped filename to avoid conflicts:
macOS:
screencapture -i /tmp/screenshot_$(date +%s).png
-i enables interactive area selectionLinux with gnome-screenshot:
gnome-screenshot -af /tmp/screenshot_$(date +%s).png
-a for area selection-f specifies filenameLinux with scrot:
scrot -s /tmp/screenshot_$(date +%s).png
-s enables selection modeLinux with import:
import /tmp/screenshot_$(date +%s).png
Read tool: file_path="/tmp/screenshot_12345.png"
The Read tool displays images visually. You'll see the screenshot and can analyze it.
Once loaded, you can:
rm /tmp/screenshot_12345.png
Only remove if I won't need the file again.
If no screenshot tool is available on Linux:
sudo apt install gnome-screenshotsudo dnf install gnome-screenshotsudo pacman -S gnome-screenshotsudo apt install imagemagick (or equivalent)Reality: You CAN via Bash + screenshot CLI tools
Reality: The screenshot file must be loaded with Read tool to see it
Reality: Always use absolute paths (/tmp/...) for Read tool
Reality: Must detect which tool is installed before attempting capture
User: "Take a screenshot and help me debug this UI bug"
1. Check platform:
uname -s → Linux
2. Check available tools:
which gnome-screenshot → /usr/bin/gnome-screenshot
3. Capture screenshot:
gnome-screenshot -af /tmp/screenshot_1729012345.png
→ User selects area, file saved
4. Load into context:
Read: file_path="/tmp/screenshot_1729012345.png"
→ Image displays visually
5. Analyze:
"I can see the button alignment is off. The 'Submit' button
is 5px lower than the 'Cancel' button..."
6. Optional cleanup:
rm /tmp/screenshot_1729012345.png
Take microsoft/using-screenshots from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.