Agent skill

Physicalai Train Training A Policy

by open-edge-platform in open-edge-platform/physical-ai-studio

Trains, validates, tests, and runs prediction for Physical AI Studio policies via the library Lightning stack.

Apache-2.0Auto-check passedDevelopment

Install Physicalai Train Training A Policy

skills CLI
$ npx skills add open-edge-platform/physical-ai-studio --skill physicalai-train-training-a-policy -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install open-edge-platform/physical-ai-studio physicalai-train-training-a-policy --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/open-edge-platform/physical-ai-studio.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/library/physicalai-train-training-a-policy .claude/skills/physicalai-train-training-a-policy && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
physicalai-train-training-a-policy
GitHub stars
131
Token cost
~1.6k tokens
SKILL.md length
602 words
Files
1
Skills in repo
7
Repo updated
First seen
Licence
Apache-2.0

At a glance

Trains, validates, tests, and runs prediction for Physical AI Studio policies via the library Lightning stack.

  • Works in 3 steps: Construct the same objects the CLI would… → Smoke-test the API wiring with… → Validate / test / predict from Python…
  • Running physicalai fit/validate/test/predict
  • SKILL.md covers Anatomy of a config, Python API workflow, CLI workflow and Debugging a run, plus 3 more sections
  • Calls uv

What it does

Physicalai Train Training A Policy is an agent skill from open-edge-platform/physical-ai-studio. Trains, validates, tests, and runs prediction for Physical AI Studio policies via the library Lightning stack. Use when running physicalai fit/validate/test/predict, calling physicalai.train.Trainer and Policy APIs from Python, writing or editing YAML configs under library/configs, wiring a model + datamodule + trainer, resuming from a checkpoint, or debugging a training run. Covers ACT, Pi0, Pi0.5, GR00T, and SmolVLA.

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Debugging. It works with Python. The repository describes itself as: Physical AI Studio is an end-to-end framework for training robots to perform tasks through imitation learning from human demonstrations. The licence is Apache-2.0.

When your agent uses it

  • Running physicalai fit/validate/test/predict
  • Calling physicalai.train.Trainer and Policy APIs from Python
  • Editing YAML configs under library/configs
  • Wiring a model + datamodule + trainer

Example prompts

  • “/physicalai-train-training-a-policy”

Requirements

  • Python 3

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Construct the same objects the CLI would instantiate: a Policy, a DataModule, and Trainer.
  2. Smoke-test the API wiring with Trainer(fast_dev_run=True).
  3. Validate / test / predict from Python with the corresponding Trainer method and ckpt_path when needed.

What it can do on your machine

Read from SKILL.md and the folder at commit 429ffd4. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • uv

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use uv, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Physicalai Train Training A Policy loads about 1.6k tokens when it runs. Until then it costs about 114 tokens; SKILL.md has 602 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~114
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from open-edge-platform/physical-ai-studio at commit 429ffd4, republished under its Apache-2.0 licence (© open-edge-platform). 602 words, ~1,605 tokens.

