airsim-simulator
Explain and preflight the PromptCraft-Robotics ChatGPT-AirSim drone sample, its helper API, and its config/runtime caveats.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- airsim-simulator
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Explain and preflight the PromptCraft-Robotics ChatGPT-AirSim drone sample, its helper API, and its config/runtime caveats.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/available-functions.md2.3 KB
- 参考文档references/prompt-contract.md2.1 KB
- 参考文档references/setup-and-runtime.md2.8 KB
- 参考文档references/troubleshooting.md2.4 KB
- 脚本scripts/check-chatgpt-airsim-config.py4.2 KB
03 SKILL.md 正文
AirSim simulator
Use this sub-skill when a user asks about the ChatGPT-AirSim drone sample, its prompt contract, its helper API, or the setup/configuration needed to reason about it safely.
This sub-skill is intentionally focused on the sample's public behavior and preflight checks. It does not try to execute unreviewed model output, and it does not depend on the original repository checkout being present.
Use this sub-skill for
- explaining how the AirSim chatbot sample is structured;
- checking the required config and settings files before a user tries the sample;
- listing the helper functions available to the drone prompt;
- explaining the sample's coordinate and object-name conventions;
- diagnosing OpenAI / AirSim / import / relative-path failures;
- warning users about the direct code execution risk in the runtime loop.
Do not use this sub-skill for
- browsing the markdown robotics example catalog;
- choosing among aerial, embodied, manipulation, or visual-servoing prompt examples;
- generic robotics prompt rewriting that is not specific to the AirSim sample.
Start here
- Read
references/setup-and-runtime.mdfor the sample shape and the environment assumptions. - Read
references/available-functions.mdfor the helper API and coordinate conventions. - Read
references/prompt-contract.mdfor the prompt style and clarification rules. - Run
scripts/check-chatgpt-airsim-config.pyagainst the configuration files you want to validate. - Read
references/troubleshooting.mdif anything about the environment, API key, or simulator connection looks wrong.
Common decisions
- If the user only wants a prompt-library example, route to
../prompt-examples/. - If the user wants a safe preflight without live calls, use
scripts/check-chatgpt-airsim-config.py. - If the user wants to run generated code, first warn about direct execution and require sandbox/review.
- If the user asks what the drone can do, read
references/available-functions.md. - If the user asks how to phrase the prompt, read
references/prompt-contract.md. - If the user reports an API key, import, simulator, or relative-path error, read
references/troubleshooting.md. - If the user asks about adding a new helper, explain that runtime implementation and prompt contract must change together.
What future agents should remember
- The sample uses the OpenAI ChatCompletion-style API that matched the inspected
openai 0.27.2environment. - The sample extracts fenced code blocks from model responses and executes them directly, so the runtime must be treated as unsafe.
- The wrapper exposes only a small set of drone helpers, and the prompt contract expects exact object names and clarification when the scene is ambiguous.
- The AirSim coordinate handling in the wrapper is not the same as the human-facing prompt wording, so sign conventions must be checked carefully before describing motion.
Reading guidance
- Use
references/setup-and-runtime.mdwhen the user wants setup, runtime, or configuration context. - Use
references/available-functions.mdwhen the user asks what the drone can do or how the wrapper maps to AirSim. - Use
references/prompt-contract.mdwhen the user asks how the prompt should be phrased or why a clarification question is needed. - Use
references/troubleshooting.mdwhen a setup or import failure needs a concrete recovery path.
Bundled helper
scripts/check-chatgpt-airsim-config.pyis the safe preflight helper. It validates a user-supplied config/settings pair and reports whether the runtime prerequisites look consistent.
Boundary with the prompt-examples sub-skill
If the user is really asking for a drone example from examples/, route to prompt-examples unless the question is specifically about the ChatGPT-AirSim sample itself.
Safety note
Never present the sample's generated code as inherently safe. The runtime executes code blocks directly, so any live use must be sandboxed and reviewed.
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).