habit
Use when the user mentions habits, saved prompts, reusable workflows, repeated commands, or their prompt inventory. Triggers on: browsing, searching, listing, or selecting habits.
/habit: Entry Point & Browse
This skill is the main entry point for the Habit system. Route based on what the user is asking for:
@${CLAUDE_PLUGIN_ROOT}/skills/habit-shared/TRIGGERS.md
Routing
- Browsing/searching/listing → handle below.
- Viewing full details ("show me X", "what does X do") → guide to
/habit:edit <id>(shows full content when no changes are provided). - Creating or editing → guide to
/habit:edit <id> <description>. - Running a specific habit → guide to
/habit:run <id> [override]. - Watching/observing → guide to
/habit:watch. - Extracting/sweeping → guide to
/habit:distill. - Discovery → explain the habit system briefly and suggest
/habit:editor/habit:watch.
Index (merged, project shadows global)
!bash ${CLAUDE_PLUGIN_ROOT}/bin/habit-tools.sh read-index merged
Browse & Select
-
$ARGUMENTSempty → list all. Non-empty → search query. -
The merged index is already loaded. Each entry has a
scopefield (globalorproject). Show[G]/[P]indicators. Exclude archived. -
If searching, fuzzy-match query against id, tags, description. Show only entries that match. If nothing matches, say so and suggest creating one or trying a different search.
-
Numbered list of matching entries, one line each:
N. [scope] id tags description. Never mention archived entries to the user. -
After list:
Pick a number or name to run, add context for an override (e.g. "1 only in auth" or "fix-types in auth"), or say "edit N" to modify.
-
When user picks one: guide to
/habit:run <id> [override]. -
Empty inventory:
No habits yet. Create one with
/habit:edit <name> <description>or start watching with/habit:watch.