newton
Use Newton physics engine APIs for robotics simulation, solvers, contacts, asset import/export, sensors, viewers, examples, and repository maintenance.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- newton
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Use Newton physics engine APIs for robotics simulation, solvers, contacts, asset import/export, sensors, viewers, examples, and repository maintenance.
- disable-model-invocation
- true
02 资源文件 8
- 参考文档references/development-maintenance.md3.8 KB
- 参考文档references/install-and-backends.md3.3 KB
- 参考文档references/repo-provenance.md2.5 KB
- 参考文档references/repo-routing-metadata.json416 B
- 参考文档references/troubleshooting.md3.1 KB
- 脚本scripts/check_newton_env.py3.5 KB
- 脚本scripts/list_newton_examples.py1.8 KB
- 脚本scripts/newton_smoke.py2.9 KB
03 SKILL.md 正文
Newton repo skill
Use this skill when a task involves Newton, newton-physics, the Python newton package, Warp-backed physics simulation, robotics/contact/deformable solver workflows, URDF/MJCF/USD import, Newton examples, or Newton repository maintenance.
Start here
- Confirm install/backend state with
scripts/check_newton_env.py. - For a tiny public simulation check, run
scripts/newton_smoke.py --device cpu --steps 2. - Route to the focused sub-skill below.
- If the user is editing Newton source, also read
references/development-maintenance.md. - If behavior depends on version-sensitive details, read
references/repo-provenance.md.
Installation and backends
Read references/install-and-backends.md before installing optional extras or diagnosing CUDA/RTX/Torch/USD/MuJoCo issues. Base Newton requires warp-lang; optional workflows use extras such as newton[sim], newton[importers], newton[examples], newton[onnx], newton[rtx], newton[torch-cu12], newton[torch-cu13], and newton[notebook].
Use CPU for first smoke checks unless the user specifically asks for CUDA, RTX, or Torch behavior. A CPU pass does not prove GPU performance.
Sub-skill routing
| Task | Read |
|---|---|
| Build a model, add bodies/shapes/joints, allocate states/controls/contacts, replicate worlds, or write a minimal simulation loop | sub-skills/modeling-simulation/SKILL.md |
| Choose/configure solvers, CollisionPipeline, MuJoCo contacts, SDF/hydroelastic contacts, contact material tuning, or deterministic/GPU solver behavior | sub-skills/solvers-contacts/SKILL.md |
| Import URDF/MJCF/USD assets, diagnose optional importer deps, schema resolvers, mesh/remesh/heightfield utilities, or USD/File export artifacts | sub-skills/asset-import-export/SKILL.md |
Use actuators, controllers, IK, ArticulationView, robot target layouts, sites for robotics control, or ONNX/Torch policy dependencies |
sub-skills/robotics-control/SKILL.md |
Use sensors, viewer backends, recording/replay, example CLI/browser, --viewer, --device, --test, headless visualization, or benchmark flags |
sub-skills/sensors-visualization/SKILL.md |
| Diagnose cross-cutting install/import/backend or skill-staleness issues | references/troubleshooting.md, references/repo-provenance.md |
| Edit Newton source, tests, docs, examples, public API, or changelog | references/development-maintenance.md |
Safe public commands
From this generated skill directory:
python scripts/check_newton_env.py --show-optional
python scripts/newton_smoke.py --device cpu --steps 2
python scripts/list_newton_examples.py --limit 20
Against an installed Newton environment, common package commands are:
python -m newton.examples --list
python -m newton.examples basic_pendulum --viewer null --device cpu --test
Use the user's Python environment for these commands. Do not assume this generated skill's construction environment is available.
Operating rules
- Use public imports:
import newton,import warp as wp, and public submodules such asnewton.solvers,newton.sensors,newton.viewer,newton.utils,newton.ik, andnewton.actuators. - Do not import from
newton._srcin user-facing code, docs, examples, or generated answers. - Set
newton.use_coord_layout_targets = Truebefore constructing new robotics models that write position targets. - Treat MuJoCo, USD/importers, RTX, ONNX, Torch, notebooks, and viewer stacks as optional extras; check dependencies before running examples.
- Prefer tiny CPU smokes before long examples, GPU runs, downloads, or visualization.
- Never hide network, credential, external-service, or broad dependency installation behind a helper script.
Staleness and provenance
references/repo-provenance.md records the source commit, package version, evidence paths, and verification summary used to create this skill. Refresh this skill when Newton's public APIs, docs, examples, dependency extras, or solver/importer behavior change.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).