when-automating-workflows-use-hooks-automation
关于
This skill helps developers safely automate workflow hooks with clear triggers, validation, and rollback-aware orchestration. It provides a structured approach for implementing pre/post hooks and webhooks, including telemetry and retry logic. Use it when creating, updating, or chaining systems via automated callbacks.
快速安装
Claude Code
推荐/plugin add https://github.com/DNYoussef/context-cascadegit clone https://github.com/DNYoussef/context-cascade.git ~/.claude/skills/when-automating-workflows-use-hooks-automation在 Claude Code 中复制并粘贴此命令以安装该技能
技能文档
STANDARD OPERATING PROCEDURE
Purpose
Design and maintain hook-based automations (pre/post hooks, webhooks) with explicit constraints, monitoring, and confidence-aware delivery.
Trigger Conditions
- Positive: creating/updating hooks, chaining systems via callbacks, adding validation to hook payloads, retry/backoff tuning, telemetry for hook events.
- Negative: manual single runs, prompt-only edits (route to prompt-architect), or new skill weaving (route to skill-forge).
Guardrails
- Skill-Forge structure-first: keep
SKILL.md,examples/,tests/in place; addresources//references/or log remediation tasks. - Prompt-Architect hygiene: capture HARD/SOFT/INFERRED constraints (auth, rate limits, payload schema), ensure English-only output, and declare ceilings.
- Hook safety: validate signatures, enforce idempotency, set timeouts/backoff, and define circuit breakers; honor registry-only agents and latency budgets.
- Adversarial validation: fuzz payloads, test retries, replay, and timeout scenarios; capture evidence.
- MCP tagging: store hook playbooks under WHO=
hooks-automation-{session}and WHY=skill-execution.
Execution Playbook
- Intent & constraints: define hook purpose, endpoints, SLAs, and compliance; confirm inferred requirements.
- Design: map triggers to actions, schema validation, auth methods, and telemetry.
- Safety nets: configure retries/backoff, idempotency keys, and failure isolation with rollback.
- Validation loop: fuzz and negative tests, replay/timeout drills, and timing checks; log evidence.
- Rollout: stage deployment, monitor early signals, and prepare rollback.
- Delivery: summarize design, evidence, risks, and confidence ceiling.
Output Format
- Hook intent, triggers, endpoints, and schemas.
- Auth/idempotency controls, retries/backoff, and rollback plan.
- Validation evidence (fuzz, replay, timeout) and risk register.
- Confidence:
X.XX (ceiling: TYPE Y.YY) - rationale.
Validation Checklist
- Structure-first assets present or ticketed; examples/tests reflect hook cases.
- Auth, retries, and rollback validated; registry and hooks within latency budgets.
- Adversarial/COV runs logged with MCP tags; confidence ceiling declared; English-only output.
Completion Definition
Hook automation is complete when validations pass, monitoring is in place, risks are owned, and evidence is persisted with MCP tags.
Confidence: 0.70 (ceiling: inference 0.70) - Hook automation doc rebuilt with skill-forge scaffolding and prompt-architect confidence and constraint discipline.
GitHub 仓库
相关推荐技能
content-collections
元Content Collections 是一个 TypeScript 优先的构建工具,可将本地 Markdown/MDX 文件转换为类型安全的数据集合。它专为构建博客、文档站和内容密集型 Vite+React 应用而设计,提供基于 Zod 的自动模式验证。该工具涵盖从 Vite 插件配置、MDX 编译到生产环境部署的完整工作流。
sglang
元SGLang是一个专为LLM设计的高性能推理框架,特别适用于需要结构化输出的场景。它通过RadixAttention前缀缓存技术,在处理JSON、正则表达式、工具调用等具有重复前缀的复杂工作流时,能实现极速生成。如果你正在构建智能体或多轮对话系统,并追求远超vLLM的推理性能,SGLang是理想选择。
Algorithmic Art Generation
元这个Claude Skill帮助开发者使用p5.js创建算法艺术,特别适用于生成式艺术和交互式可视化项目。它支持种子随机性、流场和粒子系统等关键技术,确保艺术作品的重复性和独特性。当讨论生成艺术、算法艺术或计算美学时,该技能会自动激活,指导开发者完成从概念设计到技术实现的全过程。
cloudflare-turnstile
元这个Skill提供完整的Cloudflare Turnstile集成知识,用于在表单、登录页面和API端点中实现无验证码的机器人防护。它支持React/Next.js/Hono等框架集成,涵盖令牌验证、错误代码调试和端到端测试等场景。通过运行后台不可见挑战,在保持用户体验的同时有效阻止自动化流量和垃圾信息。
