Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

update contribution

Bingxi Zhao (Frank)4d8f4ae5b587
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 000000000..45f47764c
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,55 @@
+# Contributing to DeepTutor
+
+Thank you for your interest in contributing to DeepTutor! πŸŽ‰
+
+You can join our discord community for further discussion: https://discord.gg/aka9p9EW
+
+## πŸ”„ Pull Request Process
+
+1. **Create a branch**: `git checkout -b feature/your-feature`
+2. **Make changes**: Follow existing code style and conventions
+3. **Test locally**: Ensure your changes work correctly
+4. **Commit**: Pre-commit hooks will auto-format your code
+5. **Push & PR**: Open a pull request with a clear description
+
+## πŸ› οΈ Code Quality
+
+We use automated tools to maintain code quality:
+
+- **Ruff** β€” Python linting & formatting (`pyproject.toml`)
+- **Prettier** β€” Frontend formatting (`web/.prettierrc.json`)
+- **detect-secrets** β€” Security scanning
+
+Pre-commit hooks run automatically on `git commit`. To run manually:
+
+```bash
+pre-commit run --all-files
+```
+
+## βš™οΈ Configuration Guidelines
+
+- **LLM parameters** (`temperature`, `max_tokens`): Edit `config/agents.yaml`
+- **System settings** (paths, logging, tools): Edit `config/main.yaml`
+- **API keys**: Use `.env` file (never commit secrets)
+
+See [config/README.md](config/README.md) for details.
+
+## πŸ“‹ Commit Message Format
+
+```
+<type>: <short description>
+
+[optional body]
+```
+
+**Types**: `feat`, `fix`, `docs`, `style`, `refactor`, `test`, `chore`
+
+**Examples**:
+- `feat: add PDF export for research reports`
+- `fix: resolve WebSocket connection timeout`
+- `docs: update installation instructions`
+
+---
+
+Let's build a tutoring system for the whole community TOGETHER! πŸš€
+