Skip to content
Back to skills

Nav Backtrack

ASecurity

Attempt to return to a recently known safe navigation state using bounded local motion.

  • 10 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 6, 2026
toolspython

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned June 6, 2026

npx -y skills add bdambrosio/Cognitive_workbench --skill nav-backtrack --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Nav Backtrack?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Nav Backtrack
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bdambrosio-nav-backtrack/badge)](https://www.skillsdirectory.com/skills/bdambrosio-nav-backtrack)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: nav-backtrack
type: python
description: "Attempt to return to a recently known safe navigation state using bounded local motion."
---

# nav-backtrack

Recovery tool that searches `world_state("nav")` history for a safe prior cell and attempts to reach it using atomic nav primitives.

## Input

- `max_targets`: Integer maximum number of safe targets to try (default: `3`)

## Output

Success (`status: "success"`):
- `value`: Summary text
- `extra.recovered_to`: `{x, y, z, yaw}` position recovered to
- `extra.method`: `"step"` | `"climb"` | `"descend"`
- `extra.yaw`: Final yaw

Failure (`status: "failed"`):
- `reason`: One of `"NO_HISTORY"`, `"STATUS_FAILED"`, `"NO_SAFE_TARGET"`, `"UNREACHABLE"`

## Behavior

- Reads `world_state("nav")` and chooses up to `max_targets` safe entries
- Uses `nav-turn` + one of: `nav-move`, `nav-climb`, `nav-descend`
- Verifies cell match via `mc-status`

## Planning Notes

- Requires navigation history to be maintained by nav tools
- If recovery fails, consider `mc-place-until-supported` or broader replanning

## Example

```json
{"type":"nav-backtrack","max_targets":3,"out":"$recovery"}
```

Files in this skill

  • Skill.md1.1 KB
  • tool.py7.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.