agentleFS
pablopunkpablopunk/SwiftShift/.agents/skills/screenshots/SKILL.md

screenshots

Skill664 starsChanged 5 months agoMITView on GitHub

Capture and regenerate SwiftShift marketing screenshots for README/website assets. Use when updating light/dark SwiftShift screenshots, especially `www/src/images/screenshot-light.jpg` and `www/src/images/screenshot-dark.jpg`.

  • Installs packages

16 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use release.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    release

    Use ONLY when the user explicitly asks to cut/publish a Huabu desktop release or tag a version. Performs an outward action — bumps the version in apps/desktop/package.json, commits + annotated-tags vX.Y.Z, and pushes the branch + tag. That tag push auto-builds the macOS/Windows installers and publishes a GitHub Release. Provides `status`, `bump`, `tag-push`, and a one-command `run` (bump → tag-push).

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 16 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If the app UI gets taller/wider, update the background skeletons and placement constants together.

    line 67

“Common” is measured: kept by at least 6 in 10 of the 16 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

SwiftShift screenshots

This skill regenerates the app settings screenshots as clean 843×670 composites:

  • clean background + empty menu bar skeletons live in assets/bg-light.jpg and assets/bg-dark.jpg
  • real desktop wallpapers live in assets/wallpaper-light.jpg and assets/wallpaper-dark.jpg
  • fresh Swift Shift Dev settings window is captured from the local build using macOS window capture plus a full-screen tint crop
  • full screenshot outputs default to www/src/images/screenshot-light.jpg and www/src/images/screenshot-dark.jpg
  • mouse feature crops default to www/src/images/mouse-light.jpg and www/src/images/mouse-dark.jpg
  • debug step images are written to .agents/skills/screenshots/debug/

Requirements

  • macOS
  • peekaboo with Screen Recording and Accessibility permissions
  • ImageMagick (magick): brew install imagemagick
  • python3 and macOS screencapture
  • Xcode command line build works for this repo

Command

From the repo root:

.agents/skills/screenshots/bin/capture-swiftshift-screenshots.sh

Optional output directory:

.agents/skills/screenshots/bin/capture-swiftshift-screenshots.sh /tmp/swiftshift-screenshots

What the script does

  1. Saves current appearance and wallpaper.
  2. Builds and runs the local dev app with make build && make run-app.
  3. Temporarily switches to light mode, applies assets/wallpaper-light.jpg as the real desktop wallpaper, hides other apps, and opens the Swift Shift menu bar window.
  4. Captures the window-only PNG by CoreGraphics window id for rounded-corner/shadow alpha.
  5. Captures a full-screen image and crops the same window rectangle for the true SwiftUI material tint from the real wallpaper.
  6. Applies the window-only alpha to the tinted crop and composites that onto assets/bg-light.jpg.
  7. Repeats for dark mode with assets/wallpaper-dark.jpg and assets/bg-dark.jpg.
  8. Restores the original appearance and wallpaper.

The script intentionally uses clean skeleton backgrounds so the final menu bar contains only the SwiftShift icon, while the app window keeps the real glass tint from the matching wallpaper.

Layout constants

The app window is placed at +255+31 in the final 843×670 image. The mouse feature visual is cropped from that final image at 633×310+125+260.

Override if the design changes:

SWIFTSHIFT_SCREENSHOT_X=250 SWIFTSHIFT_SCREENSHOT_Y=31 \
SWIFTSHIFT_MOUSE_CROP_X=125 SWIFTSHIFT_MOUSE_CROP_Y=260 \
  .agents/skills/screenshots/bin/capture-swiftshift-screenshots.sh

Notes

  • The script will briefly change the Mac appearance/wallpaper and hide visible apps.
  • If the app UI gets taller/wider, update the background skeletons and placement constants together.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.