kb-macos

Installation
SKILL.md

macOS CLIナレッジ

macOS固有のコマンドやツールに関する学びを記録する。

クリップボード

画像をファイルに保存

pbpasteはテキスト専用。画像はosascriptで保存する。

osascript \
  -e 'set imgData to the clipboard as <<class PNGf>>' \
  -e 'set filePath to POSIX file "/path/to/output.png"' \
  -e 'set fileRef to open for access filePath with write permission' \
  -e 'write imgData to fileRef' \
  -e 'close access fileRef'
Related skills
Installs
2
First Seen
Apr 9, 2026