This file defines agent behavior for this repository.
- Upstream contract:
docs/CHARTER.md(NaNLABS Lab Charter v1). - Follow this file for agent-specific behavior within this repo.
- Follow
.github/skills/lab-module-sync/SKILL.mdfor module sync and validation rules. - If instructions conflict, prefer this file for agent behavior and the SKILL file for content rules.
nanlabs/nan-ai-engineering-labsnanlabs/nan-data-engineering-labsnanlabs/nan-ai-native-engineering-labs
- Canonical topic structure:
README.mdexamples/example_basic.pyexercise/exercise_01.pytests/test_basic.pyreferences/links.mdmy_solution/.gitkeep
- Language policy:
- All repository documentation and code comments must be English.
- Exercise policy:
exercise/exercise_01.pymust be English-only and must not contain TODO placeholders.
- README policy:
- Topic README schema is validated with a minimum of 17 markdown headings.
Use the project virtual environment:
# Activate the project venv and run validators
source .venv/bin/activate
python scripts/validate_all_modules.py
python scripts/run_topic_tests.pyOr with uv run (does not require manual activation):
uv run scripts/validate_all_modules.py
uv run scripts/run_topic_tests.py- Do not run destructive git commands (
reset --hard,checkout --) unless explicitly requested. - Do not revert unrelated user changes.
- Keep changes minimal and scoped to the requested task.