
Suggesting Cursor Hooks
- 271 installs
- 655 repo stars
- Updated August 2, 2026
- spencerpauly/awesome-cursor-skills
Helps with ai & agent building tasks.
About
suggesting-cursor-hooks is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted development.
- suggesting-cursor-hooks
- AI & Agent Building
- AI-coding skill
Suggesting Cursor Hooks by the numbers
- 271 all-time installs (skills.sh)
- +25 installs in the week ending Aug 5, 2026 (Skillselion tracking)
- Ranked #2,441 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/spencerpauly/awesome-cursor-skills --skill suggesting-cursor-hooksAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 271 |
|---|---|
| repo stars | ★ 655 |
| Last updated | August 2, 2026 |
| Repository | spencerpauly/awesome-cursor-skills ↗ |
What it does
Helps with ai & agent building tasks.
Files
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:
{
"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.jsonfirst — merge, don't overwrite - Keep it casual — "want me to automate this?" not a formal proposal
Related skills
AI & Agent Buildingagents