# feature-flags

> Claude/Codex skill by [@getsentry](https://omgskills.com/library/getsentry/index.md) · 46k stars · Updated 2026-10-28

Gate a Sentry feature behind a FlagPole feature flag. Use when adding a feature flag, registering a flag in temporary.py, checking a flag from Python or the frontend, enabling a flag in tests, or asking where FlagPole rollout config lives. Trigger on "add a feature flag", "gate this behind a flag", "register a flag", "features.has", "api\_expose", "OrganizationFeature", "ProjectFeature", "FlagPole".

Tags: apm, crash-reporting, crash-reports, csp-report, devops, django, error-logging, error-monitoring, fair-source, hacktoberfest, monitor, monitoring, python, sentry, tag-production

## Install

```sh
git clone https://github.com/getsentry/sentry /tmp/sentry && ln -s /tmp/sentry/.agents/skills/feature-flags ~/.claude/skills/feature-flags
```

## From README

Feature Flags (FlagPole) New features should be gated behind a feature flag. Register the flag in src/sentry/features/temporary.py: Use apiexpose=True if the frontend needs to check the flag. Use ProjectFeature and a projects: prefix for project-scoped flags. Python check: Frontend check (requires apiexpose=True): Tests: Rollout: FlagPole YAML config lives in the sentry-options-automator repo, not here. Removal: once the rollout is finished, the flag comes out in a fixed three-PR order — see the remove-option-or-flag skill. See https://develop.sentry.dev/feature-flags/ for full docs.

## Links

- HTML page: https://omgskills.com/library/getsentry/sentry/dot-agents/skills/feature-flags/
- GitHub: https://github.com/getsentry/sentry
- Author: [@getsentry](https://omgskills.com/library/getsentry/index.md)

## More from this repo

- [design-system](https://omgskills.com/library/getsentry/sentry/design-system/index.md) — Guide for using Sentry's layout and text primitives.
   - [@getsentry](https://omgskills.com/library/getsentry/index.md) · 46k stars
- [backend-conventions](https://omgskills.com/library/getsentry/sentry/dot-agents/skills/backend-conventions/index.md) — Sentry backend conventions for logging, tracing/spans, span/tag attribute naming, metrics tags, and the options system.
   - [@getsentry](https://omgskills.com/library/getsentry/index.md) · 46k stars
- [generate-frontend-forms](https://omgskills.com/library/getsentry/sentry/generate-frontend-forms/index.md) — Guide for creating forms using Sentry's new form system.
   - [@getsentry](https://omgskills.com/library/getsentry/index.md) · 46k stars
