feat(note): add /note status-line reminder skill#4
Merged
Conversation
Pin a short, synthesized reminder to the Claude Code status line as a bold black-on-yellow sticky note on its own row. Notes are scoped per session (stored at $CFG/notes/<session_id>.txt) so they don't leak across sessions, and persist until cleared via `/note clear`. Ships an idempotent installer (scripts/install-note-statusline.sh) that wires the status line: creates one if absent (and prints the settings.json line), appends a guarded snippet to an existing standard status line, or prints the snippet for the user to paste when the existing status line is custom. Note: Claude Code's status line only honors SGR color / OSC 8 link escapes and trims leading whitespace, so the note is left-aligned (right-alignment isn't achievable). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a new
noteskill:/note <reminder>synthesizes a terse one-liner and pins it to the Claude Code status line as a bold black-on-yellow sticky note on its own row./note clearremoves it.Why
A lightweight, always-visible "don't forget" for the current task (e.g. revert the test-only flag before merging) without leaving the terminal.
Design notes
$CFG/notes/<session_id>.txt(keyed offCLAUDE_CODE_SESSION_ID/ the status-linesession_id), so a note pinned in one session never shows up in another.scripts/install-note-statusline.shis idempotent and handles three cases: no status line (creates one + prints thesettings.jsonline), an existing standard status line that capturesinput=\$(cat)(appends a guarded snippet), or a custom status line it doesn't recognize (prints the snippet to paste, never edits).COLUMNSis delivered, but neither space-padding nor cursor-forward escapes reposition the row).Test
Installer fresh-install / idempotency / append / custom-untouched paths all verified; render confirmed left-aligned on its own line.
🤖 Generated with Claude Code