Skip to content

Spike: flagsmith skills #67

Open
Open

Description

@khvn26

We'd like to add a skills installer for all popular LLM harnesses, but first we need to understand what basic set of skills we'd like to ship with.

Activity

  1. added theissue type on Jul 31, 2026
  2. linear-code commented on Nov 17, 2026

    @linear-code
  3. 0xvikram commented on Nov 27, 2026

    @0xvikram

    One candidate for the basic set: a staged rollout with a kill switch, built entirely on the CLI.

    ship-safely takes a change from "behind a flag" to either "on for everyone, flag archived" or "off for everyone, with an incident note":

    • start 5% creates the feature (off), a feature-specific percentage-split segment and a segment override; widen 25 → 50 → 100
    • each stage has a gate: it waits until flagsmith evaluate --identity actually serves the new share (edge propagation takes a few seconds), then runs the user's health command
    • a failed gate disables the override and the environment default, and writes an incident note with the resume command
    • finish turns the default on and deletes the rollout segment; archive refuses while git grep still finds the flag
    • every mutation refuses without --approved, so the agent has to ask a human for each production step

    Every command prints one JSON line. Measured on Flagsmith Cloud with Claude Code (Opus 5.5), same rollout with and without the skill: 9 vs 19 turns, 1,638 vs 5,127 output tokens, and the run without the skill left the default off and the segment at 100%.

    Building it turned up one CLI bug, fixed in #122: segment create --rules couldn't create a percentage-split segment.

    Demo (2:36): https://youtu.be/yktG5Ck0wxo

  4. Akshats-git commented on Nov 29, 2026

    @Akshats-git

    Toggle Wars entry for the experimentation-skill slot: flagsmith-experiment-designer (https://github.com/Akshats-git/flagsmith-experiment-designer).

    It takes an agent from "A/B test the free-shipping bar" to a running Flagsmith experiment. It reads the code to choose the exposure point and identity, reuses the app's existing analytics events as metrics (plus a value metric and a guardrail), and instruments the app. Then it rehearses the real app against a non-production environment and refuses a production launch without a passing rehearsal receipt for that exact plan and code. After launch it probes production with flagsmith eval to confirm the live split.

    Verified on Flagsmith Cloud (including one interactive Claude Code run: 776k tokens, $0.28, plan approved by a human, rehearsal passed, launched at 10% and live-verified, then rolled back) and local self-hosted (e2e: 24 checks in CI). 12 headless runs, 3 per arm per scenario, same model and prompt: with the skill 9/9 on every run, 0.53M / 0.59M total tokens; without it 7/9 and 6/9, 2.76M / 1.99M tokens. The no-skill agent missed the value metric (6/6 runs), keyed variants (6/6) and sometimes the guardrail. It did not miss the persisted-visitor-id bug, so the benefit is experiment quality and efficiency, not that catch. Small n, our own grader, one model; caveats and the benchmark mistakes we found are in the README.

    CLI findings while building it: feature create --variants drops variant keys (#126); there are no experiment/metric commands (everything goes through flagsmith api); flagsmith eval is a handy transient production probe (the reason field shows experiment enrolment); a never-started experiment can't be completed through the API, only deleted.

    Happy to adapt it to whatever shape flagsmith skills takes.

    Demo video (2:27): https://youtu.be/OozUSu-6OaE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions