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
- Run the local script located at
_tools/starBadge/index.jsusing Node.js, passing the target GitHub repository URL as an argument. Example command:node _tools/starBadge/index.js https://github.com/username/repository - The script will output a string containing the markdown snippet, which looks similar to:
Badge Url: [](https://github.com/username/repository) - Extract the markdown snippet from the output.
- Provide this snippet to the user, or directly insert it into the
README.mdor other specified markdown files if the user requested you to add it to a file.