📦 deps(playbook): add markdown rules and prettier config
This commit is contained in:
parent
01caaf8062
commit
73f01c3ca4
|
|
@ -0,0 +1,31 @@
|
|||
# Markdown 代理规则集
|
||||
|
||||
本规则集定义 AI/自动化代理在处理 Markdown(`.md`)文件时必须遵守的核心约束。
|
||||
|
||||
## 代理工作原则(铁律)
|
||||
|
||||
1. 只调整代码块与行内代码;不改写正文内容
|
||||
2. 不改变标题层级、列表结构、段落顺序
|
||||
3. 不引入新工具/格式化链路,除非明确要求
|
||||
|
||||
## Markdown 代码格式约定(不可违反)
|
||||
|
||||
### 代码块
|
||||
|
||||
- 统一使用围栏代码块(```lang)
|
||||
- 语言标识尽量准确:`tsl`/`cpp`/`python`/`bash`/`json` 等
|
||||
- 仅做必要的排版修复;不改变代码语义
|
||||
|
||||
### 工具
|
||||
|
||||
- 优先使用 Prettier(仓库已固定配置/脚本)
|
||||
- 不引入新的 Markdown 格式化依赖
|
||||
|
||||
### 行内代码
|
||||
|
||||
- 用反引号包裹命令、路径、关键字或短代码
|
||||
|
||||
## 适用范围
|
||||
|
||||
- 仅适用于 `.md` 文件
|
||||
- 涉及代码内容时,遵循对应语言的 `.agents` 规则
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"proseWrap": "preserve",
|
||||
"embeddedLanguageFormatting": "off"
|
||||
}
|
||||
|
|
@ -44,5 +44,5 @@ Human-facing standards snapshot (vendored):
|
|||
请以 `.agents/` 下的规则为准:
|
||||
|
||||
- 入口:`.agents/index.md`
|
||||
- 语言规则:`.agents/cpp/index.md`、`.agents/tsl/index.md`
|
||||
- 语言规则:`.agents/cpp/index.md`、`.agents/tsl/index.md`、`.agents/markdown/index.md`
|
||||
<!-- playbook:agents:end -->
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ project_root = "."
|
|||
|
||||
[sync_rules]
|
||||
force = true
|
||||
no_backup = true
|
||||
|
||||
[sync_memory_bank]
|
||||
project_name = "tsl-devkit"
|
||||
|
|
@ -10,8 +11,9 @@ force = false
|
|||
|
||||
[sync_prompts]
|
||||
force = true
|
||||
no_backup = true
|
||||
|
||||
[sync_standards]
|
||||
langs = ["cpp", "tsl"]
|
||||
langs = ["cpp", "tsl", "markdown"]
|
||||
gitattr_mode = "append"
|
||||
no_backup = true
|
||||
|
|
|
|||
Loading…
Reference in New Issue