task-template-builder

Installation
SKILL.md

Task Template Builder Pattern

This skill documents the architecture of the Task Template Builder in erify_studios.

Core Architecture

1. Schema Alignment (Single Source of Truth)

The Task Template Builder uses a Shared Zod Schema to ensure frontend and backend are always in sync.

  • Source: packages/api-types/src/task-management/template-definition.schema.ts
  • Frontend Usage: import { FieldItemSchema } from '@eridu/api-types/task-management'
  • Backend Usage: import { TemplateSchemaValidator } from '@eridu/api-types/task-management'

Crucial Rule: Never duplicate validation logic. If you need a new field or rule, update api-types first.

2. Draft Storage (IndexedDB)

Note: IndexedDB draft persistence is not yet implemented in the template builder. The builder currently holds state in React only (lost on unmount). This section documents the intended pattern for future implementation.

Related skills
Installs
6
GitHub Stars
1
First Seen
Mar 14, 2026