We love your input! We want to make contributing to ax-score as easy and transparent as possible, whether it's:
- Reporting a bug
- Discussing the current state of the code
- Submitting a fix
- Proposing new features
- Adding new Audits or Gatherers
- Node.js 20+
- pnpm 10+
-
Clone the repository:
git clone https://github.com/agentgram/ax-score.git cd ax-score -
Install dependencies:
pnpm install
-
Start development mode:
pnpm dev
-
Run tests:
pnpm test
Every task needs an issue. Before starting any work, please create an issue using gh issue create or the GitHub web interface.
We use the following format for branch names:
<type>/<description>-#<issue_number>
Example: feat/add-llms-txt-audit-#42
We follow the conventional commits pattern:
<type>: <subject> (#<issue_number>)
Example: feat: add llms.txt gatherer (#42)
Types: feat, fix, docs, refactor, test, chore, rename, remove.
- Create your feature branch from
develop. - Ensure all tests pass and the code follows our style guide.
- Submit a PR targeting the
developbranch. - Use the PR template provided in the repository.
To add a new audit to ax-score:
- Create a Gatherer (if needed): If the audit requires new data, create a gatherer in
src/gatherers/that extendsBaseGatherer. - Create an Audit: Create a new class in
src/audits/that extendsBaseAudit. - Register the Audit: Add your audit to the configuration in
src/config/default-config.ts. - Add Tests: Create a test file in
tests/audits/to verify your logic.
Please follow the guidelines in docs/development/CODE_STYLE.md.
By contributing, you agree that your contributions will be licensed under its MIT License.