Skip to content

docs: describe the agent-driven user guide sweep and add screenshot utilities - #5721

Draft
awwaiid wants to merge 2 commits into
mainfrom
guide/14-agentic-update-docs
Draft

docs: describe the agent-driven user guide sweep and add screenshot utilities#5721
awwaiid wants to merge 2 commits into
mainfrom
guide/14-agentic-update-docs

Conversation

@awwaiid

@awwaiid awwaiid commented Sep 6, 2026

Copy link
Copy Markdown
Collaborator

What

Writes down the process used for the September 2026 user-guide sweep (documenting #5386, #5674, #5686, #5692, #5681, #5604, #5606, then refreshing every page's text and screenshots, then splitting into #5708#5720) so the next sweep is faster and lands in the same style. Extracts the reusable tooling into docs/utils/.

  • docs/agentic_update.md — the method: setup, scoping feature PRs, building the burn-down list, the per-page review loop, verification, splitting into stacked PRs, responding to review, and a checklist for the kickoff prompt.
  • docs/utils/screenshots/ — spec-driven Playwright helper for annotated screenshots (shot.tmpl.js, mkshot.py, example_spec.json) and a README with the spec format, style conventions and gotchas.
  • docs/utils/check_guide_images.sh — reports markdown image references with no file and image files nothing references. (Run against main today it lists 2 missing and 15 orphans, all fixed in User guide: fix typos, broken links and stale labels #5709 / User guide: refresh Getting Started and Everyday Essentials screenshots #5717.)
  • .gitignore — ignores .playwright-mcp/, the Playwright MCP plugin's scratch directory.

Notes for review

🤖 Generated with Claude Code

https://claude.ai/code/session_01LMAt57FU2qBq45yR7YCsEZ

…tilities

Adds docs/agentic_update.md, a write-up of the process used in September 2026
to document a batch of merged PRs and refresh every page of the bank user
guide, plus the reusable pieces under docs/utils/:

- utils/screenshots/shot.tmpl.js + mkshot.py: spec-driven Playwright helper
  that logs in, stages the page, grows the viewport, draws the red boxes and
  numbered labels after the resize, and crops.
- utils/screenshots/example_spec.json and README.md: spec format, conventions
  and the gotchas hit along the way (no fullPage, modals, select2, sidebar
  dropdown headers, seed state).
- utils/check_guide_images.sh: reports image references with no file and
  image files nothing references.

Also ignores .playwright-mcp/, the Playwright MCP plugin's scratch directory.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LMAt57FU2qBq45yR7YCsEZ
Comment thread docs/utils/screenshots/mkshot.py Outdated
@@ -0,0 +1,62 @@
#!/usr/bin/env python3

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please switch this to a shell script or ruby so that we don't add python as a dependency.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 052b7fc: replaced mkshot.py with a Ruby script at docs/utils/screenshots/mkshot (stdlib only: json, optparse, fileutils). Same options and output; README and template comments updated. Verified it generates a working snippet against the local app.

Review asked not to add Python as a dependency. Same behaviour: inlines the
JSON spec into shot.tmpl.js, resolves relative output paths from the repo
root, writes .playwright-mcp/run.js by default.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LMAt57FU2qBq45yR7YCsEZ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant