Servo Dog logo

Servo Dog

Organization
espressif
servo_dog

Control a four-servo robotic dog named Servo Dog through Lua PWM actions, command calls, and a Lua HTTP Server web control panel.

Overview

Publisherespressif
Repositoryesp-claw-skills-lab
Skill nameservo_dog
Stars
37
Forks
19
Bundled files
6
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 6 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by espressif on GitHub. Read the source before you install it.

Installation

Install the Servo Dog AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/espressif/esp-claw-skills-lab/tree/master/skills/servo_dog
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/espressif/esp-claw-skills-lab.git /tmp/esp-claw-skills-lab
mkdir -p .claude/skills
cp -r /tmp/esp-claw-skills-lab/skills/servo_dog .claude/skills/servo_dog
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Servo Dog in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Servo Dog on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Servo Dog is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Servo Dog

Use this skill when the user asks to control a four-servo robotic dog, start the Servo Dog web control panel, calibrate dog leg servo offsets, or run dog actions such as forward, backward, turn, bow, shake hand, jump, or retract legs.

This skill controls four servos directly from Lua with mcpwm. Default GPIOs are:

  • fl_gpio: 1
  • fr_gpio: 2
  • bl_gpio: 41
  • br_gpio: 42

Default neutral angles are compatible with the original servo dog controller:

  • fl_neutral: 70
  • fr_neutral: 110
  • bl_neutral: 110
  • br_neutral: 70

Start Web Control

使用 lua_run_script_async 启动服务器。只有用户明确要求替换同名任务时才使用 replace: true。 It starts the PWM worker, mounts the bundled web UI, and registers HTTP APIs.

json
{
  "path": "{CUR_SKILL_DIR}/scripts/servo_dog_server.lua",
  "timeout_ms": 0,
  "name": "servo_dog_server",
  "exclusive": "servo_dog",
  "replace": false,
  "args": {
    "app_id": "servo_dog",
    "queue_name": "servo_dog_cmd",
    "web_root": "{CUR_SKILL_DIR}/assets",
    "worker_path": "{CUR_SKILL_DIR}/scripts/servo_dog_worker.lua",
    "worker_args": {
      "fl_gpio": 1,
      "fr_gpio": 2,
      "bl_gpio": 41,
      "br_gpio": 42
    }
  }
}

After it starts, open:

text
/lua/servo_dog/

The page uses:

  • GET /api/lua/servo_dog/state
  • POST /api/lua/servo_dog/control
  • GET /api/lua/servo_dog/start_calibration
  • GET /api/lua/servo_dog/exit_calibration
  • POST /api/lua/servo_dog/adjust

Command Control

For command or agent control, keep the server running and call:

json
{
  "path": "{CUR_SKILL_DIR}/scripts/servo_dog_command.lua",
  "args": {
    "queue_name": "servo_dog_cmd",
    "action": "forward"
  }
}

If the command script reports that the controller is not running, start the web control script first.

Actions

Supported action names:

  • installation
  • idle
  • forward
  • backward
  • turn_left
  • turn_right
  • lay_down
  • bow
  • lean_back
  • bow_lean
  • sway_back_forth
  • sway
  • shake_hand
  • poke
  • shake_back_legs
  • jump_forward
  • jump_backward
  • retract_legs

Movement aliases:

json
{"move":"F"}
{"move":"B"}
{"move":"L"}
{"move":"R"}

Original web action id aliases:

json
{"action":"1"}
{"action":"2"}
{"action":"3"}
{"action":"4"}
{"action":"5"}
{"action":"6"}
{"action":"7"}
{"action":"8"}
{"action":"9"}
{"action":"10"}
{"action":"11"}
{"action":"12"}

These map to lay_down, bow, lean_back, bow_lean, sway_back_forth, sway, shake_hand, poke, shake_back_legs, jump_forward, jump_backward, and retract_legs.

Optional Action Args

Some actions accept overrides:

json
{
  "action": "forward",
  "args": {
    "repeat_count": 3,
    "speed": 90
  }
}

Supported fields are:

  • repeat_count: positive integer for repeated gait/action cycles.
  • speed: higher values shorten interpolation delay.
  • hold_time_ms: hold duration for actions such as bow, lean_back, and shake_hand.
  • angle_offset: offset used by idle and sway.

Calibration

Start calibration from the web UI or send:

json
{"action":"installation"}

Adjust one servo offset:

json
{
  "path": "{CUR_SKILL_DIR}/scripts/servo_dog_command.lua",
  "args": {
    "queue_name": "servo_dog_cmd",
    "type": "adjust",
    "servo": "fl",
    "value": 3
  }
}

Valid servo ids are fl, fr, bl, and br. Values are clamped to -25..25 and saved under the DATA root in servo_dog/config.json.

Extension

扩展动作时,在源码包中修改对应的 {CUR_SKILL_DIR}/scripts/servo_dog_worker.lua 后重新部署;不要直接修改 SYSTEM 中的只读包。若用户要求设备端修改,应先创建 DATA 中的完整同名包覆盖,再通过 publish_skill 发布。

  1. Add a Lua function that calls set_angle() or set_angles() and uses action_delay(ms) inside long loops.
  2. Register it in the actions table.
  3. Optionally add an alias in action_aliases.
  4. Add a button entry in the server ACTIONS list if the web UI should expose it.

Use action_delay() instead of delay.delay_ms() inside actions so a new command can interrupt the current action.

包路径与退出

默认网页资源和 worker 路径从当前脚本位置解析,兼容 SYSTEM 与 DATA 安装。校准数据仍保存在 DATA 根目录的 servo_dog/config.json。服务器只清理本次创建的 worker 和命令队列,遇到已有任务或队列冲突时报告错误,不自动停止别的任务。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Servo Dog AI skill do?

Control a four-servo robotic dog named Servo Dog through Lua PWM actions, command calls, and a Lua HTTP Server web control panel.

Why use Servo Dog on TypingMind?

Because you install it once and use it with any model. Servo Dog is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Servo Dog in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/espressif/esp-claw-skills-lab/tree/master/skills/servo_dog. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Servo Dog?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Servo Dog?

As many as you like. As long as a model supports skills, you can use Servo Dog with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Servo Dog AI skill free?

Yes. It is published on GitHub by espressif under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