Skip to content
Back to skills

Baton

ASecurity

Save and resume compaction-proof task state, verified facts, falsified dead-ends, and next steps across sessions, git worktrees, and heterogeneous agents (Claude Code, Codex, Grok, Antigravity, Pi) in <500 tokens.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 26, 2026
ai-agentsgobashdockergit

Works with

  • claude code

Security analysis

A100/100

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

Scanned November 26, 2026

npx -y skills add xgbtxy/ap --skill baton --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Baton?

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

Security grade badge for Baton
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/xgbtxy-baton/badge)](https://www.skillsdirectory.com/skills/xgbtxy-baton)

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: baton
description: Save and resume compaction-proof task state, verified facts, falsified dead-ends, and next steps across sessions, git worktrees, and heterogeneous agents (Claude Code, Codex, Grok, Antigravity, Pi) in <500 tokens.
---

# Baton — Compaction-Proof State & Cross-Agent Handoff Capsule

Eliminate post-compaction amnesia and cross-agent state loss without cloud accounts, Docker, or token-burning LLM observers. Stores a deterministic `<500`-token state capsule in `.baton/`.

## Usage

```bash
# 1. Start or update active task state
ap baton set --goal "Fix OTLP retry backoff jitter" --next "Run unit test on line 142"

# 2. Record verified ground-truth facts & falsified dead-ends (prevents repeat loops!)
ap baton fact "Timeout originates in exporter/http.rs:88" --ref "exporter/http.rs:88"
ap baton deadend "Increasing pool_maxsize had zero effect on 429 retries"

# 3. Auto-snapshot workspace state (wire into PreCompact / Stop hooks)
ap baton checkpoint --note "Before context compaction"

# 4. Resume cleanly in <500 tokens in any new session or different agent
ap baton resume
```

Files in this skill

  • README.md1.5 KB
  • README.zh-CN.md1.4 KB
  • SKILL.md1.1 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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

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