-
Notifications
You must be signed in to change notification settings - Fork 4
Wiki Style Guide
Language: English · 简体中文
This guide defines how the LWC public Wiki is written, localized, reviewed, and maintained. It follows GitHub Wiki conventions and adapts established open-source documentation practices: direct language, task-focused pages, stable navigation, verifiable commands, and synchronized localization.
- English is the canonical technical text and uses U.S. English.
- Every core content page has a complete Simplified Chinese mirror named
<Page>-zh-CN.md. - A Chinese page is a localized technical document, not a sentence-by-sentence machine translation.
- Both versions must communicate the same requirements, boundaries, examples, warnings, and completion criteria.
- Update both pages in the same commit whenever shared meaning changes.
Each page begins with a language switch:
> **Language:** English · [简体中文](Page-zh-CN)> **语言:** [English](Page) · 简体中文- Use stable English kebab-style page names in Title Case, such as
Document-Knowledge-Graph.md. - Add
-zh-CNbefore.mdfor the Chinese mirror. - Keep
Home.md,Home-zh-CN.md,_Sidebar.md, and_Footer.mdas special GitHub Wiki files. - The repository is physically flat.
_Sidebar.mdexpresses the conceptual hierarchy. - Do not publish dead navigation links. Add a page to the sidebar only after both language versions pass review.
- Prefer standard relative Markdown links without the
.mdsuffix.
Use for architecture, terminology, or a capability model:
- one-sentence definition;
- problem or motivation;
- conceptual model;
- boundaries and non-goals;
- relationship to other capabilities;
- next relevant page.
Use for installation, configuration, recovery, or a workflow:
- when to use the task;
- prerequisites and side effects;
- numbered steps;
- verification evidence;
- failure and recovery guidance;
- next relevant page.
Use for commands, fields, limits, or error contracts:
- exact scope and version boundary;
- compact tables grouped by purpose;
- authoritative commands or schema;
- edge cases and limits;
- links to task-oriented explanations.
Do not turn every page into an exhaustive reference. A reader should be able to understand the purpose before encountering command details.
- Use present tense, active voice, and direct language.
- Address the reader as “you” when giving a task instruction.
- Keep one main idea per paragraph.
- Prefer concrete verbs: “Run”, “Inspect”, “Require”, “Preserve”, “Verify”.
- Avoid idioms, marketing filler, unexplained jargon, and claims about future behavior.
- Use sentence-style capitalization for headings.
- Format commands, filenames, paths, fields, and literal values as code.
- Introduce an LWC-specific term before using its abbreviation or implementation detail.
- Write natural Simplified Chinese for technical readers; restructure the sentence when English word order would sound mechanical.
- Prefer concise verbs such as“运行”“检查”“保留”“验证”, and omit unnecessary subjects when Chinese context is clear.
- Preserve product and protocol names such as LWC, Agent, MCP, CodeGraph, Source, Page, Work, changeset, and checkpoint when translation would reduce precision.
- Explain an English term in Chinese on first use when necessary; do not repeatedly add parentheses afterward.
- Use Chinese punctuation in prose and ASCII punctuation inside code.
- Avoid literal translations such as“做一个决定”“执行一个检查”when“决定”“检查”is sufficient.
- Do not add stronger claims, extra warnings, or product promises that are absent from the English canonical page.
- Verify commands against the current CLI with
lwc <command> --helpor a real isolated run. - Do not include a shell prompt character in command blocks.
- Separate command output from the command that produced it.
- Use angle brackets for placeholders and explain unusual placeholders.
- Never include real tokens, private paths, cookies, credentials, or maintainer-specific environment assumptions.
- Invoke the globally installed
lwccommand directly. Do not teach routineLWC_PROJECT_ROOTexports or private binary variables. - State side effects before commands that install software, change configuration, initialize graphs, restore checkpoints, or write outside the current project.
Use evidence in this order:
- current checked-out implementation and tests;
- current
lwc --helpand isolated command behavior; - repository policy and maintained README files;
- current official documentation for integrated third-party tools;
- historical design notes, clearly labelled when behavior may have changed.
Do not copy a stale Wiki claim into another page. When documentation and current behavior disagree, correct the documentation from current evidence.
- Give each concept one primary page and link to it from other pages.
- Keep the Home page short and navigational.
- Put procedures in task pages and exact field lists in reference pages.
- Link to the repository's
CHANGELOG, releases, security policy, and contribution files instead of duplicating them in the Wiki. - Use descriptive link text; avoid bare “here” links.
- Verify every internal link before publication.
Review each pair as one unit:
- filenames and language switches point to each other;
- heading hierarchy and section coverage match semantically;
- no requirement, warning, limit, example, or verification step is missing;
- the Chinese text reads naturally without following English syntax mechanically;
- terminology is consistent with the approved glossary;
- commands, identifiers, JSON fields, and numeric limits are unchanged where required;
- links target the matching language when a mirror exists;
- neither language introduces unsupported facts;
- commands have been checked against current help or an isolated real run;
- Markdown and internal links pass automated validation.
| English | Simplified Chinese guidance |
|---|---|
| proactive memory | 主动记忆 |
| persistent memory | 持久记忆;强调跨会话时可写“长期记忆” |
| source-grounded | 有来源依据;在 provenance 字段语境保留 source-grounded
|
| Source | Source(来源);命令实体名保留英文 |
| Page | Page(页面);命令实体名保留英文 |
| provenance | 来源证明;字段名保留 provenance
|
| document knowledge graph | 文档知识图;面向产品概念时可补充“记忆图网” |
| CodeGraph | CodeGraph 或代码图网 |
| Word Graph | 词图网 |
| strong tag | 强标签 |
| Work | Work 任务 |
| changeset | changeset;解释为原子变更草稿 |
| checkpoint | checkpoint;解释为完整恢复点 |
| read-only Viewer | 只读 Viewer 或只读可视化界面 |
A page pair is ready only when:
- both files are complete;
- technical claims are supported by current evidence;
- examples use valid commands and safe placeholders;
- bilingual review passes every applicable checklist item;
- internal links resolve;
- the sidebar contains the pair only after these checks pass.
Return to the Home page.
LWC Wiki
- Home · 首页
- Project overview · 项目简介
- Basic concepts · 基本概念
- Use cases · 应用场景
- Installation and upgrades · 安装与升级
- Quick start · 快速开始
- Persistent memory · 持久记忆体系
- Agent workflow and memory policy · Agent 工作流与主动记忆策略
- Sources and ingestion · 来源与知识整合
- Wiki pages and provenance · Wiki 页面与来源证明
- Search and context · 搜索与上下文载入
- Document knowledge graph · 文档知识图(记忆图网)
- Code graph · 代码图
- Word graph · 词图
- Tags and strong context · 标签与强上下文
- Document conversion · 文档转换
-
MCP server and
lwc_explore· MCP 服务与lwc_explore - Skills, Hooks, and Instructions · Skills、Hooks 与 Instructions
- AgentTarget installation · AgentTarget 安装与集成
- Changesets · Changeset 原子变更
- Work system · Work 任务系统
- Checkpoints and rollback · Checkpoint、恢复与回滚
- Read-only Viewer · 只读可视化界面
- Architecture overview · 总体架构
- Storage and data model · 存储与数据模型
- Retrieval and indexing · 检索与索引设计
- Graph projection and performance · 图投影与性能设计
- MCP, Hooks, and AgentTarget design · MCP、Hook 与 AgentTarget 设计
- Safety and trust boundaries · 安全模型与信任边界
- Maintenance and diagnostics · 维护与诊断
- Troubleshooting and FAQ · 故障排查与常见问题
- Migration and compatibility · 迁移与版本兼容
- Support and issue reporting · 获取帮助与问题反馈
- CLI and configuration reference · CLI 与配置参考
- JSON output and error contract · JSON 输出与错误契约
- Limits and glossary · 系统限制与术语表
- Contributing and development · 贡献与开发指南
- Testing and release process · 测试与发布流程
- Wiki style guide · Wiki 编写规范