Skip to content
Back to skills

Dygo Record Hooks

ASecurity

Implement or review dygo Record lifecycle Hooks in Business Apps or the Hook runtime. Use for validation, transactional Record reactions, and lifecycle side effects tied to Record changes.

  • 16 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added August 31, 2026
developmentgoreact

Security analysis

A100/100

Scanned August 31, 2026

npx -y skills add hapyco/dygo --skill dygo-record-hooks --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dygo Record Hooks?

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

Security grade badge for Dygo Record Hooks
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hapyco-dygo-record-hooks/badge)](https://www.skillsdirectory.com/skills/hapyco-dygo-record-hooks)

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: dygo-record-hooks
description: Implement or review dygo Record lifecycle Hooks in Business Apps or the Hook runtime. Use for validation, transactional Record reactions, and lifecycle side effects tied to Record changes.
---

# dygo Record Hooks

Keep Hook behavior small, transactional, and explicit.

## Source Contracts

Read `docs/record-hooks.md` and the Hook sections in `docs/sdk.md`. Inspect generated Hook files and the current registry contract before you edit code.

## Rules

- Put Entity Hook code in the owning Entity bundle.
- Register through the supported `pkg/dygo` contract.
- Choose the narrowest lifecycle event that matches the behavior.
- Use validation events for business validation. Return actionable errors.
- Remember that Hooks run inside the current Record transaction.
- Keep slow, retryable, or external work out of the transaction. Enqueue a durable Job instead.
- Use `hook.Records` for transactional Record access.
- Account for the documented rule that Hook Record writes run framework Hooks but do not re-enter App Hooks.
- Add useful persisted Logs for failures that operators must inspect.
- Do not import framework `internal/` packages from Business Apps.

## Check

Use `dygo hook validate` and focused tests for the changed event or registry. Confirm rollback behavior when failure must keep related Record changes atomic.

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…