Create a consistent project context structure (team navigation + project folder) and link it to a code directory. Default target root is ~/clawDir/team, but allow the user to specify another root path.
skill.md — global overview, module navigation, environment notes.modules/ + agents/ — task-scoped module docs and agent role docs. Load the module overview first, then specific submodules; load the relevant agent README when working on that role’s tasks.references/ — entrypoints, API indices, migrations, evidence-level docs.project_name (folder name)code_dir (absolute path to the code)target_root (optional). If not provided, use ~/clawDir/team.README, docs/, tech.md, architecture.md, CHANGELOG if present.```bash
python scripts/init_context_project.py \
--project
--code-dir
--target-root
```
skill.md (L1) with project summary, architecture, entrypoints, build/run, module navigation.modules//README.md (overview) and modules//.md (detail).references/entrypoints.md with code-level entrypoints and indexes./projects// .decisions.md (project-level) or decisions.jsonl (agent-level).modules/ is generated based on the target codebase (not fixed).frontend, backend, qa, reviewer (only if inferred).modules//README.md and a modules//.md for detailed module notes.mobile, data, ops, infra), create that module.modules//README.md (overview)modules//.md (details: Scope, Key Responsibilities, Important Notes, Interfaces & Dependencies)A.md, B.md, C.md). In that case, .md becomes an index/summary that describes each sub-file and when to load it.agents// .reviewer.README.md with Role, Principles, Responsibilities, Deliverables, Working Style, Notestools.md (Markdown)memory.md (Markdown)decisions.jsonl (JSONL, one decision per line)fails.jsonl (JSONL, one failure per line)Keep SKILL.md lean. For detailed extraction guidance (entrypoints, flows, data, tests, i18n), load:
references/extraction-rules.md/readme.md (if missing)/projects/projects.md (index with new project entry)/projects//readme.md /projects//goals.md /projects//skill.md /projects//project_status.md /projects//decisions.md /projects//agents/agents.md /projects//modules/README.md /projects//modules//README.md (modules inferred from code)/projects//modules//.md /projects//references/entrypoints.md scripts/init_context_project.py — scaffold generator (preferred).共 1 个版本