feat: add pr-screenshots skill to shared skills#2
Merged
nick-inkeep merged 10 commits intomainfrom Feb 19, 2026
Merged
Conversation
Ports the general-purpose pr-screenshots skill from inkeep/skills#1. Captures, redacts sensitive data, annotates, and embeds screenshots in GitHub PRs for UI changes. Includes three scripts: - capture.ts: Playwright-based screenshot capture with auto-masking - annotate.ts: Sharp-based image labeling and side-by-side stitching - validate-sensitive.ts: Pre-upload secret detection Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
Author
Demo Screenshots — generated by the skill itselfThese screenshots were captured and annotated using the 1. Raw capture (
|
Screenshots generated by the skill itself during end-to-end QA testing: - raw-capture.png: Raw capture output from capture.ts - capture-demo.png: Labeled annotation from annotate.ts - stitch-demo.png: Side-by-side stitch from annotate.ts Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ills Add playwright skill (plugins/eng/skills/playwright/) with 35 browser automation helpers: console monitoring, network capture, a11y audits, video recording, performance metrics, responsive screenshots, network simulation, and state inspection. Update qa-test skill with cross-skill references to playwright helpers for structured browser inspection during QA flows. Update pr-screenshots skill with --pre-script flag and interaction-first workflow for capturing post-interaction page states. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Rename plugins/eng/skills/playwright/ → use-browser/ and update all cross-skill references in qa-test and pr-screenshots. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Rename plugins/shared/skills/pr-screenshots/ → screengrabs/ and update all internal references (frontmatter, default output dirs, script defaults, gitignore). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- implement: fix broken dev-browser → use-browser references (6 occurrences), add guidance for console/network/a11y helpers in browser verification - pull-request: add /screengrabs invocation for automated PR screenshots when diff touches UI files - review: add /use-browser for verifying UI fixes with screenshot evidence - ship: add /screengrabs before PR body writing for UI changes, update capability-detection to name /use-browser skill - docs: add /use-browser and /screengrabs for capturing UI screenshots when writing user-facing documentation Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
5-phase workflow (Triage → Reproduce → Investigate → Fix → Harden) with Iron Law enforcement (no fixes without root cause investigation), bug category triage playbooks for 9 categories, MCP tool usage patterns, hypothesis-test-refine cycles, agent metacognition (loop detection, confidence calibration, strategy switching), and escalation heuristics. Also fixes write-skill validator to handle YAML block scalars and filter prose-like "word/word" patterns from deeply-nested-path warnings. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add a "Capture Screenshots for Documentation" pattern with Playwright settings optimized for docs images (1280x720, 2x DPR, PNG, element cropping). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add contextual references to /debug in 5 skills at their natural failure-handling decision points: - qa-test: triage root-cause-obvious vs unclear before fixing bugs - implement: add code defect diagnosis to stuck story handling - ship: route to /debug in post-implementation review + appendix table - inspect: add Debugging purpose to depth calibration table - analyze: add defect diagnosis to skill composition routing Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
pr-screenshotsskill toplugins/shared/skills/What's included
End-to-end QA results
All three scripts tested end-to-end:
capture.tscapture.tscapture.tscapture.tsvalidate-sensitive.tsvalidate-sensitive.tsvalidate-sensitive.tsannotate.tsannotate.tsannotate.tsannotate.ts83 total test assertions, 0 failures.
Test plan
Screenshots generated by the skill itself are uploaded as PR comments below.