assay
ما الذي تفعله
Assay هي مهارة تفحص تلقائيًا ما إذا كانت الأزرار وعناصر التحكم الأخرى في صفحة ويب أنشأتها أو عدّلتها تعمل بشكل صحيح. تفتح الصفحة في متصفح حقيقي، وتتفاعل مع كل العناصر، وتبلغ عن أي تناقضات.
متى تستخدمها
- ✓عندما تنشئ صفحة HTML جديدة وتريد التحقق من عمل عناصر التحكم فيها.
- ✓عندما تعدّل صفحة ويب أو JavaScript أو CSS وتريد التأكد من أن كل شيء ما زال يعمل معًا.
- ✓عندما يُطلب منك فحص صفحة ويب محلية أو إجراء اختبار سريع لها.
رابط المهارة
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/assay/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“افحص ملف «index.html» وأخبرني إن كانت الأزرار تعمل.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تثبّت «assay» على حاسوبك. ثم تشغّل أمرًا بسيطًا يشير إلى ملف صفحتك. تفتح الأداة الصفحة وتنقر على كل شيء، وتعطيك ملخصًا من سطر واحد لما وجدته.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
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
…
الأسئلة الشائعة
هل أحتاج إلى كتابة اختبارات؟
لا، تعمل Assay وحدها دون أن تحتاج إلى كتابة أي كود للاختبار.
هل تحتاج إلى إنترنت أو مفتاح API؟
لا، تعمل Assay محليًا ولا تستخدم الإنترنت ولا تحتاج إلى مفاتيح.
ماذا تعني كلمة «flagged»؟
تعني أن Assay وجدت شيئًا قد يحتاج إلى انتباه، مثل زر لم يتفاعل كما هو متوقع. وهو مكان تنظر فيه أنت، وليس بالضرورة خطأً.
التفاصيل
الوصف الأصلي من المؤلف
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.
الشعبية
- نجوم GitHub
- 48k
- الترتيب
- #3825
- الترخيص
- MIT
- آخر تحديث
- 15/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
00-andruia-consultant
48kيساعد وكيلك على بدء مشاريع الذكاء الاصطناعي أو تحسينها. يحلل الكود ويقترح الأدوات ويُعد خطط عمل بالإسبانية.
007
48kيتيح لوكيلك إجراء تدقيقات أمنية ونمذجة التهديدات. مفيد لحماية المشاريع من الهجمات والثغرات الأمنية.
10-andruia-skill-smith
48kيساعد وكيلك على إنشاء أدوات الذكاء الاصطناعي أو تحسينها. يحدد طريقة عملها، ويكتب توثيقها، ويتحقق من بنيتها.
20-andruia-niche-intelligence
48kيتيح لوكيلك إعداد ملخص عن صناعة محددة. مفيد لفهم السياق والقواعد وأنماط الاستخدام والمخاطر لمشروع ما، باستخدام مصادر موثوقة.
مهارات مشابهة
angular-developer
280kيساعد وكيلك على كتابة شيفرة Angular وتقديم نصائح لبنية المشروع، ويفيد في بدء المشاريع الجديدة وإنشاء المكونات وتحسين الأداء وإمكانية الوصول.
frontend-a11y
280kيساعد وكيلك على جعل واجهات الويب متاحة للجميع، فيضمن أن المواقع والتطبيقات تعمل جيدًا مع قارئات الشاشة والتنقل بلوحة المفاتيح.
frontend-patterns
280kيطبّق وكيلك أنماط تطوير الواجهات الحديثة، فيحسّن الأداء ويدير الحالة ويتبع أفضل الممارسات في React وNext.js.