Contributing
Thank you for your interest in contributing to ContextGraph OS!
Getting Started
- Fork the repository
- Clone your fork
- Install dependencies:
pnpm install - Build:
pnpm -r build - Run tests:
pnpm -r test
Development Workflow
Branch Naming
feature/description- New featuresfix/description- Bug fixesdocs/description- Documentationrefactor/description- Code refactoring
Commit Messages
Follow conventional commits:
feat: add new visualization format
fix: resolve policy evaluation order
docs: update SDK documentation
refactor: simplify storage interface
test: add CKG integration tests
Pull Requests
- Create a feature branch
- Make your changes
- Write/update tests
- Update documentation
- Submit PR with description
Code Style
- TypeScript strict mode
- ESLint + Prettier
- 100% test coverage for new code
Testing
# Run all tests
pnpm -r test
# Run specific package tests
pnpm --filter @contextgraph/sdk test
# Run with coverage
pnpm -r test:coverage
Documentation
- Update relevant docs for any API changes
- Add JSDoc comments to public APIs
- Include examples in documentation
Questions?
Open an issue for questions or discussions.