• Unified API
  • Mobile SDK
  • Connection Widget
  • Streaming
  • Lab Reports API
  • Graph API
  • Health Scores
  • Health Rewards
  • Planned Workouts
  • Predictions
  • Lab Testing
  • DNA Testing
  • AI Interface
  • Enterprise
  • Insurance
  • Integrations
  • Research
  • Podcast
  • Blog
  • Reports
  • Events
  • Documentation
  • Community
  • Example apps
  • Wearable Data
  • About
  • Customers
  • Partners
  • Startup Accelerator
  • Careers
  • Support
  • Pricing
Terra
Pricing
Become an integrationGet started
next ventures
pioneer fund
samsung next
y combinator
general catalyst

The world's best health apps run on Terra data

Get started
ProductsIntegrationsAI InterfaceAuthenticationMobile DevelopmentDocumentationGraphAPIPredictionsDNA Testing
DocumentationAPISDKQuickstartExample Apps
CommunityBlogResearchCommunityPodcastAuthorsGithub
CompanyAboutCareersCustomersStartup AcceleratorBecome an IntegrationCookies PolicyGDPRPrivacy PolicyTerms of Purchase
© Terra API. 2026 — All rights reserved.

Cookie Preferences

Essential CookiesAlways On
Advertisement Cookies
Analytics Cookies

Crunch Time: Embrace the Cookie Monster Within!

We use cookies to enhance your browsing experience and analyse our traffic. By clicking “Accept All”, you consent to our use of cookies according to our Cookie Policy. You can change your mind any time by visiting out cookie policy.

Cookies Policy
All articles

In this article:

  • 01Ten skills, with the webhook and data rules first
  • 02The MCP servers keep the agent on the current docs
  • 03One command, whichever agent you use
  • 04Try it on your next feature
All articles

Product Updates

Terra API agent skills for building health products

Give Claude, Cursor or Copilot the Terra API skills so your agent builds the integration from the current docs and gets the details right.


Vanessa Neeff
Vanessa Neeff

15 October 2026

Terra API agent skills for building health products
TL;DR: Terra API now ships ten agent skills and a docs MCP server, so Claude, Cursor, Copilot and any agent that reads the Agent Skills standard can build your integration from the current API instead of from what the model remembers. Install them with one command, npx skills add tryterra/agent-skills, or let the Terra CLI set up every agent on your machine with terra agent setup. The skills carry the rules that matter most across real integrations: verify webhook signatures on the raw body, acknowledge inside the timeout, dedupe chunked deliveries, and never overwrite a score with a null.

Coding agents are good at the parts of an integration they have seen thousands of times. They are much less reliable on an API with a long list of endpoints, a large number of health data sources, and a data model that appears rarely in training data. Terra API is exactly that kind of surface. The agent skills give the agent the current rules instead of leaving it to guess.

Ten skills, with the webhook and data rules first

The tryterra/agent-skills repository ships ten skills, each covering one part of the product:

SkillWhat it covers
terra-unified-apiThe core API: webhooks and signature verification, data idempotency, connection lifecycle, multi-device data, testing
terra-mobile-sdkApple Health, Samsung Health and Health Connect on iOS, Android, React Native and Flutter
terra-streamingReal-time websocket data and the Real-Time SDK on iOS, Android, React Native, Flutter and Wear OS
terra-modelsRunning health models such as Sleep Window, Menstrual Cycle Tracker and Smart Fill over a connected user's data
terra-vantageBlood and DNA test kit ordering, fulfillment tracking and FHIR result delivery
terra-planned-workoutsPushing structured interval workouts, with targets, to watches
terra-routesPushing GPS courses with waypoints to Garmin, COROS and Wahoo
terra-lab-reportsParsing lab report PDFs and images into standardised biomarkers, with LOINC and UCUM codes
terra-cliReading and changing account configuration from the terminal instead of the dashboard, and reaching any endpoint directly
terra-mcpManaging the account over the admin MCP server from chat assistants, with dashboard approval for sensitive changes

