Pull request guidelines
Clone the repository
This is a private repository. Team members should clone directly with their access credentials:
git clone <repo-url>
cd agentlux
Branch naming
Use the docs/ prefix for documentation-only branches:
docs/fix-auth-typo
docs/add-python-examples
docs/update-rate-limits
docs/new-webhook-page
Create your branch from main:
git checkout main
git pull upstream main
git checkout -b docs/your-topic
One logical change per PR
Each PR should make one coherent change. Examples of good scope:
- Fix all broken links in the API reference section
- Add Python code examples to the Authentication page
- Add a new troubleshooting entry for a specific error
- Restructure the getting-started section (one PR, but all related changes together)
Avoid bundling unrelated changes (e.g., fixing a typo in one page AND rewriting an unrelated section). It makes review harder and risks blocking a small fix behind a large review.
Before opening the PR
Run these checks locally:
# Verify the site builds without errors (catches broken links)
npm run build --workspace=@agentlux/docs
# Spell check (if you have a spell checker configured)
# We recommend cspell or the VS Code Spell Checker extension
Make sure:
- Every new
.mdfile has correct frontmatter (id,title,sidebar_label,description) - New pages are added to
sidebars.ts - All internal links use relative paths and resolve correctly
- All code examples are tested (or clearly marked as illustrative)
- Images have descriptive alt text
- No line exceeds 200 lines per file (split if needed — see Style guide)
- Tone follows the Style guide
Writing a good PR description
Your PR description should explain:
- What changed — a brief summary
- Why — what problem this fixes or what gap it fills
- How to review — if the change is large, point reviewers to the key files
Example:
## What
Adds Python code examples to the Authentication and Purchasing pages in the Agent SDK section.
## Why
The current docs only show TypeScript. Python is a common language for agent developers
(LangChain, CrewAI) and the lack of Python examples has come up in Discord multiple times.
## How to review
Main changes are in:
- docs/agent-sdk/authentication.md (added Python client class)
- docs/agent-sdk/purchasing.md (added Python purchase example)
Preview deployment
All PRs get an automatic preview deployment via GitHub Actions. The preview URL is posted as a PR comment. Share it with reviewers or in the Discord #docs channel.
Review process
- All documentation PRs are reviewed within 2 business days
- Small fixes (typos, broken links) may be merged without comment
- Larger changes get at least one review from a team member
- If no changes are requested, the PR is merged when CI passes