# Generate Star Badge

> Generates a GitHub star badge markdown snippet for a given GitHub repository URL.

- Skill: `anubhavsrivastava/generate-star-badge` (Agent Skill)
- Install (CLI): `npx skillmds@latest add anubhavsrivastava/generate-star-badge`
- Raw SKILL.md: https://api.skillmd.com/api/skills/anubhavsrivastava/generate-star-badge/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: anubhavsrivastava (https://skillmd.com/u/anubhavsrivastava)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/anubhavsrivastava/generate-star-badge

---


# Generate GitHub Star Badge

When the user asks you to create, generate, or add a star badge for a GitHub repository, you should use the provided local script to generate the correct markdown snippet.

## Instructions
1. Run the local script located at `_tools/starBadge/index.js` using Node.js, passing the target GitHub repository URL as an argument.
   Example command:
   ```bash
   node _tools/starBadge/index.js https://github.com/username/repository
   ```
2. The script will output a string containing the markdown snippet, which looks similar to:
   `Badge Url:  [![Repo Star](https://img.shields.io/github/stars/username/repository.svg?label=&style=social)](https://github.com/username/repository)`
3. Extract the markdown snippet from the output.
4. Provide this snippet to the user, or directly insert it into the `README.md` or other specified markdown files if the user requested you to add it to a file.

