creating-replay-vision-scanners
ما الذي تفعله
تنشئ هذه المهارة ماسحاً يراجع تسجيلات الجلسات المستقبلية تلقائياً بموجّه ذكاء اصطناعي. وهي مناسبة للفرق التي تريد فحصاً دائماً على التسجيلات مع التحكم في تكلفته.
متى تستخدمها
- ✓عندما تريد أن يراجع فحص ذكاء اصطناعي كل تسجيل جديد يطابق قاعدة.
- ✓عندما تريد اختيار نوع الماسح، مثل المراقب أو المصنّف أو المقيّم أو الملخّص.
- ✓عندما تريد تقدير الرصيد الذي سيستهلكه الماسح قبل تشغيله.
رابط المهارة
https://github.com/PostHog/posthog/blob/master/products/replay_vision/skills/creating-replay-vision-scanners/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“أنشئ ماسحاً يعلّم التسجيلات التي لا يستجيب فيها زر الدفع، وأخبرني بتكلفته أولاً.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تساعدك المهارة على اختيار نوع الماسح وفلتر التسجيلات، ثم تقدّر الرصيد الذي سيستهلكه قياساً على ميزانيتك المتبقية. ويعمل الماسح وفق جدول زمني، لذلك قد يستنفد الماسح الواسع الميزانية بسرعة.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Creating Replay Vision scanners
A scanner is a standing LLM probe over session recordings. Once created and enabled, it runs on a
Temporal schedule that sweeps every 5 minutes, applying its prompt to each new matching recording and
recording the result as an observation (a queryable $recording_observed event). Each observation spends
credits (1 credit = $0.01) from the org's budget for the current billing period, and an observation's
price depends on the scanner's model — so size spend in credits, and convert any observation count a user gives you into credits at that model's price.
That schedule is exactly why creation needs a gut-check: a scanner with a permissive query and full sampling starts spending automatically and can drain the whole period's budget within its first few sweeps. Creation itself does not check quota — that protection only kicks in at observation time, by which point the budget may already be gone.
First: is a scanner even the right thing?
A scanner is a standing watch over future recordings. If the user has specific sessions in front of them
and a question about those sessions, they don't want a scanner at all — they want vision-scanners-inline-scan,
which takes session_ids plus a prompt, saves nothing, and schedules nothing.
Use an inline scan when the sessions are already known: "what went wrong in these five recordings", "did any of yesterday's checkout sessions hit the coupon bug", anything you'd otherwise answer by creating a scanner and deleting it afterwards. It costs the same credits per session and reuses answers when the same question is asked twice, so re-asking is cheap.
Create a scanner only when the user wants recordings that haven't happened yet to be scanned automatically. If you find yourself planning to create a scanner, read its results once, and delete it, stop and run an inline scan instead — a throwaway scanner leaves a scheduled sweep running against every future recording that matches its query.
Core principle: size before you ship
Never create an enabled scanner blind. Estimate its monthly credit spend, check the remaining credit budget, and — when the projected spend is a meaningful fraction of what's left — show the user the numbers and get confirmation before creating. This is the heart of the skill; the rest is supporting detail.
The flow
Step 1: What should the scanner do?
If the question, type, or prompt is still vague, run [[designing-replay-vision-scanners]] first. It turns a wish into one visible question with a fixed answer shape, a proof rule, and permission to say inconclusive. Come back here once those are settled.
Pick a scanner_type and write its scanner_config. Every type needs a prompt; the rest is type-specific:
| Type | What it produces | scanner_config shape |
|---|---|---|
monitor |
Open-ended observation against a prompt (e.g. "flag rage clicks") | {"prompt": "..."}; optional "allow_inconclusive": true (off by default, so the model must answer yes or no) |
classifier |
Assigns tags from a fixed label set | {"prompt": "...", "tags": ["tag-a", "tag-b"]} — tags needs ≥1 entry; optional "multi_label": false (defaults to true), "allow_freeform_tags": true (off by default) |
scorer |
Numeric score on a rubric | {"prompt": "...", "scale": {"min": 1, "max": 5, "label": "frustration"}} — min < max; label optional |
summarizer |
Free-text summary | {"prompt": "..."}; optional "length": "short" | "medium" | "long" (default "medium"). Embeddings are always on |
scanner_type is locked after creation — to change it you delete and recreate, so confirm the type is
right up front, and get the scanner_config sh
الأسئلة الشائعة
هل الماسح هو الأداة المناسبة للجلسات الموجودة لدي؟
لا. للجلسات الموجودة، يكون الفحص لمرة واحدة أفضل، لأنه لا يحفظ شيئاً ولا يجدول شيئاً.
كم مرة يعمل الماسح؟
بعد إنشائه وتفعيله، يفحص الماسح التسجيلات الجديدة كل خمس دقائق تقريباً.
ما الرصيد؟
الرصيد الواحد يساوي سنتاً واحداً، وكل تسجيل يُفحص يستهلك رصيداً حسب النموذج الذي يستخدمه.
التفاصيل
الوصف الأصلي من المؤلف
Guides agents through creating and safely sizing a Replay Vision scanner: choosing the scanner type (monitor/classifier/scorer/summarizer), shaping the RecordingsQuery that selects sessions, and — crucially — estimating the credits it will spend and checking the org's remaining budget before creating, so a broad scanner doesn't exhaust the budget on its first scheduled sweep. TRIGGER when: user asks to create, set up, or configure a Replay Vision scanner, OR when you are about to call vision-scanners-create, OR when widening an existing scanner's query, sampling_rate, or sampling_mode (or movi
repo: PostHog/posthog
الشعبية
- نجوم GitHub
- 41k
- الترتيب
- #6910
- الترخيص
- —
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
depot-ci
41kيساعد وكيلك على إعداد سير عمل Depot CI وتشغيله، وهو بديل لـ GitHub Actions، بما في ذلك نقل سير العمل الحالي وقراءة سجلات التشغيل.
depot-container-builds
41kيساعد وكيلك على بناء صور Docker على بُنّاة Depot البعيدين، بما في ذلك الصور متعددة المنصات والدفع إلى السجلات وإصلاح أخطاء البناء.
depot-github-runners
41kيساعد وكيلك على نقل مهام GitHub Actions إلى مشغّلات Depot المُدارة، واختيار أحجامها وتسمياتها، وإصلاح مشاكل إعدادها.
editing-agents-md
41kيساعد وكيلك على تحديد ما إذا كانت القاعدة تنتمي إلى ملف AGENTS.md أو CLAUDE.md، وكتابتها بطريقة تُتَّبع دون تضخيم الملف.
مهارات مشابهة
gitcrawl
394kيتيح لوكيلك البحث في أرشيف محفوظ لمشكلات GitHub وطلبات السحب، وتجميع المكرر منها، والتحقق من حالتها الحالية على GitHub.
slacrawl
394kيتيح لوكيلك البحث في رسائل Slack داخل أرشيف محلي وعدّها، والتحقق من مدى حداثة الأرشيف، وتحديثه عند الحاجة.
goplaces
394kيساعد وكيلك على البحث عن الأماكن وعرض تفاصيلها وتقييماتها وتحديد أسمائها عبر Google Places، مع مخرجات JSON للسكربتات.