De forma predeterminada está seleccionado el prompt que primero revisa el origen. Puedes cambiar a un comando directo o descargar una copia local.
Revisa los archivos de origen
Lee SKILL.md y los archivos complementarios que muestra SkillsMP antes de decidir si quieres instalarlo.
Mostrando SKILL.md
SKILL.md
Instrucciones de origen · Vista previa de solo lectura
name
webiny-api-event-publisher-catalog
description
api/event-publisher — 2 abstractions.
# api/event-publisher
## How to Use
1. Find the abstraction you need below
2. You MUST read the source file to get the exact interface and types!
3. Import: `import { Name } from "<importPath>";`
4. See `webiny-use-case-pattern` or `webiny-event-handler-pattern` skills for implementation patterns
## Abstractions
---
**Name:** `DomainEvent`
**Import:** `import { DomainEvent } from "webiny/api/event-publisher"`
**Source:** `@webiny/api-core/features/eventPublisher/index.ts`
**Description:** Base class for all domain events.
---
**Name:** `EventPublisher`
**Import:** `import { EventPublisher } from "webiny/api/event-publisher"`
**Source:** `@webiny/api-core/features/eventPublisher/index.ts`
**Description:** Publish domain events to registered handlers.
---
Copia este prompt en el asistente de IA que estés usando.
Follow https://skillsmp.com/skill-install/prompt.md to install only the Agent Skill at https://github.com/webiny/webiny-js/tree/next/skills/user-skills/generated/api/event-publisher.
Un comando directo omite el prompt de revisión. Revisa el origen antes de ejecutarlo.