The shared agent instructions for this repository live in GEMINI.md. Claude Code imports them here:
@GEMINI.md
These overrides take precedence over GEMINI.md when this file is in effect.
- Use the following co-author signature instead of the Gemini one, separated by a blank line from the main message:
Co-authored-by: Claude <noreply@anthropic.com>
For long-form notes built from external discussions (e.g., a Gemini conversation transcript):
- Structure: User provides a source (URL or pasted text) plus a target topic / filename. Fetch the source, propose a chapter outline in chat, iterate until the user approves.
- Draft: Write
notes/<topic>.cn.mdfirst (Chinese is the source perGEMINI.md§2), thennotes/<topic>.mdas a 1:1 English mirror. Use a feature branch namedclaude/notes-<topic>, commit per section. Open a PR viamcp__github__create_pull_request. - Review: After opening the PR, call
subscribe_pr_activityfor it.- Clear, scoped edit requests (wording, formatting, GitHub suggestion blocks): apply directly with a new commit and reply on the thread.
- Ambiguous comments, structural changes, or scope changes: ask in this chat session before editing.
- Net-new technical sub-discussions happen in this chat session, not in PR threads.
- Publish: GitHub does not allow self-approval, so do not wait for a formal approval state. Two paths trigger publish:
- User merges the PR directly in GitHub: just call
unsubscribe_pr_activity. No further action. - User leaves a
lgtm/approve/mergecomment on the PR: fast-forward mergemainto the PR head, push, then callunsubscribe_pr_activity. CI runsmkdocs gh-deployautomatically.
- User merges the PR directly in GitHub: just call
Mobile review preference: when feasible, prefer GitHub app's line comments and suggestion blocks on the PR over describing changes in chat — they map directly onto edits.