Download SKILL.mdSave it as .claude/skills/physicalai-train-training-a-policy/SKILL.md (or your agent's skills folder).
name
physicalai-train-training-a-policy
description
Trains, validates, tests, and runs prediction for Physical AI Studio policies via the library Lightning stack. Use when running physicalai fit/validate/test/predict, calling physicalai.train.Trainer and Policy APIs from Python, writing or editing YAML configs under library/configs, wiring a model + datamodule + trainer, resuming from a checkpoint, or debugging a training run. Covers ACT, Pi0, Pi0.5, GR00T, and SmolVLA.
license
Apache-2.0

Training a policy (library)

Training uses physicalai.train.Trainer (library/src/physicalai/train/trainer.py, a lightning.Trainer subclass) with a Policy and a DataModule. The library deliberately supports two equal entry points:

  • CLI — physicalai fit (and validate, test, predict): jsonargparse YAML under library/configs/, overrides on the command line; checkpoints under experiments/{name}/version_N/ by default. See library/docs/how-to/training/cli.md.
  • Python API — construct Policy, LeRobotDataModule (or another datamodule), and Trainer, then trainer.fit(model=policy, datamodule=datamodule) (and validate / test / predict with a checkpoint as needed). See library/docs/getting-started/quickstart.md and library/docs/explanation/trainer/README.md.

The CLI subcommands and the Python API share the same objects; YAML class_path / init_args should match what you would wire in code.

The four CLI subcommands share the same --model / --data / --trainer.* shape (see cli/_dispatch.py); validate/test/predict additionally take --ckpt_path. When a task is about library behavior rather than shell usage, prefer the Python API path first and then verify CLI parity if the change is user-facing.

Anatomy of a config

A config wires three pieces via class_path / init_args:

  • model — a Policy subclass (e.g. physicalai.policies.ACT).
  • data — a DataModule, usually physicalai.data.lerobot.LeRobotDataModule with a repo_id (e.g. lerobot/pusht).
  • trainer — Lightning args (max_epochs, accelerator, devices, callbacks…).

First-party configs live under library/configs/physicalai/<policy>/<embodiment>/; LeRobot-wrapped configs live in library/configs/lerobot/. Compose with __base__ and override any field on the CLI (--trainer.max_epochs 200 --data.train_batch_size 64).

Python API workflow

Use this path when the user asks for code, notebooks, tests, direct library integration, or changes to Trainer, Policy, or datamodules.

python
from physicalai.data import LeRobotDataModule
from physicalai.policies import ACT
from physicalai.train import Trainer

datamodule = LeRobotDataModule(repo_id="lerobot/pusht", train_batch_size=2)
policy = ACT()
trainer = Trainer(fast_dev_run=True)
trainer.fit(model=policy, datamodule=datamodule)
  1. Construct the same objects the CLI would instantiate: a Policy, a DataModule, and Trainer.
    • Done when: construction works without relying on jsonargparse YAML.
  2. Smoke-test the API wiring with Trainer(fast_dev_run=True).
    • Done when: one train + one val batch complete without shape or feature errors.
  3. Validate / test / predict from Python with the corresponding Trainer method and ckpt_path when needed.
    • Done when: the API call and the equivalent CLI command agree on checkpoint/config behavior.

CLI workflow

Use this path when the user asks for terminal commands, docs under library/docs/how-to/, YAML configs, reproducible experiments, or entry-point behavior.

  1. Start from an existing config matching your policy family; copy it rather than writing from scratch.
    • Done when: physicalai fit --config <your.yaml> --print_config renders the fully-resolved config with no errors.
  2. Smoke-test the wiring before a real run:
    bash
    physicalai fit --config configs/physicalai/<policy>/<embodiment>/<config>.yaml --trainer.fast_dev_run=true
    • Done when: one train + one val batch complete without shape or config errors.
  3. Run training, overriding on the CLI as needed:
    bash
    physicalai fit --config configs/physicalai/<policy>/<embodiment>/<config>.yaml --trainer.max_epochs 200
    • Done when: checkpoints appear under experiments/{name}/version_N/.
  4. Validate / test / predict from a checkpoint:
    bash
    physicalai validate --config configs/physicalai/<policy>/<embodiment>/<config>.yaml --ckpt_path experiments/<name>/version_0/checkpoints/last.ckpt
  5. Iterate on metrics, not just loss — confirm the val metric relevant to the task moves, and record the config + checkpoint that produced it.
Show full SKILL.md (186 more words)Show less

Debugging a run

  • API: construct Policy, DataModule, and Trainer directly in a short script or test to isolate whether failure is in object construction, dataloading, or CLI parsing.
  • --trainer.fast_dev_run=true — one batch each stage; the first thing to try on any failure.
  • --print_config — see the exact resolved config jsonargparse built.
  • Shape/feature mismatches usually mean the datamodule's Feature names or action dim disagree with the policy — cross-check against the physicalai-train-adding-a-policy skill.
  • Dataset download stalls: the run is pulling a LeRobot repo_id; see the physicalai-train-working-with-datasets skill.

Required checks

  • Config resolves (--print_config) and fast_dev_run passes before any long run.
  • The equivalent Python API construction path passes for library-facing changes.
  • accelerator/devices match the installed backend extra (xpu/cuda/cpu).
  • New or renamed config fields stay consistent with the policy's Config class.
  • Doc code blocks that show training commands still pass tests/test_docs.py.

Verify

bash
# from library/
physicalai fit --config configs/physicalai/<policy>/<embodiment>/<config>.yaml --trainer.fast_dev_run=true
uv run --no-sync pytest tests/unit/train

For API-facing changes, add or run an equivalent Python smoke test (not a shell heredoc) that constructs Policy, DataModule, and Trainer directly and calls trainer.fit(...).

  • physicalai-train-adding-a-policy — when the model itself needs changes.
  • physicalai-train-working-with-datasets — for the data half of the config.
  • physicalai-train-benchmarking-a-policy — to evaluate a trained checkpoint in a gym.

© open-edge-platform, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/library/physicalai-train-training-a-policy of open-edge-platform/physical-ai-studio.

Open the folder on GitHubat commit 429ffd4

Compare with similar skills

Physicalai Train Training A Policy next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Physicalai Train Training A Policy compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Physicalai Train Training A Policy this skillopen-edge-platform/physical-ai-studio131—~1.6kAutomated safety check: PassApache-2.0
LangBot Plugin Developmentlangbot-app/LangBot18k—~3.9kAutomated safety check: PassApache-2.0
Python Performance Optimizationwshobson/agents40k13 repos~814Automated safety check: PassMIT
Git History Bug Auditben-manes/caffeine18k—~3.3kAutomated safety check: PassApache-2.0
Keybase RPC Log Analysiskeybase/client9.3k—~3kAutomated safety check: PassBSD-3-Clause
The Art of Debuggingstas00/the-art-of-debugging1.7k—~6.1kAutomated safety check: NotesCC-BY-SA-4.0

Similar skills

  • LangBot Plugin Development

    langbot-app/LangBot

    Guides building, debugging and testing LangBot plugins: components, SDK calls, README and locale rules, SDK pitfalls and WebSocket-based testing.

    18k GitHub stars~3.9k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Profiles slow Python code with cProfile and memory profilers, then applies targeted fixes for CPU, memory, I/O and query bottlenecks.

    40k GitHub starsUsed in 13 repos~814 tokens
    DevelopmentAuto-check passed
  • Git History Bug Audit

    ben-manes/caffeine

    Audits a module by walking its git history commit by commit, tracking unresolved issues forward, and reporting the ones that survive to HEAD as findings.

    18k GitHub stars~3.3k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Captures a clean Keybase service log and analyzes it for redundant, duplicated or looping RPCs, then checks whether a caching fix reduced the calls.

    9.3k GitHub stars~3k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • The Art of Debugging

    stas00/the-art-of-debugging

    Condensed debugging method and tool recipes for Unix, Python and PyTorch programs: crashes, hangs, segfaults, wrong output, CUDA OOM, NaN values and slowness.

    1.7k GitHub stars~6.1k tokensUpdated 4 days ago
    DevelopmentAuto-check: notes
  • Adk Setup

    google/adk-python

    Official

    Sets up a local ADK Python development environment in a git clone of the open-source adk-python repository: a uv virtual environment, all dependency extras, pre-commit hooks, and a first unit-test…

    22k GitHub stars~993 tokensUpdated yesterday
    DevelopmentAuto-check: notes

More from open-edge-platform/physical-ai-studio

  • Physicalai Train Adding A Policy

    open-edge-platform/physical-ai-studio

    Adds or modifies a Physical AI Studio policy under library/src/physicalai/policies.

    131 GitHub stars~1.4k tokensUpdated yesterday
    Auto-check passed
  • Physicalai Train Exporting And Validating

    open-edge-platform/physical-ai-studio

    Exports and validates Physical AI Studio policies for Runtime deployment.

    131 GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Physicalai Train Benchmarking A Policy

    open-edge-platform/physical-ai-studio

    Benchmarks a trained Physical AI Studio policy in a simulation gym and reports success metrics.

    131 GitHub stars~1.2k tokensUpdated yesterday
    Auto-check passed
  • Physicalai Train Working With Datasets

    open-edge-platform/physical-ai-studio

    Works with Physical AI Studio datasets and Lightning datamodules built on the LeRobot format.

    131 GitHub stars~1.2k tokensUpdated yesterday
    Auto-check passed
  • Studio Adding Robot Form UI Fields

    open-edge-platform/physical-ai-studio

    Adds a new interactive robot form UI field for plugin payload schemas.

    131 GitHub stars~1.6k tokensUpdated yesterday
    Auto-check passed
  • Studio Creating A Robot Plugin

    open-edge-platform/physical-ai-studio

    Creates or modifies an external Physical AI robot plugin for Studio.

    131 GitHub stars~3.1k tokensUpdated yesterday
    Auto-check passed

Works with

Categories

Questions about Physicalai Train Training A Policy

What does Physicalai Train Training A Policy do?

Trains, validates, tests, and runs prediction for Physical AI Studio policies via the library Lightning stack. Physicalai Train Training A Policy is an agent skill from open-edge-platform/physical-ai-studio. Trains, validates, tests, and runs prediction for Physical AI Studio policies via the library Lightning stack.

When should I use Physicalai Train Training A Policy?

Physicalai Train Training A Policy fits situations like: running physicalai fit/validate/test/predict; calling physicalai.train.Trainer and Policy APIs from Python; editing YAML configs under library/configs; wiring a model + datamodule + trainer.

How do I install Physicalai Train Training A Policy in Claude Code?

Run `npx skills add open-edge-platform/physical-ai-studio --skill physicalai-train-training-a-policy -a claude-code`. Or copy the skill folder (skills/library/physicalai-train-training-a-policy in open-edge-platform/physical-ai-studio) into .claude/skills/physicalai-train-training-a-policy in your project. Claude Code loads it when a task matches its description.

How do I install Physicalai Train Training A Policy in Codex?

Run `npx skills add open-edge-platform/physical-ai-studio --skill physicalai-train-training-a-policy -a codex`. Or copy the skill folder (skills/library/physicalai-train-training-a-policy in open-edge-platform/physical-ai-studio) into .agents/skills/physicalai-train-training-a-policy in your project. Codex loads it when a task matches its description.

Can I use Physicalai Train Training A Policy in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add open-edge-platform/physical-ai-studio --skill physicalai-train-training-a-policy -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/physicalai-train-training-a-policy, .gemini/skills/physicalai-train-training-a-policy, .github/skills/physicalai-train-training-a-policy and .opencode/skills/physicalai-train-training-a-policy in your project.

What does Physicalai Train Training A Policy need to run?

Going by SKILL.md and its folder, Physicalai Train Training A Policy needs the command-line tools its instructions call (uv). Our summary lists: Python 3.

Does Physicalai Train Training A Policy access the network?

SKILL.md contains no URLs. Its commands use uv, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Physicalai Train Training A Policy safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Physicalai Train Training A Policy use?

Physicalai Train Training A Policy is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Physicalai Train Training A Policy use?

About 1.6k tokens (SKILL.md is roughly 6.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Physicalai Train Training A Policy?

Skills that share tags, products or a category with Physicalai Train Training A Policy: LangBot Plugin Development (langbot-app/LangBot, 18k stars), Python Performance Optimization (wshobson/agents, 40k stars), Git History Bug Audit (ben-manes/caffeine, 18k stars) and Keybase RPC Log Analysis (keybase/client, 9.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Physicalai Train Training A Policy?

open-edge-platform (a GitHub organization) maintains it in open-edge-platform/physical-ai-studio, which has 131 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on October 9, 2026.

Source: open-edge-platform/physical-ai-studio on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.