본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)41k · #6929

signals-scout-feature-flags

하는 일

이 스카우트는 기능 플래그의 호출이 갑자기 줄거나, 더 이상 존재하지 않는 플래그 키가 있거나, 제거해야 할 오래된 플래그가 있는지 확인합니다. 기능 플래그를 많이 쓰면서 조용한 깨짐을 피하려는 팀을 위한 것입니다.

사용하는 경우

  • ✓예전에는 자주 호출되던 기능 플래그가 갑자기 호출되지 않을 때.
  • ✓코드가 더 이상 존재하지 않는 플래그 키를 확인해서, 조용히 기본값을 받을 때.
  • ✓플래그가 오랫동안 완전히 출시되었는데도 코드를 어수선하게 할 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/PostHog/posthog/blob/master/products/signals/skills/signals-scout-feature-flags/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“기능 플래그 중에 이전보다 호출이 줄었거나, 플래그 상태와 맞지 않는 코드가 확인하는 것이 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

각 플래그의 평가 트래픽을 설정과 비교합니다. 활성 플래그의 호출이 줄어드는 것 같은 불일치는 신호로 취급하며, 오래된 플래그는 정리 점검에 넘깁니다.

기술 내용 (원본 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
라이선스
—
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