From saas-framework-kit
Andamia un decorador de metadatos nuevo (de propiedad o de clase) cableado de extremo a extremo. Úsala cuando el usuario quiera añadir un @Decorator al framework.
How this skill is triggered — by the user, by Claude, or both
Slash command
/saas-framework-kit:new-decoratorThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Patrón real: `src/decorations/required_decorator.ts` (propiedad) y `src/decorations/module_decorator.ts` (clase). Lee uno antes de generar.
Patrón real: src/decorations/required_decorator.ts (propiedad) y src/decorations/module_decorator.ts (clase). Lee uno antes de generar.
Decorador solicitado: $ARGUMENTS
src/decorations/<snake>_decorator.ts:
export const <NAME>_KEY = Symbol('<name>');export interface <Name>Metadata { ... }export function <Name>(...): PropertyDecorator (o ClassDecorator):
target.constructor.prototype[<NAME>_KEY][propertyKey] = metadata (inicializa {} si no existe).(target as unknown as Record<PropertyKey, unknown>)[<NAME>_KEY] = value.@example. Sin any (usa unknown/genéricos).src/decorations/index.ts: export { <NAME>_KEY, <Name> } from './<snake>_decorator'; (+ export type si hay metadata).src/entities/base_entity.ts:
<NAME>_KEY en el bloque de imports superior.getXxx(propertyKey) que lee proto[<NAME>_KEY][propertyKey], o static si es metadata de clase. Si el valor es texto mostrable, pásalo por resolveI18nText.node node_modules/vue-tsc/bin/vue-tsc.js --noEmit.Cumple .claude/rules/decorators.md. La metadata SIEMPRE vive en el prototipo/constructor (nunca en estructuras externas).
npx claudepluginhub miguelalrendon/plantilla_saas_vue --plugin saas-framework-kitOffers UI/UX design guidance for web and mobile with 50+ styles, 161 color palettes, 57 font pairings, and 99 UX guidelines across 10 stacks. Use for designing pages, components, color systems, or reviewing UI code.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.