Thank you for your interest in contributing. This project is open to anyone, and the workflow below explains exactly how to submit changes using a fork and a pull request.
To contribute, create your own copy:
- Open this repository on github.com.
- Click the Fork button in the top-right corner.
- Select your GitHub account as the destination.
- GitHub will create your personal fork at:
https://github.com/<your-username>/afv-library.
Clone your personal fork:
git clone https://github.com/<your-username>/afv-library.git
cd afv-libraryAdd the original repository as the upstream remote:
git remote add upstream https://github.com/forcedotcom/afv-library.gitCreate a new branch for your work:
git checkout -b my-feature-nameUse a short, descriptive name.
Perform your edits or add new functionality. When ready:
git add .
git commit -m "Describe your change clearly"git push origin my-feature-nameGitHub will display a Compare & pull request button.
Once your branch is pushed to your fork, you can open a Pull Request (PR) to propose merging your changes into this repository.
Option A --- From the GitHub banner (easiest)
After pushing your branch, GitHub shows a banner:
"Compare & pull request"
Click it.
Option B --- Manually
- Go to your fork on GitHub:
https://github.com/<your-username>/afv-library - Switch to your feature branch.
- Click the Pull requests tab.
- Click New pull request.
- Click compare across forks.
Make sure GitHub is targeting the correct repositories and branches:
- Base repository:
forcedotcom/afv-library - Base branch:
main - Head repository:
<your-username>/afv-library - Head branch: your feature branch (
my-feature-name)
Correct configuration:
base: forcedotcom/afv-library → main
compare: <your-username>/afv-library → my-feature-name
Use a clear, descriptive title. Examples:
- "Add examples for Apex prompt templates"
- "Fix typo in GPT-5 rule documentation"
- "Improve structure of LWC prompt guidelines"
Avoid generic titles like "Update" or "Fix."
Include:
- What you changed
- Why you changed it
- How it improves the library
- Any follow-ups or questions
Suggested template:
### Summary
Brief explanation of what this change adds or improves.
### Changes
- List key changes
- Mention new files or docs
- Describe any refactoring
### Motivation
Why this change is needed or helpful.
### Notes
Anything reviewers should know or testing instructions.
Click Create pull request.
If the repository has CI or linting tools, GitHub will run checks.
Fix any failures by updating your branch and pushing again.
Maintainers may comment, request changes, or ask questions.
To update your PR:
git add .
git commit -m "Address review feedback"
git pushYour PR updates automatically.
If maintainers request changes:
git add .
git commit -m "Update after review"
git pushYour PR updates automatically.
Sync your fork with the upstream repo before starting new work:
git checkout main
git pull upstream main
git push origin mainA maintainer will merge your PR after approval.
- Fork the repo.
- Clone your fork.
- Create a branch.
- Make changes.
- Push the branch.
- Open a PR.
- Respond to feedback.
- Keep your fork updated.