MiaoDX/roboclaws / skills/household-world
household-world
VerifiedComplete household-world goals through public household MCP tools.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 12.6 KB |
| scripts/scratchpad.pyexecutable | script | 5.6 KB |
| scripts/target_query_recovery.py | script | 1.5 KB |
| scripts/trace_preserving_cleanup.pyexecutable | script | 4.9 KB |
| skill.json | config | 2.9 KB |
scripts/trace_preserving_cleanup.py
View on GitHub#!/usr/bin/env python3
"""Skill helper for the canonical Molmo cleanup routine."""
from __future__ import annotations
import argparse
import json
from collections.abc import Callable
from typing import Any
from roboclaws.household.cleanup_routine import (
PUBLIC_ATOMIC_TOOLS,
ROUTINE_NAME,
fixture_requires_open,
normalize_placement_tool,
routine_plan,
)
from roboclaws.household.cleanup_routine import (
run_cleanup_routine as _run_canonical_cleanup_routine,
)
CallTool = Callable[..., dict[str, Any]]
class _McpToolAdapter:
def __init__(self, call_tool: CallTool) -> None:
self._call_tool = call_tool
def navigate_to_object(self, object_id: str) -> dict[str, Any]:
return self._call_tool("navigate_to_object", object_id=object_id)
def adjust_camera(
self,
yaw_delta_deg: float = 0.0,
pitch_delta_deg: float = 0.0,
) -> dict[str, Any]:
return self._call_tool(
"adjust_camera",
yaw_delta_deg=yaw_delta_deg,
pitch_delta_deg=pitch_delta_deg,
)
def observe(self) -> dict[str, Any]:
return self._call_tool("observe")
def pick(self, object_id: str) -> dict[str, Any]:
return self._call_tool("pick", object_id=object_id)
def navigate_to_receptacle(self, fixture_id: str) -> dict[str, Any]:
return self._call_tool("navigate_to_receptacle", fixture_id=fixture_id)
def open_receptacle(self, fixture_id: str) -> dict[str, Any]:
return self._call_tool("open_receptacle", fixture_id=fixture_id)
def place(self, fixture_id: str) -> dict[str, Any]:
return self._call_tool("place", fixture_id=fixture_id)
def place_inside(self, fixture_id: str) -> dict[str, Any]:
return self._call_tool("place_inside", fixture_id=fixture_id)
def close_receptacle(self, fixture_id: str) -> dict[str, Any]:
return self._call_tool("close_receptacle", fixture_id=fixture_id)
def run_cleanup_routine(
call_tool: CallTool,
*,
object_id: str,
fixture_id: str,
placement_tool: str = "auto",
static_fixture_projection: dict[str, Any] | None = None,
) -> dict[str, Any]:
"""Clean one observed object through the shared canonical routine engine."""
adapter = _McpToolAdapter(call_tool)
return _run_canonical_cleanup_routine(
contract=adapter,
object_id=object_id,
fixture_id=fixture_id,
placement_tool=placement_tool,
static_fixture_projection=static_fixture_projection,
target_request_key="fixture_id",
include_object_id_in_receptacle_request=False,
include_object_id_in_target_requests=False,
)
def main(argv: list[str] | None = None) -> int:
parser = argparse.ArgumentParser(
description="Describe the canonical Molmo cleanup skill routine.",
)
parser.add_argument("--fixture-id", default="")
parser.add_argument("--placement-tool", default="auto")
parser.add_argument("--static-fixture-projection-json", default="")
args = parser.parse_args(argv)
static_fixture_projection = _parse_static_fixture_projection_json(
args.static_fixture_projection_json
)
payload = {
"routine": ROUTINE_NAME,
"public_atomic_tools": list(PUBLIC_ATOMIC_TOOLS),
"fixture_id": args.fixture_id,
"placement_tool": normalize_placement_tool(
args.placement_tool,
fixture_id=args.fixture_id,
static_fixture_projection=static_fixture_projection,
)
if args.fixture_id
else args.placement_tool,
"fixture_requires_open": fixture_requires_open(
args.fixture_id,
static_fixture_projection=static_fixture_projection,
)
if args.fixture_id
else False,
"tool_chain": routine_plan(
fixture_id=args.fixture_id,
placement_tool=args.placement_tool,
static_fixture_projection=static_fixture_projection,
)
if args.fixture_id
else [
"navigate_to_object",
"pick",
"navigate_to_receptacle",
"place|place_inside",
],
}
print(json.dumps(payload, indent=2, sort_keys=True))
return 0
def _parse_static_fixture_projection_json(text: str) -> dict[str, Any] | None:
if not text:
return None
try:
payload = json.loads(text)
except json.JSONDecodeError as exc:
raise SystemExit(
"static fixture projection JSON source must contain valid JSON object: "
f"--static-fixture-projection-json: line {exc.lineno} column {exc.colno}: {exc.msg}"
) from exc
if not isinstance(payload, dict):
raise SystemExit(
"static fixture projection JSON source must contain a JSON object: "
"--static-fixture-projection-json"
)
return payload
if __name__ == "__main__":
raise SystemExit(main())
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |