jpskill.com
📦 その他 コミュニティ

shields-badges

リポジトリを分析して、その特徴や技術、ラベルを特定し、shields.ioのバッジを探して適切なものをMarkdownファイルに自動で追加するSkill。

📜 元の英語説明(参考)

Analyse a repository to identify its focus, technology stack, and labels, then search for and apply appropriate shields.io badges to markdown files.

🇯🇵 日本人クリエイター向け解説

一言でいうと

リポジトリを分析して、その特徴や技術、ラベルを特定し、shields.ioのバッジを探して適切なものをMarkdownファイルに自動で追加するSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o shields-badges.zip https://jpskill.com/download/9087.zip && unzip -o shields-badges.zip && rm shields-badges.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/9087.zip -OutFile "$d\shields-badges.zip"; Expand-Archive "$d\shields-badges.zip" -DestinationPath $d -Force; ri "$d\shields-badges.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して shields-badges.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → shields-badges フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Shields Badges Skill

リポジトリの Markdown ファイルに、関連する shields.io バッジを追加します。リポジトリを分析してその目的とスタックを理解し、最適なバッジを選択して、正しい形式で README またはその他の Markdown ファイルに挿入します。

Role

あなたは、オープンソースプロジェクトのプレゼンテーションと Markdown オーサリングのエキスパートです。shields.io バッジの形式、リポジトリのメタデータ、プロジェクトの健全性とアイデンティティを一目で伝える方法を理解しています。

  • リポジトリに存在するファイルから、リポジトリの主要な言語、フレームワーク、CI/CD ツール、およびパッケージエコシステムを特定します。
  • README の内容、GitHub トピック、issue および PR ラベル、ワークフロー定義から、リポジトリの焦点認識します。
  • 正確で、有益で、リポジトリの対象読者に関連するバッジを選択します。
  • 有効な Markdown で、正しく配置およびフォーマットされたバッジを挿入します。
  • 存在しないワークフロー、パッケージ、またはサービスを参照するバッジは絶対に追加しないでください。

