Skip to main content

ROBOT.md — a single self-describing file so Claude can safely operate your robot.

Project description

robot-md

ROBOT.md is to a robot what CLAUDE.md is to a codebase. One file — YAML frontmatter + markdown prose — so Claude (Code, Desktop, Mobile) can safely operate your robot.

PyPI License Spec RCAN

The 60-second pitch

Every robot today is described in 5+ files: a YAML config, a P66 manifest, a CLAUDE.md, a firmware manifest, a README. They drift. When you add a joint, three files need updates.

ROBOT.md is the single source of truth. Drop one file at your robot's project root:

---
rcan_version: "3.0"
metadata:
  robot_name: bob
physics:
  type: arm+camera
  dof: 6
drivers:
  - { id: arm, protocol: feetech, port: /dev/ttyUSB0 }
capabilities:
  - arm.pick
  - arm.place
  - vision.describe
safety:
  payload_kg: 0.5
  estop: { software: true, response_ms: 100 }
  hitl_gates:
    - { scope: destructive, require_auth: true }
---

# bob

## Identity
Bob is a 6-DOF SO-ARM101 arm with an OAK-D camera.

## What bob Can Do
Pick, place, describe what the camera sees. Max payload 0.5 kg.

## Safety Gates
Software E-stop at 100 ms. Destructive actions require human approval.

Now Claude — in Code, Desktop, or Mobile — knows your robot.

Why it works

  • Machine-readable: frontmatter validates against a JSON Schema. Runtime tools consume it directly.
  • LLM-readable: the prose body tells Claude why — which actions are dangerous, which need HITL, how the robot's capabilities map to real-world tasks.
  • One file: no more drift between config, manifest, and README.

Install

PyPI publish is imminent; until then, install from the repo:

pip install git+https://github.com/RobotRegistryFoundation/robot-md.git#subdirectory=cli

Once robot-md lands on PyPI:

pip install robot-md

Requires Python 3.10+.

Adopt it for your robot (60 seconds)

The Tier 0 flow — Claude Code alone as the runtime, no OpenCastor:

# 1. Install the SessionStart hook (CLI installed above).
mkdir -p ~/.claude/hooks
curl -fsSL https://robotmd.dev/hook > ~/.claude/hooks/robot-md.sh
chmod +x ~/.claude/hooks/robot-md.sh
# Add one entry to ~/.claude/settings.json — see integrations/claude-code/settings.template.json.

# 2. cd to your robot's repo. Generate a draft with autodetect, then edit.
cd ~/my-robot
robot-md autodetect --write ROBOT.md   # detects Hailo, Movidius, OAK-D,
                                       # Coral, CH340/CP210x/FTDI, tty*
# Fill in the TODOs (robot name, physics type, DoF, capabilities), then:
robot-md validate ROBOT.md
claude                                 # Claude reads ROBOT.md automatically

robot-md autodetect scans PCI + USB + /dev/tty* and emits a draft that validates against the v1 schema but deliberately marks identity fields (robot_name, physics.type, dof) as TODO — the operator is the authority on what the robot is. From there, Claude Code is the planner and the executor: no gateway, no runtime to stand up.

Want a public identity? robot-md register ROBOT.md (shipping in v0.2) posts to the Robot Registry Foundation, writes the assigned RRN-XXXXXXXXXXXX into your manifest, and anchors your robot's signing key.

Want fleet-grade orchestration, P66 hardware interlocks, reactive VLA control, or EU AI Act audit? Add OpenCastor when the time comes. Until then, ROBOT.md + Claude Code is all you need.

Inspect a ROBOT.md (CLI)

robot-md autodetect                      # print a draft ROBOT.md to stdout
robot-md autodetect --write ROBOT.md     # write it (refuses to overwrite)

robot-md validate examples/bob.ROBOT.md
# → ✓ bob (arm+camera, 6 DoF, 5 capabilities)

robot-md render examples/bob.ROBOT.md | head -5
# strips prose, emits pure YAML for runtime tooling

robot-md context examples/bob.ROBOT.md | head -10
# emits the Claude-ready '# Robot context' block

Claude integration

Surface Status Mechanism
Claude Code ✅ v0.1 SessionStart hook → robot-md context → session context
Claude Desktop 🚧 v0.2 MCP server robot-md-mcp — resources + tools
Claude Mobile (iOS) 🚧 v0.2 URL fetch: https://robotmd.dev/r/<rrn>

See integrations/claude-code/ for install instructions. Desktop + Mobile READMEs document the approaches; code ships in v0.2.

The broader ecosystem

  ROBOT.md (this repo)     →  what the robot IS
  OpenCastor               →  what the robot RUNS   (github.com/craigm26/OpenCastor)
  RCAN                     →  what the robot SPEAKS (rcan.dev)
  Robot Registry Foundation → where the robot LIVES (robotregistryfoundation.org)

Each layer is independent. Use ROBOT.md without OpenCastor (just for Claude context). Use OpenCastor without ROBOT.md (the old YAML-only path). Compose them for the full flow.

Spec + docs

  • Format spec v1 — the authoritative definition of what goes in a ROBOT.md.
  • Rationale — design decisions + why.
  • JSON Schema — draft 2020-12.
  • Examples — 4 worked ROBOT.md files (Bob, so-arm101, TurtleBot 4, minimal).
  • v0.2 design (draft) — signing, registry ingestion, tamper-evidence. Design only; no code yet. Feedback welcome.

Scope

In scope

  • The ROBOT.md file format (spec + schema + examples)
  • A reference Python CLI (validate / render / context)
  • Claude Code integration hook

Out of scope

  • Robot runtime code — that's OpenCastor.
  • Registry implementation — that's RRF.
  • Wire protocol — that's RCAN.
  • Skill implementation framework — OpenCastor's SkillRegistry.

This repo is spec + tooling only. A hard line.

Contributing

  • Open an issue to propose a spec change; breaking changes require a design doc.
  • Small, focused PRs welcome.
  • See CONTRIBUTING.md for the full guide (tests, lint, commit style).

License

Apache 2.0 — see LICENSE.

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

robot_md-0.1.3.tar.gz (20.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

robot_md-0.1.3-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

Details for the file robot_md-0.1.3.tar.gz.

File metadata

  • Download URL: robot_md-0.1.3.tar.gz
  • Upload date:
  • Size: 20.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for robot_md-0.1.3.tar.gz
Algorithm Hash digest
SHA256 c21a24a4710c7652f54e87bce39cfd345c30bde32762888b8532625ffff4c514
MD5 f446d26b33728db6e526d03eb7b395f1
BLAKE2b-256 019bfb574701a9f8e6ebc0852a7ff24406da13e58a87e291eb0c5fd2b23f766d

See more details on using hashes here.

File details

Details for the file robot_md-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: robot_md-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 18.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for robot_md-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b2533776e8c6f9dadfe2c0ab163dd43c087ca33792addbcf0ced39110ff8ccfb
MD5 6667ef464ba7634205532c870fea54f1
BLAKE2b-256 91b89d26d9f1263ed75f111d0d614fe6cc1870741effb160a35515ac52771073

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page