Agent skill

screen-capture-api

Cross-platform screen and window capture for screenshots and recording

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/screen-capture-api

SKILL.md

screen-capture-api

Implement cross-platform screen and window capture for screenshots and recording capabilities.

Capabilities

  • Capture full screen
  • Capture specific windows
  • Capture screen regions
  • Handle multiple displays
  • Stream screen content
  • Handle permissions

Input Schema

json
{
  "type": "object",
  "properties": {
    "projectPath": { "type": "string" },
    "framework": { "enum": ["electron", "native"] },
    "captureTypes": { "type": "array" }
  },
  "required": ["projectPath"]
}

Electron Example

javascript
const { desktopCapturer } = require('electron');

async function captureScreen() {
    const sources = await desktopCapturer.getSources({
        types: ['screen'],
        thumbnailSize: { width: 1920, height: 1080 }
    });

    for (const source of sources) {
        const screenshot = source.thumbnail.toPNG();
        // Save or use screenshot
    }
}

Related Skills

  • power-management-monitor
  • system-services-integration process

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results