agent-browser
ما الذي تفعله
تستخدم هذه المهارة أداة سطر الأوامر agent-browser لفتح صفحات الويب وتنفيذ الإجراءات وفحص ما يظهر. وهي مخصصة لمن يحتاج إلى التأكد من أن موقع ويب يعمل كما يختبره المستخدم.
متى تستخدمها
- ✓عندما تريد التحقق من أن صفحة ويب أو شاشة إدارة تتصرف بشكل صحيح في متصفح حقيقي.
- ✓عندما تحتاج إلى لقطات شاشة كدليل على شكل الصفحة بعد إجراء ما.
- ✓عندما تريد التأكد من أن الصفحة تعرض النتيجة المتوقعة بعد نقرة أو إرسال نموذج.
رابط المهارة
https://github.com/emdash-cms/emdash/blob/main/skills/agent-browser/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“هل يمكنك فتح صفحة تسجيل الدخول لموقعي في المتصفح، وتسجيل الدخول، وأخذ لقطة شاشة للوحة التحكم؟”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يفتح الوكيل الصفحة في جلسة متصفح بعنوان محدد، ويقرأ بنية الصفحة، وينفذ الإجراء، ثم يتحقق من الحالة الجديدة وأي أخطاء في وحدة التحكم. ويمكنه التقاط لقطات شاشة على طول الطريق.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Test interfaces with agent-browser
Use the installed agent-browser CLI for rendered, user-facing verification. Load its version-matched instructions before relying on command syntax:
agent-browser skills get core --full
Use a specialized bundled guide when the target requires one. agent-browser skills list shows the available guides.
Verification loop
- Start or identify the target application and record the exact URL and viewport.
- Open the page in a named session.
- Take an accessibility snapshot and identify controls by role, label, or snapshot reference.
- Perform the user action.
- Wait for the resulting state, then take a fresh snapshot. References can become stale after navigation or a substantial DOM update.
- Verify the observable result, console errors, and relevant network behavior.
- Capture screenshots when visual evidence helps establish the result.
For EmDash admin testing, authenticate through the development bypass rather than attempting to automate passkeys:
agent-browser open 'http://localhost:4321/_emdash/api/setup/dev-bypass?redirect=/_emdash/admin'
Use auth/dev-bypass instead when setup is already complete.
Interaction guidance
- Prefer role and label locators when they express the user-facing control clearly. Use snapshot references for efficient exploration.
- Re-snapshot after a dialog opens, a route changes, or content is replaced.
- Wait for a selector or visible state instead of adding a fixed delay unless timing itself is under test.
- Use a named session for flows that depend on cookies or storage. Close sessions that are no longer needed.
- Check
agent-browser consoleandagent-browser errorswhen the UI behaves unexpectedly. - Use
agent-browser network requestswhen the result depends on a request or response boundary.
Evidence
Record the path tested, inputs, viewport, expected result, actual result, and any console or request failures. For UI changes, capture before-and-after screenshots of every affected screen.
Save screenshots inside the task workspace with descriptive filenames. Inspect the saved image before reporting success; a completed screenshot command does not prove that the intended state was visible.
Browser exploration does not replace a regression test when stable automated coverage can protect the behavior. Convert a confirmed defect into the narrowest meaningful automated test when the task includes implementation.
الأسئلة الشائعة
هل تحل محل الاختبارات الآلية؟
لا. عندما تحتاج إلى اختبار تراجع قابل للتكرار، فمجموعة اختبارات حتمية هي الخيار الأفضل.
كيف تجد الأزرار في الصفحة؟
تقرأ معلومات إمكانية الوصول في الصفحة، وتستخدم التسميات والأدوار للعثور على العناصر.
هل تستطيع إظهار الأخطاء؟
نعم. تتحقق من أخطاء وحدة التحكم وسلوك الشبكة ذي الصلة كجزء من التحقق.
التفاصيل
الوصف الأصلي من المؤلف
Use the agent-browser CLI to exercise web interfaces, inspect rendered accessibility state, verify interactions, and capture screenshots. Use for browser-based UI testing and evidence collection. Do not use as a substitute for deterministic Playwright coverage when an automated regression test is the requested deliverable.
repo: emdash-cms/emdash
الشعبية
- نجوم GitHub
- 14k
- الترتيب
- #11245
- الترخيص
- MIT
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
adversarial-reviewer
14kيساعد وكيلك على البحث عن أخطاء خفية وافتراضات غير آمنة في تغيير برمجي، متجاوزًا المراجعة العادية عندما تطلب ذلك.
building-emdash-site
14kيساعد وكيلك على بناء الجزء الخاص بالموقع من مشروع EmDash CMS المبني على Astro، ويشمل المحتوى والمخطط والقوائم والتصنيفات والنشر.
creating-plugins
14kيساعد وكيلك على بناء إضافة لنظام EmDash CMS، مع خطافات آمنة ومسارات وتخزين وواجهة إدارة.
emdash-cli
14kيتيح لوكيلك إدارة موقع EmDash من سطر الأوامر، ويشمل المحتوى والوسائط والقوائم والترحيلات وتصدير الموقع أو استيراده كاملًا.
مهارات مشابهة
test-driven-development
311kيعلّم وكيلك كتابة اختبار فاشل أولًا، ثم رؤيته يفشل، ثم كتابة أصغر شيفرة تنجحه، قبل بناء أي ميزة أو إصلاح.
verification-before-completion
311kيعلّم وكيلك تشغيل فحوصات حقيقية وقراءة نتائجها قبل أن يقول إن المهمة أو الإصلاح أو البناء مكتمل أو ناجح.
migrate-to-shoehorn
310kيستبدل تأكيدات النوع الخطرة في ملفات الاختبار بمكتبة shoehorn، حتى تتمكن الاختبارات من استخدام بيانات جزئية وتجتاز فحوص الأنواع.