/code-habits:ephemeral-state-in-tmpfrom code-habits
Use when about to write a state, cursor, marker, scratch, or progress file for a cron loop, monitor task, polling job, recurring schedule, or any session-scoped/ephemeral data — directs the file to /tmp/<name>.json instead of ~/.claude/ or other config dirs.
Ships in code-habits. 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.
None: SKILL.md is the whole skill.
When you need to write a state file whose lifetime equals or is shorter than the current session, cron job, or monitor task — write it under /tmp/, not ~/.claude/ or any other config dir.
The session/cron/task dies or expires; whatever you wrote stays. A file in /tmp self-cleans on reboot and matches the lifetime correctly. A file in ~/.claude/ becomes orphan state cluttering the user's settings dir with no automatic cleanup, and the user has to find and delete it manually.
/tmp/<feature>-state.json, not ~/.claude/.<feature>-state.json/tmp/<task>-progress.json/tmp/poll-cursor.json~/.claude/ IS rightOnly for state that should survive across sessions: durable preferences, memory entries indexed via MEMORY.md, settings that persist beyond the lifetime of any single task. If the file is read by a session-only cron, it's not durable — it goes in /tmp.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub amitkot/claude-code-tools --plugin code-habits7 skills in this plugin
/comment-non-obvious-stepsUse when writing or editing code that contains repeated-looking calls on different structures, bitmask/bit-fiddling, ordering-sensitive sequences, or multi-step state mutations across data structures — adds a short inline comment per step explaining WHY each step is distinct, so a reader doesn't stop and ask "wait, why are there three of these?". Does not apply to trivial code with self-explanatory identifiers./deliverable-on-diskUse when about to mark a task as complete, done, finished, or shipped — verifies the deliverable actually exists as a file on disk, in a commit, or as a posted artefact. Blocks claiming completion based on chat output alone./