con un clic
update-doc-references
// Analyze source-file changes referenced by documentation, update affected docs when needed, and report documentation reference updates for a PR.
// Analyze source-file changes referenced by documentation, update affected docs when needed, and report documentation reference updates for a PR.
Run realistic Chonk (client IVC) benchmarks using pinned protocol inputs. Covers native and WASM proving, per-circuit breakdowns, BB_BENCH instrumentation, and profiling code augmentation. Use when asked to benchmark, profile, or measure Chonk proving performance.
Run the Chonk (client-IVC) prover on the remote EC2 and collect Perfetto-compatible JSON traces. Supports both native and WASM runtimes. Generates a one-click Perfetto UI link for visual analysis. Use when asked to profile, trace, or visualize Chonk proving performance.
Run benchmarks on the dedicated remote EC2 benchmarking machine for noise-free, single-run results. Handles env var validation, lock management, binary transfer, and result collection. Use with /benchmark-chonk or any BB benchmark target.
Build and update the developer documentation site for a new release
Reference for merge-train automation internals -- workflows, scripts, CI integration, and configuration. Use when modifying or debugging merge-train infrastructure.
Manage pinned Chonk IVC inputs and the Chonk/rollup UltraHonk proving checks. Use when updating, testing, benchmarking, or reviewing the CI flow for Chonk input refreshes.
| name | update-doc-references |
| description | Analyze source-file changes referenced by documentation, update affected docs when needed, and report documentation reference updates for a PR. |
When source files referenced by documentation change in a PR, analyze the changes and update the affected documentation if needed.
Extract from the dispatch prompt:
source_file -> doc1, doc2; ...)gh pr view <PR_NUMBER> --repo AztecProtocol/aztec-packages --json title,body,baseRefName,files,url
Get the diff for each changed source file:
gh pr diff <PR_NUMBER> --repo AztecProtocol/aztec-packages
The prompt lists which source files changed and which docs reference them.
For each affected doc file, read its frontmatter references field to confirm
the mapping using the shared library:
source docs/scripts/lib/extract_doc_references.sh
Or read the frontmatter directly from each doc file.
For each affected documentation file:
Changes that typically require doc updates:
Changes that typically do NOT require doc updates:
If documentation updates are needed:
If changes were made, create a PR:
BRANCH="docs/update-refs-pr-<PR_NUMBER>"
BASE_BRANCH=$(gh pr view <PR_NUMBER> --repo AztecProtocol/aztec-packages --json baseRefName -q .baseRefName)
git checkout -b "$BRANCH"
git add -A
git commit -m "docs: update references for PR #<PR_NUMBER>
Auto-generated documentation updates for source file changes in PR #<PR_NUMBER>.
Co-Authored-By: Claude <noreply@anthropic.com>"
git push -u origin "$BRANCH"
gh pr create \
--base "$BASE_BRANCH" \
--title "docs: update references for PR #<PR_NUMBER>" \
--body "## Summary
- Auto-generated documentation updates triggered by source file changes in #<PR_NUMBER>
- <list of changes made>
## Test plan
- [ ] Review documentation changes for accuracy
- [ ] Verify code examples are correct"
Always post results to the Slack thread (via the link provided in the dispatch). Use the Slack link from the dispatch to thread the reply.
If no changes needed: Post a message stating that the documentation is still accurate and no updates are required, listing which files were analyzed.
If changes were made:
git diff of all documentation changes in the Slack message
(formatted as a code block). This ensures devrel can review and manually apply
changes even if the PR creation failed.