Thank you for your interest in contributing! This guide covers the contribution process. For technical details about the codebase, see AGENTS.md.
# Fork and clone the repository
git clone https://github.com/your-username/hypercerts-lexicon.git
cd hypercerts-lexicon
# Install dependencies
npm install
# Verify setup
npm run checkThe easiest way to contribute is using an AI agent that respects the guidance in AGENTS.md. The agent will handle code generation, formatting, and changesets automatically.
If making changes manually, follow the workflow in AGENTS.md § Adding / modifying a lexicon.
Key points:
- Never edit
generated/ordist/directories directly - Run
npm run gen-apiafter modifying lexicon JSON files - Run
npm run formatbefore committing - Run
npm run checkto validate everything - Always create a changeset for public API changes
Create a changeset for any user-facing changes:
npm run changesetFollow the prompts to select version bump type and describe changes. See AGENTS.md § Versioning for details.
- Target the
mainbranch unless there is a specific need to use aprerelease/*branch. Consult the maintainers / community if unsure. - Ensure all checks pass:
npm run check - Include a changeset if required
- Write clear commit messages using conventional commit format
- Respond to review feedback promptly
npm run format # Format code
npm run check # Validate everything passes- Formatting: Run
npm run format(uses Prettier + EditorConfig) - Linting: Run
npm run lint - Type checking: Run
npm run typecheck - Lexicon style: Run
npm run style:check
See LEXICON_STYLE_GUIDE.md for lexicon best practices.
See AGENTS.md § Development Commands for the complete list of available npm scripts.
See AGENTS.md § Project Structure for directory layout and file organization.
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Documentation: README.md, AGENTS.md, SCHEMAS.md
Contributors only create changesets. Releases are handled by
maintainers via GitHub Actions on the main branch. See
docs/PUBLISHING.md for details.
Contributions are licensed under the MIT License.
Thank you for contributing! Your work helps make the Hypercerts protocol better for everyone.