About tenzir-update-docs
A workflow skill for coordinating documentation changes in Tenzir's separate `tenzir/content` repository. It guides branch setup, writing and checking docs, opening a pull request, and linking it with the code PR.
Key features
- 01Set up a documentation branch
- 02Follow repository writing conventions
- 03Run available documentation checks
- 04Open and cross-link pull requests
- 05Apply the automerge label
- 06Check page structure and references
Use cases
- 01Update product documentation alongside code
- 02Prepare linked docs and code pull requests
- 03Verify documentation before submitting a PR
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ tenzir/ skills --skill tenzir-update-docsAfter installing, type/tenzir-update-docsin Claude Code to confirm it loaded.
Details
From the project READMEUpdate Documentation
Handle the operational workflow around documentation changes. The docs live in
the tenzir/content repository (which also hosts the tenzir.com website)
under website/src/content/docs/.
Workflow
All docs changes take place in .docs/, which is a clone of tenzir/content.
Clone .docs if it doesn't exist. Otherwise fetch the latest refs from origin.
- Create or check out a topic branch in
.docs/that matches the parent repo branch name. - Author the content update under
website/src/content/docs/using the repository's own documentation guidance and conventions (read itswebsite/README.mdfirst). - Run relevant documentation checks if the repository provides them
(
bun run checkinwebsite/). - File a
tenzir/contentpull request from.docs/. - Cross-link the pull requests using one shared compact footer pattern:
- In the docs PR, append a final
<sub>...</sub>footer block that links the code PR and references the same Linear issue(s), for example⚙️ Code PR: tenzir/tenzir#6048<br>🎫 References TNZ-150, TNZ-151. - In the code PR, append or extend the final
<sub>...</sub>footer with📚 Docs PR: tenzir/content#261. - Use GitHub shorthand for PR links in both directions, such as
tenzir/tenzir#6048ortenzir/content#261, instead of full URLs. Use full URLs only for deep links that shorthand cannot express, such as a specific comment. - If a footer already exists, add another
<br>-separated line instead of creating a second footer.
- In the docs PR, append a final
- Apply the
automergelabel to the docs PR. This marks the companion PR as ready for CI to squash-merge after the linked code PR lands and the docs checks pass. - Summarize what changed and note any follow-up work.
Branching
Keep the .docs/ branch name aligned with the code branch whenever possible.
If the code change spans multiple repositories, use the code branch as the
source of truth for naming and cross-links.
PR cross-link format
Keep docs/code cross-links in a compact footer at the end of each PR
description. In the docs PR footer, reference the same Linear issue(s) with a
non-closing word such as references so the companion docs PR does not move
the issue independently. When multiple issues share the same relationship,
enumerate them after one magic word on one line to keep the footer compact.
Use separate lines only when the relationship differs.
Docs PR example:
<sub>
⚙️ Code PR: tenzir/tenzir#1234<br>
🎫 References TNZ-150, TNZ-151
</sub>
Code PR example:
<sub>
📚 Docs PR: tenzir/content#261<br>
✅ Closes TNZ-150, TNZ-151<br>
📎 Related: tenzir/tenzir#5999
</sub>
Cross-Checks
Before opening the docs PR:
- Confirm the changed pages still fit their Diataxis section.
- Check nearby pages and "See also" links for follow-on edits. Reserve "See also" for related guides, tutorials, integrations, and broader references. Link individual operators inline where they are relevant instead of listing them in "See also".
- Ensure code samples, paths, and UI labels match the current product behavior.