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>
70 lines
1.5 KiB
Plaintext
70 lines
1.5 KiB
Plaintext
# AGENTS.md — <project name>
|
|
|
|
<!--
|
|
Template. Copy into a new repo and fill the bracketed sections.
|
|
Sister file: CLAUDE.md (Claude Code reads that one). Keep them in sync.
|
|
Delete sections that don't apply. Keep total length under ~100 lines.
|
|
-->
|
|
|
|
## Project
|
|
|
|
<One or two sentences. What does it do, who is it for.>
|
|
|
|
## Run it
|
|
|
|
```bash
|
|
# install
|
|
<command>
|
|
|
|
# run
|
|
<command>
|
|
|
|
# test
|
|
<command>
|
|
|
|
# lint / typecheck
|
|
<command>
|
|
```
|
|
|
|
## Architecture
|
|
|
|
<One paragraph. Where are the entry points, how does data flow, what
|
|
are the major modules. Skip diagrams unless they save words.>
|
|
|
|
Key files:
|
|
|
|
- `<path>` — <one-line role>
|
|
- `<path>` — <one-line role>
|
|
|
|
## Conventions specific to this repo
|
|
|
|
<Anything that's not obvious from reading the code. Naming patterns,
|
|
where to add new features, what's auto-generated, etc.>
|
|
|
|
## Language policy
|
|
|
|
<If this project follows the team's bilingual policy, copy this:>
|
|
|
|
- Human-facing docs (README, `docs/*.md`, human-fillable templates) are
|
|
in Chinese.
|
|
- AI-facing files (`CLAUDE.md`, `AGENTS.md`, AI-only templates) are in
|
|
English.
|
|
- Commit messages, PR titles, branch names, tag annotations: English.
|
|
|
|
## Don'ts
|
|
|
|
<Things Codex / Claude / a new contributor has gotten wrong before.
|
|
One line each. Add to this list as you discover them.>
|
|
|
|
- Don't <…>
|
|
- Don't <…>
|
|
|
|
## External resources
|
|
|
|
<Links to dashboards, related repos, docs, ticket trackers.>
|
|
|
|
## Sync
|
|
|
|
When you edit this file, also update `CLAUDE.md` (and vice versa). The
|
|
two files describe the same project to different tools.
|