compute-strategy
Guide the agent to effectively use execute_code() for computation-assisted decision making during navigation and inspection tasks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Guide the agent to effectively use execute_code() for computation-assisted decision making during navigation and inspection tasks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Fly around a visible target and station directly above it at a safe distance. Use for reposition tasks that must end overhead of the target rather than in front of it.
Always-on operational baseline for SpaceMind. Defines shared coordinates, action policy, safety guards, observability rules, and perception workflow for all tasks.
Image-first laboratory navigation policy for ground-robot experiments. Use when the task must be solved with raw current images, conservative motion, and no oracle geometry.
Recover a temporarily lost target in the laboratory with bounded planar search and no blind forward motion.
Safely approach a visible laboratory satellite target and stop in a conservative near-front hold using only current images and motion tools.
Diagnose the laboratory target from raw image evidence, conservative viewpoint changes, and optional code support.
| name | compute-strategy |
| description | Guide the agent to effectively use execute_code() for computation-assisted decision making during navigation and inspection tasks. |
| metadata | {"skill_kind":"helper","routing_summary":"Add when execute_code is available and the agent may benefit from computation for trajectory planning, evidence scoring, or multi-step reasoning.","routing_keywords":["execute_code","code execution","compute","trajectory planning","scoring","calculation"]} |
execute_code()Consider using execute_code() when:
Do not default to ignoring execute_code() when it is available; treat it as a genuine option each step.
execute_code() in this step, do not also call a motion tool.set_position(), set_attitude(), or terminate_navigation().# Example 1: Plan a 20%-rule approach sequence from current distance
dist = 9.8 # from lidar
steps = []
while dist > 3.0:
dx = round(dist * 0.2, 3)
dist -= dx
steps.append({"dx": dx, "remaining": round(dist, 3)})
print(steps) # use the first entry as the next move
# Example 2: Score inspection evidence before termination
evidence = {"solar_panel": "intact", "antenna": "missing", "thermal_blanket": "torn"}
score = sum(1 for v in evidence.values() if v != "intact")
print(f"Anomaly count: {score}/{len(evidence)}, recommend: {'terminate' if score > 0 else 'continue'}")
# Example 3: Compare candidate motion plans
import math
candidates = [
{"dx": 1.0, "dy": 0, "dz": 0},
{"dx": 0.8, "dy": 0.3, "dz": 0},
{"dx": 0.5, "dy": 0, "dz": -0.2},
]
target = {"x": 5.0, "y": 0.5, "z": -0.1}
for c in candidates:
remaining = math.sqrt((target["x"]-c["dx"])**2 + (target["y"]-c["dy"])**2 + (target["z"]-c["dz"])**2)
print(f" {c} -> remaining {remaining:.2f}m")