Logo Validation

Validation

Cộng đồng
wolverin0
validation

Run evidence-based browser validation for an implemented web app, UI feature, or workflow. Successor to ultimate-validation: inventories routes, elements, modals, flows, and APIs; executes browser checks; analyzes screenshots and responsiveness; checks console/network errors; persists resumable state; and emits an auditable HTML report. Use smoke for a bounded quick check, standard for the complete safe UI cycle, and exhaustive/full for release-depth CRUD, API, security, accessibility, and visual-regression coverage.

Tổng quan

Nhà phát hànhwolverin0
Kho mãclaude-skills
Tên kỹ năngvalidation
Sao
41
Bản fork
1
Tệp đi kèm
34
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 34 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được wolverin0 công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Validation trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/wolverin0/claude-skills/tree/main/skills/validation
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/wolverin0/claude-skills.git /tmp/claude-skills
mkdir -p .claude/skills
cp -r /tmp/claude-skills/skills/validation .claude/skills/validation
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Validation trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Validation ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Validation không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Validation

Evidence-based browser validation for web apps. The skill must prove what it tested with screenshots, snapshots, console/error output, and observed state changes. A click without an observed outcome is not a pass.

This is the maintained successor to the archived ultimate-validation family. It preserves the deep route/element/modal/screenshot workflow while using resumable phases and deterministic gates.

Start

Invocation examples:

bash
/validation
/validation http://localhost:3000
/validation --backend agent-browser --mode standard http://localhost:5173
/validation --backend playwright-local --config validation.config.json --mode standard http://localhost:5173
/validation --full http://localhost:5173
/validation --interactive
/validation --fresh
/validation --resume

Plain /validation runs the complete standard cycle: discover -> test -> screenshot review -> report. If no URL is provided, detect a running local server or start the repo's normal dev command when it is unambiguous. If neither is safe, ask for the URL. A completed prior state is archived and a fresh run starts; use --resume only to continue an incomplete run.

When the request is specifically to inventory visual routes, capture every route across themes and viewports, inspect screenshots, and check browser errors without running CRUD/security/audit stages, delegate to $visual-route-sweep. Its verdict is visual-only and never substitutes for full validation.

Defaults

  • Backend: auto (select-backend.js; prefer agent-browser, then project-local Playwright)
  • Mode: standard
  • Auth: required when protected routes are found. The skill must authenticate (per role) before testing protected surface and must never report the login screen as a passing route. See references/auth.md. If no credentials/state/manual login is available for a login-gated app, the run is blocked, not passed.
  • Output: {project}/test-manifest/
  • State: {project}/test-manifest/validation-state.json
  • Report: {project}/test-manifest/reports/validation-{timestamp}.html

Modes

ModeUseCoverage
smokeFast confidence after small changeskey/changed routes and flows, 2 breakpoints; sampling is allowed; verdict is SMOKE VERIFIED, never FULLY VALIDATED
standardComplete safe UI cycle; defaultevery declared/reachable route, every non-destructive element, every reachable modal, 4 breakpoints, console/network checks, critical flows, safe VAL_ create/delete checks, and a zero-gap coverage ledger
exhaustive / full / humanRelease/regression depthstandard plus every code-only surface and backend method/path accounted for, forms, VAL_-scoped CRUD, role/security probes, accessibility/performance checks, and visual regression

Coverage is a contract, not a sample: in standard and exhaustive/human modes the skill enumerates the full surface and accounts for every route, modal, button, and required CRUD/API check (tested, skipped-with-reason, or quarantined). See references/coverage-contract.md. Responsiveness is measured, not eyeballed — see references/responsive-and-quality.md.

--full is an alias for --mode exhaustive. --max-routes or --max-elements is legal for a bounded investigation, but any truncation forces session.status: incomplete and session.coverageComplete: false.

Interactive Startup

If --interactive is set, or if backend/mode/auth cannot be inferred safely, ask concise questions before discovery:

  1. Browser backend: recommend agent-browser; offer playwright-cli, playwright-mcp, chrome-mcp, or browser-harness.
  2. Coverage mode: recommend standard; offer smoke or exhaustive.
  3. Auth mode: recommend manual login; offer none, saved state, or headers/config.

For non-interactive runs, use flags or validation.config.json. Do not block on questions unless continuing would produce misleading results.

Backend Selection

Load exactly one adapter from adapters/ before browser work:

