OpenParable
Skip to content
← Back to skills

Add Contributor

Documents
add-contributor

Add Contributor is an Agent Skill for documents published in the goravel/docs repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

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

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/goravel/docs/blob/HEAD/.agents/skills/add-contributor/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/add-contributor, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Add Contributor Skill

This skill automates adding a new contributor to the Goravel documentation contributor lists in en/prologue/contributions.md and en/index.md.

Workflow

1. Input: GitHub Profile URL

The user provides a GitHub profile URL, e.g.:

https://github.com/hwbrzzl

2. Extract Username

From the URL, extract the username (e.g., hwbrzzl).

3. Fetch Avatar URL

Make a fetch request to the GitHub API to get the user's profile data:

  • Endpoint: https://api.github.com/users/{username}
  • Extract the avatar_url field from the JSON response
  • The URL will be in the format: https://avatars.githubusercontent.com/u/{user_id}?v=4

4. Generate HTML Snippet

Create 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>

5. Add to Contribution Sections

Locate the appropriate sections:

  • en/prologue/contributions.md
  • Contributors section: Add to the Contributors <div> block
  • Core Developers section: Add to the Core Developers <div> block (if applicable)
  • en/index.md
  • Contributors section: Add to the contributors avatar list under ## Contributors

Insert the HTML snippet as a new line in both files:

  • In en/prologue/contributions.md, insert before the closing </div> tag of the target list.
  • In en/index.md, insert in the contributors avatar list before the closing </div> of the contributors block.

6. Update Documentation

Update both files and verify the contributor appears correctly in the rendered documentation.

Implementation Steps

  1. Request the GitHub profile URL from the user
  2. Extract the username from the URL
  3. Fetch user data from GitHub API to get the avatar URL
  4. Create the HTML contributor entry
  5. Insert into the appropriate section of en/prologue/contributions.md
  6. Insert into the ## Contributors list in en/index.md
  7. Confirm addition in both files

Example

Input: 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 tag
  • en/index.md: Added to Contributors section before the closing </div>