Skip to main content
AI coding agents can write scripts, automate data pipelines, trigger training jobs, and export deployments with the Edge Impulse Studio API. They can also:
  • Upload and relabel training data without touching the UI
  • Trigger and monitor training jobs from the command line
  • Export deployment artifacts (C++ library, Arduino, TFLite, and others)
  • Query project metadata, sample lists, and job status
  • Write bulk automation scripts for repetitive tasks like relabelling or batch uploads
This tutorial walks you through installing a single Agent Skill (edge-impulse) that any agent supporting the Agent Skills specification can load. The skill content is the same regardless of the agent; only the install path differs.
Ready to see it in action? The Motion recognition using an agent end-to-end tutorial walks you through a complete Edge Impulse project workflow — from data upload and model training/testing, to deployment onto a device — using only natural language commands.
Claude Code terminal session using the edge-impulse skill to interact with an Edge Impulse project

Claude Code running the /edge-impulse skill to download and run the latest deployment

Create the skill file

An Agent Skill is a markdown file with required name and description fields in YAML frontmatter, followed by instructions the agent loads on demand. Copy the file below — you will save it to a different path depending on which agent you use.
SKILL.md
The edge-impulse skill is one large skill covering the Edge Impulse Studio and Ingestion API surface. As your usage grows, consider splitting it into more focused skills (or companion skills) such as upload-ei-data, label-ei-data, train-ei-model, and deploy-impulse so each one loads less context and triggers more precisely.

Install the skill

Save the file above to one of the paths below. Skills can be installed globally (available across all projects) or per project. Refer to your agent’s documentation if you use a tool not listed here.

Use the skill

Ask your agent to work with your Edge Impulse project. The agent loads the skill automatically when your prompt matches, or you can invoke it explicitly with /edge-impulse:

/edge-impulse list all training samples labeled "unknown" and delete them

/edge-impulse upload every .wav file in ./data as testing samples with label "noise"

/edge-impulse start a training job and wait for it to finish, then show accuracy

/edge-impulse export a C++ library deployment and save it to ./build

To see a selection of example prompts, take a look at our Prompt library.
Claude Code terminal session using the edge-impulse skill to interact with an Edge Impulse project

Claude Code running the /edge-impulse skill

Set your credentials

Set environment variables so your agent never needs to ask for credentials:
Find your API key under Dashboard → Keys and your project ID under Project Info in Edge Impulse Studio.
Claude Code terminal running the /edge-impulse skill

Adding an Edge Impulse API key and project ID with the /edge-impulse skill in Claude Code

Optimize the skill for your workflow

If you find yourself making the same API calls repeatedly — listing samples, checking job status, fetching project info — ask the agent to add those patterns directly to the skill file so it can handle them faster next time:

Read ~/.claude/skills/edge-impulse/SKILL.md and add a section at the bottom with a ready-made Python snippet for listing all training samples grouped by label, since I use this at the start of every session.

Look at my last few Edge Impulse prompts and update ~/.claude/skills/edge-impulse/SKILL.md with any patterns I use frequently that aren't already covered.

The skill file is just markdown — anything you add becomes part of the agent’s persistent context for every future session.
Keep SKILL.md under 500 lines. Move detailed reference material — long endpoint tables, full request/response examples, language-specific snippets — into separate files in the skill directory (such as reference.md or examples.md) and link to them from SKILL.md. Supporting files load only when the agent decides it needs them, so the main skill stays focused and cheap to load.

Tips

  • Ask for error handling. The Edge Impulse API returns { "success": false, "error": "..." } on failure. Ask the agent to check this field in every response.
  • Reference the OpenAPI spec for edge cases. For endpoints not covered by the skill, direct the agent to https://studio.edgeimpulse.com/openapi.yml for the full schema.

Next steps