catalog/repos/adrianbrowning--agent-skills.md

1.2 KiB
Raw Blame History

Claude代理技能集

Claude Code AI代理 技能插件 钩子

adrianbrowning/agent-skills

我常用工具的代理技能集。

使用以下命令安装:

pnpm dlx skills add adrianbrowning/agent-skills

然后选择你需要的技能。

钩子hooks

hooks/* 中的文件复制到本地的 ~/.claude<项目根目录>/.claude

UserPromptSubmit用户提示提交

{
  "hooks": {
    "UserPromptSubmit": [
      {
        "matcher": "",
        "hooks": [
          {
            "type": "command",
            "command": "node /Users/<home>/.claude/hooks/user-prompt-skill-eval.ts",
            "timeout": 5
          }
        ]
      }
    ]
  }
}

PreToolUse工具使用前

    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "~/.claude/hooks/block-dangerous-git.sh"
          }
        ]
      }
    ]