Files
praxis/AGENTS.md
T
阿白叔andClaude Opus 4.7 dfa84743f9 docs: add product project spec, distinguish date vs semver tags
Distill task_assistant's COLLABORATION_AND_RELEASE_WORKFLOW into a
team-wide product project spec and clarify when each tag style applies.

- Add docs/08-product-spec.md: semver triplet (internal/display/tag),
  manifest schema, dist-channel separation, user-confirmed update
  flow, feedback/log handling, sensitive-info scan, release flow,
  minimum delivery checklist
- docs/03-git-workflow.md: split tagging into spec (YYYYMMDD) vs
  product (vX.Y.Z) sections, link to 08
- README.md, CLAUDE.md, AGENTS.md: update versioning section and doc
  index to reference 08

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-20 14:45:28 +08:00

4.4 KiB
Raw Blame History

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, and docs/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
Product project spec (semver, manifest, build) docs/08-product-spec.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.md into 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-By trailer when AI-assisted.

Versioning / releases

Two tag styles, by project type:

  • Spec repos (this one, other agreement docs) — date tags: YYYYMMDD, with -N suffix for same-day reissues (20260520-2). Tag from main.
  • Product repos (task_assistant, authoring-tool — anything with versioned artifacts shipped to users) — semver: v<x.y.z>. Tag from dev. Internal version (0.2.4), display version (V0.2.4), and tag (v0.2.4) must stay in sync. See docs/08-product-spec.md for the full ruleset (manifest, release-field sync list, sensitive-info scan, minimum delivery checklist).

Universal rules:

  • Annotated tags only. Tag messages summarize what changed.
  • Tags are immutable once pushed. If a tag is wrong, cut a new one.
  • This repo is a spec repo, so tagging here means a date tag.

Working directory expectations

  • The repo is small (10–20 files). You can Read everything 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.