NewsCrawler.org

How a Claude Code Skill finds unused Firebase Remote Config flags to remove

Remote Config棚卸してますか?
Image: zenn.dev

The SODA mobile team, which mainly develops the SNKRDUNK app, uses Firebase Remote Config (RC) to build Feature Flags[1], so unfinished features can be merged into the Develop branch. Flags left in the code make the codebase grow, and flags left in Firebase make the console harder to use. A code flag can be removed once the feature has been public for a long time and will not be withdrawn; the author fixed this at one month, with a human making the final decision. A Firebase parameter can be removed only after the version that removed the code reaches the forced update minimum, which is also set through RC[2][3].

The author built a Skill for Claude Code. The agent reads RC values through rc-get.sh, a wrapper that allows only fetching, because Firebase CLI[4] itself is blocked by deny settings. It compares the current RC settings with those from 30 days earlier and reads git log and tags to find the version that removed each flag. A Python script, analyze.py, makes the decision, and the agent then proposes one of four actions: do nothing, remove code, remove the Firebase parameter, or ask a human.

When the author ran the Skill on the production GB (global) app, the forced update minimum was 1.24.0. It found 3 cases for Firebase parameter removal, 3 cases for code removal, 4 cases waiting for a higher minimum, and 1 irregular case. The author then removed 2 code flags and 3 Firebase parameters, and later removed the rest after a forced update.

Read the original zenn.dev

Sources

  • Zenn JA

    Remote Config棚卸してますか?

    6 likes0 bookmarks0 comments

Published: First seen: Читать по-русски

Open as a page