BackendAdapterWhen to choose
agent-browseradapters/agent-browser.mdDefault. Fast CLI, JSON output, sessions, screenshots, console/errors, network, Web Vitals.
playwright-localadapters/playwright-local.mdBest fallback when the target project has Playwright installed; deterministic scripts write state/report directly.
playwright-cliadapters/playwright-cli.mdOfficial Playwright CLI path, cross-browser needs, projects already invested in Playwright.
playwright-mcpadapters/playwright-mcp.mdHost already exposes Playwright MCP and rich iterative introspection is more valuable than token cost.
chrome-mcpadapters/chrome-mcp.mdClaude-in-Chrome, Codex-in-Chrome, or another host browser MCP is the only available browser.
browser-harnessadapters/browser-harness.mdAdvanced real-Chrome/CDP fallback for unusual apps, iframe-heavy sites, or custom helper work.

Use agent-browser unless the user chose another backend, the command is unavailable, or the environment clearly requires another adapter. If agent-browser is unavailable and the target project has playwright installed, prefer playwright-local before playwright-cli.

Bundled Scripts

Use scripts when their assumptions match the task; they are more repeatable than hand-driving the browser.

ScriptPurpose
scripts/select-backend.jsDetect available validation backend from the target project and print a JSON recommendation.
scripts/run-smoke-playwright.jsProject-local Playwright validation with config support, text redaction, route screenshots, network/console grouping, safe standard-mode element checks, state, and HTML report.
scripts/responsive-audit.jsMeasure responsiveness/layout quality at each breakpoint: horizontal scroll, element overflow, clipped text, overlap, tap-target size, font floor, viewport meta. Runs standalone (playwright-local) or via AUDIT_SOURCE injection on any backend.
scripts/validate-multirole.jsMulti-role orchestrator for apps with roles[]. Per role: UI-login with env creds (or saved storage-state) → verify off the login screen → per-role smoke → access-control matrix (canAccess renders, denied blocked, leaks=critical) → responsive per accessible route → per-role ledger + redacted report. Exit 0 only if 0 leaks / 0 access failures / 0 responsive-high / 0 auth failures.
scripts/security-probe.jsActive security/ownership probe (right-sized, not a pentest): service-role-JWT/secret-in-bundle scan, IDOR / object-level auth ("change the id in the URL"), non-destructive input fuzz (reflected XSS / 500s), security headers. Run authenticated per role. Exit 1 on any critical/high. See references/security-probe.md.
scripts/visual-regression.jsBaseline + pixel-diff screenshots per route × breakpoint (canvas-based, no native deps). --update writes baselines; later runs flag layouts that changed beyond a threshold ("the fix broke the page"). Run per role. Exit 1 on any regression. See references/visual-regression.md.
scripts/redact-artifacts.jsRedact provided secrets from generated text artifacts, including test-manifest* folders, and fail if leaks remain.
scripts/record-visual-review.jsRecord one inspected screenshot with route, breakpoint, role, theme, source/build identity, SHA-256, and concrete design observations.
scripts/assert-coverage.jsCheck inventory and result accounting. A failed test can be accounted; exit 0 is not product acceptance.
scripts/certify-validation.jsFinal gate: require complete accounting, existing unchanged screenshot evidence, semantic reviews, and zero failed/runner-failed checks; write the final HTML report.
scripts/verify-provider-parity.jsVerify that .agents, .claude, and .codex ship identical validation content and that both provider battle-test copies match.

For certification, provide the expected source SHA and running build ID in the config or as --target-source-sha/--target-build-id to certify-validation.js. The gate compares that target with the state and every review. Config-declared routes and elements must also appear in discovery; inventoryComplete:true alone cannot hide a missing declared item. When a design gate is requested, set designGate:true and record distinct implementationBy and reviewedBy identifiers. This is an accountability field, not automated proof that the image was actually inspected.

Prefer the script for playwright-local:

bash
node path/to/scripts/select-backend.js
node path/to/scripts/run-smoke-playwright.js --url http://localhost:5173 --mode standard --config validation.config.json
node path/to/scripts/assert-coverage.js --state test-manifest/validation-state.json --config validation.config.json
node path/to/scripts/certify-validation.js --state test-manifest/validation-state.json --config validation.config.json
node path/to/scripts/redact-artifacts.js .

Required References

Read these when needed:

  • references/evidence-rules.md before marking any route, element, or flow pass.
  • references/auth.md whenever the app has a login — authenticate per role before testing protected surface; never pass the login screen.
  • references/responsive-and-quality.md before judging any breakpoint or layout — responsiveness is measured, not eyeballed.
  • references/coverage-contract.md in standard/exhaustive modes — enumerate and account for every route, modal, button, and required CRUD/API check.
  • references/state-schema.md before creating or modifying validation-state.json.
  • references/interactive-start.md when running in interactive mode.
  • references/config-schema.md when the app has expected protected routes, custom breakpoints, or route-specific access rules.

