Documentation Engineer
A documentation path covering OpenAPI contracts, versioning, deprecation, ADRs, content negotiation, and docs-as-code tooling.
Path overview
文档工程把 API 契约、决策记录与用户指南当作可测试、可版本化的工程产物。本路径从 OpenAPI 契约出发,覆盖 API 版本管理与弃用、架构决策记录、内容协商,配合契约测试、弃用头、契约变更评审以及 Markdown 与 Schema 校验工具。
This path treats documentation as a testable, versioned engineering artifact: OpenAPI contracts, API versioning and deprecation, architecture decision records, content negotiation, contract tests, deprecation headers, contract review, and docs-as-code tooling.
Apply "Add an OpenAPI Contract Test" to a documentation task, checking that "A pull request that changes a response shape fails CI before merge." appears after the "Run property-based tests against a disposable server so generated requests exercise the" step.
Next step: Add API Deprecation Headers
⏱ 0.5h
Execute "Add API Deprecation Headers" end to end, then repeat the last step with one parameter changed and compare "Log calls with the client id and endpoint, and build a migration dashboard before the".
Prerequisites: Add an OpenAPI Contract Test
Next step: Review API Contract Changes Before Merge
⏱ 0.5h
Follow "Review API Contract Changes Before Merge" and record "No breaking change merges without an owner and a date." at the step where it should appear, using "Assess consumer impact: Identify consumers of affected operations, notify their owners, and" as the check.
Prerequisites: Add API Deprecation Headers
Next step: Zod
⏱ 0.5h
- 4
Zod
Read "Zod"'s documented surface around "schema.safeParse schema.safeParse(data: unknown): { success: true; data: T } | { success:", then build a minimal endpoint and log the response.
Prerequisites: Review API Contract Changes Before Merge
Next step: Markdown Frontmatter Parser
⏱ 1h
Execute "Markdown Frontmatter Parser", change one constant, and describe how the output diverges from "Split Markdown frontmatter from the body and parse flat YAML scalars, with BOM handling and".
Prerequisites: Zod
Next step: Markdown Live Preview
⏱ 0.75h
Feed a representative input into "Markdown Live Preview" and verify "markdown to html-preview" by hand.
Prerequisites: Markdown Frontmatter Parser
Next step: JSON Schema Validator
⏱ 0.25h
Run two different inputs through "JSON Schema Validator" and show where the outputs diverge.
Prerequisites: Markdown Live Preview
Next step: Lint Heading Structure in API Docs
⏱ 0.25h
Build "Lint Heading Structure in API Docs" for documentation code and verify [2:heading-jump:h1->h3,4:duplicate-heading:usage] against both samples.
Prerequisites: JSON Schema Validator
Next step: Capstone: Documentation Engineer
⏱ 0.33h
Deliver the "Build a Changelog Generator from Commit Messages" blueprint with "Parse conventional commit headers into type, scope, and description." working and "Group commits into features, fixes, and other change types." recorded as evidence.
Prerequisites: JSON Schema Validator, Lint Heading Structure in API Docs
Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.
⏱ 4h