Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

high-tide

БесплатноЗапускает вложенные скриптыНе проверен

Context pressure checkpoint, self-handoff, and durable lesson capture workflow. Use when an agent is near the context limit, context usage is above 98%…

blacktopот blacktop★ 17 звёзд на GitHub

Об этом скилле

High Tide

Use this skill to stop before context quality drops, capture the facts that matter, persist durable project lessons when warranted, and produce a restart handoff for the same work after the user runs /clear.

When to Use

  • Use when measured context usage is above 98%, a context-limit or auto-compaction warning appears, or the user invokes $high-tide.
  • Use before the user runs /clear so the next fresh session can resume from a compact handoff instead of the full transcript.
  • Use after a long debugging or research session where confusion, false trails, blockers, or hard-won corrections would save future agents real time.
  • Use when a project lesson should be saved to the most specific docs/.ai/lessons/ directory before the current context is discarded.

When NOT to Use

  • Do not interrupt a short, low-context task just to produce process notes.
  • Do not create files when the user requested read-only, review-only, report-only, or diagnostic-only work.
  • Do not replace a requested final answer with a handoff when the task is already complete.
  • Do not claim a context threshold was crossed unless a measured source reports it.
  • Do not write project lessons for one-off session trivia, ordinary command failures, or facts already obvious from existing docs.

Trigger Check

At natural checkpoints and before large exploratory reads, check a measured context signal. Do not invent a percentage.

Use scripts/context_percent.py when a measured payload or status snippet is available and a normalized used percentage is needed. The helper accepts Claude status-line JSON, rendered status-line text such as ctx:87%, Codex /status text, or an explicit value marked with --mode used or --mode remaining. When run without stdin, files, or literal input, it checks fresh Claude statusline telemetry for this session only, at <config-dir>/statusline/by-session/$CLAUDE_CODE_SESSION_ID.json across the standard local Claude variants. Telemetry that cannot be tied to the caller's own session is another pane's usage, so the helper ignores it rather than reporting it: with several agents running, the newest file on disk is rarely yours. It exits 0 only when it found a measured context percentage, 1 when no measured value was present, and 2 for invalid or conflicting input. Record the helper's reported source in the handoff.

Use these sources, in order:

  • Claude Code status-line JSON, when available to the agent, a wrapper, or a helper script: read context_window.used_percentage. This is the documented machine-readable field passed on stdin to configured status-line commands. In this dotfiles repo, ai/claude/statusline.sh reads that field in its single jq pass and renders it as ctx:<pct>%.
  • The status-line script source is not the live value. It proves which field to use; the measured value must come from the current status-line stdin payload, rendered status-line output such as ctx:87%, or a file/artifact written from that payload.
  • Persisted status-line telemetry, when configured by the project or user: read the file or artifact produced from the same status-line JSON and record its path and timestamp as the context source. This dotfiles setup writes one minimal Claude telemetry file per session to <config-dir>/statusline/by-session/<session-id>.json; scripts/context_percent.py reads the caller's own fresh file automatically. This is the preferred autonomous route when an agent cannot directly see the UI footer or status-line stdin. An exit of 1 here means the meter is genuinely unavailable — treat it as unknown and follow the no-guessing rule below; it is not a signal that context is high.
  • Claude Code interactive state: ask for or use /context if the user/harness can provide its output. Use the displayed context usage percent or free-space percent from that output.
  • Codex CLI or Codex IDE/app: use /status for thread/context/rate-limit status. If the TUI footer is configured, use /statusline context items such as context-remaining or context percentage. When the visible Codex value is remaining context, convert it to used percentage with scripts/context_percent.py --mode remaining or feed the full /status text to the helper.
  • Harness-provided notices: use an explicit UI meter, system context-budget notice, or tool-provided remaining-context value only if it is surfaced as a concrete number.
  • Transcript/log analyzers: use only if they read actual recorded usage/context fields. Label the source and timestamp in the handoff.

Do not use these as context-usage truth:

  • ordinary shell environment variables. Current Claude/Codex context usage is not documented as a normal env var. Claude env vars such as CLAUDE_AUTOCOMPACT_PCT_OVERRIDE and CLAUDE_CODE_AUTO_COMPACT_WINDOW configure behavior; they do not report current usage. This differs from status-line JSON, which is a host-provided stdin payload to a specific configured command, not a process-wi
Полный SKILL.md на GitHub

Установить high-tide в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

agents/openai.yamlreferences/context-patterns.mdscripts/context_percent.py

FAQ

Что делает скилл high-tide?

Context pressure checkpoint, self-handoff, and durable lesson capture workflow. Use when an agent is near the context limit, context usage is above 98%, auto-compaction or context warnings appear, the user says high tide, before `/clear`, or after a long confusing/debugging session where lessons learned should be preserved for the next fresh session or written to project-local `docs/.ai/lessons/`.

Как установить скилл high-tide?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл high-tide запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить high-tide с