docs: document worktree branch convention in AGENTS.md

This commit is contained in:
2026-07-14 17:42:56 +08:00
parent 9f13c0a23a
commit ceaeafd96c
+1
View File
@@ -95,6 +95,7 @@ npm run check # lint, type-check, and build
## Git Version Control ## Git Version Control
- When using a worktree, create a new branch and place its worktree in `.worktree/`, naming safely (for example, `git worktree add -b feat/partly-upload .worktree/feat-partly-upload`).
- DON'T create a commit unless the user explicitly asks for one. - DON'T create a commit unless the user explicitly asks for one.
- Before any commit, verify the work with the required project checks. For code changes, run the checks for every affected project; for docs-only changes, run the most relevant non-mutating checks if available. - Before any commit, verify the work with the required project checks. For code changes, run the checks for every affected project; for docs-only changes, run the most relevant non-mutating checks if available.
- Create a commit only when all required checks pass and the current implementation area has no unresolved issues. - Create a commit only when all required checks pass and the current implementation area has no unresolved issues.