headroom
Use when the user wants Claude to work with a document, log or data file too large to read whole, such as long specs, big logs or large JSON or CSV files.
от siddu1004★ 43 звезды на GitHub
Установить headroom в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Headroom
Scripts: ${CLAUDE_SKILL_DIR} is the folder that contains this file. If your agent does not define it, use the folder where this SKILL.md is located.
Work with very large files without filling the context: measure first, then read in pieces and keep a short digest.
1. Measure
python3 ${CLAUDE_SKILL_DIR}/scripts/peek.py <file>
It prints size, line count, an outline (Markdown headings, top-level JSON keys, CSV columns with a few sample rows, or the most frequent log line patterns) and the line numbers where each section starts. Use it to decide what to read.
2. Read only what the task needs
- Text and Markdown: read the sections from the outline by line range
- Logs:
grep -nfor the error, time window or request ID, then read a few lines around each hit - JSON: extract the path you need (
python3 -cwithjson, orjqif installed) instead of reading the file - CSV: read the header and filter rows with a short script; compute counts and sums with code, not by reading rows
3. Keep a digest
For long documents, write what you learned to a digest file (for example notes/<file>.digest.md): key facts, numbers and the line ranges they came from. Refer back to the digest instead of re-reading the source. Cite line numbers so the user can check.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- scripts/peek.py
FAQ
Что делает скилл headroom?
Use when the user wants Claude to work with a document, log or data file too large to read whole, such as long specs, big logs or large JSON or CSV files.
Как установить скилл headroom?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл headroom запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…