Agent skills
Millimetry publishes agent skills: short instructions a coding agent loads when a task needs them. With them installed, an agent sets Millimetry up the way these docs describe, in one go. Connected to the MCP server with a token that can change settings, it creates the app or site (with the site’s origins, read from your project), installs the SDK or the tracker with the real key, picks and names the events that matter by the naming guide, saves the funnel, and checks the first events arrive. It keeps personal data out of properties, and it can read your numbers afterwards.
The quickest start is Connect your AI agent: a token, the MCP server and these skills, step by step for Claude Code, Codex, Cursor and VS Code. This page is about the skills themselves.
Install
Section titled “Install”From your project’s root:
npx skills add https://docs.millimetry.appThe skills CLI asks which skills to install and for which agents. It supports Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf and dozens more. Skills go into the project (for example .claude/skills/ or .agents/skills/), so committing them gives your whole team the same instructions. Add -g to install them for every project on your machine instead.
Then ask your agent, for example:
- “Add Millimetry to this project.”
- “Track the onboarding funnel and the paywall.”
- “Add our staging domain to the site’s origins.”
- “Report the AI agents that call our MCP server.”
- “How did the paywall convert last week, by app version?”
Other ways to run it:
# See the skills without installing anythingnpx skills add https://docs.millimetry.app --list
# One skill, without questionsnpx skills add https://docs.millimetry.app --skill millimetry -y
# Fetch newer versions of the skills you havenpx skills update
# With pnpm or Bun instead of npmpnpm dlx skills add https://docs.millimetry.appbunx skills add https://docs.millimetry.appThe skills CLI sends its own anonymous install telemetry. Set DISABLE_TELEMETRY=1 to turn it off.
The skills
Section titled “The skills”| Skill | What it does | Ask it to |
|---|---|---|
millimetry |
Creates the app or site in Millimetry; adds the Swift SDK, the Android SDK or the web tracker and configures it; picks, names and adds the events, saves the funnel and checks events arrive; handles opt-outs, proxied installs and the App Store and Play privacy answers; and changes anything in Millimetry itself, from origins and keys to members and the plan | “Add analytics to this app”, “track signups”, “invite Sam as a viewer” |
millimetry-agents |
Reports the AI agents that use your API, MCP server or site, with the middleware or the edge Worker | “Show which AI agents call our API” |
millimetry-loops |
Makes the loops you run report themselves: a routine, an n8n flow, a scheduled Worker, a cron job, each run with its steps and outcome | “Report this routine’s runs to Millimetry” |
millimetry-stats |
Reads your numbers through the MCP server or the stats API: visitors, breakdowns, funnels, paths, live sessions, agents and usage | “Which countries grew this month?” |
Until a task calls for a skill, your agent keeps only its one-line description in mind, so installing all three costs little. Install only the ones you need if you prefer.
To ask about your numbers from an assistant that doesn’t run commands, or without the skill, connect the MCP server instead. It answers the same questions as millimetry-stats.
Keys, secrets and tokens
Section titled “Keys, secrets and tokens”The skills tell your agent which values are which:
- App and site keys (
ak_…,wk_…) are public, so they are fine in your code. An agent takes them from Millimetry through the MCP server, or asks you, and never invents one. - Forwarding secrets (
fs_…) stay on your server. Through the MCP server an agent can issue one and put it straight into your secret store or a git-ignored env file; without it, the agent wires the code to an environment variable and you set the value. - API tokens (
mt_…) are read-only, or can change settings as the person who made them. Agents never ask you to paste one into the chat: the MCP command or your own shell (MILLIMETRY_API_TOKEN) carries it.
Without the CLI
Section titled “Without the CLI”The skills are plain folders, listed at /.well-known/agent-skills/index.json with one .tar.gz each. To install one by hand, unpack it into your agent’s skills folder:
mkdir -p .claude/skills/millimetrycurl -sSL https://docs.millimetry.app/.well-known/agent-skills/millimetry.tar.gz \ | tar -xz -C .claude/skills/millimetryUse .agents/skills/ instead of .claude/skills/ for Codex, Cursor and most other agents.