Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计异常

hookhook 效率

Agent Skill

hook 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

654

周安装

27

GitHub Stars

76

下载量

214
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:hook(hook 效率)
来源仓库:https://github.com/htlin222/dotfiles
仓库路径:skills/hook
安装命令:
npx skills add https://github.com/htlin222/dotfiles --skill hook
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/htlin222/dotfiles --skill hook

简介

hook 用于查找、检索和筛选相关信息,适合快速定位候选结果。

  • 适用于需要根据关键词或任务场景从来源线索中获取信息的场景。
  • 可通过关键词输入和来源仓库筛选来组织和呈现搜索结果。
  • 安装命令为 npx skills add https://github.com/htlin222/dotfiles --skill hook。
  • 使用前需确认权限范围和维护状态,避免触发联网或文件读写操作。

SKILL.md

Hook Management System

Manage Claude Code hooks for the current session.

When to use

  • When you need to check the status of Claude Code hooks
  • When you want to temporarily disable a noisy or problematic hook
  • When debugging hook behavior or performance issues
  • When monitoring hook execution metrics

Usage

/hook status                  # Show all hooks and their status
/hook list                    # List available hooks with descriptions
/hook disable [hook-name]     # Temporarily disable a hook
/hook enable [hook-name]      # Re-enable a disabled hook
/hook profile                 # Show hook performance metrics
/hook logs [hook-name]        # View recent logs for a hook

Instructions

When this command is invoked:

/hook status

  1. Read ~/.claude/settings.json
  2. Parse the hooks configuration
  3. Check ~/.claude/hooks/.disabled for disabled hooks
  4. Display in a formatted table:

- Hook type (SessionStart, PreToolUse, PostToolUse, and others) - Matcher pattern - Command/Prompt - Status (enabled/disabled)

/hook list

  1. Scan ~/.claude/hooks/ directory
  2. List each hook file with:

- Filename - Description (from docstring) - Trigger type - Last modified

/hook disable [hook-name]

  1. Create/update ~/.claude/hooks/.disabled file
  2. Add the hook name to the disabled list
  3. Hooks check this file before running
  4. Note: Changes persist until re-enabled

/hook enable [hook-name]

  1. Read ~/.claude/hooks/.disabled file
  2. Remove the hook name from the disabled list
  3. Confirm the hook is re-enabled

/hook profile

  1. Read ~/.claude/logs/hook_metrics.jsonl
  2. Calculate average execution time per hook
  3. Show:

- Hook name - Avg execution time (ms) - Total calls - Success rate - Token impact estimate

/hook logs [hook-name]

  1. Find log files in ~/.claude/logs/
  2. Filter by hook name
  3. Show last 20 entries
  4. Include timestamp, result, and any errors

Examples

# Check current hook status
/hook status

# Disable noisy notifications temporarily
/hook disable notification

# Re-enable when ready
/hook enable notification

# Check performance impact
/hook profile

# Debug a specific hook
/hook logs post_tool_use

Notes

  • Disabled state uses ~/.claude/hooks/.disabled file
  • Performance data from ~/.claude/logs/hook_metrics.jsonl
  • Hooks check disabled state before executing
  • Session-based disabling (resets on restart)

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.42%
按下载量换算80

Claude

28.89%
按下载量换算62

Cursor

19.91%
按下载量换算43

Gemini CLI

9.28%
按下载量换算20

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

未通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills