We welcome contributions to the NEAR AI Developer Cookbook! This document outlines the process for contributing to this project and helps to ensure a smooth collaboration experience.
- Fork the repository on GitHub.
- Clone your fork locally:
git clone https://github.com/your-username/near-ai-cookbook.git cd near-ai-cookbook
- Create a new branch for your feature or bug fix:
git checkout -b feature/your-feature-name
We encourage contributors to add new examples that showcase different use cases and integrations with NEAR AI. When adding a new example:
- Create a new directory under the
examples/
folder with a descriptive name. - Include a README.md file in your example directory explaining the purpose and setup of your example.
- Ensure your code is well-documented and follows best practices.
- Update the main README.md file to include your new example in the Examples section.
- Make your changes in your feature branch.
- Test your changes thoroughly.
- Commit your changes with a clear and descriptive commit message:
git commit -m "Add example: your example description"
- Push your changes to your fork on GitHub:
git push origin feature/your-feature-name
- Go to the original repository on GitHub.
- Click the "New pull request" button.
- Select your fork and the branch containing your changes.
- Provide a clear title and description for your pull request, explaining the purpose and impact of your changes.
- Submit the pull request for review.
- Follow PEP 8 guidelines for Python code.
- Use meaningful variable and function names.
- Include comments where necessary to explain complex logic.
- Ensure compatibility with Python 3.8+.
- Update relevant documentation when adding new features or making significant changes.
- Ensure your example includes clear instructions on how to set up and run it.
If you find a bug or have a suggestion for improvement:
- Check if the issue already exists in the GitHub issue tracker.
- If not, create a new issue with a clear title and description.
- Include steps to reproduce the issue if applicable.
- Be respectful and considerate in your interactions with other contributors.
- Follow the project's code of conduct (if available).
- Help create a positive and inclusive environment for all contributors.
Thank you for contributing to the NEAR AI Developer Cookbook! Your efforts help improve and expand the resources available to the NEAR AI community.