agentleFS
AaronCarneyAaronCarney/pass-the-baton/.claude/skills/baton/SKILL.md

baton

Skill2 starsChanged 4 months agoMITView on GitHub

View or change Pass the Baton configuration. Use for template switching, threshold adjustment, or inspecting current config.

6 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions6 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 6

    1. fullerzz/agent-skills★ 2same name
    2. jeremyknows/baton★ 2same name
    3. xgbtxy/ap★ 2same name
    4. alfabaykal/skills★ 1same name
    5. Harshit1garg1/Baton★ 0same name
    6. matthewrball/baton★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repositoryOne other file it gives its agents.

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When installed as a plugin the command is namespaced: /pass-the-baton:baton.

    line 8

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/baton - Configuration Dashboard

When installed as a plugin the command is namespaced: /pass-the-baton:baton. The bare /baton form is available only via the manual install.sh project-local install.

When to Use

  • See the current Pass the Baton config (/baton or /baton show)
  • Change a config value (/baton set key=value)
  • Switch progress-file template (/baton set template=factory)
  • Point the user at the interactive dashboard (tools/baton-dashboard.sh tui) - it needs a real terminal, so hand them the command rather than running it yourself

Process

Show mode (default)

bash "${CLAUDE_PLUGIN_ROOT:-$CLAUDE_PROJECT_DIR}/tools/baton-dashboard.sh" show

Prints current global keys + active template's template_version. Does not modify anything.

Set mode

bash "${CLAUDE_PLUGIN_ROOT:-$CLAUDE_PROJECT_DIR}/tools/baton-dashboard.sh" set <key>=<value> [<key2>=<value2> ...]

Valid keys. show lists them grouped by category, and reads each with env-var > config.json > default precedence (lib/config.sh).

[Existing]

KeyValidationExample
templateOne of: free, task, factory, or a custom template installed at $XDG_CONFIG_HOME/baton/templates/<name>.mdtemplate=factory
threshold_pctInteger 1-99threshold_pct=35
display_nameFree-form stringdisplay_name=myproject
templates_dirFree-form pathtemplates_dir=/path/to/templates
project_context_filePath relative to project rootproject_context_file=.baton-project/project-context.json
max_terminals_per_workstreamNon-negative integermax_terminals_per_workstream=4
auto_continue_modeOne of: off, tmux, relaunch (selects the baton launcher's auto-continue driver)auto_continue_mode=relaunch
launch_aliasAlias name matching [A-Za-z_][A-Za-z0-9_-]*, not a shell builtin/keyword or a name already on PATH; writes/rewrites the alias <name>='bash <repo>/tools/baton-run.sh' rc blocklaunch_alias=baton

[Paths] - non-empty string

KeyValidationExample
BATON_DIRNon-empty pathBATON_DIR=/srv/.baton
BATON_PROGRESS_DIRNon-empty pathBATON_PROGRESS_DIR=/srv/.baton/progress
BATON_ARCHIVE_DIRNon-empty pathBATON_ARCHIVE_DIR=~/.local/share/baton
BATON_PROJECT_DIRNon-empty pathBATON_PROJECT_DIR=/srv/repo

[TTLs] - non-negative integer (regex ^[0-9]+$; NOT trimmed - 14 is rejected)

KeyValidationExample
BATON_WORKSTREAM_TTL_DAYSInteger ≥0BATON_WORKSTREAM_TTL_DAYS=30
BATON_TRACKING_TTL_DAYSInteger ≥0BATON_TRACKING_TTL_DAYS=90
BATON_TMP_TTL_HOURSInteger ≥0BATON_TMP_TTL_HOURS=48
BATON_SWEEP_INTERVAL_HOURSInteger ≥0BATON_SWEEP_INTERVAL_HOURS=48
BATON_PROGRESS_COLD_DAYSInteger ≥0BATON_PROGRESS_COLD_DAYS=14

[Opt-ins] - 0 or 1

KeyValidationExample
BATON_TIMING0 or 1BATON_TIMING=1
BATON_OUTCOME_PROXIES0 or 1BATON_OUTCOME_PROXIES=1
BATON_PREWARM0 or 1BATON_PREWARM=1
BATON_EVENT_LOG_DISABLE0 or 1BATON_EVENT_LOG_DISABLE=1

[Event-log] - non-empty string

KeyValidationExample
BATON_EVENT_LOGNon-empty pathBATON_EVENT_LOG=/srv/hook-events.jsonl
BATON_OTEL_EXPORTNon-empty stringBATON_OTEL_EXPORT=otlp

[Cost-model]

KeyValidationExample
BATON_COST_MODELNon-empty string (resolved by cost.sh)BATON_COST_MODEL=claude-sonnet-4-6
BATON_SUMMARY_MODELNon-empty string (resolved by cost.sh)BATON_SUMMARY_MODEL=claude-sonnet-4-6
BATON_TOKEN_RATIOSNon-empty string (= preserved in value)BATON_TOKEN_RATIOS=input=3,output=15

[Statusline]

KeyValidationExample
BATON_STATUSLINE_COLOR_MODEOne of: off, solid, bandsBATON_STATUSLINE_COLOR_MODE=bands

On validation failure, the driver prints an error to stderr and exits 1 without modifying the config.

TUI mode

bash "${CLAUDE_PLUGIN_ROOT:-$CLAUDE_PROJECT_DIR}/tools/baton-dashboard.sh" tui

A tabbed interactive dashboard: Status (context fill, threshold, auto-continue mode, whether a checkpoint is owed, bound session), Config (the editable keys show prints), History (the last 10 cost entries), Workstreams (tracked progress files). 1-4 switch tabs, r redraws, q quits. On the Config tab up / down move the cursor and enter edits the selected key through the same validation path as set.

Do not run this for the user. The TUI requires stdin and stdout to both be real TTYs. A tool call has neither, so it falls back to plain show output - you would report a dashboard the user never saw. Give them the command to run in their own terminal instead.

BATON_DIR, BATON_PROJECT_DIR and template_version are read-only and do not appear on the Config tab.

Important

  • Config file: $XDG_CONFIG_HOME/baton/config.json (or ~/.config/baton/config.json if XDG unset)
  • Atomic writes under flock
  • Template switch is refused while a checkpoint is in flight (PENDING flag set) - retry after the progress file is written
  • The PENDING check is scoped to THIS terminal's own session: the switch is refused only while this session has a live in-flight checkpoint - its own /tmp/baton-pending-<session_id> flag (keyed on the resume-stable session_id) with a fresh pct sibling inside the liveness window. A pending checkpoint in another terminal or project no longer blocks it. The flag clears on the next progress write (typically a single Write away), and is ignored once the owning session ends, since its pct sibling stops refreshing and ages out of the window.
  • The shipped templates (free, task, factory) are always available; custom templates require installation first per share/templates/README.md

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.