Thank you for considering contributing to doc-agent! This document outlines the process for contributing and the standards we follow.
We follow The Drill™ for all development work. Please refer to WORKFLOW.md for the complete guide on finding work, planning, implementing, and submitting changes.
- Fork and clone the repository
- Install dependencies:
pnpm install - Create a branch:
git checkout -b feature/my-feature - Make your changes (following The Drill)
- Test your changes:
pnpm test - Ensure code quality:
pnpm lint && pnpm typecheck
We follow Conventional Commits for commit messages. This is enforced using commitlint.
Format: type(scope): subject
Types:
feat: A new featurefix: A bug fixdocs: Documentation changesstyle: Changes that don't affect code meaning (formatting, etc.)refactor: Code changes that neither fix bugs nor add featuresperf: Performance improvementstest: Adding or fixing testschore: Changes to build process or auxiliary tools
Example:
feat(cli): add new search command
fix(extract): handle empty PDF responses
- Update the
README.mdif needed with details of changes to the interface. - Add a changeset to document your changes:
pnpm changeset - Create a pull request to the
mainbranch. - The PR will be reviewed and merged if it meets our standards.
See AGENTS.md for architectural details and WORKFLOW.md for the step-by-step process.
- Write tests for all new features and bug fixes.
- Run existing tests to ensure your changes don't break existing functionality.
- Aim for good test coverage.
- Tests are located in
packages/*/src/**/*.test.ts.
We use Biome for linting and formatting:
- Run
pnpm lintto check code quality. - Run
pnpm formatto format the code.
All code must pass linting and typechecking before being merged.
We use Changesets to manage versions and generate changelogs.
After making changes:
- Run
pnpm changeset - Follow the prompts to describe your changes
- Commit the generated changeset file
If you have any questions, please open an issue or discussion in the repository.