Agent skill

Shogun Screenshot

by yohey-w in yohey-w/multi-agent-shogun

スクリーンショットの取得・加工を行う。ローカルスクショから最新画像を取得、 PlaywrightでWebページをキャプチャ、画像のトリミング・リサイズ、機微情報を黒塗りマスキング。

MITAuto-check: notesTesting & QA

Install Shogun Screenshot

skills CLI
$ npx skills add yohey-w/multi-agent-shogun --skill shogun-screenshot -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install yohey-w/multi-agent-shogun shogun-screenshot --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/yohey-w/multi-agent-shogun.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/shogun-screenshot .claude/skills/shogun-screenshot && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
shogun-screenshot
GitHub stars
1.4k
Token cost
~901 tokens
SKILL.md length
163 words
Files
4 (incl. scripts)
Skills in repo
8
Repo updated
First seen
Licence
MIT

At a glance

スクリーンショットの取得・加工を行う。ローカルスクショから最新画像を取得、 PlaywrightでWebページをキャプチャ、画像のトリミング・リサイズ、機微情報を黒塗りマスキング。

  • Works in 4 steps: ローカル取得: ユーザーのスクショフォルダから最新画像を取得 → Webキャプチャ: URLを指定してPlaywright MCPでページをキャプチャ → トリミング: 既存画像の一部を切り出し・リサイズ → …
  • : 画像生成(shogun-imagegenを使え)
  • SKILL.md covers North Star(全判断の最上位基準), Input, Overview and When to Use, plus 3 more sections
  • Runs Python and Shell scripts from its folder; calls python3 and bash

What it does

Shogun Screenshot is an agent skill from yohey-w/multi-agent-shogun. スクリーンショットの取得・加工を行う。ローカルスクショから最新画像を取得、 PlaywrightでWebページをキャプチャ、画像のトリミング・リサイズ、機微情報を黒塗りマスキング。 記事執筆、レポート作成、UI確認、画像加工時に起動。 「スクショ」「スクリーンショット」「画面キャプチャ」「最新のスクショ」「画像加工」「トリミング」「マスク」「写メ」「写メ撮った」「スクショ撮った」で起動。 Do NOT use for: 画像生成(shogun-imagegenを使え)。

Its SKILL.md is about 900 tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including scripts (for example `scripts/capture_local.sh`, `scripts/mask_sensitive.py` and `scripts/trim_image.py`).

It sits in Testing & QA, covering Browser testing, Frontend development and Image generation. It works with Playwright and Model Context Protocol. The repository describes itself as: Samurai-inspired multi-agent system for Claude Code. Orchestrate parallel AI tasks via tmux with shogun → karo → ashigaru hierarchy. The licence is MIT.

When your agent uses it

  • : 画像生成(shogun-imagegenを使え)
  • Tasks that involve Browser testing
  • Tasks that involve Frontend development

Example prompts

  • “/shogun-screenshot”

Requirements

  • Python 3
  • A Bash shell
  • Pre-approved tools (allowed-tools): Bash, Read

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. ローカル取得: ユーザーのスクショフォルダから最新画像を取得
  2. Webキャプチャ: URLを指定してPlaywright MCPでページをキャプチャ
  3. トリミング: 既存画像の一部を切り出し・リサイズ
  4. マスキング: 機微情報(APIキー、個人情報等)を黒塗り

What it can do on your machine

