CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

capture-screen

This guide shows how to find macOS window IDs with Swift and capture desktop, window, or region images with `screencapture`. It also covers optional AppleScript control, multi-shot captures, permission troubleshooting, and safeguards for user activity, focus, and host restrictions.

Quality

89%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Low

Low-risk findings worth noting

SKILL.md
Quality
Evals
Security

Quality

Content

81%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The body delivers fully executable, well-sequenced guidance with genuine validation checkpoints and error-recovery paths. Its weaknesses are repetition — the authorization prose and the System Events warning each appear multiple times — and inline Swift code that duplicates the bundled script.

Suggestions

State the foreground-authorization rules once in a single section (e.g., the existing "Select observation or foreground control") and reference it from Quick Start, Step 2, Multi-Shot Workflow, and Supported Applications instead of restating them in each place.

Drop the duplicated inline Swift window-enumeration snippets in Step 1 and Multi-Shot step 3 in favor of calls to the bundled "scripts/get_window_id.swift", which already implements the same logic.

Keep the System Events/TCC warning in one place — either the Step 2 blockquote or the Failed Approaches table row — rather than repeating it nearly verbatim in both.

DimensionReasoningScore

Conciseness

The command examples are lean, but the foreground-authorization prose recurs across roughly five sections ("Select observation or foreground control", Quick Start, Step 2, Multi-Shot Workflow, Supported Applications), the System Events/TCC warning appears twice nearly verbatim (the Step 2 blockquote and the Failed Approaches table row), and the Swift window-enumeration code is inlined twice (Step 1 and Multi-Shot step 3). This fits "mostly efficient but includes some unnecessary explanation or could be tightened" rather than the minor-trimming of score 4.

3 / 5

Actionability

Guidance is copy-paste ready throughout: "swift scripts/get_window_id.swift Excel", "screencapture -x -l 12345 output.png", timeout-wrapped osascript calls, "sips --resampleWidth 2032", and verification commands, with the Multi-Shot Workflow fully scripted end to end. The examples cover the common cases (desktop capture, known window, Excel control, multi-shot sequences).

5 / 5

Workflow Clarity

The sequence is explicit (Quick Start routes → Step 1 get window ID → Step 2 control → Step 3 capture → Multi-Shot Workflow) with concrete validation checkpoints: the Verify capture commands, "Always re-fetch before capturing. CGWindowID is invalidated...", sleep after AppleScript, timeout wrapping, and "read the actual result before attributing the failure to Screen Recording". Error recovery is covered by the Failed Approaches table and the permission-triage flow, satisfying the feedback-loop anchor.

5 / 5

Progressive Disclosure

Both bundle files are real and well signaled ("swift scripts/get_window_id.swift", "[helper diagnostic procedure](references/permission-triage-template.md)") and are one level deep. However, the 297-line body inlines Swift code that duplicates the bundled script instead of pointing to it, and the reference chains onward to an external macos-permissions skill, so structure is good but not the cleanly split, overview-style organization of score 5.

4 / 5

Total

17

/

20

Passed

Description

92%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

The description is strong: it names concrete actions with specific tools, explicitly answers both what and when, and occupies a distinct macOS-screenshot-automation niche. The only weakness is trigger-term coverage missing a couple of natural phrasings users might say.

DimensionReasoningScore

Specificity

The description lists three concrete, tool-named actions covering the full pipeline — "Find window IDs with Swift CGWindowListCopyWindowInfo, control application windows via AppleScript (zoom, scroll, select), and capture with screencapture" — which comprehensively covers what the skill does. It exceeds the score-4 anchor ("several specific actions; minor gaps") because no part of the workflow is left uncovered.

5 / 5

Completeness

The what is explicit (find window IDs, control windows, capture with screencapture) and the when is explicit with concrete triggers: "Use when automating screenshots, capturing application windows for documentation, or building multi-shot visual workflows." This matches the score-5 anchor pattern of clearly answering both what and when with concrete trigger phrases.

5 / 5

Trigger Term Quality

"screenshot capture", "automating screenshots", and "capturing application windows for documentation" are natural phrases users would say, giving good keyword coverage. It falls short of the score-5 anchor because common variations like "take a screenshot" and "screen capture" as a plain phrase are absent.

4 / 5

Distinctiveness Conflict Risk

"Programmatic screenshot capture on macOS" with named tools (Swift CGWindowListCopyWindowInfo, AppleScript, screencapture) carves out a clear niche with distinct triggers and minimal conflict risk with other skills. It is more specific than the score-4 anchor example, which still carries minor overlap risk.

5 / 5

Total

19

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

daymade/claude-code-skills

Path

daymade-macos/capture-screen/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.