🔧 chore(sync_standards): create AGENTS.md on sync

This commit is contained in:
csh
2025-12-22 13:44:48 +08:00
parent 283d311d4f
commit 3fe8bd7585
4 changed files with 57 additions and 0 deletions
+21
View File
@@ -100,6 +100,8 @@ PlaybookTSL`.tsl`/`.tsf`+ C++ + Python 工程规范与代理规则合
sh docs/standards/playbook/scripts/sync_standards.sh tsl cpp
```
> 说明:若项目根目录没有 `AGENTS.md``sync_standards.*` 会自动生成最小版;已存在则不会覆盖。
3. 验收(任意满足其一即可):
- 目录存在:`.agents/tsl/`
@@ -112,6 +114,25 @@ PlaybookTSL`.tsl`/`.tsf`+ C++ + Python 工程规范与代理规则合
- `docs/standards/playbook/`(标准快照)
- `.agents/tsl/`(落地规则集)
- `.gitattributes`managed block 更新)
- `AGENTS.md`(若本次自动生成)
#### 新项目 / 旧项目(命令示例)
新项目(无 `.agents/` 与 `AGENTS.md`):
```bash
git subtree add --prefix docs/standards/playbook https://git.mytsl.cn/csh/playbook.git main --squash
sh docs/standards/playbook/scripts/sync_standards.sh tsl
```
旧项目(已有 `AGENTS.md`):
```bash
git subtree pull --prefix docs/standards/playbook https://git.mytsl.cn/csh/playbook.git main --squash
sh docs/standards/playbook/scripts/sync_standards.sh tsl
```
旧项目的 `AGENTS.md` 不会被覆盖;如需指向 `.agents/`,请手动对齐内容。
#### 可选:项目包装脚本(多 playbook 串联)