AgentSkillsCN

page-reviewer

通过代理浏览器 CLI 对页面进行可视化审查,并测试其无障碍访问性。

SKILL.md
--- frontmatter
name: page-reviewer
description: Review pages visually and test accessibility using agent-browser CLI

Page Reviewer

Visual and accessibility testing for JusticeHub pages using agent-browser.

When to Use

  • Test page rendering and layout
  • Check accessibility tree structure
  • Verify interactive elements work
  • Capture screenshots for review
  • Debug console errors

Invocation

code
/page-reviewer [scope]
ScopeWhat It Reviews
allAll key pages (default)
/pathSpecific page path
full-urlAny URL directly

Quick Start

bash
# Ensure dev server running
npm run dev &

# Review single page
agent-browser open http://localhost:3000/community-map
agent-browser snapshot -i -c
agent-browser screenshot --full /tmp/review.png
agent-browser errors
agent-browser close

Key Commands

CommandPurpose
agent-browser open <url>Navigate to page
agent-browser snapshot -i -cInteractive elements with refs
agent-browser screenshot --full <path>Full-page capture
agent-browser click @refClick element by ref
agent-browser fill @ref "text"Fill form input
agent-browser get text @refExtract text content
agent-browser errorsConsole errors
agent-browser closeClose browser

Review Checklist

For each page:

  1. Load: Page renders without errors
  2. Navigation: Links and buttons accessible
  3. Forms: Inputs have labels, submit works
  4. Data: Content loads from database
  5. Responsive: Layout works at different widths
  6. Errors: No console errors

Key Pages

PriorityPagePath
HighHomepage/
HighCommunity Map/community-map
HighCommunity Programs/community-programs
MediumPeople Directory/people
MediumYouth Justice Report/youth-justice-report
MediumStories/stories
LowAdmin Dashboard/admin

Output Format

markdown
## [Page Name] - /path

**Status**: OK | Issues Found

**Elements**: [count] interactive elements
**Errors**: None | [list]

**Accessibility**:
- [x] Navigation present
- [x] Forms labeled
- [ ] Issue: [description]

**Screenshot**: /tmp/review-[page].png

Troubleshooting

IssueSolution
agent-browser not foundnpm install -g agent-browser && agent-browser install
Browser crashagent-browser install to reinstall Chromium
Page 404Check route exists, dev server running
TimeoutPage slow loading, wait longer