This directory is the repository-local knowledge base for coding agents. It keeps stable, reusable guidance in the repo while leaving volatile task specs and day-to-day requirement documents in external systems.
Companion files use the -zh.md suffix (for example README-zh.md) and align
with selected English originals; English files remain the default source of
truth for open-source publishing.
kwdb/
├── AGENTS.md
├── .agents/
│ └── skills/
│ └── README.md
└── docs/
└── agents/
├── README.md
├── architecture-index.md
├── ci-release-guide.md
├── components/
│ ├── README.md
│ └── common/
│ └── README.md
├── errors.md
├── logging.md
├── pr-guide.md
├── resource-index.md
└── testing-flow.md
These files summarize or translate selected English originals where a Chinese edition is helpful alongside the default English text.
Authority: treat docs/agents/*.md files whose names do not end with
-zh.md as the OSS default source of truth.
| English original | Chinese edition |
|---|---|
README.md |
README-zh.md |
resource-index.md |
resource-index-zh.md |
architecture-index.md |
architecture-index-zh.md |
testing-flow.md |
testing-flow-zh.md |
pr-guide.md |
pr-guide-zh.md |
logging.md |
logging-zh.md |
errors.md |
errors-zh.md |
ci-release-guide.md |
ci-release-guide-zh.md |
- Repository-wide rules that should apply on nearly every task.
- Keep it short, stable, and policy-oriented.
- Do not store volatile requirement details or per-task plans there.
- Declarative knowledge for agents.
- Good fit: architecture, invariants, review boundaries, testing surfaces, logging/error compatibility rules, CI/release expectations, component maps.
- Bad fit: per-task checklists better expressed as skills.
- Procedural knowledge for repeatable workflows.
- Good fit: task intake, CI triage, test selection, perf investigation, PR preparation, release readiness.
- Keep skills task-oriented and bounded.
- Detailed bug, feature, and performance specs should stay outside this repo.
- The authoritative task artifact should live in the team's issue tracker, wiki, or another approved system, then be linked from issues, PRs, or change summaries.
architecture-index.md: top-level module map and task routing hintstesting-flow.md: verification levels and common entrypointslogging.md: shared logging constraintserrors.md: shared error and compatibility constraintspr-guide.md: PR summary and review expectationsresource-index.md: quick map to repo-local resourcesci-release-guide.md: verification surfaces anchored inMakefile/scripts plus merge/release checks
components/README.md: where component-specific notes should livecomponents/common/README.md: shared-surface notes for common runtime behavior