en un clic
add-contributor
// Use when adding a new contributor to the Goravel docs. Fetches GitHub avatar and adds contributor links to en/prologue/contributions.md and en/index.md
// Use when adding a new contributor to the Goravel docs. Fetches GitHub avatar and adds contributor links to en/prologue/contributions.md and en/index.md
| name | add-contributor |
| description | Use when adding a new contributor to the Goravel docs. Fetches GitHub avatar and adds contributor links to en/prologue/contributions.md and en/index.md |
This skill automates adding a new contributor to the Goravel documentation contributor lists in en/prologue/contributions.md and en/index.md.
The user provides a GitHub profile URL, e.g.:
https://github.com/hwbrzzl
From the URL, extract the username (e.g., hwbrzzl).
Make a fetch request to the GitHub API to get the user's profile data:
https://api.github.com/users/{username}avatar_url field from the JSON responsehttps://avatars.githubusercontent.com/u/{user_id}?v=4Create an HTML anchor tag with the avatar image:
<a href="https://github.com/{username}" target="_blank"><img src="{avatar_url}" width="48" height="48"></a>
Locate the appropriate sections:
en/prologue/contributions.md<div> block<div> block (if applicable)en/index.md## ContributorsInsert the HTML snippet as a new line in both files:
en/prologue/contributions.md, insert before the closing </div> tag of the target list.en/index.md, insert in the contributors avatar list before the closing </div> of the contributors block.Update both files and verify the contributor appears correctly in the rendered documentation.
en/prologue/contributions.md## Contributors list in en/index.mdInput: https://github.com/hwbrzzl
Extracted User ID from API: 108449432
Generated Snippet:
<a href="https://github.com/hwbrzzl" target="_blank"><img src="https://avatars.githubusercontent.com/u/108449432?v=4" width="48" height="48"></a>
Location in Files:
en/prologue/contributions.md: Added to Contributors section before </div> closing tagen/index.md: Added to Contributors section before the closing </div>