Skip to content

[Feature Area] — Workflows

Brief description of the workflows in this functional area.

Trigger: [User action / cron schedule / API call / webhook] Owner: [Which module/service handles this]

[Trigger] → [Step 1] → [Step 2] → [Outcome]
  1. [Step name]

    • File: path/to/file.ts
    • Function: functionName()
    • Input: [what it receives]
    • Output: [what it produces]
    • Side effects: [DB writes, notifications, etc.]
  2. [Step name]

    • File: path/to/file.ts
    • [continue pattern]

If the workflow involves state changes:

Current StateEventNext StateSide Effects
draftpublishactiveTriggers classification
Error ConditionHandlingUser Feedback
[condition][what happens][what user sees]
OperationTableColumnsRLS Policy
INSERTtable_namecol1, col2Editor+

ProcessScheduleRoute/ScriptPurpose
Example cronDaily 02:00/api/cron/exampleClean up expired items
External SystemDirectionProtocolPurpose
SupabaseRead/WriteREST + RPCPrimary data store
Claude APIRequestHTTPClassification, summaries
OpenAI APIRequestHTTPEmbeddings
  • [Known limitation 1]
  • [Known limitation 2]