Agent skill

Habit Hooks Prompting

by habit-hooks in habit-hooks/habit-hooks

Write or revise a habit-hooks coaching prompt. An agent skill from habit-hooks/habit-hooks.

MITAuto-check passedDevelopment

Install Habit Hooks Prompting

skills CLI
$ npx skills add habit-hooks/habit-hooks --skill habit-hooks-prompting -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install habit-hooks/habit-hooks habit-hooks-prompting --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/habit-hooks/habit-hooks.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/habit-hooks-prompting .claude/skills/habit-hooks-prompting && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
habit-hooks-prompting
GitHub stars
222
Token cost
~570 tokens
SKILL.md length
297 words
Files
1
Skills in repo
4
Repo updated
First seen
Licence
MIT

At a glance

Write or revise a habit-hooks coaching prompt. An agent skill from habit-hooks/habit-hooks.

  • A linter / knip / jscpd rule fires and the agents default fix is wrong
  • SKILL.md covers When to write one, Keep it short (KISS), Use ROSE and Where prompts live
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Adding a project-local override prompt

What it does

Habit Hooks Prompting is an agent skill from habit-hooks/habit-hooks. Write or revise a habit-hooks coaching prompt. Use when a linter / knip / jscpd rule fires and the agent's default fix is wrong or shallow, or when adding a project-local override prompt. Keeps prompts short and outcome-focused using the ROSE pattern.

Its SKILL.md is about 570 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Linting and formatting. It works with ESLint. The repository describes itself as: Automated quality checks that nudge AI coding agents toward better habits. The licence is MIT.

When your agent uses it

  • A linter / knip / jscpd rule fires and the agents default fix is wrong
  • Adding a project-local override prompt

Example prompts

  • “/habit-hooks-prompting”

What it can do on your machine

Read from SKILL.md and the folder at commit 5603331. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Habit Hooks Prompting loads about 570 tokens when it runs. Until then it costs about 68 tokens; SKILL.md has 297 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~68
When it runs · the whole SKILL.md, loaded when a task matches
~570

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from habit-hooks/habit-hooks at commit 5603331, republished under its MIT licence (© habit-hooks). 297 words, ~570 tokens.

