physical-ai-toolchain
Copilot instructions121 starsChanged 2 months agoMITView on GitHub
Essential development conventions for microsoft/physical-ai-toolchain.
In this repository8 other files it gives its agents.
- azureml-k3s-compute-target-setupSkill
- dataviewerSkill
- environment-deploymentSkill
- fleet-deploymentSkill
- fleet-intelligenceSkill
- infrastructureSkill
- osmo-lerobot-trainingSkill
- synthetic-dataSkill
The file
Show its rules and text
We split this copilot-instructions.md into the rules it gives an agent
14 rules. About 0 are common, 9 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 8
Follow the affected area's existing conventions and scoped instructions.
- Distinctive: line 13
Prefer coherent root-cause fixes across the affected solution.
- Distinctive: line 15
Keep comments brief and factual.
- Very specific: line 16
Do not modify vendored files in external/.
- Distinctive: line 17
Follow derived-file conventions when updating hve-core-derived scripts.
- Distinctive: line 21
Keep discovered Azure resource, subscription, and tenant identifiers, service endpoints, hostnames, and local paths out of tracked source, …
- Very specific: line 22
Follow the environment-deployment skill to generate non-secret bundles under gitignored infrastructure/setup/generated/<environment>/.
- Very specific: line 27
Use uv, not pip. Preserve the affected project's Python constraints.
- Very specific: line 28
Put from __future__ import annotations first among imports.
- Distinctive: line 34
Use focused tests and probes during development to refine logic and catch defects.
- Distinctive: line 35
After completing a coherent behavior, run the relevant checks and supported automatic fixes before manually addressing remaining lint …
- Very specific: line 39
Use the configured Markdown, TOML, table, and spelling checks.
- Distinctive: line 43
Write natural, direct, reader-focused prose.
- Distinctive: line 48
Follow the active RPI and HVE skill contracts for review, delegation, and validation.
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Repository Instructions
Follow the affected area's existing conventions and scoped instructions. Use manifests, lockfiles, and tool configuration for current versions, commands, and lint rules rather than duplicating them here.
Editing
- Preserve user changes and explicit scope limits. Do not add backward-compatibility layers unless requested.
- Prefer coherent root-cause fixes across the affected solution. Refactor when SOLID, KISS, or clearer responsibilities improve the design; use "1, 2, refactor" as a checkpoint, not a requirement to invent abstractions.
- You may fix concrete issues discovered outside the original request. Validate those fixes and report them separately; avoid speculative cleanup.
- Keep comments brief and factual. Avoid narration and plan-phase markers.
- Do not modify vendored files in
external/. - Follow derived-file conventions when updating hve-core-derived scripts.
Environment Details
- Keep discovered Azure resource, subscription, and tenant identifiers, service endpoints, hostnames, and local paths out of tracked source, tests, documentation, and defaults.
- Follow the environment-deployment skill to generate non-secret bundles under gitignored
infrastructure/setup/generated/<environment>/. Keep credentials, tokens, kubeconfigs, OSMO profiles, and Terraform state outside bundles and Git. - Preserve clearly documented placeholders and instructional network/resource examples; do not treat them as discovered deployment values.
Python
- Use
uv, not pip. Preserve the affected project's Python constraints. - Put
from __future__ import annotationsfirst among imports. Fully annotate function parameters and returns; do not annotate local variables. - Regenerate
uv.lockafter dependency changes. Do not hand-edit locks or commit derived flat requirements files. - Install source-aware LeRobot runtimes with
uv sync --active --frozen --no-config --no-install-project. Preserve[tool.uv.sources], explicit CUDA indexes, and platform markers; other runtime paths derive dependencies withuv export --frozen --no-hashes --no-emit-projectand install with--no-deps.
Validation
- Use focused tests and probes during development to refine logic and catch defects.
- After completing a coherent behavior, run the relevant checks and supported automatic fixes before manually addressing remaining lint issues. Avoid repeated per-file style cleanup while the behavior is still taking shape.
- Respect configured exclusions; do not bypass them with alternate configurations or forced file selection. Keep review-only checks non-mutating and report unavailable or failed checks.
- For Isaac runtime dependencies and evaluation images, check Python, NumPy, Torch, CUDA, cuDNN, and native-extension compatibility. Distinguish host checks from validation in the target GPU runtime.
- Pin Azure ML environment assets to explicit versions derived from the checked-in image tag and digest. Keep workflow fallbacks and environment versions synchronized with
scripts/update-image-digests.sh. - Use the configured Markdown, TOML, table, and spelling checks; table formatting and spelling are separate from
lint:all.
Documentation
Write natural, direct, reader-focused prose. Avoid corporate filler, inflated claims, and repetitive structure. Improve problematic documentation as a whole, moving information to its appropriate home and updating links rather than only polishing sentences.
Agent Workflows
- The primary agent writes and updates RPI plans; do not use
RPI Plannersubagents. - Follow the active RPI and HVE skill contracts for review, delegation, and validation. Respect the user's model selection rather than requiring a repository-specific model or local plugin.
- Cloud agents use the pinned RPI skill bootstrap, not the retired umbrella agents. Before cloud RPI work, verify required skill files, their
metadata.github-pinnedvalues againstRPI_SKILLS_REF, and the generated tracking instruction. Stop on an incomplete bootstrap. - In cloud-agent PR work, persist completed RPI phases as PR comments and maintain an artifact index with the resolved upstream SHA in the PR description. If PR writes are unavailable, return the complete phase artifacts without claiming persistence.
- Apply scoped dataviewer and OpenVEX instructions when those areas are affected, and call out AzureRM provider major-version changes explicitly.
Companion Library
microsoft/physical-ai-toolchain-skills enables agentic scenarios for this toolchain. When working across repositories, locate its checkout and follow its AGENTS.md and relevant capability contracts. Do not assume a fixed skill inventory or copy implementations between repositories.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

