複数の機能で重複する処理を整理し、業務ルールを担うアクションと再利用できる処理を担うサービスの分け方や移行手順を示します。
- 重複した処理を共通化すべきか判断したいとき
- 業務ルールと共通処理の置き場所を整理したいとき
- 複数の呼び出し元を段階的にリファクタリングしたいとき
Webページや画像の変更前後を同じ条件で撮影し、画面の差を比べるためのスクリーンショットと、必要に応じて共有用Markdownを作成します。
Captures before/after screenshots of web pages or elements for visual comparison. Use when user says "take before and after", "screenshot comparison", "visual diff", "PR screenshots", "compare old and new", or needs to document UI changes. Accepts two URLs (file://, http://, https://) or two image paths.
実行スコア 未検証
インストール方法を見るWebページのURLを2つ指定して、変更前と変更後のスクリーンショットを撮影し、画面の変化を確認できます。手元にある画像ファイル2つから比較することもできます。CSSセレクターを指定して特定の要素だけを撮影したり、モバイル・タブレット・任意サイズの表示領域で比べたりできます。必要に応じて画像をアップロードし、比較結果をMarkdownの表にまとめます。PRへの追記が作業に含まれる場合は、その本文に比較結果を加えます。
UIの変更をレビュー担当者に見せたいときや、修正前後の表示を記録したいときに向いています。デプロイ済みページ同士の比較に加え、すでに撮影した画像ペアの整理にも使えます。画面全体ではなく、対象箇所に絞った比較にも対応します。
@vercel/before-and-after パッケージのCLIまたは npx が必要です。画像アップロードやPRへの追記にはネットワーク接続と、対象に応じた gh CLIなどが必要です。保護されたVercel URLへのアクセスにはCLIによる認証が必要になる場合があります。
この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。
インストールする前に、エージェントに与えられる指示の中身を確認できます。
Package:
@vercel/before-and-afterNever usebefore-and-after(wrong package).
DO NOT:
--full unless user explicitly asks for full page / full scroll captureDO:
--markdown when user wants PR integration or markdown output--mobile / --tablet if user mentions phone, mobile, tablet, responsive, etc.before-and-after CLI or npx @vercel/before-and-after.before-and-after "<before-url>" "<after-url>".before-and-after before.png after.png --markdown once. For local capture
requests, deliver the files without uploading them.Resolve bundled script paths relative to this skill's directory, not the project working directory. Reuse earlier evidence instead of recapturing it.
# Basic usage
before-and-after <before-url> <after-url>
# With selector
before-and-after url1 url2 ".hero-section"
# Different selectors for each
before-and-after url1 url2 ".old-card" ".new-card"
# Viewports
before-and-after url1 url2 --mobile # 375x812
before-and-after url1 url2 --tablet # 768x1024
before-and-after url1 url2 --full # full scroll
# From existing images
before-and-after before.png after.png --markdown
# Via npx (use full package name!)
npx @vercel/before-and-after url1 url2
| Flag | Description |
|---|---|
-m, --mobile | Mobile viewport (375x812) |
-t, --tablet | Tablet viewport (768x1024) |
--size <WxH> | Custom viewport |
-f, --full | Full scrollable page |
-s, --selector | CSS selector to capture |
-o, --output | Output directory (default: ~/Downloads) |
--markdown | Upload images & output markdown table |
--upload-url <url> | Custom upload endpoint (default: 0x0.st) |
# Default (0x0.st - no signup needed)
./scripts/upload-and-copy.sh before.png after.png --markdown
If .vercel.app URL returns 401/403:
which vercel && vercel whoamivercel inspect <url> to get bypass token# Check for gh CLI
which gh
# Get current PR
gh pr view --json number,body
# Write the existing body plus the comparison to a temporary file, then:
gh pr edit <number> --body-file /path/to/pr-body.md
If no gh CLI: output markdown and tell user to paste manually.
| Error | Fix |
|---|---|
command not found | npm install -g @vercel/before-and-after |
could not determine executable | Use npx @vercel/before-and-after (full name) |
| 401/403 on .vercel.app | See Vercel protection section |
| Element not found | Verify selector exists on page |
まだレビューはありません。使ってみた感想をお寄せください。
ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。
まだコメントはありません。最初のコメントを書いてみませんか。
複数の機能で重複する処理を整理し、業務ルールを担うアクションと再利用できる処理を担うサービスの分け方や移行手順を示します。
アプリの操作や変更後の動作を確かめ、画面録画やスクリーンショット、測定結果などの証拠をまとめて、指定先に結果を届けます。
PRやMRに寄せられたGreptileの指摘を確認し、対象を絞った修正と再レビューを繰り返して、現行リビジョンの評価と未対応事項を整理します。
通常のトリガーで大きなPRを処理できない場合に、`greploop` のワークフローを `@greptile-apps` トリガーで実行する互換用エントリーポイントです。
機能追加や修正に着手する前に、作業ごとのGit worktreeとブランチを用意し、既存の担当作業や変更範囲を確認して安全に編集を進めます。
コミット文やPR、ドキュメント、返信など、人が読む文章からAIらしい定型表現を取り除き、意味と口調を保ちながら具体的で自然な文に整えます。