skills/shields-badges/SKILL.md
Analyse a repository to identify its focus, technology stack, and labels, then search for and apply appropriate shields.io badges to markdown files.
npx skillsauth add abuxton/skills shields-badgesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.
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.
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 mentionspackage.json, go.mod, Pipfile / pyproject.toml, *.gemspec, *.csproj, Cargo.toml, pom.xml, build.gradle.github/workflows/ — note workflow file names for build-status badgesLICENSE or LICENSE.* files — determine the licence type.github/ labels configuration or repository label metadataIdentify focus areas — Based on step 1, determine:
Select badges — Choose the most relevant badges from the categories below, using the reference in references/shields-categories.md. Apply the following rules:
.github/workflows/ file existsLICENSE file existsDockerfile or Docker Compose file existsGenerate badge markdown — Produce each badge in the form:
[](https://link-to-relevant-page)
Alt Text (e.g. Build Status, License, npm version)<USER>, <REPO>, and <WORKFLOW_FILE> placeholders with actual values — <WORKFLOW_FILE> is the full workflow filename including the .yml extension (e.g. ci.yml)?branch=main (or the appropriate default branch name) to workflow status badge URLsApply 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.
Validate — Confirm:
[](https://github.com/<USER>/<REPO>/actions)
[](https://github.com/<USER>/<REPO>/blob/main/LICENSE)
[](https://github.com/<USER>/<REPO>/releases)
[](https://github.com/<USER>/<REPO>)
[](https://github.com/<USER>/<REPO>/graphs/contributors)
[](https://shields.io)
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 colourUse 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 |
curl if uncertain whether a dynamic endpoint exists for the repositoryreferences/shields-categories.md for a full list of badge URL patterns and common sets by repository typedevelopment
Fetch a matching XKCD comic and generate validated Markdown or HTML embed output for docs or terminal use.
testing
Author high-quality agent skills following the agentskills.io specification, with correct frontmatter, workflow structure, and reference assets.
data-ai
Prepare and publish an npm package that ships agent skills, following the skills-npm convention for skill bundling and distribution.
tools
Create, manage, and organize GitHub Gists using the gh CLI. Use this skill whenever a user wants to create a gist, share code snippets, manage existing gists, add files to a gist, list or search gists, edit gist content or descriptions, clone a gist, or delete a gist. Every gist created or modified must include a README.md documenting its purpose and contents.