Read from SKILL.md and the folder at commit aff8dc8. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash
    • Read

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 3 files in scripts/ (Python and Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • python3
    • bash

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Shogun Screenshot loads about 901 tokens when it runs. Until then it costs about 64 tokens; SKILL.md has 163 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~64
When it runs · the whole SKILL.md, loaded when a task matches
~901

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Bash, Read

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from yohey-w/multi-agent-shogun at commit aff8dc8, republished under its MIT licence (© yohey-w). 163 words, ~901 tokens.

Download SKILL.mdSave it as .claude/skills/shogun-screenshot/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
shogun-screenshot
description
スクリーンショットの取得・加工を行う。ローカルスクショから最新画像を取得、 PlaywrightでWebページをキャプチャ、画像のトリミング・リサイズ、機微情報を黒塗りマスキング。 記事執筆、レポート作成、UI確認、画像加工時に起動。 「スクショ」「スクリーンショット」「画面キャプチャ」「最新のスクショ」「画像加工」「トリミング」「マスク」「写メ」「写メ撮った」「スクショ撮った」で起動。 Do NOT use for: 画像生成(shogun-imagegenを使え)。
allowed-tools
Bash, Read
argument-hint
[url-or-target e.g. https://example.com, latest]

/shogun-screenshot - スクリーンショット取得・加工スキル

North Star(全判断の最上位基準)

このスキルの北極星は記事・報告書のビジュアル品質向上によるコンテンツ差別化。 高品質な画像(マスク済み・適切にトリミング済み)を記事・レポートに挿入することで、 テキスト単体の競合コンテンツとの差別化を実現する。

Input

$ARGUMENTS = 操作対象の指定(URLまたはモードキーワード)

  • URL(https://...)→ Mode 2: Webキャプチャ
  • latest(省略可)→ Mode 1: ローカルスクショ取得
  • 引数なし → ユーザーの意図に応じて最適なモードを選択

Overview

スクリーンショットの取得・加工を行う。4つのモードがある:

  1. ローカル取得: ユーザーのスクショフォルダから最新画像を取得
  2. Webキャプチャ: URLを指定してPlaywright MCPでページをキャプチャ
  3. トリミング: 既存画像の一部を切り出し・リサイズ
  4. マスキング: 機微情報(APIキー、個人情報等)を黒塗り

When to Use

  • 「最新のスクショを見せて」「スクショ取って」と言われた時
  • 記事やレポートに画像を挿入する時
  • UI画面のキャプチャが必要な時
  • 画像のトリミング・切り出しが必要な時
  • スクショ内の機密情報をマスクする時

Configuration

スクショフォルダのパスは config/settings.yaml で管理(優先順の配列):

yaml
screenshot:
  paths:
    - "/path/to/your/Screenshots/"      # OS のスクショ保存先
    - "queue/screenshots/"               # モバイルアプリ等からの受信先
  capture_dir: "images/"                 # Webキャプチャの保存先
  trim_dir: "images/trimmed/"            # トリミング後の保存先

paths 配列を上から順に探索し、ディレクトリが存在+画像ファイルがあるものを使う。 全パスが存在しない場合はエラーを返す。

Instructions

Mode 1: ローカルスクショ取得(複数パスフォールバック)

手順:

  1. config/settings.yaml から screenshot.paths 配列を読む
  2. 優先順に各パスを探索: a. ls <path> でディレクトリ存在を確認(存在しなければ次へ) b. 存在するパスで ls -lt <path>/*.png <path>/*.jpg 2>/dev/null | head -5 で最新画像を取得
  3. 最も新しい画像ファイルを Read ツールで表示
  4. 複数パスに画像がある場合、全パスの最新を比較して最も新しいものを表示

ヘルパースクリプト (全パスを自動探索):

bash
bash skills/shogun-screenshot/scripts/capture_local.sh -n 3

手動で特定パスを指定する場合:

bash
# config/settings.yaml の screenshot.paths に設定されたパスを使用
ls -lt "/path/to/Screenshots/"*.png 2>/dev/null | head -3

注意: ディレクトリ自体が存在しない可能性がある(ドライブ未マウント等)。 2>/dev/null で存在しないパスのエラーを抑制すること。

Mode 2: Webキャプチャ(Playwright MCP)
  1. Playwright MCP の playwright_navigate でURLに遷移
  2. playwright_screenshot でキャプチャ
    • fullPage: true(ページ全体)
    • selector: 指定(要素のみ)
    • savePng: true, downloadsDir: 保存先
  3. 保存されたPNGのパスを返す
Mode 3: トリミング
  1. 対象画像のパスを受け取る
  2. Python (PIL/Pillow) でトリミング実行
  3. トリミング後の画像を保存
bash
python3 skills/shogun-screenshot/scripts/trim_image.py \
  --input /path/to/image.png \
  --output /path/to/trimmed.png \
  --crop "x1,y1,x2,y2"

オプション: --resize "width,height" でリサイズも同時に行える。

Mode 4: 機微情報マスキング

スクショ内のAPIキー、トピック名、個人情報等を矩形で黒塗りする。

bash
# 単一領域
python3 skills/shogun-screenshot/scripts/mask_sensitive.py \
  --input /path/to/image.png \
  --output /path/to/masked.png \
  --regions "100,50,400,80"

# 複数領域
python3 skills/shogun-screenshot/scripts/mask_sensitive.py \
  --input /path/to/image.png \
  --output /path/to/masked.png \
  --regions "100,50,400,80" "500,200,800,230"

# 位置確認(赤枠プレビュー、塗りつぶさない)
python3 skills/shogun-screenshot/scripts/mask_sensitive.py \
  --input /path/to/image.png \
  --output /path/to/preview.png \
  --regions "100,50,400,80" --preview

オプション:

  • --color "R,G,B" — 塗りつぶし色(デフォルト: 黒 0,0,0)
  • --preview — 赤枠表示のみ(塗りつぶさない。座標確認用)

手順:

  1. Read ツールで画像を確認し、マスクすべき領域を特定
  2. --preview で座標が正しいか確認
  3. プレビューOKなら --preview を外して実行

Guidelines

  • APIキーや認証情報を画像に含めないよう注意。公開前に必ず Mode 4 でマスキング
  • Playwright MCPが利用不可の場合は、ローカルモードのみで動作
  • 大量のスクショを一度に処理する場合は、バッチ処理スクリプトを使用
  • トリミング・マスキング座標は左上(0,0)基準のピクセル値
  • 保存先のデフォルト: プロジェクトの images/ ディレクトリ

© yohey-w, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (scripts) in skills/shogun-screenshot of yohey-w/multi-agent-shogun.

  • SKILL.md
  • scripts/capture_local.sh
  • scripts/mask_sensitive.py
  • scripts/trim_image.py

Open the folder on GitHubat commit aff8dc8

Compare with similar skills

Shogun Screenshot next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Shogun Screenshot compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Shogun Screenshot this skillyohey-w/multi-agent-shogun1.4k—~901Automated safety check: NotesMIT
Browser UseQwenLM/qwen-code-examples143—~451Automated safety check: PassNone
Invisible Playwrightfeder-cr/invisible_dots32k—~573Automated safety check: PassMIT
Playwright E2E Testsonyx-dot-app/onyx32k1 repos~2.8kAutomated safety check: NotesCustom licence
Playwright Debugvoicetreelab/voicetree924—~1.2kAutomated safety check: PassCustom licence
Hands On Testktnyt/cclsp675—~1.7kAutomated safety check: PassMIT

Similar skills

  • Browser Use

    QwenLM/qwen-code-examples

    Control browser pages using the Playwright MCP server. An agent skill from QwenLM/qwen-code-examples.

    143 GitHub stars~451 tokensUpdated 4 mo ago
    Productivity & AutomationAuto-check passed
  • Invisible Playwright

    feder-cr/invisible_dots

    Use the Dot's browser identities for any task on a website or search on the web: which identity to use, opening and closing one, and when a plain download is simpler than a browser.

    32k GitHub stars~573 tokensUpdated today
    Testing & QAAuto-check passed
  • Playwright E2E Tests

    onyx-dot-app/onyx

    Write and maintain Playwright end-to-end tests for the Onyx application.

    32k GitHub starsUsed in 1 repo~2.8k tokens
    Testing & QAAuto-check: notes
  • Playwright Debug

    voicetreelab/voicetree

    This skill should be used when the user asks to "debug the electron app", "connect playwright to VoiceTree", "take screenshots of the running app", "interact with the live UI", "inspect the running…

    924 GitHub stars~1.2k tokensUpdated 3 days ago
    Testing & QAAuto-check passed
  • Hands On Test

    ktnyt/cclsp

    Performs manual hands-on testing of a web application using playwright-cli.

    675 GitHub stars~1.7k tokensUpdated 7 mo ago
    Testing & QAAuto-check passed
  • E2E Verification

    Chorus-AIDLC/Chorus

    A skill your agent uses when manually verifying a Chorus frontend change in a real browser — finding local login credentials, driving the running dev server with the Playwright MCP, logging in…

    1.2k GitHub stars~1.5k tokensUpdated yesterday
    Testing & QAAuto-check: notes

More from yohey-w/multi-agent-shogun

All 8 skills in this repo
  • Shogun Bloom Config

    yohey-w/multi-agent-shogun

    Interactive wizard: guided questions with multiple-choice options about subscriptions, then outputs a ready-to-paste capabilitytiers YAML + fixed agent model assignments.

    1.4k GitHub stars~3.1k tokensUpdated 2 mo ago
    Auto-check passed
  • Shogun Model List

    yohey-w/multi-agent-shogun

    All AI CLI tools × available models × required subscriptions × Bloom max capability.

    1.4k GitHub stars~1.3k tokensUpdated 2 mo ago
    Auto-check passed
  • Skill Creator

    yohey-w/multi-agent-shogun

    Claude Codeスキル(SKILL.md)の設計・作成・バリデーション・レビュー. An agent skill from yohey-w/multi-agent-shogun.

    1.4k GitHub stars~1.8k tokensUpdated 2 mo ago
    Auto-check passed
  • Shogun Model Switch

    yohey-w/multi-agent-shogun

    エージェントのCLI/モデルをライブ切替するスキル。settings.yaml更新→/exit→新CLI起動→ pane metadata更新を一発で実行。Thinking有無も制御。

    1.4k GitHub stars~1.1k tokensUpdated 2 mo ago
    Auto-check passed
  • Shogun Readme Sync

    yohey-w/multi-agent-shogun

    README.md(英語)とREADMEja.md(日本語)の同期を確認・実行するスキル。README変更時に両言語版を必ず同時更新するために使用。「README更新」「README同期」「readme sync」で起動。

    1.4k GitHub stars~528 tokensUpdated 2 mo ago
    Auto-check passed
  • Inbox Write

    yohey-w/multi-agent-shogun

    別エージェントのinboxにメッセージを送信する。agent-to-agent通信の唯一の手段. An agent skill from yohey-w/multi-agent-shogun.

    1.4k GitHub stars~186 tokensUpdated 2 mo ago
    Auto-check passed

Categories

Questions about Shogun Screenshot

What does Shogun Screenshot do?

スクリーンショットの取得・加工を行う。ローカルスクショから最新画像を取得、 PlaywrightでWebページをキャプチャ、画像のトリミング・リサイズ、機微情報を黒塗りマスキング。. Shogun Screenshot is an agent skill from yohey-w/multi-agent-shogun.

When should I use Shogun Screenshot?

Shogun Screenshot fits situations like: : 画像生成(shogun-imagegenを使え); tasks that involve Browser testing; tasks that involve Frontend development.

How do I install Shogun Screenshot in Claude Code?

Run `npx skills add yohey-w/multi-agent-shogun --skill shogun-screenshot -a claude-code`. Or copy the skill folder (skills/shogun-screenshot in yohey-w/multi-agent-shogun) into .claude/skills/shogun-screenshot in your project. Claude Code loads it when a task matches its description.

How do I install Shogun Screenshot in Codex?

Run `npx skills add yohey-w/multi-agent-shogun --skill shogun-screenshot -a codex`. Or copy the skill folder (skills/shogun-screenshot in yohey-w/multi-agent-shogun) into .agents/skills/shogun-screenshot in your project. Codex loads it when a task matches its description.

Can I use Shogun Screenshot in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add yohey-w/multi-agent-shogun --skill shogun-screenshot -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/shogun-screenshot, .gemini/skills/shogun-screenshot, .github/skills/shogun-screenshot and .opencode/skills/shogun-screenshot in your project.

What does Shogun Screenshot need to run?

Going by SKILL.md and its folder, Shogun Screenshot needs Python and a shell for the scripts in its folder and the command-line tools its instructions call (python3 and bash). Our summary lists: Python 3; A Bash shell. Its frontmatter pre-approves these tools: Bash, Read.

Does Shogun Screenshot access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Shogun Screenshot safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Shogun Screenshot use?

Shogun Screenshot is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Shogun Screenshot use?

About 901 tokens (SKILL.md is roughly 3.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Shogun Screenshot?

Skills that share tags, products or a category with Shogun Screenshot: Browser Use (QwenLM/qwen-code-examples, 143 stars), Invisible Playwright (feder-cr/invisible_dots, 32k stars), Playwright E2E Tests (onyx-dot-app/onyx, 32k stars) and Playwright Debug (voicetreelab/voicetree, 924 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Shogun Screenshot?

yohey-w (a GitHub user) maintains it in yohey-w/multi-agent-shogun, which has 1,425 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on August 6, 2026.

Source: yohey-w/multi-agent-shogun on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.