prompt-examples
Find, classify, adapt, and validate PromptCraft-Robotics markdown prompt examples across robotics task families.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- prompt-examples
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Find, classify, adapt, and validate PromptCraft-Robotics markdown prompt examples across robotics task families.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/adaptation-guide.md2.7 KB
- 参考文档references/category-map.md2.9 KB
- 参考文档references/prompt-patterns.md2.8 KB
- 参考文档references/troubleshooting.md2.3 KB
- 脚本scripts/validate-prompt-example.py1.4 KB
03 SKILL.md 正文
Prompt examples
Use this sub-skill when a user asks for help with the PromptCraft-Robotics markdown examples: selecting an example family, adapting a prompt to a new scene, preserving the repo's response style, or checking whether a draft prompt follows the repository patterns.
This sub-skill covers text prompt examples. For the ChatGPT-AirSim runtime sample, route to ../airsim-simulator/.
Use this sub-skill for
- choosing an example category from a user request;
- summarizing the repository's robotics example families;
- adapting an aerial, embodied, manipulation, multi-robot, visual-servoing, or basic robotics prompt;
- preserving the
Question/Code/Reasonresponse pattern; - validating a new draft prompt before it is shared or used.
Do not use this sub-skill for
- installing or running the AirSim chatbot sample;
- diagnosing OpenAI API keys or AirSim simulator connectivity;
- generic LLM prompting that has no robotics control, scene, object, or robot-function context.
Start here
- Read
references/category-map.mdto choose the relevant example family. - Read
references/prompt-patterns.mdto preserve the repo's style. - Read
references/adaptation-guide.mdbefore rewriting an example for a new robot, scene, object set, or sensor. - Run
scripts/validate-prompt-example.pyagainst a draft markdown prompt when a structural check is useful. - Use
references/troubleshooting.mdwhen the prompt is ambiguous, invents functions, or mixes coordinate conventions.
Common decisions
- If the user wants to run the AirSim sample, route to
../airsim-simulator/. - If the user wants a prompt to match a robotics task, choose the category by robot, sensor, and action family.
- If the scene has duplicate objects, keep the repository's clarification behavior.
- If the user provides a draft markdown prompt, run or recommend
scripts/validate-prompt-example.py. - If the adaptation involves manipulation, check safe-height and top-surface placement rules.
- If the adaptation involves navigation, check turn/move or waypoint conventions before writing code.
- If the request combines prompt adaptation and live execution, split the response across this sub-skill and
../airsim-simulator/.
Category routing
| User intent | Best route inside this sub-skill |
|---|---|
| drone inspection, obstacle avoidance, Tello-like object search | references/category-map.md#aerial-robotics |
| visual object navigation, turn/move step traces | references/category-map.md#embodied-agents |
| pick/place/stack/push manipulation | references/category-map.md#manipulation |
| comparing robot, car, and drone controllers | references/category-map.md#multiple-robots |
| camera-based ball catching or SVG-style image reasoning | references/category-map.md#spatial-temporal-reasoning |
| generic robotics control, coordinate transforms, or controllers | references/category-map.md#basic-robotics |
Prompt adaptation principles
- Preserve the list of allowed functions for the chosen robot.
- Ask a clarification question when object identity is ambiguous.
- Use only functions stated in the prompt context.
- Keep coordinate frames, units, and signs explicit.
- Prefer small, reviewable code snippets over large scripts unless the original example demonstrates an end-to-end script.
- Include an explanation when the repo's example style expects one.
Bundled helper
scripts/validate-prompt-example.pychecks a draft markdown prompt for core PromptCraft-Robotics structure signals.
Boundary with AirSim simulator
Some example categories mention AirSim drones, but example selection and adaptation still belongs here. Move to ../airsim-simulator/ only when the user asks about the runtime sample, its config files, wrapper functions, or API/runtime failures.
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).