Language policy: Chinese for human-facing files (README, docs/, human-fillable templates), English for AI-facing files (CLAUDE.md, AGENTS.md, AI templates). Commits / PRs / branches / tags stay English. - Translate docs/01-06 to Chinese - Translate README.md, PR / handoff / project README templates to Chinese - Drop README.en.md (redundant once language policy is explicit) - Rewrite CLAUDE.md and CLAUDE.md.template under the new policy - Add AGENTS.md (root) and templates/AGENTS.md.template for Codex - Add docs/07-codex.md covering Codex usage and AGENTS.md / CLAUDE.md sync rules Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
3.9 KiB
3.9 KiB
AGENTS.md — team-guide
Context for AI coding agents (Codex CLI, Codex in IDEs, other AGENTS.md-aware tools) working in this repository.
Sister file:
CLAUDE.md(read by Claude Code). The two files cover the same ground — keep them in sync. Whichever tool runs reads its own file.
Project
This repo holds our team's working agreements (1–3 person team, AI-assisted "vibe coding" development). It is documentation, not code. There is no build, test, or lint step. Acceptance is "a human can read the change and would have written the same."
Editing rules
When editing files in this repo:
- One rule per bullet. If a rule needs a paragraph of justification,
split the rule out and put the justification on a
**Why:**line. - Lead with the rule, then
**Why:**, then**How to apply:**only when non-obvious. Skip them when the rule speaks for itself. - No emoji. No decorative headers. No "🚀 Getting started!" energy.
- Keep each doc under ~150 lines. Past that, split.
- Examples beat prose. A 3-line code block beats a paragraph of description.
Language policy
- Human-facing: Chinese.
README.md,docs/*.md, and the human-fillable templates (templates/README.md.template,templates/PR_DESCRIPTION.template.md,templates/HANDOFF_CHECKLIST.template.md) are in Chinese. - AI-facing: English.
CLAUDE.md,AGENTS.md,templates/CLAUDE.md.template,templates/AGENTS.md.template, anddocs/07-codex.md's code blocks / examples are in English. - Commit messages, PR titles, branch names, tag annotations: English. AI tools and search work better on English Git metadata.
If you're an agent and you're about to write Chinese into a file the human would never read, stop — you have the wrong file.
What goes where
| Topic | File |
|---|---|
| Human + AI work split | docs/01-vibe-coding.md |
| Claude Code config (CLAUDE.md, hooks, memory) | docs/02-claude-code.md |
| Branches, commits, PRs, tagging | docs/03-git-workflow.md |
| Skill catalog, planning cadence | docs/04-skills-and-planning.md |
| Naming, comments, code style | docs/05-code-style.md |
| Task packages, handoff checklists | docs/06-handoff.md |
| Codex usage and AGENTS.md conventions | docs/07-codex.md |
What NOT to do
- Don't add a doc for a rule we've used once. Wait until it's bitten twice — then write it.
- Don't write process for processes' sake. If nobody would read or follow it, don't write it.
- Don't quote external sources at length (license / copyright). Link instead.
- Don't translate
CLAUDE.md/AGENTS.mdinto Chinese. They're for AI tools. - Don't translate Chinese docs into English "for completeness." Pick one language per file and stick with it.
Commits
- Format:
<area>: <imperative summary under 60 chars>. Examples:git-workflow: clarify branch naming,docs: add Codex section. - One topic per commit. "and" in the summary means split it.
- Always include the
Co-Authored-Bytrailer when AI-assisted.
Versioning / releases
- Tags follow
YYYYMMDD(e.g.20260520). Multiple tags on the same day get a-Nsuffix (20260520-2). - Annotated tags only. Tag messages summarize what changed since the previous tag.
- Tags are immutable once pushed. If a tag is wrong, cut a new one.
- Tag only on
main.
Working directory expectations
- The repo is small (10–20 files). You can
Readeverything before acting; you don't need to spawn a sub-agent for exploration. - Do not introduce
package.json,Makefile, CI configs, or other toolchain files unless explicitly asked. This is a docs repo.