Hacker
Punyansh Singla
@punyanshsingladev
Projects
Flagsmith
Flagsmith Experimentation HackathonNov 2026
I built flagsmith-safe-rollout, an agentskills.io-compliant Agent Skill on top of Flagsmith CLI v2.0.0 (with a 66-line SKILL.md, on-demand CLI reference, and 5 deterministic shell scripts): preflight.sh: Read-only cross-environment drift audit (--all or single flag) that classifies Production as CRITICAL, detects Change Requests and identity overrides, and compresses CLI JSON via jq (~85% smaller payload: 850 B vs. 5,661 B). simulate.sh: Runs transient user/trait what-if checks (flagsmith evaluate --trait without --persist). snapshot.sh: Saves an atomic backup of default state, typed values, variant IDs/weights, and sorted segment overrides before any change. Guarded Apply + verify.sh: Enforces explicit human confirmation before passing --yes on Production, then verifies live SDK resolution with automatic Edge cache propagation retries and flagsmith eval --test. rollback.sh: Deterministic 1-command rollback restoring typed values, multivariate variant IDs, and segment override priorities, plus a 9-test automated suite and live web preview app. What Problem It Solves When AI coding agents manage feature flags with raw CLI commands, four things go wrong: Context bloat: Dumping raw flagsmith flag list --json across environments floods the LLM's context window with thousands of tokens. Unsafe Production changes: Agents can blindly pass --yes or toggle Production without checking Staging drift, Change Requests, or override rules. Polluted test data: Evaluating user traits with --persist mutates real identity records. Error-prone rollbacks: Manually reverting multivariate weights (by variant ID) and segment override priorities during an incident is slow and fragile. flagsmith-safe-rollout turns any coding agent into a production-safe release workflow from pre-flight audit to verified 1-command rollback.