Skip to content
Back to skills

Dayan Hook Factory

ASecurity

Design a deterministic, least-privilege lifecycle hook with explicit triggers, failure policy, tests, and rollback.

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 9, 2026
ai-agents

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned October 9, 2026

npx -y skills add Kosmoray/dayan-agent-skills --skill dayan-hook-factory --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dayan Hook Factory?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Dayan Hook Factory
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kosmoray-dayan-hook-factory/badge)](https://www.skillsdirectory.com/skills/kosmoray-dayan-hook-factory)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: dayan-hook-factory
description: Design a deterministic, least-privilege lifecycle hook with explicit triggers, failure policy, tests, and rollback.
---

# Dayan Hook Factory

Use a hook only for a frequent action with a stable trigger and predictable failure behavior. Prefer a command or checklist for low-frequency work.

## Contract

1. Name one lifecycle event and the narrowest matcher.
2. Use an explicit executable path, argument list, timeout, and project-local scope.
3. Make the command deterministic, idempotent, and safe when invoked twice.
4. Choose fail-open for productivity assistance or fail-closed for a proven safety invariant; document the tradeoff.
5. Provide accepted, ignored, malformed, timeout, and repeated-event fixtures.
6. Provide logs that name the rule without exposing content or credentials.
7. Provide a rollback that disables exactly this hook.

Do not auto-install hooks or edit user-level configuration without explicit approval. Hooks must not delete, publish, send, change credentials, or execute downloaded content.

Files in this skill

  • PROVENANCE.md160 B
  • SANITIZATION.md148 B
  • SKILL.md1 KB
  • examples/starter.json457 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.