03 / 06 PR
LensLion
前端
A frontend visual QA and accessibility (WCAG) pull-request review agent
看
Code review that can see the page — measured precisely, and still spots the broken layout.

(01) 為什麼Why
一般
Ordinary AI code review cannot see the page, axe-core misses overlapping text and broken layouts, and pure vision models get numbers wrong. LensLion combines deterministic measurement with visual judgement.
(02) 06 項items
它做什麼What it does
-
01
依
diff Planned from the diff規劃 讀取
git diff, 沿 Import Graph 找出 受 影響 路 由, 並 推論 要點 開 的 互動—— 改了 CheckoutModal.vue就 先 打開 彈 窗。 Reads
git diff, follows the import graph to the affected routes and infers the interactions to trigger — touchCheckoutModal.vueand it opens the modal first. -
02
雙
引擎 Two enginesaxe-
core 與 DOM 啟發 式 提供 確定 性 量 測, Vision 模型 判 讀 視覺 破 版。 axe-core and DOM heuristics give deterministic measurements; a vision model judges visual breakage.
-
03
編號
截 Numbered screenshots圖 在
可疑 元素 畫上 #1、 #2, 對 回 Selector 與 原始碼 行號, 並 附 修正 建議。 Suspicious elements are marked
#1,#2, mapped back to the selector and source line, with a suggested fix. -
04
低
誤報 Low noise低
信心 建議 收 合; 同一 PR 只 更新 一則 留言。 報告 依 嚴重 / 重要 / 輕微 分 組, 截 圖 附 替代 文字。 Low-confidence suggestions are collapsed and each PR gets one comment that updates. Reports are grouped critical / important / minor, with alt text on screenshots.
-
05
桌面
/ Desktop / mobile × dark / light手機 × 深 / 淺色 預設
1440 與 375 兩種 尺寸、 兩種 主題, WCAG 等級 可 設 為 AA; 可 選 視覺 基準 比對 (預設 差異 門檻 1%)。 Defaults to 1440 and 375 widths in both themes with a configurable WCAG level such as AA; optional visual baselines (1% diff threshold by default).
-
06
GitHub
Action GitHub Action and CLI與 CLI fail-on可 設 none、 a11y-blocker或 any; CLI 可 只看 檢查 計畫 或 只 回報 新 問題。 fail-onacceptsnone,a11y-blockerorany; the CLI can show only the plan or report only new issues.
(03) 怎麼
一次 PR 審查One pull-request review
- 01
讀
diff Read the diff找出
受 影響 路 由 與 互動。 Find affected routes and interactions.
- 02
開
瀏覽器 Open a browser同
網域 導航, 桌面 / 手機 × 深 / 淺色。 Same-origin only, desktop / mobile × dark / light.
- 03
量
測 Measureaxe-
core + DOM 啟發 式。 axe-core + DOM heuristics.
- 04
判
讀 LookVision
模型 檢查 視覺 破 版。 A vision model checks visual breakage.
- 05
留言Comment
編號
截 圖、 Selector、 行號 與 修正 建議。 Numbered shots, selectors, lines and fixes.
(04) README
快速開始Quick start
Repo
The repo is private for now, so the Action and npx commands above work once it is open-sourced.
npx lenslion --url http://localhost:5173
npx lenslion --diff main
npx lenslion --diff main --plan-only
npx lenslion config
- uses: malilion/lenslion@v1
with:
start-command: npm run build && npm run preview
base-url: http://localhost:4173
fail-on: a11y-blocker
(05) 實測Measured
基準評測Benchmark
2026-
| 指標Metric | PRD | 僅 | 加上 |
|---|---|---|---|
| 召回 | ≥ 85% | 100% | 100% |
| 乾淨 | ≤ 1 | 0 | 0 |
| 單 | < 60 s | 3.87 s | 8.96 s |
| 單 | < US$0.05 | US$0 | US$0.0023 |
(06) 安全Security
安全Security
- Fork
PR Fork PRs never use不 使用 pull_request_target, 改用 兩段式 workflow 保護 Secrets。 pull_request_target; a two-stage workflow protects secrets. - 瀏覽器
只 The browser only navigates same-origin and blocks cross-origin form posts and downloads.允許 同 網域 導航, 阻擋 跨 域 表 單 送出 與 下載。 - 可用
mask遮蔽 敏感 資訊, 私有 專案 可 改 把 截 圖 存 到 R2 / S3。 maskhides sensitive content; private projects can store screenshots in R2 / S3.
目前狀態 Status
- Repo
目前 Repo currently private — coming to open source.為 私有, 準備 開源 中。 - README
宣告 README declares the MIT licence.MIT 授權。
想先試用 LensLion?Want to try LensLion early?
所有