Download SKILL.mdSave it as .claude/skills/habit-hooks-prompting/SKILL.md (or your agent's skills folder).
name
habit-hooks-prompting
description
Write or revise a habit-hooks coaching prompt. Use when a linter / knip / jscpd rule fires and the agent's default fix is wrong or shallow, or when adding a project-local override prompt. Keeps prompts short and outcome-focused using the ROSE pattern.

Habit Hooks Prompting

Coaching prompts exist to change behaviour the agent gets wrong by default — nothing else.

The goal of every prompt is to drive the agent to fix the root cause the violation points at, not to appease the reporting tool. A fix that clears the report while going against the spirit of the rule is a failure, even when the tool goes green.

When to write one

  • The rule's own message already produces the right fix → write nothing. Let it fall through to the uncoached prompt. Don't coach what already works.
  • The agent's default reaction is shallow or wrong — mechanical extraction that misses the real design problem, silencing instead of fixing, a reflexive eslint-disable → write a prompt that redirects it.

This is reactive: add a prompt the moment you catch the default behaviour being wrong, not pre-emptively for every rule.

Keep it short (KISS)

A good prompt is the minimum text that reliably nudges the right behaviour. If it reads like an essay, cut it — direction beats explanation. The agent already has the violation in front of it.

Use ROSE

ROSE structures feedback so the agent understands why, not just what, and fixes the cause rather than the symptom:

  • Risk — the consequence of leaving it as-is.
  • Observation — what was seen. The linter already supplies this (file, line, rule); don't repeat it.
  • Solution — the specific move you want, including the non-obvious one the agent tends to miss.
  • Expected outcome — what "done right" looks like, so the agent can check itself.

So a habit-hooks prompt writes R, S, E and lets the tool supply O. See eslint-fatal.md and eslint-typescript-eslint-no-non-null-assertion.md for prompts in this shape.

Where prompts live

  • Bundled: src/prompts/<slugified-rule-id>.md (: and / → -, @ dropped).
  • Project-local override: a file of the same name in the directory set by prompts: in habit-hooks.config.

© habit-hooks, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/habit-hooks-prompting of habit-hooks/habit-hooks.

Open the folder on GitHubat commit 5603331

Compare with similar skills

Habit Hooks Prompting next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Habit Hooks Prompting compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Habit Hooks Prompting this skillhabit-hooks/habit-hooks222—~570Automated safety check: PassMIT
LobeHub Alint Rule Set Maintenancelobehub/lobehub83k—~1.9kAutomated safety check: PassCustom licence
Eslint Migrate Optionsbiomejs/biome26k—~1.4kAutomated safety check: PassApache-2.0
Ultraciteagustinusnathaniel/nextarter-tailwind1252 repos~1.2kAutomated safety check: PassMIT
Code Qualityredis/RedisInsight8.9k—~1.2kAutomated safety check: PassCustom licence
Boundaries Architectjavierbrea/eslint-plugin-boundaries997—~4.2kAutomated safety check: PassMIT

Similar skills

  • Maintains LobeHub's model-backed alint rule set: writing rules, removing false positives against real code, deciding warn versus error and tracking token cost.

    83k GitHub stars~1.9k tokensUpdated today
    DevelopmentAuto-check passed
  • Official

    A skill your agent uses when biome migrate eslint must preserve configurable ESLint rule options through source-option models, Biome conversions, typed rule variants, and migration fixtures.

    26k GitHub stars~1.4k tokensUpdated today
    DevelopmentAuto-check passed
  • Ultracite

    agustinusnathaniel/nextarter-tailwind

    Ultracite is a zero-config linting and formatting preset for JavaScript/TypeScript projects.

    125 GitHub starsUsed in 2 repos~1.2k tokens
    DevelopmentAuto-check passed
  • Code Quality

    redis/RedisInsight

    Official

    Code-quality standards for RedisInsight: TypeScript strictness, naming conventions (camelCase, PascalCase, UPPERSNAKECASE), linting rules, no any without reason, no !important in styles, and…

    8.9k GitHub stars~1.2k tokensUpdated 6 days ago
    DevelopmentAuto-check passed
  • Boundaries Architect

    javierbrea/eslint-plugin-boundaries

    Act as a software architect: analyze a repository's folder structure and cross-file import dependencies, detect its architectural pattern, design element/file boundaries with the user, and configure…

    997 GitHub stars~4.2k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Port Rule

    web-infra-dev/rslint

    Port a new ESLint core or plugin rule to rslint, including explicitly requested batches.

    461 GitHub stars~1.7k tokensUpdated yesterday
    DevelopmentAuto-check passed

More from habit-hooks/habit-hooks

  • Release Habit Hooks

    habit-hooks/habit-hooks

    Cut a new release of the habit-hooks packages. An agent skill from habit-hooks/habit-hooks.

    222 GitHub stars~1.8k tokensUpdated 8 days ago
    Auto-check passed
  • Habit Hooks Review

    habit-hooks/habit-hooks

    Spawn a reviewer sub-agent to assess a change set against habit-hooks's coding principles.

    222 GitHub stars~1.5k tokensUpdated 8 days ago
    Auto-check passed
  • Writing Docs

    habit-hooks/habit-hooks

    Write or trim habit-hooks documentation under docs/. An agent skill from habit-hooks/habit-hooks.

    222 GitHub stars~1.4k tokensUpdated 8 days ago
    Auto-check passed

Works with

Categories

Questions about Habit Hooks Prompting

What does Habit Hooks Prompting do?

Write or revise a habit-hooks coaching prompt. An agent skill from habit-hooks/habit-hooks. Habit Hooks Prompting is an agent skill from habit-hooks/habit-hooks. Write or revise a habit-hooks coaching prompt.

When should I use Habit Hooks Prompting?

Habit Hooks Prompting fits situations like: A linter / knip / jscpd rule fires and the agents default fix is wrong; adding a project-local override prompt.

How do I install Habit Hooks Prompting in Claude Code?

Run `npx skills add habit-hooks/habit-hooks --skill habit-hooks-prompting -a claude-code`. Or copy the skill folder (skills/habit-hooks-prompting in habit-hooks/habit-hooks) into .claude/skills/habit-hooks-prompting in your project. Claude Code loads it when a task matches its description.

How do I install Habit Hooks Prompting in Codex?

Run `npx skills add habit-hooks/habit-hooks --skill habit-hooks-prompting -a codex`. Or copy the skill folder (skills/habit-hooks-prompting in habit-hooks/habit-hooks) into .agents/skills/habit-hooks-prompting in your project. Codex loads it when a task matches its description.

Can I use Habit Hooks Prompting in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add habit-hooks/habit-hooks --skill habit-hooks-prompting -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/habit-hooks-prompting, .gemini/skills/habit-hooks-prompting, .github/skills/habit-hooks-prompting and .opencode/skills/habit-hooks-prompting in your project.

What does Habit Hooks Prompting need to run?

SKILL.md names no scripts, command-line tools or credentials: Habit Hooks Prompting is instructions for the agent only.

Does Habit Hooks Prompting access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Habit Hooks Prompting safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Habit Hooks Prompting use?

Habit Hooks Prompting is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Habit Hooks Prompting use?

About 570 tokens (SKILL.md is roughly 2.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Habit Hooks Prompting?

Skills that share tags, products or a category with Habit Hooks Prompting: LobeHub Alint Rule Set Maintenance (lobehub/lobehub, 83k stars), Eslint Migrate Options (biomejs/biome, 26k stars), Ultracite (agustinusnathaniel/nextarter-tailwind, 125 stars) and Code Quality (redis/RedisInsight, 8.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Habit Hooks Prompting?

habit-hooks (a GitHub organization) maintains it in habit-hooks/habit-hooks, which has 222 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 2, 2026.

Source: habit-hooks/habit-hooks on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.