Coding agents
An agent needs three things to ship a feature behind a flag for you: a way to act on your account, the procedure, and a protocol it speaks. The CLI provides all three.
Then ask: ship my first Gates flag. The agent installs @withgates/expo, wraps your root component with the provider and the right environment key, creates the flag through the CLI and reads it with useFlag. Everything it does is logged against your account; nothing it can reach is destructive.
The skill
gates skill install writes the Gates skill into your project:
| Agent | File |
|---|---|
| Claude Code | .claude/skills/gates/SKILL.md |
| Cursor | .cursor/rules/gates.mdc |
| Vendor-neutral | .agents/skills/gates/SKILL.md |
The skill is the procedure, not a tutorial: check gates whoami first and stop if it fails, never ask for a password, link the project, install, wire the provider with the key from gates env keys, create the flag, read it with <Flag> or useFlag, verify, roll out. It also carries the rules an agent must not break: evaluation never waits on the network, <Flag> fails closed, a kill switch is gates flags kill and not a deletion, no production changes without saying so.
The same text is at usegates.app/skill.md. Paste the URL into an agent that cannot run the CLI.
The MCP server
--mcp adds the server to .mcp.json (Claude Code) and .cursor/mcp.json (Cursor), merging with what is there:
The server reuses the CLI’s session. Tools: list_projects, get_setup, get_environment_keys, list_flags, create_flag, kill_flag, restore_flag, set_rollout, list_releases. Resource: gates://skill. There is no delete, no project, workspace or billing mutation. When nobody is signed in, every tool answers with the login command so the agent can tell you what to do.