The following rules apply to coding agent collaboration in this repository. These complement the general CONTRIBUTING.md workflow.
- Move tasks forward under secure and traceable conditions.
- Adhere to the existing repository structure and engineering conventions.
- Follow the Git, Issue, and PR workflow defined in CONTRIBUTING.md.
- Use
ghCLI for all issue/PR operations (reading, writing, and comments). Do not edit through the web UI. - Create a new tracking issue for any development task that does not already have one.
- Link the issue explicitly in PR descriptions (e.g.,
Closes #xx). - Keep status updates synchronized to the relevant issue/PR to avoid duplicate manual work.
- Language: Use Simplified Chinese for issues, PRs, and comments. Technical terms may remain in English.
- PR Body: For multi-line bodies, write to a temporary file first and pass it via
gh pr create --body-file. - References: Use
#123for same-repo references; use full URLs for cross-repo links.
- Use the primary validation entrypoint for all changes:
./scripts/doctor.sh
- If
pre-commit(viadoctor.sh) auto-fixes files, review the changes before committing. - For documentation-only changes, you may skip tests but must self-check all commands and paths.
- If environment limits prevent full validation, explicitly report what was skipped and why.
- Secrets: Never commit keys, tokens, or
.envcontent. - Logs: Ensure debug output does not leak access tokens.
- Documentation: Synchronize documentation updates for all deployment or auth-related changes.