home / skills / bdambrosio / cognitive_workbench / debug-coord-transform
This skill helps you validate and convert coordinates between agent-relative and world-relative frames for debugging and testing transformations.
npx playbooks add skill bdambrosio/cognitive_workbench --skill debug-coord-transformReview the files below or copy the command above to add this skill to your agents.
---
name: debug-coord-transform
type: python
hidden: true
description: "Debug tool: Transform coordinates between agent-relative and world-relative"
---
# debug-coord-transform
Debug tool for testing coordinate transformations. Converts between agent-relative and world-relative coordinates.
## Input
- `dx`: float - X coordinate
- `dy`: float - Y coordinate (unchanged, always vertical)
- `dz`: float - Z coordinate
- `yaw`: float - Agent yaw in degrees (default: from current status)
- `direction`: string - "agent-to-world" or "world-to-agent" (default: "agent-to-world")
## Output
Returns uniform return format with:
- `value`: Summary text
- `data`: Dict with:
- `input`: `{dx, dy, dz, yaw, direction}`
- `output`: `{dx, dy, dz}` (transformed coordinates)
## Notes
- Hidden from planner catalog (debug/testing only)
- Useful for validating coordinate transformations
- Accessible via direct `{"type": "debug-coord-transform"}` invocation
This skill is a debug tool that converts coordinates between agent-relative and world-relative frames. It helps validate and inspect coordinate transforms by applying a yaw rotation and returning both the original inputs and transformed values. Designed for quick, programmatic checks during development and testing.
Provide a 3D offset (dx, dy, dz) and an agent yaw in degrees. The skill rotates the X/Z pair around the vertical Y axis according to the specified direction: agent-to-world applies the agent yaw to local coordinates, world-to-agent applies the inverse rotation. The output includes a text summary and a data object showing the original input and the transformed coordinates.
What inputs are required?
Provide dx, dy, dz and optionally yaw and direction. dy is unchanged; yaw defaults to the current agent status if not supplied.
What does direction mean?
"agent-to-world" rotates local coordinates by the agent yaw into world frame. "world-to-agent" applies the inverse rotation to convert world coordinates into the agent frame.