From habit
Use when the user wants to create a new habit or update an existing one through natural language. Triggers on: saving a habit, creating a workflow, editing a prompt, defining a reusable pattern.
How this skill is triggered — by the user, by Claude, or both
Slash command
/habit:edit <id> [changes or description]<id> [changes or description]This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
!`bash ${CLAUDE_PLUGIN_ROOT}/bin/habit-tools.sh check-triggers ${CLAUDE_SESSION_ID}`
!bash ${CLAUDE_PLUGIN_ROOT}/bin/habit-tools.sh check-triggers ${CLAUDE_SESSION_ID}
!bash ${CLAUDE_PLUGIN_ROOT}/bin/habit-tools.sh read-habit "$0"
!bash ${CLAUDE_PLUGIN_ROOT}/bin/habit-tools.sh read-shared PROCESSING.md
Output: the confirmation message or the question to the user.
Parse $ARGUMENTS: first token = id (lowercase, alphanumeric + hyphens, max 40 chars), rest = changes/description.
The existing habit content is loaded above. If it starts with SCOPE:<scope>, the habit exists. If NOT_FOUND, it's a new habit.
| Exists? | Input? | Action |
|---|---|---|
| Yes | Yes | Apply changes to existing habit, write back |
| Yes | No | Show current state, ask what to change |
| No | Yes | Create new habit from description |
| No | No | Ask what this habit should do and stop (skip steps 3-4) |
If the table action is "Ask what to change" or "Ask what this habit should do", skip steps 3 and 4 and ask the question. Otherwise apply the Processing Rules above. Edit in the scope where it was found. To change scope, the user must explicitly request it.
Write: bash ${CLAUDE_PLUGIN_ROOT}/bin/habit-tools.sh write-habit <scope> <id> '<frontmatter+body>'. Confirm: "Created habit [id]. Tags: [tags]. [description]. ([scope])." or "Updated habit [id]: what changed."
Verify: run bash ${CLAUDE_PLUGIN_ROOT}/bin/habit-tools.sh read-habit <id> and confirm the id, description, and tags match what you intended. If not, rewrite.
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub prog-jacob/habit --plugin habit