Analyze an open source repository and produce structured project analysis documents and an architecture block diagram. Use when Codex needs to inspect source code, README files, docs directories, architecture notes, configuration files, or build scripts in order to explain the project's intent and business logic, technical architecture, source tree organization, and system component relationships, and then create or refresh `doc/project-intent-and-business.md`, `doc/technical-architecture.md`, `doc/source-code-structure.md`, and `doc/architecture-diagram.md`.
Analyze a repository from the outside in, then write stable analysis documents and an architecture block diagram under doc/.
Prefer evidence from the repository itself over guesses, and mark inferred conclusions explicitly.
README*, docs/, doc/, package/build files, top-level configs, entrypoints, and deployment files.doc/ if it does not exist.doc/project-intent-and-business.mddoc/technical-architecture.mddoc/source-code-structure.mddoc/architecture-diagram.mddoc/architecture-diagram.md unless the user explicitly asks for another diagram format.事实, 推断, and 待确认 when ambiguity matters.src/server, packages/core, or cmd/api when discussing structure.Read the matching templates in references/ before drafting:
doc/.Use references/output-contract.md for the overall writing contract and file list.
Use the four per-document reference files as content templates and coverage checklists.