dayan-hook-factory
Skill4 starsChanged 4 months agoMITView on GitHub
Design a deterministic, least-privilege lifecycle hook with explicit triggers, failure policy, tests, and rollback.
In this repository57 other files it gives its agents.
- docs/llms.txtllms.txt
- llms.txtllms.txt
- dayan-a11y-auditSkill
- dayan-adversarial-reviewerSkill
- dayan-agent-designerSkill
- dayan-agent-factorySkill
- dayan-ai-seoSkill
- dayan-api-design-reviewerSkill
- dayan-autoresearch-agentSkill
- dayan-aws-solution-architectSkill
- dayan-brand-guidelinesSkill
- dayan-canvas-designSkill
- dayan-clarifySkill
- dayan-claude-md-enhancerSkill
- dayan-code-reviewerSkill
- dayan-co-designSkill
- dayan-code-to-designSkill
- dayan-compress-imageSkill
- dayan-content-productionSkill
- dayan-copywritingSkill
- dayan-cover-imageSkill
- dayan-crap-analysisSkill
- dayan-create-hookSkill
- dayan-d3-vizSkill
- dayan-database-performanceSkill
- dayan-deckSkill
- dayan-diagramSkill
- dayan-dispatchSkill
- dayan-explainSkill
- dayan-extract-design-mdSkill
- dayan-extract-static-htmlSkill
- dayan-frontend-responsive-uiSkill
- dayan-htmlSkill
- dayan-huashu-designSkill
- dayan-humanizeSkill
- dayan-image-genSkill
- dayan-img-to-frontendSkill
- dayan-industry-researchSkill
- dayan-learning-opportunitiesSkill
- dayan-llm-councilSkill
- dayan-local-toolsSkill
- dayan-marketplace-publishingSkill
- dayan-orientSkill
- dayan-planSkill
- dayan-prompt-factorySkill
- dayan-read-githubSkill
- dayan-role-creatorSkill
- dayan-schematicSkill
- dayan-scrum-master-agentSkill
- dayan-second-opinionSkill
- dayan-skill-builderSkill
- dayan-system-opsSkill
- dayan-tech-stack-evaluatorSkill
- dayan-theme-factorySkill
- dayan-update-docsSkill
- dayan-wenzhenSkill
- dayan-write-conciselySkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use a hook only for a frequent action with a stable trigger and predictable failure behavior.
- Distinctive: line 13
Use an explicit executable path, argument list, timeout, and project-local scope.
- Distinctive: line 20
Do not auto-install hooks or edit user-level configuration without explicit approval.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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
- Name one lifecycle event and the narrowest matcher.
- Use an explicit executable path, argument list, timeout, and project-local scope.
- Make the command deterministic, idempotent, and safe when invoked twice.
- Choose fail-open for productivity assistance or fail-closed for a proven safety invariant; document the tradeoff.
- Provide accepted, ignored, malformed, timeout, and repeated-event fixtures.
- Provide logs that name the rule without exposing content or credentials.
- 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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

