Collaboration¶
This page defines how contributors should collaborate in a shared repository, whether the other contributor is a human teammate or an automation tool.
Before You Edit¶
Decide whether the task is one concern or several. Split branches or PRs when the work mixes behavior changes, refactors, and contributor-workflow updates.
Identify the shared contracts you might change before editing. Schema, env vars, route shapes, tool names, persisted client keys, and contributor commands all need explicit follow-through.
Decide which validation commands and documentation updates will be required before you start writing code.
Scope Discipline¶
Keep each branch or PR focused on one engineering concern.
Separate refactors from behavior changes unless the refactor is required to make the behavior change safe.
Keep migrations, environment-variable changes, and API contract changes explicit rather than hiding them inside broad cleanup diffs.
Keep generated artifacts that are required by the source change, such as migrations or
.poupdates, in the same change so reviewers can validate the full contract shift.
Reviewability¶
Use descriptive branch names and Conventional Commits.
Prefer reviewable patches over large mixed diffs.
Include the exact verification commands you ran and the result you observed.
For UI or workflow changes, include screenshots, short recordings, or precise reproduction notes when practical.
Review And Handoff Checklist¶
Before asking for review or handing work to another contributor, include:
what changed and the user-facing or maintainer-facing impact
which shared contracts, migrations, or risky files deserve extra review
the exact validation commands you ran and the result you observed
any known follow-ups, rollout steps, or unresolved risks
Use a compact handoff format when possible:
Summary:
Contracts:
Validation:
Follow-ups:
Example Handoff¶
Summary: Added repository and agent contribution flow diagrams to the development docs.
Contracts: Contributor guidance changed in AGENTS.md and docs/development/*.md; translation catalogs refreshed.
Validation: npm run lint; npm test; NEXT_TELEMETRY_DISABLED=1 npm run build; sphinx-build en/zh with -W --keep-going.
Follow-ups: Translate newly added Chinese msgstr entries if localized docs need complete coverage.
Human And Automation Collaboration¶
Point automation tools at
AGENTS.mdbefore asking them to edit the repository.Give automation bounded tasks with clear file or subsystem scope.
Review generated diffs with the same skepticism you would apply to a human contribution.
Re-run validation after automation work instead of trusting success claims from the tool.
If an automation task changes contributor workflow, docs, or architecture boundaries, make sure the human reviewer sees those changes first.
Tell automation what is out of bounds, which contracts are sensitive, and which verification commands are required before it starts editing.
Treat automation summaries as hints, not truth. The reviewer is still responsible for the final contract, risk, and verification checks.
Documentation And Translation Workflow¶
English Markdown source files are the documentation source of truth.
When English docs change, refresh
.pofiles so translation drift is visible immediately.Keep repository-level contributor guidance aligned across
AGENTS.md,CONTRIBUTING.md, anddocs/development/.
When To Stop And Coordinate¶
Pause and coordinate before proceeding if:
another contributor’s changes directly conflict with your task
you need to rewrite a shared contract used by multiple subsystems
you are unsure whether a local-only directory is actually being treated as source by someone else’s workflow
a migration or execution-path change could break existing environments without a clear rollout path