Към всички skills
convex-core
Build Convex schemas, queries, mutations, actions, and client usage with strict validators and indexes. Use for data modeling, function authoring, argument/return validation, and performance guidance. Use proactively when work touches convex/schema.ts, functions, or api.* references. Examples: - us
Оригинален текст · няма потвърден превод на българскиПърво прочетете инструкцията.
Файлът се зарежда от посочения източник само по ваше действие. Можете да го прочетете тук, да го копирате или да го запазите като .md.
GitHub хранилище- Звезди на репото
- 89
- Лиценз
- Не е посочен. Проверете в репозитория.
- Последна проверка на записа
- Няма посочена дата
Добавете в своя инструмент.
Командата отваря избора на skills от репозитория. Прочетете файла и условията на автора преди изпълнение.
npx skills add IgorWarzocha/Opencode-WorkflowsСтраницата копира текст. Не инсталира и не изпълнява нищо на устройството ви.
Откъс от SKILL.md
Началото на файла на автора, без превод.
Schema Rules
- You MUST define all tables in
convex/schema.tswithdefineSchema/defineTable. - System Fields:
_id(v.id(tableName)) and_creationTime(v.number()) are added automatically. - You MUST use
v.*validators for every field; SHOULD avoidv.any()unless necessary. - Index naming: include all fields in the name, e.g.,
"by_field1_and_field2". - Index rules:
- You MUST use
.index(name, [fields...]). - Field order matters; range expressions MUST follow index order.
- Limits: 16 fields per index, 32 indexes per table.
- You MUST use
Function Rules
- You MUST use new function syntax with
args,returns, andhandler. - You MUST always validate
argsandreturns(HTTP actions excluded). - Use
queryfor reads,mutationfor writes, andactionfor external/long-running. - Actions MUST NOT access
ctx.db; You MUST usectx.runQuery/ctx.runMutation. - Circular Dependencies: When calling a function in the same file via
ctx.run*, You MUST add explicit return type annotations to the receiver variable.