docs: add GitHub CLI usage guidelines to AGENTS.md (#179)

* docs: add GitHub CLI usage guidelines to AGENTS.md

* docs: broaden cross-platform compatibility to all code and scripts
This commit is contained in:
Jinjing
2026-03-28 15:56:25 -07:00
committed by GitHub
parent 5e4e4ea1db
commit 9d85347772
+4
View File
@@ -11,3 +11,7 @@ Orca targets macOS, Linux, and Windows. Keep all platform-dependent behavior beh
- **Keyboard shortcuts**: Never hardcode `e.metaKey`. Use a platform check (`navigator.userAgent.includes('Mac')`) to pick `metaKey` on Mac and `ctrlKey` on Linux/Windows. Electron menu accelerators should use `CmdOrCtrl`.
- **Shortcut labels in UI**: Display `⌘` / `⇧` on Mac and `Ctrl+` / `Shift+` on other platforms.
- **File paths**: Use `path.join` or Electron/Node path utilities — never assume `/` or `\`.
## GitHub CLI Usage
Be mindful of the user's `gh` CLI API rate limit — batch requests where possible and avoid unnecessary calls. All code, commands, and scripts must be compatible with macOS, Linux, and Windows.