Imported from hosein-mola/iran-dashboard (
app/api/ai/database-chat/schemas/[id]/AGENTS.md). Install upstream withnpx skills add hosein-mola/iran-dashboard --skill [id]. Copyright stays with the author.
schemas/[id]/ Guidelines
Runtime Prerequisite
nvmis installed. Before runningnode,npm, ornpx, usenvm list, activate the installed project-specific Node version withnvm use <version>, then verify withnode --version.
Scope: updating a stored AI database schema.
- Use partial updates only for provided fields; preserve existing values when a field is omitted.
- Parse provided
schemaJsonbefore saving and return a Persian validation error on invalid JSON. - Normalize row limits and message quotas on every update.
- Keep the response shape identical to schema creation unless there is a deliberate client update.