Create a pull request for documentation changes in .docs/
Creates a documentation PR with automatic cross-referencing to parent repository PRs.
/plugin marketplace add tenzir/claude-plugins/plugin install docs@tenzirCreate a PR for documentation changes in .docs/, with automatic cross-referencing
to any companion PR in the parent project.
At any step, if there are errors, report them and stop.
Check for uncommitted changes in .docs/:
cd .docs && git status --porcelain
If there are no changes, stop.
cd .docs && pnpm lint:fix
If linting fails, fix issues before proceeding. Skip build:linkcheck
locally—CI runs it on the PR.
Check if the parent repository has an open PR:
# From project root (parent of .docs/)
gh pr view --json number,url,body 2>/dev/null
OUTER_PR_NUMBER and OUTER_PR_URLChange directory to .docs/ and execute /git:pr.
When composing the PR body, include a "Related PRs" section if an outer PR exists:
## Summary
<Brief description of documentation changes>
## Related PRs
- Parent: <OUTER_PR_URL>
Omit the "Related PRs" section if no outer PR was detected.
Capture the created docs PR URL from the output.
If an outer PR was detected in step 3:
tenzir/docs#gh pr edit <OUTER_PR_NUMBER> --body-file <temp-file>
Where the temp file contains the existing body plus:
## Related PRs
- Documentation: <DOCS_PR_URL>
If the outer PR already has a "Related PRs" section, append the documentation link to that section instead of creating a new one.
Summarize: