Guided Writing Markdown Framework 引导写作 Markdown 框架
一条基线加多条产品线画像:让每条产品线拥有自己的 Markdown 写作规范,并在 Oxygen XML Author 28.1 中自动校验与提示。 把「写完之后被评审打回」提前成「写的时候编辑器就提醒」。 One baseline plus multiple product-line profiles: each product line gets its own Markdown writing standard, automatically validated and prompted in Oxygen XML Author 28.1. Turn "rejected at review" into "warned while writing."
功能 Features
八项能力覆盖从骨架、写作、校验到分发的完整链路,均以产品线画像为组织单位。 Eight capabilities covering the full chain from skeleton, writing, validation to distribution — all organized around product-line profiles.
- 产品线画像Product Line Profilesprofiles/
- silicon(芯片设计,默认)、dynamo(AI 推理框架)、networking(网络软件)、omniverse(3D 与 OpenUSD)、equipment-sop(设备产线,SOP 降级为可选)。新增产品线只需增加一个画像目录,不动全局规则。 silicon (chip design, default), dynamo (AI inference framework), networking (network software), omniverse (3D & OpenUSD), equipment-sop (equipment line, SOP downgraded to optional). Adding a new product line only requires a new profile directory — global rules stay untouched.
- 三层规范继承Three-Layer InheritanceL0 / L1 / L2
- L0 基线管结构、语气、格式、链接与内部信息;L1 画像只写差异与增量;L2 提供文档类型骨架。规范不重复、不打架。 L0 baseline governs structure, tone, format, links and internal information; L1 profiles write only differences and increments; L2 provides document-type skeletons. No duplication, no conflicts.
- 画像感知校验Profile-Aware ValidationSchematron
- 135 条 Markdown 转 DITA 规则加 22 条 HTML 规则,依据 Front Matter 的 profile、document-type、language 自动分派。一处挂载,多套规范。 135 Markdown-to-DITA rules plus 22 HTML rules, dispatched automatically based on the Front Matter profile, document-type and language. Mount once, run many standards.
- 中文写作规则层Chinese Writing Ruleszh-CN
- 全角标点、中英文空格、数字与单位、省略号与破折号、句段长度、「的」字密度、翻译腔、空话与营销词、港台异形词、半导体缩写大小写。 Full-width punctuation, CJK-Latin spacing, numbers and units, ellipsis and dashes, sentence length, 的-density, translationese, empty and marketing phrases, regional variants, semiconductor abbreviation casing.
- 文档类型模板Document Type Templatestemplates/
- concept、design、task、tutorial、reference、troubleshooting、errata、release-note、faq、glossary、installation、quickstart、sop,按画像分目录。 concept, design, task, tutorial, reference, troubleshooting, errata, release-note, faq, glossary, installation, quickstart, sop — organized by profile.
- AI 写作动作AI Writing ActionsAI Positron
- 创建草稿、生成下一块、术语制备、画像合规检查、QA 质量评价、中文规范润色、段落改写;提示词全部画像化。 Create draft, generate next block, terminology prep, profile compliance check, QA evaluation, Chinese polish, paragraph rewrite — all prompts are profile-aware.
- 两级术语库Two-Level Terminologyterminology/
- 跨画像共享术语加画像专用术语(半导体与 EDA、推理后端、网络协议、USD 术语、现场术语),统一推荐与弃用写法。 Cross-profile shared terminology plus profile-specific terminology (semiconductor & EDA, inference backend, network protocols, USD terms, field terms), unifying preferred and deprecated forms.
- 工具链Toolchaintools/
-
一致性校验脚本、画像工具包生成器、零依赖打包脚本。
node tools/check-framework.mjs .一条命令校验规范包本身。 Consistency checker, profile kit builder, zero-dependency packager.node tools/check-framework.mjs .validates the spec package itself in one command.
好处 Benefits
写之前有骨架,写之中有提示,写之后有校验。模板解决「不知道怎么写」,AI 动作解决「写得慢」,Schematron 解决「写得不对」。 A skeleton before writing, prompts while writing, validation after writing. Templates solve "don't know how to write," AI actions solve "writing slowly," Schematron solves "writing incorrectly."
- 规范可执行:元数据缺失、结构破坏、内部信息与凭据泄漏、TODO 标记一律拦截;指导项允许带理由偏离,并记录在 QA 报告里。 Executable standards: missing metadata, broken structure, internal information and credential leaks, TODO markers are all blocked; advisory items allow deviation with justification, recorded in the QA report.
- 不必自研标准:直接对齐 NVIDIA Dynamo、Networking、Omniverse 的公开规范,并明确写出平台差异,例如 Fern 站点禁止正文一级标题,而 Oxygen 与 MDITA 必须有。 No need to invent standards: directly aligned with NVIDIA Dynamo, Networking and Omniverse public specifications, with platform differences explicitly stated — e.g. Fern sites forbid top-level headings in body text while Oxygen and MDITA require them.
-
中英文共用一套规则:
language: zh-CN自动启用 GB/T 15834 等中文规范,en-US自动关闭中文检查。 One ruleset for Chinese and English:language: zh-CNautomatically enables GB/T 15834 and other Chinese rules;en-USautomatically disables Chinese checks. -
不打断既有流程:Schematron 与 AI 动作路径与上一版完全一致,覆盖安装即可升级,旧版快照保留在
_archive/v1.0.0/。 No workflow disruption: Schematron and AI action paths are identical to the previous version; overwrite-install to upgrade. Old snapshot retained in_archive/v1.0.0/. - 可交付、可分发、可审计:正反样例、QA 报告模板、校验脚本,以及每条产品线一个独立工具包。 Deliverable, distributable, auditable: positive and negative samples, QA report templates, validation scripts, plus one independent kit per product line.
价值 Value
面向芯片设计与半导体行业文档团队的六个真实痛点。 Six real pain points of documentation teams in chip design and the semiconductor industry.
| 文档团队面对的问题Challenge | 框架给出的答案Solution |
|---|---|
| SOP 骨架在芯片设计里没有对应场景SOP skeleton has no counterpart in chip design | 以设计流程任务、寄存器与参数参考、架构设计、勘误为主轴;SOP 降级为设备类可选画像,并提供章节映射表Pivots to design-flow tasks, register and parameter reference, architecture design and errata; SOP is downgraded to an optional equipment profile with a chapter mapping table |
| 多产品线文档风格各自为政Multi-product-line docs go their own way | 画像注册表统一治理,同一份规则按 profile 分派,新产品线只加画像不动全局Profile registry provides unified governance; one ruleset dispatches by profile; new product lines only add profiles without touching global rules |
| 评审意见重复出现且滞后Review comments repeat and lag | 质量左移,把评审清单变成编辑器里的实时告警,强制项清零后才提交Shift quality left: turn the review checklist into real-time warnings in the editor; submit only after mandatory items are zeroed |
| AI 辅助容易编造与跑偏AI assistance tends to fabricate and drift | 画像矩阵、术语库与事实保真约束写进提示词,输出只返回 Markdown,不掺解释Profile matrix, terminology and factual-fidelity constraints are baked into prompts; output returns Markdown only, with no explanations |
| 中文技术写作不统一Chinese technical writing is inconsistent | 标点、混排、量与单位、术语大小写、翻译腔全部规则化,可机械检查Punctuation, mixed typesetting, quantities and units, terminology casing, translationese — all rule-ified and machine-checkable |
| 规范发下去没人用Standards handed out but unused | 规范、模板、校验、AI 动作、术语库打包成一条产品线一个工具包,开箱即用Standards, templates, validation, AI actions and terminology are packaged as one kit per product line — ready out of the box |
上手三步 Quick Start
三步是真实的操作顺序,因此使用编号;其余章节不编号,避免无意义的数字装饰。 These three steps are a genuine sequence, so they are numbered; other sections are unnumbered to avoid meaningless numeric decoration.
-
挂载规则Mount Rules
在 Options 的 Preferences 中进入 Markdown,勾选 Validate converted DITA content,规则路径指向
rules/markdown-as-dita.sch;AI Positron 的自定义动作目录指向positron/。 In Options > Preferences > Markdown, check Validate converted DITA content, point the rules path torules/markdown-as-dita.sch; point AI Positron's custom actions directory topositron/. -
开始写作Start Writing
从
templates/<profile>/复制模板,填好 Front Matter 的 profile 与 document-type,再用 AI 动作起草与润色。 Copy a template fromtemplates/<profile>/, fill in the Front Matter profile and document-type, then draft and polish with AI actions. -
校验交付Validate & Deliver
用 Oxygen 校验清零强制项,再运行 QA 质量评价;规范包自身用
node tools/check-framework.mjs .自检,期望输出「全部通过(22 项)」。 Use Oxygen to zero out mandatory items, then run the QA evaluation; validate the spec package itself withnode tools/check-framework.mjs ., expecting "all passed (22 items)."
校验与打包 Validation & Packaging
三条命令覆盖规范包自检、产品线工具包生成与分发包打包,全部零依赖。 Three commands cover spec package self-check, profile kit generation and distribution packaging — all zero-dependency.
# 校验规范包本身:JSON、画像完整性、模板元数据、Schematron 约束
node tools/check-framework.mjs .
# 为每条产品线生成可独立分发的规范工具包
node tools/build-profile-kit.mjs .
# 重新打包分发包
node tools/build-package.mjs .
完整引导写作资源 Full Guided Writing Resources
若要获取产品线画像、规则清单、模板、术语库、正反样例与迁移指南的引导写作资源包,请点击下载。 To obtain the guided-authoring resource package — including product-line profiles, rule lists, templates, terminology, positive/negative samples and migration guides — click to download.
腾讯文档 guided_writing_markdown_framework