Fantasia template custom fields

From vishiri/fantasia-archive · View interactive version

Fantasia template custom fields is an AI agent skill from the GitHub repository vishiri/fantasia-archive. Document template custom fields: field definitions, document values, merge-at-read, orphan retention, and template editor flows. Use when designing or implementing template fields, document forms, related SQLite schema, or projectContent IPC.

How to use this skill

Skill file

Document template custom fields

Canonical documentation

Related skills

Rule

fa-template-custom-fields.mdc when touching design or implementation.

Design summary

Implementation phases (short)

  1. Schema v11+ — DDL + migrate wiring → projectDB.md
  2. Main persist — projectDbContent/*
  3. Zod — src-electron/shared/faProjectTemplateField*, faProjectDocumentField*
  4. IPC + preload — bridge + projectContentAPI.ts
  5. Types — types/I_faProject*Domain.ts
  6. Renderer — Pinia, document editor merge/save
  7. Template editor UI — field CRUD, type-change guards
  8. Deferred — orphan recovery UI, cross-field search, version pins

Do not

Types

Shared types → types/. See types-folder.mdc.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.