Agent skill

Suggesting Cursor Hooks

by spencerpauly in spencerpauly/awesome-cursor-skills

When the user keeps asking for the same check to run (lint, tests, type-check), suggest a Cursor hook to automate it.

CC0-1.0Auto-check: notesDevelopment

Install Suggesting Cursor Hooks

skills CLI
$ npx skills add spencerpauly/awesome-cursor-skills --skill suggesting-cursor-hooks -a claude-code

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

GitHub CLI
$ gh skill install spencerpauly/awesome-cursor-skills suggesting-cursor-hooks --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/spencerpauly/awesome-cursor-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/resources/suggesting-cursor-hooks .claude/skills/suggesting-cursor-hooks && 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
suggesting-cursor-hooks
GitHub stars
843
Token cost
~478 tokens
SKILL.md length
213 words
Files
1
Skills in repo
60
Repo updated
First seen
Licence
CC0-1.0

At a glance

When the user keeps asking for the same check to run (lint, tests, type-check), suggest a Cursor hook to automate it.

  • Keeps asking for the same check to run (lint
  • SKILL.md covers Triggers, How to Suggest, Common Hooks to Suggest and Rules
  • Calls eslint, prettier and tsc
  • Suggest a Cursor hook to automate it

What it does

Suggesting Cursor Hooks is an agent skill from spencerpauly/awesome-cursor-skills. When the user keeps asking for the same check to run (lint, tests, type-check), suggest a Cursor hook to automate it.

Its SKILL.md is about 480 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. The repository describes itself as: A curated list of awesome skills for Cursor. The licence is CC0-1.0.

When your agent uses it

  • Keeps asking for the same check to run (lint
  • Suggest a Cursor hook to automate it

Example prompts

  • “/suggesting-cursor-hooks”

What it can do on your machine

Read from SKILL.md and the folder at commit 99cd265. 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

    Shell commands in SKILL.md call:

    • eslint
    • prettier
    • tsc

    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

Suggesting Cursor Hooks loads about 478 tokens when it runs. Until then it costs about 35 tokens; SKILL.md has 213 words of instructions outside code blocks.

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

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: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:47
    | "don't touch .env" | `beforeShellExecution` → warn on secrets files |

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 spencerpauly/awesome-cursor-skills at commit 99cd265, republished under its CC0-1.0 licence (© spencerpauly). 213 words, ~478 tokens.

Download SKILL.mdSave it as .claude/skills/suggesting-cursor-hooks/SKILL.md (or your agent's skills folder).
name
suggesting-cursor-hooks
description
When the user keeps asking for the same check to run (lint, tests, type-check), suggest a Cursor hook to automate it.
user-invocable
false

Suggesting Cursor Hooks

Watch for repeated manual requests. When the user keeps asking you to run the same command after changes, suggest a hook to automate it.

Triggers

Suggest a hook when you notice:

  • The user asks you to run the same check 2+ times (e.g. "run lint", "run tests", "check types")
  • The user says "always run X after editing" or "make sure to test after changes"
  • You keep forgetting to run a validation step and the user catches it
  • A CI failure could have been caught locally with a post-edit check

How to Suggest

You've asked me to run [command] after edits a few times. Want me to 
set up a Cursor hook so it runs automatically?

If they say yes, create .cursor/hooks.json and the script:

json
{
  "hooks": [
    {
      "event": "afterFileEdit",
      "script": ".cursor/hooks/<name>.sh",
      "pattern": "<glob>"
    }
  ]
}

Common Hooks to Suggest

User keeps asking...Hook
"run lint" / "fix formatting"afterFileEdit → eslint --fix or prettier --write
"check types"afterFileEdit → tsc --noEmit on .ts/.tsx
"run tests"afterFileEdit → run related test file
"don't touch .env"beforeShellExecution → warn on secrets files
"make sure it builds"stop → quick build check

Rules

  • Only suggest after a real repeated pattern, not preemptively
  • Hook scripts must be fast (under 5 seconds) or the agent feels slow
  • Scripts should exit 0 and report via stdout — don't block the agent unless the user explicitly wants that
  • Check for existing .cursor/hooks.json first — merge, don't overwrite
  • Keep it casual — "want me to automate this?" not a formal proposal

© spencerpauly, CC0-1.0. 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 resources/suggesting-cursor-hooks of spencerpauly/awesome-cursor-skills.

Open the folder on GitHubat commit 99cd265

Compare with similar skills

Suggesting Cursor Hooks 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.

Suggesting Cursor Hooks compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Suggesting Cursor Hooks this skillspencerpauly/awesome-cursor-skills843—~478Automated safety check: NotesCC0-1.0
Minimizing Ty Ecosystem Changesastral-sh/ruff50k—~4.6kAutomated safety check: PassMIT
Install Anti-Slop Oxlint Rulesdmmulroy/anti-slop5.3k—~2.2kAutomated safety check: PassMIT
Babysit PR To Pass CIsgl-project/sglang37k2 repos~3kAutomated safety check: PassApache-2.0
Rust Best Practicesfarm-fe/farm5.6k3 repos~1.1kAutomated safety check: PassMIT
Summarise Ecosystem Resultsastral-sh/ruff50k—~2.2kAutomated safety check: PassMIT

Similar skills

  • Official

    A skill your agent uses when a user says "minimize this ty ecosystem change", "reproduce this ecosystem result", "investigate a primer difference", "investigate a mypyprimer difference"…

    50k GitHub stars~4.6k tokensUpdated today
    DevelopmentAuto-check passed
  • Installs, updates or migrates the vendored anti-slop Oxlint plugin in a repository, keeping local rule changes and the plugin's license and provenance files.

    5.3k GitHub stars~2.2k tokensUpdated 29 days ago
    DevelopmentAuto-check passed
  • Babysit PR To Pass CI

    sgl-project/sglang

    Start and persistently pursue a goal to babysit an SGLang pull request until selected GitHub Actions workflows pass on the latest PR head.

    37k GitHub starsUsed in 2 repos~3k tokens
    DevelopmentAuto-check passed
  • Guide for writing idiomatic Rust code based on Apollo GraphQL's best practices handbook.

    5.6k GitHub starsUsed in 3 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Official

    A skill your agent uses when a user says "summarise ecosystem results", "summarize this ty ecosystem report", "what changed in this ecosystem run?", or asks to summarise or summarize ty ecosystem…

    50k GitHub stars~2.2k tokensUpdated today
    DevelopmentAuto-check passed
  • Go Pedantry

    chromedp/chromedp

    This skill should be used when the user is writing Go code and needs guidance on Go-specific pedantry: error wrapping with fmt.Errorf and %w, interface design (accept interfaces return structs)…

    13k GitHub stars~3.7k tokensUpdated 4 days ago
    DevelopmentAuto-check passed

More from spencerpauly/awesome-cursor-skills

All 60 skills in this repo
  • Generating Images

    spencerpauly/awesome-cursor-skills

    Generate or edit images using the OpenAI Image API (gpt-image-2).

    843 GitHub stars~3.7k tokensUpdated 2 mo ago
    Auto-check: notes
  • Babysitting PR

    spencerpauly/awesome-cursor-skills

    Monitor a pull request for CI failures, review comments, and merge conflicts — then fix them automatically.

    843 GitHub stars~930 tokensUpdated 2 mo ago
    Auto-check passed
  • Best Of N Solving

    spencerpauly/awesome-cursor-skills

    Solve a hard problem by trying multiple approaches in parallel using isolated git worktrees.

    843 GitHub stars~698 tokensUpdated 2 mo ago
    Auto-check passed
  • Grinding Until Pass

    spencerpauly/awesome-cursor-skills

    Keep iterating on code changes until the tests pass, the build succeeds, or linting is clean.

    843 GitHub stars~796 tokensUpdated 2 mo ago
    Auto-check passed
  • Parallel CI Triage

    spencerpauly/awesome-cursor-skills

    When GitHub Actions fails, fetch failing job logs and assign each failing job to a separate subagent that fixes its slice of the problem in parallel.

    843 GitHub stars~793 tokensUpdated 2 mo ago
    Auto-check passed
  • Parallel Exploring

    spencerpauly/awesome-cursor-skills

    Explore a large codebase in parallel by launching multiple explore subagents that each investigate a different area simultaneously.

    843 GitHub stars~787 tokensUpdated 2 mo ago
    Auto-check: notes

Categories

Questions about Suggesting Cursor Hooks

What does Suggesting Cursor Hooks do?

When the user keeps asking for the same check to run (lint, tests, type-check), suggest a Cursor hook to automate it. Suggesting Cursor Hooks is an agent skill from spencerpauly/awesome-cursor-skills. When the user keeps asking for the same check to run (lint, tests, type-check), suggest a Cursor hook to automate it.

When should I use Suggesting Cursor Hooks?

Suggesting Cursor Hooks fits situations like: keeps asking for the same check to run (lint; suggest a Cursor hook to automate it.

How do I install Suggesting Cursor Hooks in Claude Code?

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

How do I install Suggesting Cursor Hooks in Codex?

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

Can I use Suggesting Cursor Hooks 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 spencerpauly/awesome-cursor-skills --skill suggesting-cursor-hooks -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/suggesting-cursor-hooks, .gemini/skills/suggesting-cursor-hooks, .github/skills/suggesting-cursor-hooks and .opencode/skills/suggesting-cursor-hooks in your project.

What does Suggesting Cursor Hooks need to run?

Going by SKILL.md and its folder, Suggesting Cursor Hooks needs the command-line tools its instructions call (eslint, prettier and tsc).

Does Suggesting Cursor Hooks 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 Suggesting Cursor Hooks safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Suggesting Cursor Hooks use?

Suggesting Cursor Hooks is published under the CC0-1.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Suggesting Cursor Hooks use?

About 478 tokens (SKILL.md is roughly 1.9k 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 Suggesting Cursor Hooks?

Skills that share tags, products or a category with Suggesting Cursor Hooks: Minimizing Ty Ecosystem Changes (astral-sh/ruff, 50k stars), Install Anti-Slop Oxlint Rules (dmmulroy/anti-slop, 5.3k stars), Babysit PR To Pass CI (sgl-project/sglang, 37k stars) and Rust Best Practices (farm-fe/farm, 5.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Suggesting Cursor Hooks?

spencerpauly (a GitHub user) maintains it in spencerpauly/awesome-cursor-skills, which has 843 GitHub stars. The repository holds 60 skills in this directory. The repository was last updated on August 2, 2026.

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