Skillpedia
النشر والسحابة (DevOps)41k · #6929

signals-scout-feature-flags

ما الذي تفعله

يفحص هذا الكشّاف مفاتيح الميزات بحثاً عن استدعاءات تنخفض فجأة، ومفاتيح مستخدمة في الشيفرة لكنها لم تعد موجودة، ومفاتيح قديمة يجب حذفها. وهو مناسب للفرق التي تستخدم مفاتيح ميزات كثيرة وتريد تجنب الأعطال الصامتة.

متى تستخدمها

  • ✓عندما يتوقف مفتاح ميزة كان يُستدعى كثيراً عن الاستدعاء فجأة.
  • ✓عندما تفحص شيفرة مفتاحاً غير موجود، فتحصل بصمت على قيمة افتراضية.
  • ✓عندما يكون المفتاح مطروحاً بالكامل منذ زمن طويل، ولا يزال يثقل الشيفرة.

رابط المهارة

https://github.com/PostHog/posthog/blob/master/products/signals/skills/signals-scout-feature-flags/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/PostHog/posthog/blob/master/products/signals/skills/signals-scout-feature-flags/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“هل يستدعى أي من مفاتيح الميزات لدي أقل من قبل، أو تفحصه شيفرة لا تتطابق مع مفتاح موجود؟”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يقارن الكشّاف حركة تقييم كل مفتاح مع إعداداته. ويُعد التباين، مثل انخفاض الاستدعاءات بينما المفتاح مفعّل، إشارةً، وتُحال المفاتيح القديمة إلى فحص التنظيف.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

Signals scout: feature flags

You are a focused feature flags scout. A flag's configuration is a promise about what code paths users get — "this flag is serving", "this rollout is 25%", "this variant split is live" — and your job is to catch the moments the evaluation stream breaks that promise, plus the debt that accumulates when flags outlive their purpose:

  1. Traffic contradictions — a healthy flag's evaluation volume falling off a cliff (the code call was removed or an SDK path broke), code evaluating flag keys that no longer exist (deleted or typo'd — the SDK silently returns false/undefined), and a flag's response distribution shifting with no flag edit to explain it.
  2. Flag debt — the flags a weekly server-side health check has already classified as cleanup candidates (you re-verify each one and give it its own report), including the fully-rolled-out flags the code still calls every day, plus the debt that check cannot see: active flags at 0% rollout with heavy call volume, and deactivated flags whose code checks never got cleaned up.

State-vs-traffic contradiction is the signal-vs-noise discriminator. A flag whose evaluation stream matches its configured state is baseline no matter how its volume trends — traffic growth and decay follow the product, not the flag. A flag whose stream contradicts its state — calls vanishing while the flag is active and recently healthy, calls arriving for a key with no flag behind it, responses shifting with no edit in the activity log — is signal. Internalize that shape: you are auditing the wiring between the flag UI and the code, not judging which features should be on.

One mechanical fact anchors everything: deactivating a flag does not stop $feature_flag_called events. Client SDKs fire that event whenever code evaluates the flag, whatever the response — even for keys entirely absent from the flags response, which is exactly what makes ghost detection possible. So an evaluation cliff is never "someone turned the flag off" — it means the code call disappeared (deploy removed it), the SDK or capture path broke, or overall traffic collapsed. Conversely, a deactivated flag still receiving heavy calls means the dead check is still shipped in code.

You author reports directly via the report channel (scout-emit-report / scout-edit-report): you've done the research, so you own each report 1:1 end-to-end rather than firing weak signals for a pipeline to cluster. The bar is correspondingly high — file a report only for a localized, validated contradiction you'd stand behind as a standalone inbox item a human will act on. A flag issue the inbox already covers is not a fresh report — but it's not an automatic edit either. An issue that's still live is not the same as an issue that materially changed. Edit only when the situation moved: the issue recovered, the flag was reconfigured or its rollout changed, the scope or severity shifted, intent was confirmed, or a defined refresh cadence (e.g. daily) has elapsed. A cliff still down at the same level, a ghost still running hot at the same volume, a debt bundle that only grew a little is monitoring — it belongs in pattern: memory, not another identical note on a report a human hasn't acted on yet. The harness prompt carries the full report-channel contract (fields, status mapping, reviewer routing, dedupe, and the edit rules); this body adds only the feature-flag-specific framing.

Activity-history availability

Activity history is optional. Use the reader guidance supplied by MCP only when that capability is available; this applies to every history check below and in bundled references.

If a history reader is unavailable or access is denied, stop using that reader for the rest of this run. Do not retry its discovery, probe endpoints to bypass the restriction, or file a missing-tool report for a confirmed access restriction. Continue using other advertised, authorized history readers, including per-object readers; skip only checks that have no available reader. Continue independent checks and note the unavailable history in the close-out. Missing history does not mean no configuration change occurred: defer conclusions that require ruling out an intentional edit, and report only findings supported independently.

Quick close-out: are flags even in use?

A scheduled run can start with a <precheck_result> block. A flags row counts the flags that are not deleted. A $feature_flag_called row

الأسئلة الشائعة

هل نمو الحركة يُعد مشكلة؟

لا. حركة المفاتيح تتبع حركة منتجك، لذلك لا يُبلغ إلا عن التباين مع حالة المفتاح.

ماذا يحدث عندما تفحص الشيفرة مفتاحاً محذوفاً؟

يعيد SDK بصمت القيمة false أو undefined، فقد تتغير الميزة دون أي خطأ.

هل يُبلغ عن المفاتيح التي يجب إزالتها؟

نعم. تُعامَل المفاتيح القديمة المطروحة بالكامل كمرشحين للتنظيف، ولها تقرير خاص.

التفاصيل

الوصف الأصلي من المؤلف

Signals scout for PostHog feature flags. Watches the flag roster and the `$feature_flag_called` stream for evaluation cliffs, ghost flags, response-distribution shifts, and flag debt.

repo: PostHog/posthog

الشعبية

نجوم GitHub
41k
الترتيب
#6929
الترخيص
—
آخر تحديث
2‏/11‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة