- Discuss before coding when there are design trade-offs: lay out options with a recommendation. For UI changes, get sign-off on a prototype or screenshot first.
- Use Chinese for conversation and commit messages; use English for code, comments, and default UI copy (keep locale files in sync).
- Prefer TDD: agree on test seams, write failing tests first, then make them pass. Report honestly what was verified for real versus mocked or run only after implementation.
- Commit finished work in logical batches without asking: Conventional Commits in Chinese, the reason in the body. The maintainer reviews commit by commit. Ask before every push.
- Keep a git-ignored
HANDOFF.mdat the repo root: current state, what was verified for real and what only with mocks, gotchas, open items. Read it first in a new session; update it when the state changes. - Keep user-facing docs (README and the like) concise, restrained, and natural—avoid AI boilerplate and saying the same thing twice. The Chinese README is primary; sync the English one after.
- Ask before editing prompt text in
lib/llm/. Design prompts for product scenarios and generalization, not to game a fixed test set. Verify changes against real cases (docs/PROMPT-EVAL.md): hard contracts (renderer/tool formats, explicit user language/format requests) must not regress; style and experience trade-offs are judged holistically by the maintainer from the comparison report.
Ask the user before every push.
- Set
versioninpackage.json(0.x: new features bump the minor version, fixes the patch version). Commit aschore(release): 版本号设为 X.Y.Z. git push origin masterand wait for CI to pass:gh run watch <id> --exit-status.- Only then tag and push the tag:
git tag vX.Y.Z && git push origin vX.Y.Z. - Watch the Release workflow. It checks that the tag matches
package.json, runspnpm zip, and creates the GitHub Release withbilidude-X.Y.Z-chrome.zip. The notes list everyfeat/fix/perfcommit since the previous tag (.github/release-notes.sh), so those subjects are what users read. Confirm withgh release view vX.Y.Z.
Tag last: the Release workflow skips typecheck, and a published Release is harder to take back than a red CI run.