/header-footer:header-footerfrom header-footer
Configures Claude Code's reply header (time, branch, folder) and footer/status line (tokens, clock, model, context) from a single config file. Turn each on/off, pick fields, order, time format, icons, and debug display issues.
Ships in header-footer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Two pieces, one config file (header-footer.json in the Claude config directory, ~/.claude unless CLAUDE_CONFIG_DIR is set):
UserPromptSubmit hook renders a line (time, date, weekday, folder, repository, branch) and injects it as <reply-header>...</reply-header> together with the instruction to copy it. The plugin registers this hook by itself (hooks/hooks.json).state field shows ● running 3m while Claude works, ◐ waiting while it waits for the user and ○ idle when it stops; the plugin's hooks on UserPromptSubmit, PostToolUse, Notification, PermissionRequest and Stop feed it. A plugin cannot set statusLine, so on footer copies the script to a stable path inside the Claude config directory and points statusLine there.Reply to the user in the user's language. The script's messages and the header's weekday are English by default and pt-BR when lang in header-footer.json (the lang command) or CAPYBARA_LANG says so; every command also takes --lang. When the user writes in Portuguese, run the commands with --lang pt-BR, and offer lang pt-BR if they want the messages and the weekday in Portuguese for good. The footer and the instruction that goes with the header line are the same in both languages.
If a <reply-header> tag is in your context, start your first reply of the turn with its text, verbatim, on a line of its own. Never estimate, complete or reformat it. If the tag is absent, write no header line and never invent one.
The script ships with this skill: ${CLAUDE_SKILL_DIR}/scripts/header_footer.py. Run it directly, always with python3 -I.
test -f "${CLAUDE_SKILL_DIR}/scripts/header_footer.py" && echo OK || echo FALTA
FALTA means "missing".
If ${CLAUDE_SKILL_DIR} appears unexpanded, use the path shown as "Base directory for this skill" when the skill was loaded. Write that path out in full in every command.
python3 -I "${CLAUDE_SKILL_DIR}/scripts/header_footer.py" status
It prints the config, how each piece is wired, a preview of both, and a diagnosis. Exit code 1 means it found problems; 2 means a usage or config error.
| The user wants | Command |
|---|---|
| header off / on | off header / on header (takes effect on the next prompt) |
| footer on / off | on footer / off footer (edits settings.json after a backup) |
| branch in the header | header-fields time,branch |
| seconds in the time | header-format "%H:%M:%S" |
| date as 16/10 | header-format "%d/%m" --date and add date to the header fields |
| remove the clock from the footer | footer-fields with the current list minus clock |
| show whether Claude is working | put state in footer-fields (it is in the default list) |
| another icon / separator | header-icon "⏱" / separator header " | " |
| what fields exist | fields |
| see both now | preview |
| messages and weekday in Portuguese (or back) | lang pt-BR / lang en (lang auto follows CAPYBARA_LANG) |
Field lists replace the current list: read the current fields from status first and send the whole new list.
If on footer answers that another statusLine already exists, show the user which command it is and ask. Re-run with --replace only after the user agrees. The backup of settings.json is kept next to it as settings.json.bak-header-footer-<timestamp>.
Show the preview line the script printed. Do not describe from memory how the header or the footer looks.
If the skill was copied with install.sh, the plugin's hooks.json is not active: the header and the state field have no hooks. Run wire-hooks to register them in settings.json, and unwire-hooks to remove them. On Windows, recommend wire-hooks even with the plugin installed: the plugin's hooks call python3, which Git Bash and PowerShell usually do not have, while wire-hooks writes the absolute interpreter path.
settings.json only through the script: it backs the file up and touches only its own entries.status warns about an older header hook still in settings.json (a reply-header.py or inject-timestamp.sh entry): with the plugin installed, that would print two headers. Tell the user and remove the old entry only with the user's approval.status may report that the stable copy is older than the plugin: re-run on footer (or wire-hooks) to refresh it. The same fix applies when status reports that the python written into settings.json no longer exists.status reports that the header is on but no hook runs it, check whether the plugin is enabled (it may be enabled only in a project settings.json, which status does not read); otherwise offer wire-hooks.gsd footer field shows the GSD status line when GSD is installed (hooks/gsd-statusline.js in the Claude config directory, plus node). Without GSD it renders nothing.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub dvwinck/capybara-toolbox --plugin header-footerOther plugins' skills for the same job