The one most integrations start with is terra-unified-api. It carries 21 rules in five categories, ranked by impact, so an agent reads the webhook and data rules first. Four examples, each linked to the rule itself:

  • Verify the signature before parsing. Compare the terra-signature HMAC against the raw request body. Parsing the JSON first changes the bytes, and the check stops meaning anything.
  • Acknowledge inside the timeout. Return a 200 within the eight-second default window and do the real work asynchronously. A slow handler gets retried, and a retry looks exactly like new data.
  • Dedupe deliveries. Key on X-Terra-Trace-Id, because large payloads arrive in several chunks that share one reference.
  • Never overwrite a score with a null. Standard fields carry a superset guarantee and enrichment scores do not, so COALESCE the new value with the stored one and a user never loses a number they have already seen.

The rules are written as explicit instructions rather than descriptions, because that is what changes agent behaviour. "Only overwrite if the timestamp is newer" produces better code than a paragraph explaining why timestamps matter. Every rule comes from a pattern that shows up across real integrations, and every rule file says what to do and why.

Get the latest Terra Research reports and insights every week as soon as they're published.

By continuing, I agree to the Privacy Policy and Terms of Service.

The MCP servers keep the agent on the current docs

Skills carry judgment about how to use the API. A model's memory of field names, endpoints and schemas is frozen at its training cutoff, and the live specification is not, so the agent also needs a way to read the current docs while it works. Two MCP servers do that. The docs MCP server at https://docs.tryterra.co/~gitbook/mcp answers lookups against the current documentation, and the dashboard setup modal installs it for your editor as terra-docs. The Terra API admin MCP server goes further: it lets the agent manage your account, with approval in the dashboard for sensitive changes, and it answers documentation questions through its docs_ask tool. Either way the agent is reading the API as it is today, not as the model remembers it.

Skills load only when a task matches, so the agent spends context on Terra API knowledge at the moment it needs it. A quiet first session is normal.

One command, whichever agent you use

Anthropic introduced the Agent Skills format in October 2025 and opened it as a standard at agentskills.io in December 2025. Dozens of tools now read the same SKILL.md files, including Claude Code, Cursor, GitHub Copilot, Gemini CLI and Codex, so one install works everywhere.

The recommended path is the Terra CLI, which detects the agents on your machine and writes the skills where each one reads them. Install the CLI first, then run the setup:

curl -fsSL https://cli.tryterra.co/install.sh | sh
terra agent setup

Homebrew (brew install tryterra/tap/terra) and npm (npm install -g @tryterra/cli) work too. Run terra agent setup --status-only to see what is installed without writing anything. Once the skills are in place, a new session only needs the prompt "Get started with Terra API": the agent checks that the CLI is signed in, finds your environments, and reports which providers are on and where webhooks go.

Or install every skill directly with skills.sh:

npx skills add tryterra/agent-skills

The same set ships as a plugin for Claude Code, Codex and Cursor. The plugin also connects your agent to your Terra API account through the CLI, so it can configure webhooks, providers and keys without you clicking through the dashboard, and it asks before any sensitive change. In Claude Code:

/plugin marketplace add tryterra/agent-skills
/plugin install terra@terra

In Codex, run codex plugin marketplace add tryterra/agent-skills and pick Terra API in the plugins browser. In Cursor and other Agent Plugin hosts, run npx plugins add tryterra/agent-skills. If the CLI is missing or logged out, the plugin offers to install it and log you in, and it never does so without asking. The plugin updates on its own; skills installed with npx skills add do not, so run npx skills update -y to pull the latest versions.

The dashboard has a setup modal in the navigation bar with a copy-paste command or an install link for Claude Code, Codex, VS Code and Cursor, including the MCP configuration. All of the skills are public on GitHub under an MIT licence, so you can read every rule before your agent touches your code, and open an issue when one disagrees with what you see in production.

Try it on your next feature

The quickest test is your next feature: install the skills, point your agent at it, and read the diff it produces. The setup guide and the per-agent instructions are at docs.tryterra.co/developer-tools/terra-cli/coding-agents.

Previous

Continue reading

  • Eight Sleep data now flows through Terra API

    Members choose which apps receive their Eight Sleep sleep stages, heart rate, HRV, respiratory rate, snoring and sleep score, delivered through Terra API's sleep model.

    7 October 2026

  • Use synthetic data to rapidly prototype health products

    Synthetic users let you put your product through its paces with every health scenario, from marathoners to light sleepers, without waiting for those exact users to show up.

    18 September 2026

  • How Terra Real-Time Streaming Works, and What It Costs

    We often get asked how real-time streaming works and what it costs. Here's everything explained in one place, including pricing and example payloads.

    16 September 2026