Pr Screenshotsのロゴ

Pr Screenshots

コミュニティ
marckohlbrugge
pr-screenshots

Put screenshots of a visible change, before and after, in the pull request (and on the issue), so reviewers can see it without running the app. Use whenever work changes what users see (a redesign, a new screen, styling, layout, empty or loading states, UI copy), when opening or updating a PR for such work, or when someone asks to see what something looks like.

概要

公開者marckohlbrugge
リポジトリskills
スキル名pr-screenshots
スター
749
フォーク
57
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    marckohlbruggeがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Pr Screenshots」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/marckohlbrugge/skills/tree/main/skills/pr-screenshots
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/marckohlbrugge/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/pr-screenshots .claude/skills/pr-screenshots
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでPr Screenshotsを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にPr Screenshotsを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Pr Screenshotsは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

PR screenshots

Reviewers often look at UI work from the PR alone, sometimes on a phone. Every change they can see gets screenshots in the PR description. You already take screenshots to check your own work; these are the same ones, cropped and posted.

1. Capture

  • Real captures of the running app, never mock-ups. Use realistic data (seeds or a copy of production-like data), not "Lorem ipsum" and three rows.
  • Before and after for any change to existing UI: capture the same screen, state and size on the base branch first (a second worktree avoids stashing), then on yours. A new screen only needs an after.
  • Cover what the change is about: light and dark mode when the app has both, each state the change touches (empty, loading, signed in or out, the edge case that was fixed).
  • Web: Playwright or whatever browser tool you have, at a phone width and a desktop width when the layout differs.
  • iOS: a simulator of your own so parallel sessions don't fight over one (xcrun simctl create pr-shots "iPhone 17 Pro", boot, install, simctl ui <udid> appearance dark, simctl launch <udid> <bundle-id> <args>, simctl io <udid> screenshot <file>), deleted afterwards. Launch arguments that open the screen directly save a lot of tapping. In zsh, $ARGS holding several words is passed as one argument; write them out.
  • Look at every image yourself before posting it.

2. Prepare

Crop to the part that changed, with a little context, and scale to about 640px wide. Crop before and after to the same box so they line up. Use ImageMagick (sips --cropOffset is unreliable):

bash
magick full.png -crop <w>x<h>+<x>+<y> +repage -resize 640x -strip out.png

To join several into one image (handy for issue trackers and chat):

bash
magick a.png b.png c.png -background white -splice 24x0 +append -chop 24x0 -resize 1600x -strip strip.png

3. In the pull request

Agents can't reliably upload images to a PR description from the command line, so the images ride along on the PR branch and leave again before merge:

bash
mkdir -p pr-assets && cp <images> pr-assets/
git add pr-assets && git commit -m "Screenshots for PR"
SHA=$(git rev-parse HEAD)
git rm -rq pr-assets && git commit -m "Remove PR screenshots"
git push

Embed them in the PR description as a table with a short caption per column, using the screenshot commit's SHA:

markdown
| Before | After |
|---|---|
| <img src="https://github.com/<owner>/<repo>/blob/<SHA>/pr-assets/before.png?raw=true" width="300"> | <img src="https://github.com/<owner>/<repo>/blob/<SHA>/pr-assets/after.png?raw=true" width="300"> |

For light and dark, use one row each: | Light | before | after |.

  • The PR's ref keeps the commit, so the links keep working after merge. With squash merges the images never reach main; with merge commits they stay in history but not in the tree.
  • A rebase or force-push changes the SHA: update the links. Check an image exists with gh api "repos/<owner>/<repo>/contents/pr-assets/after.png?ref=<SHA>" --jq .size.
  • Images in a public repo are public. Crop out personal data.

4. On the issue (optional)

If the work is tracked in an issue tracker, post one comment with the joined image, a one-line caption saying what each panel shows, and the PR link. For Linear's MCP, upload in two steps within 60 seconds: prepare_file_upload (filename, image/png, exact byte size from stat -f %z), then curl -X PUT --data-binary @strip.png to the returned URL with every returned header, then save_comment with the returned markdown.

When the change is iterated after review, post new screenshots rather than editing old ones, so the history shows what changed.

Never

  • Leave pr-assets/ in the final diff (git diff origin/main --stat before asking for review).
  • Post a screenshot you haven't looked at.
  • Show only the after for a change to existing UI.

よくある質問

AIスキル「Pr Screenshots」では何ができますか?

Put screenshots of a visible change, before and after, in the pull request (and on the issue), so reviewers can see it without running the app. Use whenever work changes what users see (a redesign, a new screen, styling, layout, empty or loading states, UI copy), when opening or updating a PR for such work, or when someone asks to see what something looks like.

TypingMindでPr Screenshotsを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Pr Screenshotsはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにPr Screenshotsをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/marckohlbrugge/skills/tree/main/skills/pr-screenshotsを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Pr Screenshotsを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Pr Screenshotsで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもPr Screenshotsを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Pr Screenshots」は無料ですか?

marckohlbruggeがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