Phase Router

  1. Check test-manifest/validation-state.json.
  2. If --fresh, archive or replace old state and start at discovery.
  3. If --resume and state is in_progress/incomplete, resume from session.currentPhase.
  4. Otherwise archive a completed prior state under test-manifest/history/ and start fresh. Plain /validation never silently reuses a green result from an older build.
  5. Load only the current phase file:
PhaseFile
discoverphases/DISCOVER.md
testphases/TEST.md
visual-reviewphases/TEST.md (semantic screenshot review)
certifyphases/TEST.md (final accounting: assert-coverage.js then certify-validation.js, which sets the next phase to report)
reportphases/REPORT.md

State Rules

  • Write state after every route, element, flow, and report step.
  • Write a semantic review after actually viewing every required screenshot. Capturing a PNG or computing a pixel diff is not screenshot analysis.
  • For each route × breakpoint × role × supported theme, record hierarchy, density, alignment, proportion, and visible states with concrete observations. Bind the review to the captured image's SHA-256 and the run's source SHA/build ID. The script checks evidence identity and presence; a person still judges visual quality. Generic text or an uninspected image cannot establish a pass.
  • Never keep progress only in conversation context.
  • Use append-only evidence where practical: screenshots, snapshots, console logs, and issue records.
  • On context pressure or long runs, pause cleanly after saving state and tell the user to run /validation --resume.

Pass/Fail Standard

Pass requires evidence and zero failed required checks:

  • Page loaded and was not blank.
  • Screenshot or visual observation was analyzed.
  • Responsive audit ran at every required breakpoint with zero high-severity findings (routes).
  • Console/errors were checked.
  • Expected UI outcome was observed after interaction.
  • State file contains the result and evidence paths.
  • In standard/exhaustive, session.coverageComplete is true, the coverage ledger has zero unaccounted items, assert-coverage.js exits 0, and certify-validation.js exits 0. A failed result blocks certification even when accounted. In smoke, require session.smokeScopeComplete:true; never label that result fully validated.

For LAUNCH validations (a release the public will touch), additionally recommend one real-device pass to the operator: walk the core flow on a physical phone. Emulated breakpoints catch layout; a real phone catches what they can't — touch targets, keyboard-over-input, OS autofill, real network. Report it as an operator checklist line, not a bot step.

Fail when a real user-facing break is observed: route crash, broken navigation, unhandled error, missing required interaction, unusable layout, failed form submission, broken modal/dialog, or verification mismatch.

Skip only when a route/element cannot be tested for a documented reason, such as missing auth, unsupported browser capability, an equivalent repeated control already exercised, or a destructive action not approved. Every skip remains in the ledger.

incomplete is not failed: it means the runner, inventory, auth, screenshot review, or approved test-data scope could not support the requested coverage. Never translate it to a clean verdict.

Output

At completion, report:

text
=== VALIDATION COMPLETE ===
Backend: {backend}
Mode: {mode}
Coverage: complete=true, unaccounted=0
Routes: {passed}/{tested} passed
Elements: {passed}/{tested} passed
Flows: {passed}/{tested} passed
CRUD/API: {accounted}/{declared} accounted
Semantic screenshots: {reviewed}/{expected} reviewed
Issues: {count}
Report: test-manifest/reports/validation-{timestamp}.html
State: test-manifest/validation-state.json
Top issues:
1. ...

Keep the final user-facing summary brief. The HTML report contains the detail.

Tệp đi kèm

Mô hình đọc các tệp này khi cần trong lúc kỹ năng được tải. Các tệp được cung cấp ở dạng có thể đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Validation làm được gì?

Run evidence-based browser validation for an implemented web app, UI feature, or workflow. Successor to ultimate-validation: inventories routes, elements, modals, flows, and APIs; executes browser checks; analyzes screenshots and responsiveness; checks console/network errors; persists resumable state; and emits an auditable HTML report. Use smoke for a bounded quick check, standard for the complete safe UI cycle, and exhaustive/full for release-depth CRUD, API, security, accessibility, and visual-regression coverage.

Vì sao nên dùng Validation trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Validation là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Validation trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/wolverin0/claude-skills/tree/main/skills/validation. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Validation?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Validation với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Validation với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Validation có miễn phí không?

Kỹ năng này được wolverin0 phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