mirror of
https://github.com/NVIDIA/OpenShell.git
synced 2026-10-16 05:20:22 +08:00
1.6 KiB
1.6 KiB
Agent Instructions
See CONTRIBUTING.md for instructions on how to perform common operations (building, testing, linting, running components).
Plans
- Store plan documents in
architecture/plans. - When asked to write a plan, write it there without asking for the location.
Sandbox Infra Changes
- If you change sandbox infrastructure, ensure
mise run sandboxsucceeds.
Commits
- Always use Conventional Commits format for commit messages
- Format:
<type>(<scope>): <description>(scope is optional) - Common types:
feat,fix,docs,chore,refactor,test,ci,perf - Never mention Claude or any AI agent in commits (no author attribution, no Co-Authored-By, no references in commit messages)
Pre-commit
- Run
mise run pre-commitbefore committing. - Install the git hook when working locally:
mise generate git-pre-commit --write --task=pre-commit
Python
- Always use
uvfor Python commands (e.g.,uv pip install,uv run,uv venv)
Docker
- Always prefer
misecommands over direct docker builds (e.g.,mise run docker:buildinstead ofdocker build)
Cluster Infrastructure Changes
- If you change cluster bootstrap infrastructure (e.g.,
openshell-bootstrapcrate,Dockerfile.cluster,cluster-entrypoint.sh,cluster-healthcheck.sh, deploy logic inopenshell-cli), update thedebug-openshell-clusterskill in.agent/skills/debug-openshell-cluster/SKILL.mdto reflect those changes.
Documentation
- When making changes, update the relevant documentation in the
architecture/directory.