habit-hooks-prompting

Generate ROSE-pattern coaching prompts for linter rule violations.

40|1|Updated May 26, 2026
One-click install
npx skills add https://github.com/habit-hooks/habit-hooks --skill habit-hooks-prompting
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: habit-hooks-prompting
Source: https://github.com/habit-hooks/habit-hooks/tree/main/skills/habit-hooks-prompting
Command: npx skills add https://github.com/habit-hooks/habit-hooks --skill habit-hooks-prompting

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

AI coding agents frequently produce shallow or incorrect fixes for linter rule violations, such as silencing warnings instead of addressing the root cause of code quality issues, which leads to persistent technical debt and wasted context window usage.

Core Features & Use Cases

  • ROSE Pattern Prompting: Creates short, outcome-focused coaching prompts structured around Risk, Observation, Solution, and Expected Outcome to guide agents to fix root causes instead of symptoms.
  • Context-Aware Prompt Placement: Supports both bundled prompts for generic linter rules and project-local override prompts for team-specific coding standards.
  • Use Case: When your linter flags a too-many-parameters rule and the agent's default fix is to rename variables instead of refactoring the function, use this skill to write a prompt that redirects it to split the function into smaller, focused units.

Quick Start

Use the habit-hooks-prompting skill to write a ROSE-pattern coaching prompt for a linter rule that the agent currently fixes incorrectly, to guide it to address the root cause of the violation instead of silencing the warning.

Frequently Asked Questions about habit-hooks-prompting

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I stop AI coding agents from silencing linter warnings instead of fixing root causes?

To stop AI coding agents from silencing linter warnings, you can use targeted coaching prompts structured with the ROSE pattern to nudge the agent toward implementing correct, spirit-aligned fixes for code violations rather than addressing symptoms.

What is the ROSE pattern for prompt engineering?

The ROSE pattern for prompt engineering is a structure for creating short, outcome-focused coaching prompts organized around Risk, Observation, Solution, and Expected Outcome to guide AI agents in fixing root causes of code quality issues.

How do I write coaching prompts for linter, knip, or jscpd rule violations?

You write coaching prompts for linter, knip, or jscpd violations by generating short, outcome-focused guidance using the ROSE pattern, directing the AI agent to refactor the underlying code quality issue instead of producing shallow or incorrect fixes.

Can I create project-specific override prompts for team coding standards?

Yes, you can create project-specific override prompts for team coding standards, as the approach supports both bundled prompts for generic linter rules and project-local override prompts to enforce team-specific coding guidance.

What is the best way to prompt an AI agent to refactor a function with too many parameters?

The best way to prompt an AI agent to refactor a function with too many parameters is to write a ROSE-pattern coaching prompt that redirects it to split the function into smaller, focused units instead of renaming variables to bypass the rule.

When should I use custom coaching prompts instead of default linter fixes for AI agents?

You should use custom coaching prompts when an AI agent's default response to linter, knip, or jscpd rules is to silence warnings rather than fix root causes, leading to persistent technical debt and wasted context window usage.