Updated 1d ago
by dif-sh
dif
Feature flags and A/B tests as Markdown files in your repo. dif build compiles them to a typed TypeScript client for Next.js, React, and SvelteKit.
125 GitHub stars (125)
+98 in 8 days
| Period | New stars |
|---|---|
| Oct 9 | 0 |
| Oct 10 | 0 |
| Oct 11 | 0 |
| Oct 12 | 0 |
| Oct 13 | 0 |
| Oct 14 | 0 |
| Oct 15 | +3 |
| Oct 16 | +95 |
- 4 skills (4 skills found in its SKILL.md files)
- 0 forks (0 forks)
- 1d ago last update (Last updated 1d ago)
Install
Skills CLI
npx skills add dif-sh/dif
Asks which skills and agents to install. Just one: npx skills add dif-sh/dif --skill dif-author-experiment — add -g for every project.
Claude Code
git clone https://github.com/dif-sh/difcp -r "dif/skills/dif-author-experiment" ~/.claude/skills/
Copies the dif-author-experiment skill into ~/.claude/skills/ for every project (use .claude/skills/ for one project). Repeat for the other skills listed below.
Plugin
/plugin marketplace add dif-sh/dif
Run inside Claude Code if the repository ships a plugin marketplace, then pick plugins from /plugin.
Skills can run code on your machine — read the SKILL.md first.
What it does
In the author's own words, from each skill's SKILL.md.
-
dif-author-experiment
Authoring and iterating on dif.sh experiments — drafting frontmatter, choosing variants and weights, declaring audiences, and validating the file. Use whenever the user wants to create, draft, edit, or fix a dif experiment, or mentions A/B test, variant, audience, hypothesis, surface, exclusion group, or the commands dif new, dif validate, or dif build.
skills/dif-author-experiment/SKILL.md on GitHub (opens in a new tab) -
dif-conclude-experiment
Concluding a dif.sh experiment — writing a Decision that becomes a useful Learning, archiving the file, and running dif conclude. Use when the user wants to conclude, finish, ship, wrap up, or document the outcome of an experiment, or mentions writing a decision, recording a learning, or the command dif conclude.
skills/dif-conclude-experiment/SKILL.md on GitHub (opens in a new tab) -
dif-docs
Reference for dif.sh — feature flags and A/B experiments stored as Markdown files in the repo and compiled by `dif build` into a typed TypeScript client. Use when adding feature flags, a percentage rollout, or an A/B test to a JavaScript or TypeScript app (Next.js, React, SvelteKit, plain TS), when the user wants flags as code instead of a dashboard, or when the user mentions dif, dif/config.yaml…
skills/dif-docs/SKILL.md on GitHub (opens in a new tab) -
dif-generate-surfaces
Generating the initial set of dif.sh surfaces by reading the app's structure and product context. Use when the user wants to set up, scaffold, populate, auto-create, or propose surfaces for a dif project — especially right after `dif init`, when `dif/surfaces/` is empty or sparse, or when `dif new` fails with "surface does not exist". Reads the codebase (routes, pages, README, package.json) plus…
skills/dif-generate-surfaces/SKILL.md on GitHub (opens in a new tab)
No skill matches that filter.
Review before you install
A skill is a set of instructions and scripts your agent will follow, and it can run code on your machine. Read the SKILL.md and any scripts first — this listing is not a security review.