Langsung ke konten
Skillpedia
Deploy & cloud (DevOps)41k ยท #6929

signals-scout-feature-flags

Fungsinya

Scout ini memeriksa feature flag Anda untuk panggilan yang tiba-tiba turun, kunci flag yang sudah tidak ada, dan flag lama yang seharusnya dihapus. Ditujukan untuk tim yang menggunakan banyak feature flag dan ingin menghindari kerusakan diam-diam.

Kapan dipakai

  • โœ“Saat feature flag yang dulu sering dipanggil tiba-tiba berhenti dipanggil.
  • โœ“Saat kode memeriksa kunci flag yang sudah tidak ada, sehingga diam-diam mendapatkan nilai default.
  • โœ“Saat sebuah flag telah sepenuhnya diluncurkan dalam waktu lama dan masih membuat kode berantakan.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/PostHog/posthog/blob/master/products/signals/skills/signals-scout-feature-flags/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit โ†’

Contoh permintaan ke AI

โ€œApakah ada feature flag saya yang dipanggil lebih sedikit dari sebelumnya, atau diperiksa oleh kode yang tidak lagi cocok dengan flag?โ€

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Scout membandingkan lalu lintas evaluasi setiap flag dengan pengaturannya. Ketidakcocokan, seperti panggilan yang turun padahal flag aktif, diperlakukan sebagai sinyal, dan flag lama diteruskan ke pemeriksaan pembersihan.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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

Pertanyaan umum

Apakah pertumbuhan trafik dihitung sebagai masalah?

Tidak. Lalu lintas flag mengikuti trafik produk Anda, sehingga hanya ketidakcocokan dengan status flag yang dilaporkan.

Apa yang terjadi saat kode memeriksa flag yang sudah dihapus?

SDK diam-diam mengembalikan false atau undefined, sehingga fitur dapat berubah tanpa error apa pun.

Apakah scout melaporkan flag yang seharusnya dihapus?

Ya. Flag lama yang sudah sepenuhnya diluncurkan diperlakukan sebagai kandidat pembersihan dan mendapat laporan tersendiri.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
41k
Peringkat
#6929
Lisensi
โ€”
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • โ€ฆ

Skill lain dari repositori ini

Skill serupa