takomi 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +422 -0
- package/assets/.agent/skills/agent-recovery/SKILL.md +147 -0
- package/assets/.agent/skills/ai-avatar-video/SKILL.md +153 -0
- package/assets/.agent/skills/ai-marketing-videos/SKILL.md +295 -0
- package/assets/.agent/skills/ai-podcast-creation/SKILL.md +292 -0
- package/assets/.agent/skills/ai-product-photography/SKILL.md +269 -0
- package/assets/.agent/skills/ai-sdk/SKILL.md +77 -0
- package/assets/.agent/skills/ai-sdk/references/ai-gateway.md +66 -0
- package/assets/.agent/skills/ai-sdk/references/common-errors.md +443 -0
- package/assets/.agent/skills/ai-sdk/references/type-safe-agents.md +204 -0
- package/assets/.agent/skills/ai-social-media-content/SKILL.md +253 -0
- package/assets/.agent/skills/ai-voice-cloning/SKILL.md +276 -0
- package/assets/.agent/skills/algorithmic-art/LICENSE.txt +202 -0
- package/assets/.agent/skills/algorithmic-art/SKILL.md +405 -0
- package/assets/.agent/skills/algorithmic-art/templates/generator_template.js +223 -0
- package/assets/.agent/skills/algorithmic-art/templates/viewer.html +599 -0
- package/assets/.agent/skills/audit-website/SKILL.md +631 -0
- package/assets/.agent/skills/audit-website/agents/openai.yaml +6 -0
- package/assets/.agent/skills/audit-website/assets/icon-large.png +0 -0
- package/assets/.agent/skills/audit-website/assets/icon-small.svg +41 -0
- package/assets/.agent/skills/audit-website/references/OUTPUT-FORMAT.md +250 -0
- package/assets/.agent/skills/avoid-feature-creep/SKILL.md +307 -0
- package/assets/.agent/skills/avoid-feature-creep/agents/openai.yaml +3 -0
- package/assets/.agent/skills/avoid-feature-creep/assets/large-logo.png +0 -0
- package/assets/.agent/skills/avoid-feature-creep/assets/small-logo.svg +17 -0
- package/assets/.agent/skills/building-native-ui/SKILL.md +320 -0
- package/assets/.agent/skills/building-native-ui/references/animations.md +220 -0
- package/assets/.agent/skills/building-native-ui/references/controls.md +270 -0
- package/assets/.agent/skills/building-native-ui/references/form-sheet.md +227 -0
- package/assets/.agent/skills/building-native-ui/references/gradients.md +106 -0
- package/assets/.agent/skills/building-native-ui/references/icons.md +213 -0
- package/assets/.agent/skills/building-native-ui/references/media.md +198 -0
- package/assets/.agent/skills/building-native-ui/references/route-structure.md +229 -0
- package/assets/.agent/skills/building-native-ui/references/search.md +248 -0
- package/assets/.agent/skills/building-native-ui/references/storage.md +121 -0
- package/assets/.agent/skills/building-native-ui/references/tabs.md +368 -0
- package/assets/.agent/skills/building-native-ui/references/toolbar-and-headers.md +284 -0
- package/assets/.agent/skills/building-native-ui/references/visual-effects.md +197 -0
- package/assets/.agent/skills/building-native-ui/references/webgpu-three.md +605 -0
- package/assets/.agent/skills/building-native-ui/references/zoom-transitions.md +158 -0
- package/assets/.agent/skills/code-review/SKILL.md +81 -0
- package/assets/.agent/skills/component-analysis/SKILL.md +103 -0
- package/assets/.agent/skills/context7/SKILL.md +85 -0
- package/assets/.agent/skills/convex/SKILL.md +62 -0
- package/assets/.agent/skills/convex/agents/openai.yaml +3 -0
- package/assets/.agent/skills/convex/assets/large-logo.png +0 -0
- package/assets/.agent/skills/convex/assets/small-logo.svg +17 -0
- package/assets/.agent/skills/convex-agents/SKILL.md +516 -0
- package/assets/.agent/skills/convex-agents/agents/openai.yaml +3 -0
- package/assets/.agent/skills/convex-agents/assets/large-logo.png +0 -0
- package/assets/.agent/skills/convex-agents/assets/small-logo.svg +17 -0
- package/assets/.agent/skills/convex-best-practices/SKILL.md +369 -0
- package/assets/.agent/skills/convex-best-practices/agents/openai.yaml +3 -0
- package/assets/.agent/skills/convex-best-practices/assets/large-logo.png +0 -0
- package/assets/.agent/skills/convex-best-practices/assets/small-logo.svg +17 -0
- package/assets/.agent/skills/convex-component-authoring/SKILL.md +457 -0
- package/assets/.agent/skills/convex-component-authoring/agents/openai.yaml +3 -0
- package/assets/.agent/skills/convex-component-authoring/assets/large-logo.png +0 -0
- package/assets/.agent/skills/convex-component-authoring/assets/small-logo.svg +17 -0
- package/assets/.agent/skills/convex-cron-jobs/SKILL.md +604 -0
- package/assets/.agent/skills/convex-cron-jobs/agents/openai.yaml +3 -0
- package/assets/.agent/skills/convex-cron-jobs/assets/large-logo.png +0 -0
- package/assets/.agent/skills/convex-cron-jobs/assets/small-logo.svg +17 -0
- package/assets/.agent/skills/convex-file-storage/SKILL.md +467 -0
- package/assets/.agent/skills/convex-file-storage/agents/openai.yaml +3 -0
- package/assets/.agent/skills/convex-file-storage/assets/large-logo.png +0 -0
- package/assets/.agent/skills/convex-file-storage/assets/small-logo.svg +17 -0
- package/assets/.agent/skills/convex-functions/SKILL.md +458 -0
- package/assets/.agent/skills/convex-functions/agents/openai.yaml +3 -0
- package/assets/.agent/skills/convex-functions/assets/large-logo.png +0 -0
- package/assets/.agent/skills/convex-functions/assets/small-logo.svg +17 -0
- package/assets/.agent/skills/convex-http-actions/SKILL.md +733 -0
- package/assets/.agent/skills/convex-http-actions/agents/openai.yaml +3 -0
- package/assets/.agent/skills/convex-http-actions/assets/large-logo.png +0 -0
- package/assets/.agent/skills/convex-http-actions/assets/small-logo.svg +17 -0
- package/assets/.agent/skills/convex-migrations/SKILL.md +712 -0
- package/assets/.agent/skills/convex-migrations/agents/openai.yaml +3 -0
- package/assets/.agent/skills/convex-migrations/assets/large-logo.png +0 -0
- package/assets/.agent/skills/convex-migrations/assets/small-logo.svg +17 -0
- package/assets/.agent/skills/convex-realtime/SKILL.md +443 -0
- package/assets/.agent/skills/convex-realtime/agents/openai.yaml +3 -0
- package/assets/.agent/skills/convex-realtime/assets/large-logo.png +0 -0
- package/assets/.agent/skills/convex-realtime/assets/small-logo.svg +17 -0
- package/assets/.agent/skills/convex-schema-validator/SKILL.md +400 -0
- package/assets/.agent/skills/convex-schema-validator/agents/openai.yaml +3 -0
- package/assets/.agent/skills/convex-schema-validator/assets/large-logo.png +0 -0
- package/assets/.agent/skills/convex-schema-validator/assets/small-logo.svg +17 -0
- package/assets/.agent/skills/convex-security-audit/SKILL.md +539 -0
- package/assets/.agent/skills/convex-security-audit/agents/openai.yaml +3 -0
- package/assets/.agent/skills/convex-security-audit/assets/large-logo.png +0 -0
- package/assets/.agent/skills/convex-security-audit/assets/small-logo.svg +17 -0
- package/assets/.agent/skills/convex-security-check/SKILL.md +378 -0
- package/assets/.agent/skills/convex-security-check/agents/openai.yaml +3 -0
- package/assets/.agent/skills/convex-security-check/assets/large-logo.png +0 -0
- package/assets/.agent/skills/convex-security-check/assets/small-logo.svg +17 -0
- package/assets/.agent/skills/copywriting/SKILL.md +251 -0
- package/assets/.agent/skills/copywriting/references/copy-frameworks.md +338 -0
- package/assets/.agent/skills/copywriting/references/natural-transitions.md +252 -0
- package/assets/.agent/skills/crafting-effective-readmes/SKILL.md +78 -0
- package/assets/.agent/skills/crafting-effective-readmes/references/art-of-readme.md +536 -0
- package/assets/.agent/skills/crafting-effective-readmes/references/make-a-readme.md +119 -0
- package/assets/.agent/skills/crafting-effective-readmes/references/standard-readme-example-maximal.md +68 -0
- package/assets/.agent/skills/crafting-effective-readmes/references/standard-readme-example-minimal.md +21 -0
- package/assets/.agent/skills/crafting-effective-readmes/references/standard-readme-spec.md +242 -0
- package/assets/.agent/skills/crafting-effective-readmes/section-checklist.md +17 -0
- package/assets/.agent/skills/crafting-effective-readmes/style-guide.md +13 -0
- package/assets/.agent/skills/crafting-effective-readmes/templates/internal.md +106 -0
- package/assets/.agent/skills/crafting-effective-readmes/templates/oss.md +77 -0
- package/assets/.agent/skills/crafting-effective-readmes/templates/personal.md +51 -0
- package/assets/.agent/skills/crafting-effective-readmes/templates/xdg-config.md +71 -0
- package/assets/.agent/skills/crafting-effective-readmes/using-references.md +35 -0
- package/assets/.agent/skills/docx/LICENSE.txt +30 -0
- package/assets/.agent/skills/docx/SKILL.md +481 -0
- package/assets/.agent/skills/docx/scripts/accept_changes.py +135 -0
- package/assets/.agent/skills/docx/scripts/comment.py +318 -0
- package/assets/.agent/skills/docx/scripts/office/helpers/merge_runs.py +199 -0
- package/assets/.agent/skills/docx/scripts/office/helpers/simplify_redlines.py +197 -0
- package/assets/.agent/skills/docx/scripts/office/pack.py +159 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/mce/mc.xsd +75 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/assets/.agent/skills/docx/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/assets/.agent/skills/docx/scripts/office/soffice.py +183 -0
- package/assets/.agent/skills/docx/scripts/office/unpack.py +132 -0
- package/assets/.agent/skills/docx/scripts/office/validate.py +111 -0
- package/assets/.agent/skills/docx/scripts/office/validators/base.py +847 -0
- package/assets/.agent/skills/docx/scripts/office/validators/docx.py +446 -0
- package/assets/.agent/skills/docx/scripts/office/validators/pptx.py +275 -0
- package/assets/.agent/skills/docx/scripts/office/validators/redlining.py +247 -0
- package/assets/.agent/skills/docx/scripts/templates/comments.xml +3 -0
- package/assets/.agent/skills/docx/scripts/templates/commentsExtended.xml +3 -0
- package/assets/.agent/skills/docx/scripts/templates/commentsExtensible.xml +3 -0
- package/assets/.agent/skills/docx/scripts/templates/commentsIds.xml +3 -0
- package/assets/.agent/skills/docx/scripts/templates/people.xml +3 -0
- package/assets/.agent/skills/domain-name-brainstormer/SKILL.md +212 -0
- package/assets/.agent/skills/frontend-design/LICENSE.txt +177 -0
- package/assets/.agent/skills/frontend-design/SKILL.md +42 -0
- package/assets/.agent/skills/gemini/SKILL.md +223 -0
- package/assets/.agent/skills/git-worktree/SKILL.md +78 -0
- package/assets/.agent/skills/github-ops/SKILL.md +220 -0
- package/assets/.agent/skills/github-ops/scripts/publish_issues.ps1 +443 -0
- package/assets/.agent/skills/github-ops/scripts/smart-ops.ps1 +128 -0
- package/assets/.agent/skills/github-ops/scripts/smart-ops.sh +130 -0
- package/assets/.agent/skills/global-brand-namer/SKILL.md +119 -0
- package/assets/.agent/skills/global-brand-namer/references/language-matrices.md +196 -0
- package/assets/.agent/skills/global-brand-namer/references/saas-modifiers.md +132 -0
- package/assets/.agent/skills/google-trends/SKILL.md +157 -0
- package/assets/.agent/skills/google-trends/scripts/package.json +17 -0
- package/assets/.agent/skills/google-trends/scripts/pnpm-lock.yaml +31 -0
- package/assets/.agent/skills/google-trends/scripts/search.js +168 -0
- package/assets/.agent/skills/high-fidelity-extraction/SKILL.md +59 -0
- package/assets/.agent/skills/jules/SKILL.md +196 -0
- package/assets/.agent/skills/marketing-ideas/SKILL.md +166 -0
- package/assets/.agent/skills/marketing-ideas/references/ideas-by-category.md +347 -0
- package/assets/.agent/skills/monorepo-management/SKILL.md +623 -0
- package/assets/.agent/skills/nextjs-standards/SKILL.md +194 -0
- package/assets/.agent/skills/nextjs-standards/scripts/vibe-verify.py +150 -0
- package/assets/.agent/skills/nextjs-standards/templates/Coding_Guidelines.md +337 -0
- package/assets/.agent/skills/nextjs-standards/templates/Issue_Template.md +194 -0
- package/assets/.agent/skills/optimize-agent-context/SKILL.md +97 -0
- package/assets/.agent/skills/pdf/LICENSE.txt +30 -0
- package/assets/.agent/skills/pdf/SKILL.md +314 -0
- package/assets/.agent/skills/pdf/forms.md +294 -0
- package/assets/.agent/skills/pdf/reference.md +612 -0
- package/assets/.agent/skills/pdf/scripts/check_bounding_boxes.py +65 -0
- package/assets/.agent/skills/pdf/scripts/check_fillable_fields.py +11 -0
- package/assets/.agent/skills/pdf/scripts/convert_pdf_to_images.py +33 -0
- package/assets/.agent/skills/pdf/scripts/create_validation_image.py +37 -0
- package/assets/.agent/skills/pdf/scripts/extract_form_field_info.py +122 -0
- package/assets/.agent/skills/pdf/scripts/extract_form_structure.py +115 -0
- package/assets/.agent/skills/pdf/scripts/fill_fillable_fields.py +98 -0
- package/assets/.agent/skills/pdf/scripts/fill_pdf_form_with_annotations.py +107 -0
- package/assets/.agent/skills/pptx/LICENSE.txt +30 -0
- package/assets/.agent/skills/pptx/SKILL.md +232 -0
- package/assets/.agent/skills/pptx/editing.md +205 -0
- package/assets/.agent/skills/pptx/pptxgenjs.md +420 -0
- package/assets/.agent/skills/pptx/scripts/add_slide.py +195 -0
- package/assets/.agent/skills/pptx/scripts/clean.py +286 -0
- package/assets/.agent/skills/pptx/scripts/office/helpers/merge_runs.py +199 -0
- package/assets/.agent/skills/pptx/scripts/office/helpers/simplify_redlines.py +197 -0
- package/assets/.agent/skills/pptx/scripts/office/pack.py +159 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/mce/mc.xsd +75 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/assets/.agent/skills/pptx/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/assets/.agent/skills/pptx/scripts/office/soffice.py +183 -0
- package/assets/.agent/skills/pptx/scripts/office/unpack.py +132 -0
- package/assets/.agent/skills/pptx/scripts/office/validate.py +111 -0
- package/assets/.agent/skills/pptx/scripts/office/validators/base.py +847 -0
- package/assets/.agent/skills/pptx/scripts/office/validators/docx.py +446 -0
- package/assets/.agent/skills/pptx/scripts/office/validators/pptx.py +275 -0
- package/assets/.agent/skills/pptx/scripts/office/validators/redlining.py +247 -0
- package/assets/.agent/skills/pptx/scripts/thumbnail.py +289 -0
- package/assets/.agent/skills/pricing-strategy/SKILL.md +227 -0
- package/assets/.agent/skills/pricing-strategy/references/research-methods.md +146 -0
- package/assets/.agent/skills/pricing-strategy/references/tier-structure.md +223 -0
- package/assets/.agent/skills/programmatic-seo/SKILL.md +236 -0
- package/assets/.agent/skills/programmatic-seo/references/playbooks.md +293 -0
- package/assets/.agent/skills/prompt-engineering/SKILL.md +342 -0
- package/assets/.agent/skills/remotion/SKILL.md +45 -0
- package/assets/.agent/skills/remotion/rules/3d.md +86 -0
- package/assets/.agent/skills/remotion/rules/animations.md +29 -0
- package/assets/.agent/skills/remotion/rules/assets/charts-bar-chart.tsx +173 -0
- package/assets/.agent/skills/remotion/rules/assets/text-animations-typewriter.tsx +100 -0
- package/assets/.agent/skills/remotion/rules/assets/text-animations-word-highlight.tsx +108 -0
- package/assets/.agent/skills/remotion/rules/assets.md +78 -0
- package/assets/.agent/skills/remotion/rules/audio.md +172 -0
- package/assets/.agent/skills/remotion/rules/calculate-metadata.md +104 -0
- package/assets/.agent/skills/remotion/rules/can-decode.md +75 -0
- package/assets/.agent/skills/remotion/rules/charts.md +58 -0
- package/assets/.agent/skills/remotion/rules/compositions.md +141 -0
- package/assets/.agent/skills/remotion/rules/display-captions.md +126 -0
- package/assets/.agent/skills/remotion/rules/extract-frames.md +229 -0
- package/assets/.agent/skills/remotion/rules/fonts.md +152 -0
- package/assets/.agent/skills/remotion/rules/get-audio-duration.md +58 -0
- package/assets/.agent/skills/remotion/rules/get-video-dimensions.md +68 -0
- package/assets/.agent/skills/remotion/rules/get-video-duration.md +58 -0
- package/assets/.agent/skills/remotion/rules/gifs.md +138 -0
- package/assets/.agent/skills/remotion/rules/images.md +130 -0
- package/assets/.agent/skills/remotion/rules/import-srt-captions.md +67 -0
- package/assets/.agent/skills/remotion/rules/lottie.md +68 -0
- package/assets/.agent/skills/remotion/rules/maps.md +403 -0
- package/assets/.agent/skills/remotion/rules/measuring-dom-nodes.md +35 -0
- package/assets/.agent/skills/remotion/rules/measuring-text.md +143 -0
- package/assets/.agent/skills/remotion/rules/parameters.md +98 -0
- package/assets/.agent/skills/remotion/rules/sequencing.md +118 -0
- package/assets/.agent/skills/remotion/rules/tailwind.md +11 -0
- package/assets/.agent/skills/remotion/rules/text-animations.md +20 -0
- package/assets/.agent/skills/remotion/rules/timing.md +179 -0
- package/assets/.agent/skills/remotion/rules/transcribe-captions.md +19 -0
- package/assets/.agent/skills/remotion/rules/transitions.md +122 -0
- package/assets/.agent/skills/remotion/rules/trimming.md +53 -0
- package/assets/.agent/skills/remotion/rules/videos.md +171 -0
- package/assets/.agent/skills/security-audit/SKILL.md +184 -0
- package/assets/.agent/skills/seo-ready/SKILL.md +140 -0
- package/assets/.agent/skills/seo-ready/references/aeo-geo-patterns.md +279 -0
- package/assets/.agent/skills/seo-ready/references/ai-writing-detection.md +190 -0
- package/assets/.agent/skills/skill-creator/LICENSE.txt +202 -0
- package/assets/.agent/skills/skill-creator/SKILL.md +356 -0
- package/assets/.agent/skills/skill-creator/references/output-patterns.md +82 -0
- package/assets/.agent/skills/skill-creator/references/workflows.md +28 -0
- package/assets/.agent/skills/skill-creator/scripts/__pycache__/quick_validate.cpython-311.pyc +0 -0
- package/assets/.agent/skills/skill-creator/scripts/init_skill.py +303 -0
- package/assets/.agent/skills/skill-creator/scripts/package_skill.py +110 -0
- package/assets/.agent/skills/skill-creator/scripts/quick_validate.py +95 -0
- package/assets/.agent/skills/social-content/SKILL.md +277 -0
- package/assets/.agent/skills/social-content/references/platforms.md +163 -0
- package/assets/.agent/skills/social-content/references/post-templates.md +171 -0
- package/assets/.agent/skills/social-content/references/reverse-engineering.md +190 -0
- package/assets/.agent/skills/spawn-task/SKILL.md +130 -0
- package/assets/.agent/skills/stitch/SKILL.md +258 -0
- package/assets/.agent/skills/stitch/design-md/README.md +34 -0
- package/assets/.agent/skills/stitch/design-md/SKILL.md +172 -0
- package/assets/.agent/skills/stitch/design-md/examples/DESIGN.md +154 -0
- package/assets/.agent/skills/stitch/enhance-prompt/README.md +34 -0
- package/assets/.agent/skills/stitch/enhance-prompt/SKILL.md +204 -0
- package/assets/.agent/skills/stitch/enhance-prompt/references/KEYWORDS.md +114 -0
- package/assets/.agent/skills/stitch/react-components/README.md +36 -0
- package/assets/.agent/skills/stitch/react-components/SKILL.md +47 -0
- package/assets/.agent/skills/stitch/react-components/examples/gold-standard-card.tsx +80 -0
- package/assets/.agent/skills/stitch/react-components/package-lock.json +231 -0
- package/assets/.agent/skills/stitch/react-components/package.json +16 -0
- package/assets/.agent/skills/stitch/react-components/resources/architecture-checklist.md +15 -0
- package/assets/.agent/skills/stitch/react-components/resources/component-template.tsx +37 -0
- package/assets/.agent/skills/stitch/react-components/resources/stitch-api-reference.md +14 -0
- package/assets/.agent/skills/stitch/react-components/resources/style-guide.json +27 -0
- package/assets/.agent/skills/stitch/react-components/scripts/fetch-stitch.sh +30 -0
- package/assets/.agent/skills/stitch/react-components/scripts/validate.js +68 -0
- package/assets/.agent/skills/stitch/remotion/README.md +105 -0
- package/assets/.agent/skills/stitch/remotion/SKILL.md +393 -0
- package/assets/.agent/skills/stitch/remotion/examples/WalkthroughComposition.tsx +78 -0
- package/assets/.agent/skills/stitch/remotion/examples/screens.json +56 -0
- package/assets/.agent/skills/stitch/remotion/resources/composition-checklist.md +124 -0
- package/assets/.agent/skills/stitch/remotion/resources/screen-slide-template.tsx +123 -0
- package/assets/.agent/skills/stitch/remotion/scripts/download-stitch-asset.sh +38 -0
- package/assets/.agent/skills/stitch/shadcn-ui/README.md +248 -0
- package/assets/.agent/skills/stitch/shadcn-ui/SKILL.md +326 -0
- package/assets/.agent/skills/stitch/shadcn-ui/examples/auth-layout.tsx +177 -0
- package/assets/.agent/skills/stitch/shadcn-ui/examples/data-table.tsx +313 -0
- package/assets/.agent/skills/stitch/shadcn-ui/examples/form-pattern.tsx +177 -0
- package/assets/.agent/skills/stitch/shadcn-ui/resources/component-catalog.md +481 -0
- package/assets/.agent/skills/stitch/shadcn-ui/resources/customization-guide.md +516 -0
- package/assets/.agent/skills/stitch/shadcn-ui/resources/migration-guide.md +463 -0
- package/assets/.agent/skills/stitch/shadcn-ui/resources/setup-guide.md +412 -0
- package/assets/.agent/skills/stitch/shadcn-ui/scripts/verify-setup.sh +134 -0
- package/assets/.agent/skills/stitch/stitch-loop/README.md +54 -0
- package/assets/.agent/skills/stitch/stitch-loop/SKILL.md +203 -0
- package/assets/.agent/skills/stitch/stitch-loop/examples/SITE.md +73 -0
- package/assets/.agent/skills/stitch/stitch-loop/examples/next-prompt.md +25 -0
- package/assets/.agent/skills/stitch/stitch-loop/resources/baton-schema.md +61 -0
- package/assets/.agent/skills/stitch/stitch-loop/resources/site-template.md +104 -0
- package/assets/.agent/skills/subagent-driven-development/SKILL.md +242 -0
- package/assets/.agent/skills/subagent-driven-development/code-quality-reviewer-prompt.md +20 -0
- package/assets/.agent/skills/subagent-driven-development/implementer-prompt.md +78 -0
- package/assets/.agent/skills/subagent-driven-development/spec-reviewer-prompt.md +61 -0
- package/assets/.agent/skills/sync-docs/SKILL.md +88 -0
- package/assets/.agent/skills/twitter-automation/SKILL.md +157 -0
- package/assets/.agent/skills/ui-ux-pro-max/README.md +488 -0
- package/assets/.agent/skills/ui-ux-pro-max/SKILL.md +293 -0
- package/assets/.agent/skills/ui-ux-pro-max/data/charts.csv +26 -0
- package/assets/.agent/skills/ui-ux-pro-max/data/colors.csv +97 -0
- package/assets/.agent/skills/ui-ux-pro-max/data/icons.csv +101 -0
- package/assets/.agent/skills/ui-ux-pro-max/data/landing.csv +31 -0
- package/assets/.agent/skills/ui-ux-pro-max/data/products.csv +97 -0
- package/assets/.agent/skills/ui-ux-pro-max/data/prompts.csv +24 -0
- package/assets/.agent/skills/ui-ux-pro-max/data/react-performance.csv +45 -0
- package/assets/.agent/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
- package/assets/.agent/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
- package/assets/.agent/skills/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
- package/assets/.agent/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
- package/assets/.agent/skills/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
- package/assets/.agent/skills/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
- package/assets/.agent/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/assets/.agent/skills/ui-ux-pro-max/data/stacks/react.csv +54 -0
- package/assets/.agent/skills/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
- package/assets/.agent/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
- package/assets/.agent/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
- package/assets/.agent/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -0
- package/assets/.agent/skills/ui-ux-pro-max/data/styles.csv +59 -0
- package/assets/.agent/skills/ui-ux-pro-max/data/typography.csv +58 -0
- package/assets/.agent/skills/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
- package/assets/.agent/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/assets/.agent/skills/ui-ux-pro-max/data/web-interface.csv +31 -0
- package/assets/.agent/skills/ui-ux-pro-max/scripts/__pycache__/core.cpython-311.pyc +0 -0
- package/assets/.agent/skills/ui-ux-pro-max/scripts/__pycache__/design_system.cpython-311.pyc +0 -0
- package/assets/.agent/skills/ui-ux-pro-max/scripts/core.py +258 -0
- package/assets/.agent/skills/ui-ux-pro-max/scripts/design_system.py +1067 -0
- package/assets/.agent/skills/ui-ux-pro-max/scripts/search.py +106 -0
- package/assets/.agent/skills/upgrading-expo/SKILL.md +125 -0
- package/assets/.agent/skills/upgrading-expo/references/expo-av-to-audio.md +132 -0
- package/assets/.agent/skills/upgrading-expo/references/expo-av-to-video.md +160 -0
- package/assets/.agent/skills/upgrading-expo/references/native-tabs.md +124 -0
- package/assets/.agent/skills/upgrading-expo/references/new-architecture.md +79 -0
- package/assets/.agent/skills/upgrading-expo/references/react-19.md +79 -0
- package/assets/.agent/skills/upgrading-expo/references/react-compiler.md +59 -0
- package/assets/.agent/skills/web-design-guidelines/SKILL.md +39 -0
- package/assets/.agent/skills/webapp-testing/LICENSE.txt +202 -0
- package/assets/.agent/skills/webapp-testing/SKILL.md +96 -0
- package/assets/.agent/skills/webapp-testing/examples/console_logging.py +35 -0
- package/assets/.agent/skills/webapp-testing/examples/element_discovery.py +40 -0
- package/assets/.agent/skills/webapp-testing/examples/static_html_automation.py +33 -0
- package/assets/.agent/skills/webapp-testing/scripts/with_server.py +106 -0
- package/assets/.agent/skills/xlsx/LICENSE.txt +30 -0
- package/assets/.agent/skills/xlsx/SKILL.md +292 -0
- package/assets/.agent/skills/xlsx/scripts/office/helpers/merge_runs.py +199 -0
- package/assets/.agent/skills/xlsx/scripts/office/helpers/simplify_redlines.py +197 -0
- package/assets/.agent/skills/xlsx/scripts/office/pack.py +159 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/mce/mc.xsd +75 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/assets/.agent/skills/xlsx/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/assets/.agent/skills/xlsx/scripts/office/soffice.py +183 -0
- package/assets/.agent/skills/xlsx/scripts/office/unpack.py +132 -0
- package/assets/.agent/skills/xlsx/scripts/office/validate.py +111 -0
- package/assets/.agent/skills/xlsx/scripts/office/validators/base.py +847 -0
- package/assets/.agent/skills/xlsx/scripts/office/validators/docx.py +446 -0
- package/assets/.agent/skills/xlsx/scripts/office/validators/pptx.py +275 -0
- package/assets/.agent/skills/xlsx/scripts/office/validators/redlining.py +247 -0
- package/assets/.agent/skills/xlsx/scripts/recalc.py +184 -0
- package/assets/.agent/skills/youtube-pipeline/SKILL.md +194 -0
- package/assets/.agent/skills/youtube-pipeline/resources/youtube-phase1-strategy.md +224 -0
- package/assets/.agent/skills/youtube-pipeline/resources/youtube-phase2-packaging.md +148 -0
- package/assets/.agent/skills/youtube-pipeline/resources/youtube-phase3-scripting.md +197 -0
- package/assets/.agent/skills/youtube-pipeline/resources/youtube-phase3.5-shorts.md +271 -0
- package/assets/.agent/skills/youtube-pipeline/resources/youtube-phase4-production.md +193 -0
- package/assets/.agent/skills/youtube-pipeline/resources/youtube-phase5-repurposing.md +159 -0
- package/assets/.agent/skills/youtube-pipeline/resources/youtube-pipeline.md +161 -0
- package/assets/.agent/skills/youtube-pipeline/scripts/parse_yt_studio.ps1 +150 -0
- package/assets/.agent/workflows/LEGACY/ANTIGRAVITY_TOOLBOX.md +200 -0
- package/assets/.agent/workflows/LEGACY/analyze_component.md +141 -0
- package/assets/.agent/workflows/LEGACY/build_vibecode_project.md +154 -0
- package/assets/.agent/workflows/LEGACY/build_vibecode_project_v2.md +158 -0
- package/assets/.agent/workflows/LEGACY/deep_code_audit.md +79 -0
- package/assets/.agent/workflows/LEGACY/gemini-orchestrate.md +63 -0
- package/assets/.agent/workflows/LEGACY/git_worktree.md +71 -0
- package/assets/.agent/workflows/LEGACY/init_smart_ops.md +101 -0
- package/assets/.agent/workflows/LEGACY/init_vibecode_genesis_v1.md +137 -0
- package/assets/.agent/workflows/LEGACY/multi_agent_strategy.md +62 -0
- package/assets/.agent/workflows/LEGACY/orchestrate.md +321 -0
- package/assets/.agent/workflows/LEGACY/seo_ready.md +249 -0
- package/assets/.agent/workflows/LEGACY/vibe-orchestrator.md +305 -0
- package/assets/.agent/workflows/LEGACY/youtube-phase1-strategy.md +224 -0
- package/assets/.agent/workflows/LEGACY/youtube-phase2-packaging.md +148 -0
- package/assets/.agent/workflows/LEGACY/youtube-phase3-scripting.md +197 -0
- package/assets/.agent/workflows/LEGACY/youtube-phase3.5-shorts.md +271 -0
- package/assets/.agent/workflows/LEGACY/youtube-phase4-production.md +193 -0
- package/assets/.agent/workflows/LEGACY/youtube-phase5-repurposing.md +159 -0
- package/assets/.agent/workflows/LEGACY/youtube-pipeline.md +161 -0
- package/assets/.agent/workflows/README.md +537 -0
- package/assets/.agent/workflows/Vercel Ai SDK.md +34083 -0
- package/assets/.agent/workflows/agent_reset.md +173 -0
- package/assets/.agent/workflows/escalate.md +112 -0
- package/assets/.agent/workflows/migrate.md +135 -0
- package/assets/.agent/workflows/mode-architect.md +422 -0
- package/assets/.agent/workflows/mode-ask.md +294 -0
- package/assets/.agent/workflows/mode-code.md +481 -0
- package/assets/.agent/workflows/mode-debug.md +407 -0
- package/assets/.agent/workflows/mode-orchestrator.md +222 -0
- package/assets/.agent/workflows/mode-review.md +341 -0
- package/assets/.agent/workflows/mode-visionary.md +186 -0
- package/assets/.agent/workflows/optimize-agent-context.md +54 -0
- package/assets/.agent/workflows/remotion-build.md +323 -0
- package/assets/.agent/workflows/reverse_genesis.md +132 -0
- package/assets/.agent/workflows/review_code.md +133 -0
- package/assets/.agent/workflows/spawn-jstar-code-review.md +121 -0
- package/assets/.agent/workflows/stitch.md +149 -0
- package/assets/.agent/workflows/vibe-build.md +271 -0
- package/assets/.agent/workflows/vibe-continueBuild.md +184 -0
- package/assets/.agent/workflows/vibe-design.md +98 -0
- package/assets/.agent/workflows/vibe-finalize.md +208 -0
- package/assets/.agent/workflows/vibe-genesis.md +191 -0
- package/assets/.agent/workflows/vibe-primeAgent.md +110 -0
- package/assets/.agent/workflows/vibe-spawnTask.md +188 -0
- package/assets/.agent/workflows/vibe-syncDocs.md +90 -0
- package/assets/Legacy/0 VibeCode User Manual.md +175 -0
- package/assets/Legacy/1 Project Genesis Protocol The VibeCode Workflow.md +89 -0
- package/assets/Legacy/2/342/234/250 ULTIMATE ORCHESTRATION PROMPT/342/234/250.md" +114 -0
- package/assets/Legacy/3 Design System Genesis Protocol.md +75 -0
- package/assets/Legacy/3.1.1 my_design_system_rules.md +177 -0
- package/assets/Legacy/3.1.2 Material You M3 Genesis Protocol.md +73 -0
- package/assets/Legacy/4 The Ultimate GitHub Issue Meta-Prompt Template.md +54 -0
- package/assets/Legacy/5 The Escalation & Handoff Protocol.md +97 -0
- package/assets/Legacy/8 The Seamless Migration Meta-Prompt (Your Reusable Tool).md +38 -0
- package/assets/Legacy/9 The Reverse Genesis Protocol.md +75 -0
- package/assets/Takomi-Agents/custom_modes.yaml +1252 -0
- package/assets/Takomi-Agents/kilo-code-settings.json +1 -0
- package/assets/Takomi-Agents/vibe-architect.yaml +473 -0
- package/assets/Takomi-Agents/vibe-ask.yaml +395 -0
- package/assets/Takomi-Agents/vibe-code.yaml +522 -0
- package/assets/Takomi-Agents/vibe-debug.yaml +448 -0
- package/assets/Takomi-Agents/vibe-orchestrator.yaml +763 -0
- package/assets/Takomi-Agents/vibe-review.yaml +459 -0
- package/assets/Takomi-Agents/vibe-visionary.yaml +607 -0
- package/bin/takomi.js +2 -0
- package/package.json +42 -0
- package/src/cli.js +638 -0
- package/src/harness.js +281 -0
- package/src/store.js +239 -0
- package/src/utils.js +447 -0
|
@@ -0,0 +1,712 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: convex-migrations
|
|
3
|
+
displayName: Convex Migrations
|
|
4
|
+
description: Schema migration strategies for evolving applications including adding new fields, backfilling data, removing deprecated fields, index migrations, and zero-downtime migration patterns
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
author: Convex
|
|
7
|
+
tags: [convex, migrations, schema, database, data-modeling]
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Convex Migrations
|
|
11
|
+
|
|
12
|
+
Evolve your Convex database schema safely with patterns for adding fields, backfilling data, removing deprecated fields, and maintaining zero-downtime deployments.
|
|
13
|
+
|
|
14
|
+
## Documentation Sources
|
|
15
|
+
|
|
16
|
+
Before implementing, do not assume; fetch the latest documentation:
|
|
17
|
+
|
|
18
|
+
- Primary: https://docs.convex.dev/database/schemas
|
|
19
|
+
- Schema Overview: https://docs.convex.dev/database
|
|
20
|
+
- Migration Patterns: https://stack.convex.dev/migrate-data-postgres-to-convex
|
|
21
|
+
- For broader context: https://docs.convex.dev/llms.txt
|
|
22
|
+
|
|
23
|
+
## Instructions
|
|
24
|
+
|
|
25
|
+
### Migration Philosophy
|
|
26
|
+
|
|
27
|
+
Convex handles schema evolution differently than traditional databases:
|
|
28
|
+
|
|
29
|
+
- No explicit migration files or commands
|
|
30
|
+
- Schema changes deploy instantly with `npx convex dev`
|
|
31
|
+
- Existing data is not automatically transformed
|
|
32
|
+
- Use optional fields and backfill mutations for safe migrations
|
|
33
|
+
|
|
34
|
+
### Adding New Fields
|
|
35
|
+
|
|
36
|
+
Start with optional fields, then backfill:
|
|
37
|
+
|
|
38
|
+
```typescript
|
|
39
|
+
// Step 1: Add optional field to schema
|
|
40
|
+
// convex/schema.ts
|
|
41
|
+
import { defineSchema, defineTable } from "convex/server";
|
|
42
|
+
import { v } from "convex/values";
|
|
43
|
+
|
|
44
|
+
export default defineSchema({
|
|
45
|
+
users: defineTable({
|
|
46
|
+
name: v.string(),
|
|
47
|
+
email: v.string(),
|
|
48
|
+
// New field - start as optional
|
|
49
|
+
avatarUrl: v.optional(v.string()),
|
|
50
|
+
}),
|
|
51
|
+
});
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
```typescript
|
|
55
|
+
// Step 2: Update code to handle both cases
|
|
56
|
+
// convex/users.ts
|
|
57
|
+
import { query } from "./_generated/server";
|
|
58
|
+
import { v } from "convex/values";
|
|
59
|
+
|
|
60
|
+
export const getUser = query({
|
|
61
|
+
args: { userId: v.id("users") },
|
|
62
|
+
returns: v.union(
|
|
63
|
+
v.object({
|
|
64
|
+
_id: v.id("users"),
|
|
65
|
+
name: v.string(),
|
|
66
|
+
email: v.string(),
|
|
67
|
+
avatarUrl: v.union(v.string(), v.null()),
|
|
68
|
+
}),
|
|
69
|
+
v.null()
|
|
70
|
+
),
|
|
71
|
+
handler: async (ctx, args) => {
|
|
72
|
+
const user = await ctx.db.get(args.userId);
|
|
73
|
+
if (!user) return null;
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
_id: user._id,
|
|
77
|
+
name: user.name,
|
|
78
|
+
email: user.email,
|
|
79
|
+
// Handle missing field gracefully
|
|
80
|
+
avatarUrl: user.avatarUrl ?? null,
|
|
81
|
+
};
|
|
82
|
+
},
|
|
83
|
+
});
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
```typescript
|
|
87
|
+
// Step 3: Backfill existing documents
|
|
88
|
+
// convex/migrations.ts
|
|
89
|
+
import { internalMutation } from "./_generated/server";
|
|
90
|
+
import { internal } from "./_generated/api";
|
|
91
|
+
import { v } from "convex/values";
|
|
92
|
+
|
|
93
|
+
const BATCH_SIZE = 100;
|
|
94
|
+
|
|
95
|
+
export const backfillAvatarUrl = internalMutation({
|
|
96
|
+
args: {
|
|
97
|
+
cursor: v.optional(v.string()),
|
|
98
|
+
},
|
|
99
|
+
returns: v.object({
|
|
100
|
+
processed: v.number(),
|
|
101
|
+
hasMore: v.boolean(),
|
|
102
|
+
}),
|
|
103
|
+
handler: async (ctx, args) => {
|
|
104
|
+
const result = await ctx.db
|
|
105
|
+
.query("users")
|
|
106
|
+
.paginate({ numItems: BATCH_SIZE, cursor: args.cursor ?? null });
|
|
107
|
+
|
|
108
|
+
let processed = 0;
|
|
109
|
+
for (const user of result.page) {
|
|
110
|
+
// Only update if field is missing
|
|
111
|
+
if (user.avatarUrl === undefined) {
|
|
112
|
+
await ctx.db.patch(user._id, {
|
|
113
|
+
avatarUrl: generateDefaultAvatar(user.name),
|
|
114
|
+
});
|
|
115
|
+
processed++;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// Schedule next batch if needed
|
|
120
|
+
if (!result.isDone) {
|
|
121
|
+
await ctx.scheduler.runAfter(0, internal.migrations.backfillAvatarUrl, {
|
|
122
|
+
cursor: result.continueCursor,
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
return {
|
|
127
|
+
processed,
|
|
128
|
+
hasMore: !result.isDone,
|
|
129
|
+
};
|
|
130
|
+
},
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
function generateDefaultAvatar(name: string): string {
|
|
134
|
+
return `https://api.dicebear.com/7.x/initials/svg?seed=${encodeURIComponent(name)}`;
|
|
135
|
+
}
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
```typescript
|
|
139
|
+
// Step 4: After backfill completes, make field required
|
|
140
|
+
// convex/schema.ts
|
|
141
|
+
export default defineSchema({
|
|
142
|
+
users: defineTable({
|
|
143
|
+
name: v.string(),
|
|
144
|
+
email: v.string(),
|
|
145
|
+
avatarUrl: v.string(), // Now required
|
|
146
|
+
}),
|
|
147
|
+
});
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
### Removing Fields
|
|
151
|
+
|
|
152
|
+
Remove field usage before removing from schema:
|
|
153
|
+
|
|
154
|
+
```typescript
|
|
155
|
+
// Step 1: Stop using the field in queries and mutations
|
|
156
|
+
// Mark as deprecated in code comments
|
|
157
|
+
|
|
158
|
+
// Step 2: Remove field from schema (make optional first if needed)
|
|
159
|
+
// convex/schema.ts
|
|
160
|
+
export default defineSchema({
|
|
161
|
+
posts: defineTable({
|
|
162
|
+
title: v.string(),
|
|
163
|
+
content: v.string(),
|
|
164
|
+
authorId: v.id("users"),
|
|
165
|
+
// legacyField: v.optional(v.string()), // Remove this line
|
|
166
|
+
}),
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
// Step 3: Optionally clean up existing data
|
|
170
|
+
// convex/migrations.ts
|
|
171
|
+
export const removeDeprecatedField = internalMutation({
|
|
172
|
+
args: {
|
|
173
|
+
cursor: v.optional(v.string()),
|
|
174
|
+
},
|
|
175
|
+
returns: v.null(),
|
|
176
|
+
handler: async (ctx, args) => {
|
|
177
|
+
const result = await ctx.db
|
|
178
|
+
.query("posts")
|
|
179
|
+
.paginate({ numItems: 100, cursor: args.cursor ?? null });
|
|
180
|
+
|
|
181
|
+
for (const post of result.page) {
|
|
182
|
+
// Use replace to remove the field entirely
|
|
183
|
+
const { legacyField, ...rest } = post as typeof post & { legacyField?: string };
|
|
184
|
+
if (legacyField !== undefined) {
|
|
185
|
+
await ctx.db.replace(post._id, rest);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
if (!result.isDone) {
|
|
190
|
+
await ctx.scheduler.runAfter(0, internal.migrations.removeDeprecatedField, {
|
|
191
|
+
cursor: result.continueCursor,
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
return null;
|
|
196
|
+
},
|
|
197
|
+
});
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
### Renaming Fields
|
|
201
|
+
|
|
202
|
+
Renaming requires copying data to new field, then removing old:
|
|
203
|
+
|
|
204
|
+
```typescript
|
|
205
|
+
// Step 1: Add new field as optional
|
|
206
|
+
// convex/schema.ts
|
|
207
|
+
export default defineSchema({
|
|
208
|
+
users: defineTable({
|
|
209
|
+
userName: v.string(), // Old field
|
|
210
|
+
displayName: v.optional(v.string()), // New field
|
|
211
|
+
}),
|
|
212
|
+
});
|
|
213
|
+
|
|
214
|
+
// Step 2: Update code to read from new field with fallback
|
|
215
|
+
export const getUser = query({
|
|
216
|
+
args: { userId: v.id("users") },
|
|
217
|
+
returns: v.object({
|
|
218
|
+
_id: v.id("users"),
|
|
219
|
+
displayName: v.string(),
|
|
220
|
+
}),
|
|
221
|
+
handler: async (ctx, args) => {
|
|
222
|
+
const user = await ctx.db.get(args.userId);
|
|
223
|
+
if (!user) throw new Error("User not found");
|
|
224
|
+
|
|
225
|
+
return {
|
|
226
|
+
_id: user._id,
|
|
227
|
+
// Read new field, fall back to old
|
|
228
|
+
displayName: user.displayName ?? user.userName,
|
|
229
|
+
};
|
|
230
|
+
},
|
|
231
|
+
});
|
|
232
|
+
|
|
233
|
+
// Step 3: Backfill to copy data
|
|
234
|
+
export const backfillDisplayName = internalMutation({
|
|
235
|
+
args: { cursor: v.optional(v.string()) },
|
|
236
|
+
returns: v.null(),
|
|
237
|
+
handler: async (ctx, args) => {
|
|
238
|
+
const result = await ctx.db
|
|
239
|
+
.query("users")
|
|
240
|
+
.paginate({ numItems: 100, cursor: args.cursor ?? null });
|
|
241
|
+
|
|
242
|
+
for (const user of result.page) {
|
|
243
|
+
if (user.displayName === undefined) {
|
|
244
|
+
await ctx.db.patch(user._id, {
|
|
245
|
+
displayName: user.userName,
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
if (!result.isDone) {
|
|
251
|
+
await ctx.scheduler.runAfter(0, internal.migrations.backfillDisplayName, {
|
|
252
|
+
cursor: result.continueCursor,
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
return null;
|
|
257
|
+
},
|
|
258
|
+
});
|
|
259
|
+
|
|
260
|
+
// Step 4: After backfill, update schema to make new field required
|
|
261
|
+
// and remove old field
|
|
262
|
+
export default defineSchema({
|
|
263
|
+
users: defineTable({
|
|
264
|
+
// userName removed
|
|
265
|
+
displayName: v.string(),
|
|
266
|
+
}),
|
|
267
|
+
});
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
### Adding Indexes
|
|
271
|
+
|
|
272
|
+
Add indexes before using them in queries:
|
|
273
|
+
|
|
274
|
+
```typescript
|
|
275
|
+
// Step 1: Add index to schema
|
|
276
|
+
// convex/schema.ts
|
|
277
|
+
export default defineSchema({
|
|
278
|
+
posts: defineTable({
|
|
279
|
+
title: v.string(),
|
|
280
|
+
authorId: v.id("users"),
|
|
281
|
+
publishedAt: v.optional(v.number()),
|
|
282
|
+
status: v.string(),
|
|
283
|
+
})
|
|
284
|
+
.index("by_author", ["authorId"])
|
|
285
|
+
// New index
|
|
286
|
+
.index("by_status_and_published", ["status", "publishedAt"]),
|
|
287
|
+
});
|
|
288
|
+
|
|
289
|
+
// Step 2: Deploy schema change
|
|
290
|
+
// Run: npx convex dev
|
|
291
|
+
|
|
292
|
+
// Step 3: Now use the index in queries
|
|
293
|
+
export const getPublishedPosts = query({
|
|
294
|
+
args: {},
|
|
295
|
+
returns: v.array(v.object({
|
|
296
|
+
_id: v.id("posts"),
|
|
297
|
+
title: v.string(),
|
|
298
|
+
publishedAt: v.number(),
|
|
299
|
+
})),
|
|
300
|
+
handler: async (ctx) => {
|
|
301
|
+
const posts = await ctx.db
|
|
302
|
+
.query("posts")
|
|
303
|
+
.withIndex("by_status_and_published", (q) =>
|
|
304
|
+
q.eq("status", "published")
|
|
305
|
+
)
|
|
306
|
+
.order("desc")
|
|
307
|
+
.take(10);
|
|
308
|
+
|
|
309
|
+
return posts
|
|
310
|
+
.filter((p) => p.publishedAt !== undefined)
|
|
311
|
+
.map((p) => ({
|
|
312
|
+
_id: p._id,
|
|
313
|
+
title: p.title,
|
|
314
|
+
publishedAt: p.publishedAt!,
|
|
315
|
+
}));
|
|
316
|
+
},
|
|
317
|
+
});
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
### Changing Field Types
|
|
321
|
+
|
|
322
|
+
Type changes require careful migration:
|
|
323
|
+
|
|
324
|
+
```typescript
|
|
325
|
+
// Example: Change from string to number for a "priority" field
|
|
326
|
+
|
|
327
|
+
// Step 1: Add new field with new type
|
|
328
|
+
// convex/schema.ts
|
|
329
|
+
export default defineSchema({
|
|
330
|
+
tasks: defineTable({
|
|
331
|
+
title: v.string(),
|
|
332
|
+
priority: v.string(), // Old: "low", "medium", "high"
|
|
333
|
+
priorityLevel: v.optional(v.number()), // New: 1, 2, 3
|
|
334
|
+
}),
|
|
335
|
+
});
|
|
336
|
+
|
|
337
|
+
// Step 2: Backfill with type conversion
|
|
338
|
+
export const migratePriorityToNumber = internalMutation({
|
|
339
|
+
args: { cursor: v.optional(v.string()) },
|
|
340
|
+
returns: v.null(),
|
|
341
|
+
handler: async (ctx, args) => {
|
|
342
|
+
const result = await ctx.db
|
|
343
|
+
.query("tasks")
|
|
344
|
+
.paginate({ numItems: 100, cursor: args.cursor ?? null });
|
|
345
|
+
|
|
346
|
+
const priorityMap: Record<string, number> = {
|
|
347
|
+
low: 1,
|
|
348
|
+
medium: 2,
|
|
349
|
+
high: 3,
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
for (const task of result.page) {
|
|
353
|
+
if (task.priorityLevel === undefined) {
|
|
354
|
+
await ctx.db.patch(task._id, {
|
|
355
|
+
priorityLevel: priorityMap[task.priority] ?? 1,
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
if (!result.isDone) {
|
|
361
|
+
await ctx.scheduler.runAfter(0, internal.migrations.migratePriorityToNumber, {
|
|
362
|
+
cursor: result.continueCursor,
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
return null;
|
|
367
|
+
},
|
|
368
|
+
});
|
|
369
|
+
|
|
370
|
+
// Step 3: Update code to use new field
|
|
371
|
+
export const getTask = query({
|
|
372
|
+
args: { taskId: v.id("tasks") },
|
|
373
|
+
returns: v.object({
|
|
374
|
+
_id: v.id("tasks"),
|
|
375
|
+
title: v.string(),
|
|
376
|
+
priorityLevel: v.number(),
|
|
377
|
+
}),
|
|
378
|
+
handler: async (ctx, args) => {
|
|
379
|
+
const task = await ctx.db.get(args.taskId);
|
|
380
|
+
if (!task) throw new Error("Task not found");
|
|
381
|
+
|
|
382
|
+
const priorityMap: Record<string, number> = {
|
|
383
|
+
low: 1,
|
|
384
|
+
medium: 2,
|
|
385
|
+
high: 3,
|
|
386
|
+
};
|
|
387
|
+
|
|
388
|
+
return {
|
|
389
|
+
_id: task._id,
|
|
390
|
+
title: task.title,
|
|
391
|
+
priorityLevel: task.priorityLevel ?? priorityMap[task.priority] ?? 1,
|
|
392
|
+
};
|
|
393
|
+
},
|
|
394
|
+
});
|
|
395
|
+
|
|
396
|
+
// Step 4: After backfill, update schema
|
|
397
|
+
export default defineSchema({
|
|
398
|
+
tasks: defineTable({
|
|
399
|
+
title: v.string(),
|
|
400
|
+
// priority field removed
|
|
401
|
+
priorityLevel: v.number(),
|
|
402
|
+
}),
|
|
403
|
+
});
|
|
404
|
+
```
|
|
405
|
+
|
|
406
|
+
### Migration Runner Pattern
|
|
407
|
+
|
|
408
|
+
Create a reusable migration system:
|
|
409
|
+
|
|
410
|
+
```typescript
|
|
411
|
+
// convex/schema.ts
|
|
412
|
+
import { defineSchema, defineTable } from "convex/server";
|
|
413
|
+
import { v } from "convex/values";
|
|
414
|
+
|
|
415
|
+
export default defineSchema({
|
|
416
|
+
migrations: defineTable({
|
|
417
|
+
name: v.string(),
|
|
418
|
+
startedAt: v.number(),
|
|
419
|
+
completedAt: v.optional(v.number()),
|
|
420
|
+
status: v.union(
|
|
421
|
+
v.literal("running"),
|
|
422
|
+
v.literal("completed"),
|
|
423
|
+
v.literal("failed")
|
|
424
|
+
),
|
|
425
|
+
error: v.optional(v.string()),
|
|
426
|
+
processed: v.number(),
|
|
427
|
+
}).index("by_name", ["name"]),
|
|
428
|
+
|
|
429
|
+
// Your other tables...
|
|
430
|
+
});
|
|
431
|
+
```
|
|
432
|
+
|
|
433
|
+
```typescript
|
|
434
|
+
// convex/migrations.ts
|
|
435
|
+
import { internalMutation, internalQuery } from "./_generated/server";
|
|
436
|
+
import { internal } from "./_generated/api";
|
|
437
|
+
import { v } from "convex/values";
|
|
438
|
+
|
|
439
|
+
// Check if migration has run
|
|
440
|
+
export const hasMigrationRun = internalQuery({
|
|
441
|
+
args: { name: v.string() },
|
|
442
|
+
returns: v.boolean(),
|
|
443
|
+
handler: async (ctx, args) => {
|
|
444
|
+
const migration = await ctx.db
|
|
445
|
+
.query("migrations")
|
|
446
|
+
.withIndex("by_name", (q) => q.eq("name", args.name))
|
|
447
|
+
.first();
|
|
448
|
+
return migration?.status === "completed";
|
|
449
|
+
},
|
|
450
|
+
});
|
|
451
|
+
|
|
452
|
+
// Start a migration
|
|
453
|
+
export const startMigration = internalMutation({
|
|
454
|
+
args: { name: v.string() },
|
|
455
|
+
returns: v.id("migrations"),
|
|
456
|
+
handler: async (ctx, args) => {
|
|
457
|
+
// Check if already exists
|
|
458
|
+
const existing = await ctx.db
|
|
459
|
+
.query("migrations")
|
|
460
|
+
.withIndex("by_name", (q) => q.eq("name", args.name))
|
|
461
|
+
.first();
|
|
462
|
+
|
|
463
|
+
if (existing) {
|
|
464
|
+
if (existing.status === "completed") {
|
|
465
|
+
throw new Error(`Migration ${args.name} already completed`);
|
|
466
|
+
}
|
|
467
|
+
if (existing.status === "running") {
|
|
468
|
+
throw new Error(`Migration ${args.name} already running`);
|
|
469
|
+
}
|
|
470
|
+
// Reset failed migration
|
|
471
|
+
await ctx.db.patch(existing._id, {
|
|
472
|
+
status: "running",
|
|
473
|
+
startedAt: Date.now(),
|
|
474
|
+
error: undefined,
|
|
475
|
+
processed: 0,
|
|
476
|
+
});
|
|
477
|
+
return existing._id;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
return await ctx.db.insert("migrations", {
|
|
481
|
+
name: args.name,
|
|
482
|
+
startedAt: Date.now(),
|
|
483
|
+
status: "running",
|
|
484
|
+
processed: 0,
|
|
485
|
+
});
|
|
486
|
+
},
|
|
487
|
+
});
|
|
488
|
+
|
|
489
|
+
// Update migration progress
|
|
490
|
+
export const updateMigrationProgress = internalMutation({
|
|
491
|
+
args: {
|
|
492
|
+
migrationId: v.id("migrations"),
|
|
493
|
+
processed: v.number(),
|
|
494
|
+
},
|
|
495
|
+
returns: v.null(),
|
|
496
|
+
handler: async (ctx, args) => {
|
|
497
|
+
const migration = await ctx.db.get(args.migrationId);
|
|
498
|
+
if (!migration) return null;
|
|
499
|
+
|
|
500
|
+
await ctx.db.patch(args.migrationId, {
|
|
501
|
+
processed: migration.processed + args.processed,
|
|
502
|
+
});
|
|
503
|
+
|
|
504
|
+
return null;
|
|
505
|
+
},
|
|
506
|
+
});
|
|
507
|
+
|
|
508
|
+
// Complete a migration
|
|
509
|
+
export const completeMigration = internalMutation({
|
|
510
|
+
args: { migrationId: v.id("migrations") },
|
|
511
|
+
returns: v.null(),
|
|
512
|
+
handler: async (ctx, args) => {
|
|
513
|
+
await ctx.db.patch(args.migrationId, {
|
|
514
|
+
status: "completed",
|
|
515
|
+
completedAt: Date.now(),
|
|
516
|
+
});
|
|
517
|
+
return null;
|
|
518
|
+
},
|
|
519
|
+
});
|
|
520
|
+
|
|
521
|
+
// Fail a migration
|
|
522
|
+
export const failMigration = internalMutation({
|
|
523
|
+
args: {
|
|
524
|
+
migrationId: v.id("migrations"),
|
|
525
|
+
error: v.string(),
|
|
526
|
+
},
|
|
527
|
+
returns: v.null(),
|
|
528
|
+
handler: async (ctx, args) => {
|
|
529
|
+
await ctx.db.patch(args.migrationId, {
|
|
530
|
+
status: "failed",
|
|
531
|
+
error: args.error,
|
|
532
|
+
});
|
|
533
|
+
return null;
|
|
534
|
+
},
|
|
535
|
+
});
|
|
536
|
+
```
|
|
537
|
+
|
|
538
|
+
```typescript
|
|
539
|
+
// convex/migrations/addUserTimestamps.ts
|
|
540
|
+
import { internalMutation } from "../_generated/server";
|
|
541
|
+
import { internal } from "../_generated/api";
|
|
542
|
+
import { v } from "convex/values";
|
|
543
|
+
|
|
544
|
+
const MIGRATION_NAME = "add_user_timestamps_v1";
|
|
545
|
+
const BATCH_SIZE = 100;
|
|
546
|
+
|
|
547
|
+
export const run = internalMutation({
|
|
548
|
+
args: {
|
|
549
|
+
migrationId: v.optional(v.id("migrations")),
|
|
550
|
+
cursor: v.optional(v.string()),
|
|
551
|
+
},
|
|
552
|
+
returns: v.null(),
|
|
553
|
+
handler: async (ctx, args) => {
|
|
554
|
+
// Initialize migration on first run
|
|
555
|
+
let migrationId = args.migrationId;
|
|
556
|
+
if (!migrationId) {
|
|
557
|
+
const hasRun = await ctx.runQuery(internal.migrations.hasMigrationRun, {
|
|
558
|
+
name: MIGRATION_NAME,
|
|
559
|
+
});
|
|
560
|
+
if (hasRun) {
|
|
561
|
+
console.log(`Migration ${MIGRATION_NAME} already completed`);
|
|
562
|
+
return null;
|
|
563
|
+
}
|
|
564
|
+
migrationId = await ctx.runMutation(internal.migrations.startMigration, {
|
|
565
|
+
name: MIGRATION_NAME,
|
|
566
|
+
});
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
try {
|
|
570
|
+
const result = await ctx.db
|
|
571
|
+
.query("users")
|
|
572
|
+
.paginate({ numItems: BATCH_SIZE, cursor: args.cursor ?? null });
|
|
573
|
+
|
|
574
|
+
let processed = 0;
|
|
575
|
+
for (const user of result.page) {
|
|
576
|
+
if (user.createdAt === undefined) {
|
|
577
|
+
await ctx.db.patch(user._id, {
|
|
578
|
+
createdAt: user._creationTime,
|
|
579
|
+
updatedAt: user._creationTime,
|
|
580
|
+
});
|
|
581
|
+
processed++;
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
// Update progress
|
|
586
|
+
await ctx.runMutation(internal.migrations.updateMigrationProgress, {
|
|
587
|
+
migrationId,
|
|
588
|
+
processed,
|
|
589
|
+
});
|
|
590
|
+
|
|
591
|
+
// Continue or complete
|
|
592
|
+
if (!result.isDone) {
|
|
593
|
+
await ctx.scheduler.runAfter(0, internal.migrations.addUserTimestamps.run, {
|
|
594
|
+
migrationId,
|
|
595
|
+
cursor: result.continueCursor,
|
|
596
|
+
});
|
|
597
|
+
} else {
|
|
598
|
+
await ctx.runMutation(internal.migrations.completeMigration, {
|
|
599
|
+
migrationId,
|
|
600
|
+
});
|
|
601
|
+
console.log(`Migration ${MIGRATION_NAME} completed`);
|
|
602
|
+
}
|
|
603
|
+
} catch (error) {
|
|
604
|
+
await ctx.runMutation(internal.migrations.failMigration, {
|
|
605
|
+
migrationId,
|
|
606
|
+
error: String(error),
|
|
607
|
+
});
|
|
608
|
+
throw error;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
return null;
|
|
612
|
+
},
|
|
613
|
+
});
|
|
614
|
+
```
|
|
615
|
+
|
|
616
|
+
## Examples
|
|
617
|
+
|
|
618
|
+
### Schema with Migration Support
|
|
619
|
+
|
|
620
|
+
```typescript
|
|
621
|
+
// convex/schema.ts
|
|
622
|
+
import { defineSchema, defineTable } from "convex/server";
|
|
623
|
+
import { v } from "convex/values";
|
|
624
|
+
|
|
625
|
+
export default defineSchema({
|
|
626
|
+
// Migration tracking
|
|
627
|
+
migrations: defineTable({
|
|
628
|
+
name: v.string(),
|
|
629
|
+
startedAt: v.number(),
|
|
630
|
+
completedAt: v.optional(v.number()),
|
|
631
|
+
status: v.union(
|
|
632
|
+
v.literal("running"),
|
|
633
|
+
v.literal("completed"),
|
|
634
|
+
v.literal("failed")
|
|
635
|
+
),
|
|
636
|
+
error: v.optional(v.string()),
|
|
637
|
+
processed: v.number(),
|
|
638
|
+
}).index("by_name", ["name"]),
|
|
639
|
+
|
|
640
|
+
// Users table with evolved schema
|
|
641
|
+
users: defineTable({
|
|
642
|
+
// Original fields
|
|
643
|
+
name: v.string(),
|
|
644
|
+
email: v.string(),
|
|
645
|
+
|
|
646
|
+
// Added in migration v1
|
|
647
|
+
createdAt: v.optional(v.number()),
|
|
648
|
+
updatedAt: v.optional(v.number()),
|
|
649
|
+
|
|
650
|
+
// Added in migration v2
|
|
651
|
+
avatarUrl: v.optional(v.string()),
|
|
652
|
+
|
|
653
|
+
// Added in migration v3
|
|
654
|
+
settings: v.optional(v.object({
|
|
655
|
+
theme: v.string(),
|
|
656
|
+
notifications: v.boolean(),
|
|
657
|
+
})),
|
|
658
|
+
})
|
|
659
|
+
.index("by_email", ["email"])
|
|
660
|
+
.index("by_createdAt", ["createdAt"]),
|
|
661
|
+
|
|
662
|
+
// Posts table with indexes for common queries
|
|
663
|
+
posts: defineTable({
|
|
664
|
+
title: v.string(),
|
|
665
|
+
content: v.string(),
|
|
666
|
+
authorId: v.id("users"),
|
|
667
|
+
status: v.union(
|
|
668
|
+
v.literal("draft"),
|
|
669
|
+
v.literal("published"),
|
|
670
|
+
v.literal("archived")
|
|
671
|
+
),
|
|
672
|
+
publishedAt: v.optional(v.number()),
|
|
673
|
+
createdAt: v.number(),
|
|
674
|
+
updatedAt: v.number(),
|
|
675
|
+
})
|
|
676
|
+
.index("by_author", ["authorId"])
|
|
677
|
+
.index("by_status", ["status"])
|
|
678
|
+
.index("by_author_and_status", ["authorId", "status"])
|
|
679
|
+
.index("by_publishedAt", ["publishedAt"]),
|
|
680
|
+
});
|
|
681
|
+
```
|
|
682
|
+
|
|
683
|
+
## Best Practices
|
|
684
|
+
|
|
685
|
+
- Never run `npx convex deploy` unless explicitly instructed
|
|
686
|
+
- Never run any git commands unless explicitly instructed
|
|
687
|
+
- Always start with optional fields when adding new data
|
|
688
|
+
- Backfill data in batches to avoid timeouts
|
|
689
|
+
- Test migrations on development before production
|
|
690
|
+
- Keep track of completed migrations to avoid re-running
|
|
691
|
+
- Update code to handle both old and new data during transition
|
|
692
|
+
- Remove deprecated fields only after all code stops using them
|
|
693
|
+
- Use pagination for large datasets
|
|
694
|
+
- Add appropriate indexes before running queries on new fields
|
|
695
|
+
|
|
696
|
+
## Common Pitfalls
|
|
697
|
+
|
|
698
|
+
1. **Making new fields required immediately** - Breaks existing documents
|
|
699
|
+
2. **Not handling undefined values** - Causes runtime errors
|
|
700
|
+
3. **Large batch sizes** - Causes function timeouts
|
|
701
|
+
4. **Forgetting to update indexes** - Queries fail or perform poorly
|
|
702
|
+
5. **Running migrations without tracking** - May run multiple times
|
|
703
|
+
6. **Removing fields before code update** - Breaks existing functionality
|
|
704
|
+
7. **Not testing on development** - Production data issues
|
|
705
|
+
|
|
706
|
+
## References
|
|
707
|
+
|
|
708
|
+
- Convex Documentation: https://docs.convex.dev/
|
|
709
|
+
- Convex LLMs.txt: https://docs.convex.dev/llms.txt
|
|
710
|
+
- Schemas: https://docs.convex.dev/database/schemas
|
|
711
|
+
- Database Overview: https://docs.convex.dev/database
|
|
712
|
+
- Migration Patterns: https://stack.convex.dev/migrate-data-postgres-to-convex
|
|
Binary file
|