baasith6/cursor-skills/suggesting-cursor-hooks
Claude Code and agent skill by baasith6/cursor-skills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
When the user keeps asking for the same check to run (lint, tests, type-check), suggest a Cursor hook to automate it.
Install
npx vskill@latest install baasith6/cursor-skills/suggesting-cursor-hooksSKILL.md
The same SKILL.md was published earlier as spencerpauly/awesome-cursor-skills/suggesting-cursor-hooks.
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
If they say yes, create .cursor/hooks.json and the script:
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
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingresources/suggesting-cursor-hooks/SKILL.md
Popularity
- Repository forks
- 1
- 7-day trend score
- 5
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/baasith6/cursor-skills/suggesting-cursor-hooks)