现有“新项目文档初始化”主要面向从模板创建的新项目。已有项目通常已经存在代码、规则、文档、工单、Wiki、提交历史和未完成工作,不能直接套用新项目初始化中的清理或替换步骤。
目标:提供一份面向 Claude、Codex 等 Agent 的存量项目增量接入指南,让 Agent 能先盘点现状、识别冲突、等待方案确认,再通过单元工单安全接入 DevHarness。
docs/
采用单独稳定主题页进行最小实现:
Existing-Project-Adoption-Guide
AGENTS.md
预计修改文件:
Home
wiki-docs.json
dev_scripts/check_harness.py
tests/test_harness_docs.py
python dev_scripts/check_harness.py --strict
python -m unittest discover -s tests -v
python dev_scripts/sync_wiki_docs.py --check
git diff --check
git status --short --branch
cad12048c8aa6f54ec6d2595a79c814233e18285
55d89b7aec659f55a61e7ceef881ef34a62d9379
902c90884fd8902d8346365bf588183fdb6b00a3
docs/08-existing-project-adoption.md
docs/task/12-已有项目接入DevHarness指南.md
0271a3e
docs: 新增已有项目接入指南 (#12)
eba8515
docs: archive task #12
105328e
docs: record task #12 acceptance
No dependencies set.
The note is not visible to the blocked user.
基本信息
依赖与并行
原始需求
要解决什么
现有“新项目文档初始化”主要面向从模板创建的新项目。已有项目通常已经存在代码、规则、文档、工单、Wiki、提交历史和未完成工作,不能直接套用新项目初始化中的清理或替换步骤。
目标:提供一份面向 Claude、Codex 等 Agent 的存量项目增量接入指南,让 Agent 能先盘点现状、识别冲突、等待方案确认,再通过单元工单安全接入 DevHarness。
做什么 / 不做什么
做
docs/镜像和 Harness 工具的增量接入顺序。docs/,纳入 Harness 核心映射和章节检查。不做
已确认方案
采用单独稳定主题页进行最小实现:
Existing-Project-Adoption-GuideWiki 页面。AGENTS.md、README、文档、Git 历史、任务状态和无关工作区改动,冲突内容由负责人确认后合并。预计修改文件:
Existing-Project-Adoption-GuideHomewiki-docs.jsondev_scripts/check_harness.pytests/test_harness_docs.pydocs/镜像需求变化记录
文档影响
交付文档影响
验收标准
验证方式
python dev_scripts/check_harness.py --strictpython -m unittest discover -s tests -vpython dev_scripts/sync_wiki_docs.py --checkgit diff --checkgit status --short --branch风险和回退
实施结果与证据
cad12048c8aa6f54ec6d2595a79c814233e1828555d89b7aec659f55a61e7ceef881ef34a62d9379902c90884fd8902d8346365bf588183fdb6b00a3docs/08-existing-project-adoption.mddocs/task/12-已有项目接入DevHarness指南.mdpython dev_scripts/check_harness.py --strict:通过python -m unittest discover -s tests -v:23/23 通过python dev_scripts/sync_wiki_docs.py --check:25/25 一致git diff --check:通过0271a3edocs: 新增已有项目接入指南 (#12)eba8515docs: archive task #12105328edocs: record task #12 acceptance。