assay
Skill này làm gì
Assay là công cụ tự động kiểm tra xem các nút và điều khiển khác trên trang web bạn vừa tạo hoặc chỉnh sửa có hoạt động đúng không. Nó mở trang trong một trình duyệt thật, tương tác với mọi thành phần và báo cáo các điểm không nhất quán.
Khi nào nên dùng
- ✓Khi bạn vừa tạo một trang HTML mới và muốn kiểm tra xem các điều khiển có hoạt động không.
- ✓Khi bạn vừa chỉnh sửa trang web, JavaScript hoặc CSS và muốn đảm bảo mọi thứ vẫn ăn khớp.
- ✓Khi bạn được yêu cầu kiểm tra, QA hoặc smoke-test một trang web cục bộ.
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/assay/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Kiểm tra trang 'index.html' của tôi và cho tôi biết các nút có hoạt động không.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Bạn cài công cụ 'assay' trên máy tính. Sau đó, chạy một lệnh đơn giản trỏ tới tệp trang web của bạn. Công cụ mở trang, bấm vào mọi thứ và đưa cho bạn tóm tắt một dòng về những gì nó tìm thấy.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Assay
Overview
A page you have just written has no tests yet. assay serves the page locally, opens it in a real Chromium browser through Playwright, finds every control on it, uses all of them, and reports where the page contradicts itself. There are no tests to write, no LLM, no API key, and no network. The same page gives the same result every time.
Use this skill after you create or change a web page, to run assay on that page and report the one line it prints. The skill reports the result and does not change code because of it unless you ask.
When to Use This Skill
- Use when you have just created an HTML page and want to know whether its controls work before you move on.
- Use when you changed a page, or the JavaScript or CSS that a page loads, and want to confirm the page still holds together.
- Use when the user asks you to check, QA, or smoke-test a local web page.
- Run it once at the end, after the last edit, on each page you changed. Do not run it while you are still making changes.
How It Works
Step 1: Install the CLI once
Install assay from PyPI. The package is named assay-ui and the command it installs is assay.
pip install assay-ui
It needs Python 3.10 or newer. On the first run assay downloads the Chromium build Playwright uses.
Step 2: Run assay on the page you changed
Point assay at the page itself and ask for the one-line summary.
assay <the page you changed> --one-line
Point it at a file such as todo.html or dist/index.html. A folder also works and opens the index.html inside it. The page is often a folder or two above the file you edited, so a change to a script or stylesheet still means running assay on the page that loads it. assay needs no key, network, or configuration. A small page takes seconds, and a busy one can take a minute or more.
Step 3: Report the one line assay printed, verbatim
Put assay's output, word for word, as the last thing in your reply. It is already one line, or one line and a short list. Do not summarize it, reformat it, add to it, or write your own version.
A clean run looks like this, with assay's own numbers and wording.
assay: checked todo/todo.html, 8 checks, nothing flagged.
A run that flagged something looks like this, followed by a short list.
assay: checked notes/index.html, 12 checks, 4 flagged:
Report the line whether it flagged anything or not. Without it, the reader cannot tell a clean page from a check that never ran.
If the command did not run, say so in your own words, name the page, and quote what the shell actually printed. Never describe a check that did not happen as one that passed, and never guess at a cause.
Step 4: Report the finding and stop
Report what assay found and stop. Do not edit code in response to a finding in the same reply. If the user then asks you to fix it, fix it.
Examples
Example 1: A page that checks out clean
User: I added a to-do list at todo/todo.html. Does it work?
assay todo/todo.html --one-line
assay: checked todo/todo.html, 8 checks, nothing flagged.
Report that line as the last thing in the reply, and do not change the page.
Example 2: A page where assay flagged something
assay notes/ --one-line
assay: checked notes/index.html, 12 checks, 4 flagged:
- draw on canvas twice, then press Undo twice: it reacted one press late
Report the whole line and its short list, say that a finding is a place to look rather than a confirmed bug, and wait for the user to ask before changing anything.
Example 3: The command did not run
assay dist/index.html --one-line
assay: error: dist/index.html does not exist
Say that assay did not run, name the page, and quote the message. Do not report a check that never happened as one that passed.
Best Practices
- ✅ Run assay once, at the end, on each page you changed.
- ✅ Point it at the built page, such as
dist/index.html, not at a source template. - ✅ Print assay's one line exactly as it came out, as the last thing in your reply.
- ✅ When assay flags something, treat it as a place to look and wait to be asked before changing code.
- ❌ Do not run assay while you are still editing the page.
- ❌ Do not summarize, reword, or invent the result, and never report a check that did not run as one that passed.
Limitations
…
Câu hỏi thường gặp
Tôi có cần viết kiểm thử không?
Không, Assay tự làm mọi việc nên bạn không cần viết bất kỳ mã kiểm thử nào.
Nó có cần internet hoặc khóa API không?
Không, Assay chạy cục bộ, không dùng internet và không cần khóa.
“Flagged” nghĩa là gì?
Nghĩa là Assay phát hiện điều gì đó có thể cần chú ý, ví dụ một nút không phản hồi như mong đợi. Đó là chỗ để bạn xem xét, không nhất thiết là lỗi.
Chi tiết
Mô tả gốc của tác giả
Run assay on a web page you just wrote or changed. It opens the page in a real browser, drives every control, and reports where the page contradicts itself. Deterministic, no API key, no network.
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #3825
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro của dự án.
Skill tương tự
angular-developer
280kGiúp agent của bạn viết code Angular và tư vấn cấu trúc dự án, hữu ích khi bắt đầu dự án mới hoặc cải thiện hiệu suất.
frontend-a11y
280kGiúp agent của bạn làm cho giao diện web dễ tiếp cận với mọi người. Đảm bảo website và ứng dụng hoạt động tốt với trình đọc màn hình và điều hướng bằng bàn phím.
frontend-patterns
280kGiúp agent của bạn áp dụng các mẫu hiện đại trong phát triển frontend. Tối ưu hiệu năng, quản lý trạng thái và tuân theo thực hành tốt nhất với React và Next.js.