💡
win版claude codeにスクリーンショットを楽に見てもらうスクリプト
win版claude を触ってみて
現在の状況:
- Claude CodeはネイティブなWindows版が存在しない
- Windows上で使用するには**WSL(Windows Subsystem for Linux)**が必要
- WSL経由でLinux環境を構築してClaude Codeを実行する仕組み
参考記事:https://zenn.dev/acntechjp/articles/eb5d6c8e71bfb9
使っててMacにはあるけど、痒いところに手が届かない
Mac版では当たり前に使える機能がWindows版では使えない状況が多々発生しています。
Mac版とWindows版の機能格差
-
最も困った機能:スクリーンショット貼り付け
特に緊急に感じたのが、スクリーンショットをClaude Codeに直接渡すショートカット機能でした。
なのでclaude に作ってもらいました


1. ワンコマンドでスクリーンショット分析
# 1. Windows+Shift+Sでスクリーンショット
# 2. Claude Codeで「/ss」と入力
# 3. 瞬時に画像が表示され、Claudeが分析開始!
2. 多彩なClaude Codeコマンド
-
/ss- 最新のスクリーンショットを表示 -
/sslist- 最近のスクリーンショット一覧 -
/ssshow 3- 3番目のスクリーンショットを表示
📦 導入方法
🔒 インストール(推奨)
Windows:
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/miyashita337/claude-screenshot/main/install.ps1" -OutFile "install.ps1"
.\install.ps1
⚡ クイックインストール
Windows:
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/miyashita337/claude-screenshot/main/install.ps1" -OutFile "install.ps1"; .\install.ps1 -Force
** 車輪の再開発ですがMac版もあります ``
macOS/Linux:
curl -sSL https://raw.githubusercontent.com/miyashita337/claude-screenshot/main/safe-install.sh | bash
🎯 実際の使用例
基本的な使い方
# 1. スクリーンショットを撮影
Win+Shift+S # Windows
# 2. Claude Codeで分析
/ss
高度な使い方
# 最近のスクリーンショット一覧
/sslist
# 特定のスクリーンショットを選択
/ssshow 2
# 自動監視開始
screenshot-monitor
# 既存ファイルを処理
screenshot-process
🔧 技術的な特徴
アーキテクチャ
claude-screenshot/
├── install.sh # macOS/Linux インストーラー
├── install.ps1 # Windows インストーラー
├── safe-install.sh # セキュアインストーラー
├── scripts/ # コアスクリプト群
│ ├── screenshot_manager.sh
│ ├── claude_integration.sh
│ └── clipboard_handler.sh
└── claude-commands/ # Claude Codeカスタムコマンド
├── ss.md
├── sslist.md
└── ssshow.md
📚 参考リンク
- GitHub: https://github.com/miyashita337/claude-screenshot
- 日本語README: https://github.com/miyashita337/claude-screenshot/blob/main/README_ja.md
- オリジナルGist: https://gist.github.com/miyashita337/9cf694f01ee19c3c16e6d34afab64e8e
試してみた感想や改善提案があれば、GitHubのIssueやコメントでお聞かせください! 🚀
Discussion