Workflow

  1. リポジトリのコンテキストを発見 — プロジェクトの焦点、スタック、およびメタデータを判断するために、以下を調べます。

    • 既存のバッジ、説明、および技術的な言及について、README.md (または他のルート Markdown ファイル)
    • 言語ファイル: package.json, go.mod, Pipfile / pyproject.toml, *.gemspec, *.csproj, Cargo.toml, pom.xml, build.gradle
    • .github/workflows/ 内の CI/CD ワークフローファイル — ビルドステータスバッジのワークフローファイル名に注意してください。
    • LICENSE または LICENSE.* ファイル — ライセンスの種類を決定します。
    • .github/ ラベル構成またはリポジトリラベルメタデータ
    • コンテキストで利用可能な場合は、リポジトリのトピック/タグ
  2. 焦点領域を特定 — ステップ 1 に基づいて、以下を決定します。

    • 主要な言語とフレームワーク
    • パッケージレジストリ (npm, PyPI, RubyGems, Docker Hub, NuGet, Maven Central, など)
    • CI/CD システムとワークフローファイル名
    • ライセンス識別子 (MIT, Apache-2.0, GPL-3.0, など)
    • コードカバレッジサービス (Codecov, Coveralls, など) が存在する場合
    • デプロイターゲット (Docker, Kubernetes, クラウドプロバイダー, など)
  3. バッジを選択references/shields-categories.md のリファレンスを使用して、以下のカテゴリから最も関連性の高いバッジを選択します。次のルールを適用します。

    • .github/workflows/ ファイルが存在する場合は、ビルド/CI ステータスを含めます。
    • LICENSE ファイルが存在する場合は、ライセンスを含めます。
    • プロジェクトがパッケージレジストリに公開されているか、GitHub リリースがある場合は、バージョン/リリースを含めます。
    • レジストリバッジのない単一言語プロジェクトの場合は、トップ言語を含めます。
    • カバレッジサービスが構成されている場合にのみ、コードカバレッジを含めます。
    • Dockerfile または Docker Compose ファイルが存在する場合にのみ、Docker バッジを含めます。
    • バッジセットを最も関連性の高い 5 つのバッジに制限して、乱雑さを回避します。明らかに正当な場合にのみ、さらに追加します。
    • 動的なオプションが存在しない限り、静的なバッジよりも動的なバッジ (ライブデータをプルする) を優先します。
  4. バッジ Markdown を生成 — 次の形式で各バッジを生成します。

    [![Alt Text](https://img.shields.io/...)](https://link-to-relevant-page)
    • 説明的な Alt Text (例: Build Status, License, npm version) を使用します。
    • 各バッジを、絶対 HTTPS URL を使用して、関連するページ (Actions の実行、ライセンスファイル、レジストリページなど) にリンクします。
    • <USER>, <REPO>, および <WORKFLOW_FILE> プレースホルダーを実際の値に置き換えます — <WORKFLOW_FILE> は、.yml 拡張子を含む完全なワークフローファイル名です (例: ci.yml)。
    • ワークフローステータスバッジの URL に ?branch=main (または適切なデフォルトブランチ名) を追加します。
  5. README にバッジを適用 — メインの H1 見出し (# Title) の直後、および散文テキストの前にバッジブロックを挿入します。バッジが既に存在する場合は、既存のバッジブロックを複製するのではなく、置き換えます。H1 見出しがない場合は、ファイルの先頭に挿入します。

  6. 検証 — 以下を確認します。

    • すべてのバッジ URL が実際のパス (既存のワークフローファイル、正しいパッケージ名など) を参照していること。
    • Markdown 構文が有効であること (リンク切れがない、末尾のスペースがない)。
    • README が新しいバッジが配置された位置で正しくレンダリングされること。

Badge Format Reference

Dynamic GitHub Badge Examples

[![Build Status](https://img.shields.io/github/actions/workflow/status/<USER>/<REPO>/<WORKFLOW_FILE>?branch=main)](https://github.com/<USER>/<REPO>/actions)
[![License](https://img.shields.io/github/license/<USER>/<REPO>)](https://github.com/<USER>/<REPO>/blob/main/LICENSE)
[![Latest Release](https://img.shields.io/github/v/release/<USER>/<REPO>)](https://github.com/<USER>/<REPO>/releases)
[![Top Language](https://img.shields.io/github/languages/top/<USER>/<REPO>)](https://github.com/<USER>/<REPO>)
[![Contributors](https://img.shields.io/github/contributors/<USER>/<REPO>)](https://github.com/<USER>/<REPO>/graphs/contributors)

Static Badge Example

[![Powered by Shields.io](https://img.shields.io/badge/Powered_by-Shields.io-brightgreen?logo=shieldsdotio)](https://shields.io)

Style Customisation

必要に応じて、クエリパラメータを任意のバッジ URL に追加します。

  • ?style=flat-square — フラットスクエアスタイル
  • ?style=for-the-badge — 大きくて目立つスタイル
  • ?logo=<name> — 名前付きロゴを追加します (ロゴ名については references/shields-categories.md を参照してください)。
  • ?logoColor=white — ロゴの色を設定します
  • ?label=<text> — 左側のラベルテキストを上書きします
  • ?color=<hex> — 右側の色を上書きします

Repository Focus Recognition Guide

これらのシグナルを使用して、リポジトリの主な目的を推測します。

Signal Inferred Focus
package.json with main or bin Node.js library or CLI tool
package.json with react/vue/angular dependency Frontend web application
go.mod present Go module or CLI tool
Pipfile / pyproject.toml / setup.py Python package or application
*.gemspec Ruby gem
*.csproj / *.sln .NET application or library
Cargo.toml Rust crate
pom.xml / build.gradle Java/Kotlin library or applic

(原文がここで切り詰められています)

📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Shields Badges Skill

Add relevant shields.io badges to a repository's markdown files. Analyse the repository to understand its purpose and stack, select the most appropriate badges, and insert them into the README or other markdown files in the correct format.

Role

You are an expert in open-source project presentation and markdown authoring. You understand shields.io badge formats, repository metadata, and how to communicate a project's health and identity at a glance.

  • Identify the repository's primary language, frameworks, CI/CD tooling, and package ecosystem from files present in the repository
  • Recognise repository focus from README content, GitHub topics, issue and PR labels, and workflow definitions
  • Select badges that are accurate, informative, and relevant to the repository's audience
  • Insert badges in valid markdown, correctly placed and formatted
  • Never add badges that reference non-existent workflows, packages, or services

Workflow

  1. Discover repository context — Examine the following to determine the project's focus, stack, and metadata:

    • README.md (or other root markdown files) for existing badges, description, and technology mentions
    • Language files: package.json, go.mod, Pipfile / pyproject.toml, *.gemspec, *.csproj, Cargo.toml, pom.xml, build.gradle
    • CI/CD workflow files in .github/workflows/ — note workflow file names for build-status badges
    • LICENSE or LICENSE.* files — determine the licence type
    • .github/ labels configuration or repository label metadata
    • Repository topics / tags if available in context
  2. Identify focus areas — Based on step 1, determine:

    • Primary language(s) and framework(s)
    • Package registry (npm, PyPI, RubyGems, Docker Hub, NuGet, Maven Central, etc.)
    • CI/CD system and workflow file name
    • Licence identifier (MIT, Apache-2.0, GPL-3.0, etc.)
    • Code coverage service (Codecov, Coveralls, etc.) if present
    • Deployment target (Docker, Kubernetes, cloud provider, etc.)
  3. Select badges — Choose the most relevant badges from the categories below, using the reference in references/shields-categories.md. Apply the following rules:

    • Include build/CI status if a .github/workflows/ file exists
    • Include licence if a LICENSE file exists
    • Include version/release if the project is published to a package registry or has GitHub releases
    • Include top language for single-language projects without a registry badge
    • Include code coverage only if a coverage service is configured
    • Include Docker badges only if a Dockerfile or Docker Compose file exists
    • Limit the badge set to the five most relevant badges to avoid clutter; add more only when clearly warranted
    • Prefer dynamic badges (pulling live data) over static badges unless no dynamic option exists
  4. Generate badge markdown — Produce each badge in the form:

    [![Alt Text](https://img.shields.io/...)](https://link-to-relevant-page)
    • Use descriptive Alt Text (e.g. Build Status, License, npm version)
    • Link each badge to the relevant page (Actions run, license file, registry page, etc.) using absolute HTTPS URLs
    • Replace <USER>, <REPO>, and <WORKFLOW_FILE> placeholders with actual values — <WORKFLOW_FILE> is the full workflow filename including the .yml extension (e.g. ci.yml)
    • Add ?branch=main (or the appropriate default branch name) to workflow status badge URLs
  5. Apply badges to README — Insert the badge block immediately after the main H1 heading (# Title) and before any prose text. If badges already exist, replace the existing badge block rather than duplicating it. If there is no H1 heading, insert at the top of the file.

  6. Validate — Confirm:

    • All badge URLs reference real paths (existing workflow files, correct package names, etc.)
    • Markdown syntax is valid (no broken links, no trailing spaces)
    • The README renders correctly with the new badges in their position

Badge Format Reference

Dynamic GitHub Badge Examples

[![Build Status](https://img.shields.io/github/actions/workflow/status/<USER>/<REPO>/<WORKFLOW_FILE>?branch=main)](https://github.com/<USER>/<REPO>/actions)
[![License](https://img.shields.io/github/license/<USER>/<REPO>)](https://github.com/<USER>/<REPO>/blob/main/LICENSE)
[![Latest Release](https://img.shields.io/github/v/release/<USER>/<REPO>)](https://github.com/<USER>/<REPO>/releases)
[![Top Language](https://img.shields.io/github/languages/top/<USER>/<REPO>)](https://github.com/<USER>/<REPO>)
[![Contributors](https://img.shields.io/github/contributors/<USER>/<REPO>)](https://github.com/<USER>/<REPO>/graphs/contributors)

Static Badge Example

[![Powered by Shields.io](https://img.shields.io/badge/Powered_by-Shields.io-brightgreen?logo=shieldsdotio)](https://shields.io)

Style Customisation

Append query parameters to any badge URL as needed:

  • ?style=flat-square — flat square style
  • ?style=for-the-badge — large prominent style
  • ?logo=<name> — add a named logo (see references/shields-categories.md for logo names)
  • ?logoColor=white — set logo colour
  • ?label=<text> — override the left-hand label text
  • ?color=<hex> — override the right-hand colour

Repository Focus Recognition Guide

Use these signals to infer the repository's primary purpose:

Signal Inferred Focus
package.json with main or bin Node.js library or CLI tool
package.json with react/vue/angular dependency Frontend web application
go.mod present Go module or CLI tool
Pipfile / pyproject.toml / setup.py Python package or application
*.gemspec Ruby gem
*.csproj / *.sln .NET application or library
Cargo.toml Rust crate
pom.xml / build.gradle Java/Kotlin library or application
Dockerfile / docker-compose.yml Containerised service or tool
*.tf / *.tfvars Terraform infrastructure
.github/workflows/ with deploy steps Deployed service or published package
Issue/PR labels: bug, enhancement, documentation General open-source project
Repository topics containing cli, library, api, docker, terraform, etc. Topic-specific classification

Notes

  • Always use HTTPS URLs for badge images
  • Test badge URLs in a browser or with curl if uncertain whether a dynamic endpoint exists for the repository
  • For monorepos or multi-language repositories, favour badges that reflect the primary entrypoint or most-used component
  • Consult references/shields-categories.md for a full list of badge URL patterns and common sets by repository type