/code-habits:plans-and-investigations-locationfrom code-habits
Use when about to write an implementation plan, investigation note, design sketch, post-mortem, or any markdown capturing personal process inside a project repo — and especially when about to save under `docs/plans/`, `docs/investigations/`, or `docs/design/`. Routes personal/in-flight work to `.local/<kind>/` (gitignored) and reserves `docs/<kind>/` for shared, team-reviewed artefacts.
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.
.local/ first, docs/ only when sharedPersonal-process markdown — plans you're drafting, investigation notes, design sketches, post-mortem scratch — defaults to .local/<kind>/<slug>.md (gitignored). Write to docs/<kind>/<slug>.md only when the artefact is explicitly meant for the team or being promoted as canonical.
docs/ is git-tracked, so every WIP plan and half-finished investigation that lands there becomes commit-history noise teammates see in diffs. .local/ (excluded via .git/info/exclude or .gitignore) gives the same plans/, investigations/, design/ ergonomics without polluting shared history. The split has to be made at file-creation time — once committed, a private-flavoured doc is harder to retract than to never write there.
Default to .local/<kind>/ for plans drafted before approval, investigation notes and raw findings, unshared design sketches, anything you'd be mildly embarrassed to see in git log next month.
Write to docs/<kind>/ only when the user asks for a shared artefact, when promoting a reviewed plan to canonical, or for a deliverable in itself (architecture reference, runbook, post-mortem the team will read). Promote .local/ → docs/ as an explicit move + commit the user can see, not a quiet git add.
.local/ has no git history or backup — anything that becomes load-bearing (referenced across sessions, asked about by others) should graduate to docs/.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
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./ephemeral-state-in-tmpUse 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./evidence-over-speculationUse when about to assert a fact about code behavior, data state, configuration, or system behavior you have not directly verified — requires either reading the source/running the query/checking the log first, or labelling the claim explicitly as a hypothesis. Also covers secondary sources (deepwiki, subagent reports, web search, memory entries): keep the source tag visible and verify cited facts before relaying them as primary-source assertions./extend-not-duplicateUse when about to write a new script, command, or file that is near-identical to an existing one with small variations — adds a CLI flag, parameter, or config option to the existing script instead of creating a parallel copy./one-test-one-thingUse when writing or reviewing a unit/integration test — enforces a clear scenario-shaped name (no `_and_`), Arrange/Act/Assert structure with visible separation, and one logical behaviour per test. A failing test name should describe exactly what regressed without opening the file. Multiple scenarios become multiple tests, not one test with branches or `_and_` in the name.