|
Download SkillOpt-official/docs/contributing.md from SitongGong/gst-code-collection: direct link, hf CLI and curl.
- Browser
- Download file 2.58 kB
-
https://huggingface.co/datasets/SitongGong/gst-code-collection/resolve/main/SkillOpt-official/docs/contributing.md
- Command line
-
hf download hf://datasets/SitongGong/gst-code-collection/SkillOpt-official/docs/contributing.md
-
curl -L -o contributing.md https://huggingface.co/datasets/SitongGong/gst-code-collection/resolve/main/SkillOpt-official/docs/contributing.md
2.58 kB
Contributing to SkillOpt
Thank you for your interest in contributing to SkillOpt! This guide covers how to get started.
Development Setup
git clone https://github.com/microsoft/SkillOpt.git
cd SkillOpt
pip install -e ".[dev]"
Ways to Contribute
π Bug Reports
Open an issue with:
- Steps to reproduce
- Expected vs actual behavior
- Config file used (sanitize API keys)
- Python version and OS
π§ New Benchmark
See Add a New Benchmark for the implementation guide.
Checklist:
- Data loader in
skillopt/envs/<benchmark>/dataloader.py - Scored rollout implementation in
skillopt/envs/<benchmark>/rollout.py - Per-item
predictions/<id>/conversation.jsonartifacts for shared reflection - Environment adapter in
skillopt/envs/<benchmark>/adapter.py - Config file in
configs/<benchmark>/default.yaml - Lazy registration in
scripts/train.pyandscripts/eval_only.py - Focused tests and an optional seed skill referenced by
env.skill_init - Documentation update
π€ New Model Backend
See Add a New Model Backend for the implementation guide.
Checklist:
- Function-based backend module in
skillopt/model/<name>_backend.py - Alias and default model in
skillopt/model/common.py - Optimizer/target whitelist entries in
skillopt/model/backend_config.py - Dispatch, token tracking, and setter forwarding in
skillopt/model/__init__.py - YAML/CLI wiring when the backend exposes structured config fields
- Focused routing, configuration, tool-call, and token-accounting tests
-
.env.exampleand backend/configuration reference updates
π Documentation
Documentation is built with MkDocs Material:
pip install -e ".[docs]"
mkdocs serve # Preview at http://localhost:8000
Code Style
- Follow existing patterns in the codebase
- Use type hints for function signatures
- Keep docstrings concise
Pull Request Process
- Fork the repository
- Create a feature branch:
git switch -c feature/my-benchmark - Make your changes
- Run focused tests, the full test suite, and
mkdocs build --strictwhen docs change - Submit a PR with a clear description
Code Review Guidelines
See the code review checklist for common considerations that may help reviewers and contributors. Apply the items relevant to the scope and risk of each change.
License
By contributing, you agree that your contributions will be licensed under the MIT License.