Token导航 LogoToken导航TokenDH.com
AI 工具敏感数据github未标认证来源可访问clear审计异常

hooks-builder钩子生成器

Agent Skill

hooks-builder 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

220

周安装

9

GitHub Stars

2

下载量

71
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/bsamiee/parametric_forge --skill hooks-builder

简介

用于处理 GitHub 仓库、Issue、Pull Request 等协作信息。

  • 适合围绕代码变更、项目状态或团队协作进行整理和操作。
  • 通过 npx skills add 命令从指定仓库安装。
  • 支持 Codex、Claude、Cursor、Gemini CLI,安装方式为 github。
  • hooks-builder 属于AI 工具类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

[H1][HOOKS-BUILDER]

Dictum: *Deterministic behavior requires hooks; prompts fail execution guarantees.*

Build Claude Code hooks—shell commands execute at agent lifecycle events.

Tasks:

  1. Read index.md — Reference file listing for navigation
  2. Read lifecycle.md — Event table, input schemas, exit codes
  3. Read schema.md — Configuration structure, matchers, JSON responses
  4. (integration) Read integration.md — Environment variables, context injection
  5. (scripting) Read scripting.md — Python standards, security patterns
  6. (recipes) Read recipes.md — Proven implementation patterns
  7. (troubleshooting) Read troubleshooting.md — Known issues, platform workarounds
  8. (prose) Load style-standards skill — Voice, formatting, constraints
  9. Validate — Quality gate; see §VALIDATION

Scope:

  • *Event Selection:* Choose hook type by automation goal (blocking vs observing).
  • *Configuration:* Author settings.json entries with matchers and timeouts.
  • *Response Handling:* Control agent via exit codes, JSON responses, or prompt evaluation.

[REFERENCE]: index.md — Complete reference file listing


[1][EVENT_SELECTION]

Dictum: *Automation goal determines hook type; blocking capability varies by event.*

Decision Gate:

  • *Intercept before execution?* → PreToolUse (validate/block/modify parameters)
  • *Control permission dialogs?* → PermissionRequest (auto-approve/deny)
  • *React after completion?* → PostToolUse (format, lint, add context)
  • *Inject at session boundaries?* → SessionStart (context), UserPromptSubmit (per-message)
  • *Evaluate task completion?* → Stop/SubagentStop (prompt type for LLM judgment)

Blocking vs Observing:

  • *Blocking (exit 2):* PreToolUse, PermissionRequest, PostToolUse, UserPromptSubmit, Stop, SubagentStop
  • *Observing only:* Notification, PreCompact, SessionStart, SessionEnd

[2][CONFIGURATION]

Dictum: *Centralized configuration enables scope-aware hook precedence.*
[INDEX][SCOPE][PATH][USE][GIT]
[1]User~/.claude/settings.jsonGlobal, all projectsN/A
[2]Project.claude/settings.jsonShared, committedCommit
[3]Local.claude/settings.local.jsonPersonal, testingIgnore

Precedence: Local > Project > User.


[3][IMPLEMENTATION]

Dictum: *Deterministic and evaluative patterns require distinct execution modes.*
[INDEX][TYPE][USE_CASE][TIMEOUT][CHARACTERISTICS]
[1]commandValidation, formatting, rules60sDeterministic, fast
[2]promptComplex evaluation, LLM judgment30sContext-aware, flexible

Prompt Type Scope: Stop and SubagentStop events only; Haiku provides fast LLM evaluation.

Guidance:

  • Command hooks — Deterministic scripts receive JSON stdin; return exit codes + optional JSON stdout.
  • Prompt hooks — LLM evaluates decisions; response schema: {"decision": "approve"|"block", "reason": "..."}.
  • Blocking — Exit code 2 blocks action; stderr routes to Claude. Exit 1 also blocks (known bug #4809).

[4][SCRIPTING]

Dictum: *Hook reliability requires functional pipeline patterns.*

Python 3.14+ with strict typing. Zero imperative patterns.


[5][VALIDATION]

Dictum: *Gates prevent incomplete artifacts.*

[VERIFY] Completion:

  • Event: Selected correct hook type for automation goal.
  • Schema: Configuration structure validated per schema.md.
  • Integration: Environment variables and context injection applied.
  • Scripting: Security patterns and tooling gates passed.
  • Quality: JSON syntax valid, timeouts appropriate.

[REFERENCE] Operational checklist: →validation.md

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

OpenCode

29.55%
按下载量换算21

Antigravity

23.08%
按下载量换算16

Claude Code

19.55%
按下载量换算14

Codex

14.7%
按下载量换算10

windsurf

8.13%
按下载量换算6

Gemini CLI

3.68%
按下载量换算3

安全审计

Gen Agent Trust Hub

通过

Socket

未通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills