documentation-patterns
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseDocumentation Patterns
文档模式
Templates and opinionated structures for technical documentation -- READMEs, Architecture Decision Records, OpenAPI specs, changelogs, and writing style. Each category has individual rule files in loaded on-demand.
rules/面向技术文档的模板与规范化结构——涵盖README、架构决策记录(Architecture Decision Records,ADR)、OpenAPI规范、变更日志及写作风格。每个分类在目录下都有独立的规则文件,可按需加载。
rules/Quick Reference
快速参考
| Category | Rule | Impact | When to Use |
|---|---|---|---|
| README | 1 | HIGH | Starting a project, onboarding contributors |
| ADR | 1 | HIGH | Recording architecture decisions |
| API Docs | 1 | HIGH | Documenting REST APIs with OpenAPI 3.1 |
| Changelog | 1 | MEDIUM | Maintaining release history |
| Writing Style | 1 | MEDIUM | Any technical writing task |
Total: 5 rules across 5 categories
Quick Start
快速开始
markdown
undefinedmarkdown
undefinedREADME Skeleton
README模板骨架
Project Name
项目名称
Brief description -> Quick Start -> Installation -> Usage -> API -> Config -> Contributing -> License
简要描述 -> 快速开始 -> 安装 -> 使用方法 -> API -> 配置 -> 贡献指南 -> 许可证
ADR Format
ADR格式
ADR-001: Title
ADR-001: 标题
Status -> Context -> Decision -> Consequences (positive/negative) -> References
状态 -> 背景 -> 决策 -> 影响(正面/负面) -> 参考资料
OpenAPI Minimum
OpenAPI最小规范
openapi: 3.1.0 with info, paths, components/schemas, error responses
openapi: 3.1.0 with info, paths, components/schemas, error responses
Changelog Entry
变更日志条目
[1.2.0] - 2026-03-05
[1.2.0] - 2026-03-05
Added / Changed / Deprecated / Removed / Fixed / Security
新增 / 变更 / 弃用 / 移除 / 修复 / 安全更新
Writing Rule of Thumb
写作基本原则
Active voice, present tense, second person, one idea per sentence
undefined主动语态、现在时态、第二人称、每句表达一个观点
undefinedREADME
README
Complete README template with all essential sections for open-source and internal projects.
- -- Project name, quick start, installation, usage, API reference, configuration, contributing, license
docs-readme-structure
适用于开源项目与内部项目的完整README模板,包含所有核心章节。
- -- 项目名称、快速开始、安装、使用方法、API参考、配置、贡献指南、许可证
docs-readme-structure
Architecture Decision Records
架构决策记录
Structured format for capturing architectural decisions with context and consequences.
- -- Status, context, decision, consequences (positive/negative), references
docs-adr-template
用于记录架构决策的结构化格式,包含背景与影响。
- -- 状态、背景、决策、影响(正面/负面)、参考资料
docs-adr-template
API Documentation
API文档
OpenAPI 3.1 specification patterns for consistent, machine-readable API docs.
- -- Path structure, operation definitions, schema components, error responses (RFC 9457)
docs-api-openapi
用于构建一致、机器可读API文档的OpenAPI 3.1规范模式。
- -- 路径结构、操作定义、Schema组件、错误响应(RFC 9457)
docs-api-openapi
Changelog
变更日志
Keep a Changelog format for curated, human-readable release history.
- -- Added, Changed, Deprecated, Removed, Fixed, Security sections with semver
docs-changelog-format
采用Keep a Changelog格式,打造精心整理、易于人类阅读的版本发布历史。
- -- 基于语义化版本(semver)的新增、变更、弃用、移除、修复、安全更新章节
docs-changelog-format
Writing Style
写作风格
Technical writing conventions for clear, scannable documentation.
- -- Active voice, present tense, concise sentences, API doc checklist
docs-writing-style
面向清晰、易浏览文档的技术写作规范。
- -- 主动语态、现在时态、简洁语句、API文档检查清单
docs-writing-style
Related Skills
相关技能
- -- API design patterns (complements OpenAPI documentation)
ork:api-design - -- ADR workflow and lifecycle
ork:architecture-decision-record - -- Release process including changelog updates
ork:release-management
Version: 1.0.0 (March 2026)
- -- API设计模式(补充OpenAPI文档相关内容)
ork:api-design - -- ADR工作流与生命周期
ork:architecture-decision-record - -- 版本发布流程,含变更日志更新
ork:release-management
版本: 1.0.0(2026年3月)