- Dev mode:
uv run --env-file .env second_brain
- Always write tests first when implementing features or fixing bugs (TDD).
- Before committing, ensure docs and
README.mdare updated. - When creating new pages in
docs/, also add them to the nav: section inmkdocs.yml.
- pytest-env auto-loads
.env.test— don't setLOG_LEVELmanually in tests. - Google-style docstrings (used by
mkdocstringsfor API docs). - Docs server logs:
mkdocs.log(written byscripts/serve_docs.py). Check when debugging docs issues. - Never start long-running servers (e.g.,
serve_docs.py,mkdocs serve). Useuv run mkdocs buildto verify docs compile.