Hacker
Shoury Rana
@shoury_rana
Projects
flagsmith-django-migrator
Flagsmith Experimentation HackathonNov 2026
I built flagsmith-django-migrator, a spec-compliant Agent Skill (agentskills.io) and deterministic Python AST toolkit that migrates legacy environment-variable and settings.py-based Django feature switches (os.getenv, os.environ.get, and FEATURE_FLAGS dicts) to Flagsmith. Problem it solves: Many Django backends start with ad-hoc boolean flags in settings.py and .env files, which require redeploys to toggle and lack centralized control. Migrating them manually—or letting an LLM rewrite source files token-by-token—is error-prone, strips comments, breaks @override_settings tests, and risks accidentally migrating secrets (STRIPE_API_KEY, SECRET_KEY, DATABASE_URL). flagsmith-django-migrator automates the entire migration safely with zero-token AST span edits, behavior-preserving defaults, and strict Development-only guardrails. Who uses it & how it works: Backend/Django developers using coding agents (Antigravity, Claude Code, Cline, Cursor). The agent follows SKILL.md to run deterministic Python scripts (scan_django_flags.py -> validate_plan.py -> human [y/N] approval -> provision_flags.py -> apply_migration.py -> pytest verification -> generate_report.py).