Back to Hooks

Update Search Year

Hooks pre-tool 3,417 Scanned by NVIDIA SkillSpector

Automatically adds current year to WebSearch queries when no year is specified. This hook intercepts WebSearch tool usage and appends the current year to queries that don't already contain a year, ensuring search results are current and relevant.

Install Command
npx claude-code-templates@latest --hook pre-tool/update-search-year
View on GitHub
claude-code — update-search-year

Scanned by NVIDIA SkillSpector

Automated static analysis (no LLM) · v2.12.0 · 2026-10-17

1 observation
scanner score 7/100

SkillSpector looks for patterns such as shell commands, credential access, network calls or unpinned dependencies. An observation is something worth reading in the files before you install, not a confirmed vulnerability. Components that run code locally, like hooks, MCP servers and security tooling, naturally show more of them.

  • Shadow Command Trigger
    Trigger Abuse · SKILL.md:1

Learn more about NVIDIA SkillSpector.

Content

JSON
{
"description": "Automatically adds current year to WebSearch queries when no year is specified. ..."
"hooks": {
"PreToolUse": [1 item]
}
}

Stack Builder

0 components

Your stack is empty

Browse components and click the + button to add them to your stack for easy installation.