hooks-extensions

Create and manage DaaS runtime filter and action hooks via MCP.

Updated May 27, 2026
One-click install
npx skills add https://github.com/Rkaaaa404/cyberhack-SYDT --skill hooks-extensions-rkaaaa404
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: hooks-extensions
Source: https://github.com/Rkaaaa404/cyberhack-SYDT/tree/main/.agents/skills/hooks-extensions
Command: npx skills add https://github.com/Rkaaaa404/cyberhack-SYDT --skill hooks-extensions-rkaaaa404

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? It replaces custom Next.js API route backend logic with server-side DaaS runtime extensions, letting you validate, transform, and audit data operations without redeploying code. ## Core Features & Use Cases - Filter Hooks: Run blocking validation and payload transformation before create, update, or delete operations, with the ability to reject invalid writes. - Action Hooks: Run non-blocking async side effects after operations, such as audit logging, notifications, and external webhook calls. - MCP Management: Create, test, activate, clone, and delete extensions through the mcp_daas_extensions tool with top-level parameters. - Use Case: When a new order is created, an action hook automatically writes an entry to an order_status_log collection using elevated permissions while keeping the user in the audit trail. ## Quick Start Ask the AI to create a DaaS filter extension that validates article titles before items are created.

Frequently Asked Questions about hooks-extensions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a DaaS runtime extension via MCP?▼

Call the mcp_daas_extensions tool with action create, providing name, event, type, code, and status as top-level arguments. Do not wrap parameters in a data object, and test the code before setting status to active.

What is the difference between filter and action hooks in DaaS?▼

Filter hooks run before an operation, can modify the payload, and block the request by throwing errors. Action hooks run asynchronously after the operation completes and are used for logging, notifications, and external sync without delaying the response.

How do I access event data inside an action hook?▼

Use the meta object, which contains event, collection, key, keys, and payload. Variables like event, collection, key, and accountability are not injected directly into the sandbox, so referencing them returns undefined.

Can DaaS extensions bypass user permission checks?▼

Yes, pass { elevated: true } to any service factory such as services.items to skip permission policies while still recording the triggering user in audit fields. Cron jobs already run as system admin and do not need this flag.

Why does extension deletion fail with a disabled error?▼

The delete action requires the platform setting mcp_allow_deletes set to true via the MCP_ALLOW_DELETES environment variable. Without it, the API returns a Delete operations are disabled message.