@jhm1909/ag-kit 0.1.0

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.
Files changed (320) hide show
  1. package/.agent/ARCHITECTURE.md +189 -0
  2. package/.agent/known-registries.json +181 -0
  3. package/.agent/mcp_config.json +19 -0
  4. package/.agent/rules/clean-code.md +107 -0
  5. package/.agent/rules/documents.md +177 -0
  6. package/.agent/rules/git-workflow.md +68 -0
  7. package/.agent/rules/nano-banana.md +46 -0
  8. package/.agent/rules/research.md +35 -0
  9. package/.agent/rules/skill-loading.md +100 -0
  10. package/.agent/rules/skill-suggestion.md +47 -0
  11. package/.agent/rules/testing.md +52 -0
  12. package/.agent/rules/workflow-advisor.md +108 -0
  13. package/.agent/rules/workflow-skill-convention.md +127 -0
  14. package/.agent/skills/ai-engineer/SKILL.md +824 -0
  15. package/.agent/skills/ai-engineer/references/agentic-patterns.md +329 -0
  16. package/.agent/skills/ai-engineer/references/evaluation.md +493 -0
  17. package/.agent/skills/ai-engineer/references/llm.md +490 -0
  18. package/.agent/skills/ai-engineer/references/rag-advanced.md +444 -0
  19. package/.agent/skills/ai-engineer/references/serving-optimization.md +531 -0
  20. package/.agent/skills/ai-engineer/vector-db/README.md +137 -0
  21. package/.agent/skills/app-builder/SKILL.md +75 -0
  22. package/.agent/skills/app-builder/agent-coordination.md +71 -0
  23. package/.agent/skills/app-builder/feature-building.md +53 -0
  24. package/.agent/skills/app-builder/project-detection.md +34 -0
  25. package/.agent/skills/app-builder/scaffolding.md +118 -0
  26. package/.agent/skills/app-builder/tech-stack.md +41 -0
  27. package/.agent/skills/app-builder/templates/SKILL.md +39 -0
  28. package/.agent/skills/app-builder/templates/astro-static/TEMPLATE.md +76 -0
  29. package/.agent/skills/app-builder/templates/chrome-extension/TEMPLATE.md +92 -0
  30. package/.agent/skills/app-builder/templates/cli-tool/TEMPLATE.md +88 -0
  31. package/.agent/skills/app-builder/templates/electron-desktop/TEMPLATE.md +88 -0
  32. package/.agent/skills/app-builder/templates/express-api/TEMPLATE.md +83 -0
  33. package/.agent/skills/app-builder/templates/flutter-app/TEMPLATE.md +90 -0
  34. package/.agent/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +90 -0
  35. package/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +122 -0
  36. package/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +122 -0
  37. package/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +169 -0
  38. package/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +134 -0
  39. package/.agent/skills/app-builder/templates/python-fastapi/TEMPLATE.md +83 -0
  40. package/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +119 -0
  41. package/.agent/skills/backend-developer/SKILL.md +763 -0
  42. package/.agent/skills/backend-developer/references/general-patterns.md +65 -0
  43. package/.agent/skills/backend-developer/references/go-echo.md +68 -0
  44. package/.agent/skills/backend-developer/references/go-gin.md +76 -0
  45. package/.agent/skills/backend-developer/references/java-springboot.md +83 -0
  46. package/.agent/skills/backend-developer/references/node-express.md +64 -0
  47. package/.agent/skills/backend-developer/references/node-nestjs.md +69 -0
  48. package/.agent/skills/backend-developer/references/python-django.md +67 -0
  49. package/.agent/skills/backend-developer/references/python-fastapi.md +80 -0
  50. package/.agent/skills/blockchain-engineer/SKILL.md +975 -0
  51. package/.agent/skills/blockchain-engineer/references/deployment.md +28 -0
  52. package/.agent/skills/blockchain-engineer/references/evm.md +14 -0
  53. package/.agent/skills/blockchain-engineer/references/mechanisms.md +32 -0
  54. package/.agent/skills/blockchain-engineer/references/solidity.md +32 -0
  55. package/.agent/skills/business-analysis/SKILL.md +85 -0
  56. package/.agent/skills/business-analysis/references/best-practices/diagrams.md +141 -0
  57. package/.agent/skills/business-analysis/references/domains/ai-agent.md +94 -0
  58. package/.agent/skills/business-analysis/references/domains/blockchain-dapp.md +86 -0
  59. package/.agent/skills/business-analysis/references/domains/ecommerce.md +77 -0
  60. package/.agent/skills/business-analysis/references/domains/education.md +42 -0
  61. package/.agent/skills/business-analysis/references/domains/fintech.md +44 -0
  62. package/.agent/skills/business-analysis/references/domains/fnb.md +82 -0
  63. package/.agent/skills/business-analysis/references/domains/healthtech.md +44 -0
  64. package/.agent/skills/business-analysis/references/domains/internal-tools.md +38 -0
  65. package/.agent/skills/business-analysis/references/domains/marketplace.md +52 -0
  66. package/.agent/skills/business-analysis/references/domains/saas.md +36 -0
  67. package/.agent/skills/business-analysis/references/workflows/collaboration.md +41 -0
  68. package/.agent/skills/business-analysis/scripts/verify_mermaid.py +86 -0
  69. package/.agent/skills/business-analysis/templates/brd.md +46 -0
  70. package/.agent/skills/business-analysis/templates/change-request.md +41 -0
  71. package/.agent/skills/business-analysis/templates/prd-functional.md +38 -0
  72. package/.agent/skills/business-analysis/templates/use-case.md +40 -0
  73. package/.agent/skills/business-analysis/templates/user-story-detailed.md +36 -0
  74. package/.agent/skills/code-review/SKILL.md +113 -0
  75. package/.agent/skills/code-review/references/code-review-reception.md +209 -0
  76. package/.agent/skills/code-review/references/differential_review.md +59 -0
  77. package/.agent/skills/code-review/references/requesting-code-review.md +105 -0
  78. package/.agent/skills/code-review/references/spec_compliance.md +43 -0
  79. package/.agent/skills/code-review/references/verification-before-completion.md +139 -0
  80. package/.agent/skills/context-engineering/SKILL.md +68 -0
  81. package/.agent/skills/context-engineering/references/context-compression.md +84 -0
  82. package/.agent/skills/context-engineering/references/context-degradation.md +93 -0
  83. package/.agent/skills/context-engineering/references/context-fundamentals.md +75 -0
  84. package/.agent/skills/context-engineering/references/context-optimization.md +82 -0
  85. package/.agent/skills/context-engineering/references/evaluation.md +89 -0
  86. package/.agent/skills/context-engineering/references/memory-systems.md +88 -0
  87. package/.agent/skills/context-engineering/references/multi-agent-patterns.md +90 -0
  88. package/.agent/skills/context-engineering/references/project-development.md +97 -0
  89. package/.agent/skills/context-engineering/references/tool-design.md +86 -0
  90. package/.agent/skills/debugging/SKILL.md +60 -0
  91. package/.agent/skills/debugging/references/defense-in-depth.md +130 -0
  92. package/.agent/skills/debugging/references/root-cause-tracing.md +177 -0
  93. package/.agent/skills/debugging/references/systematic-debugging.md +295 -0
  94. package/.agent/skills/debugging/references/verification-before-completion.md +142 -0
  95. package/.agent/skills/designer/SKILL.md +159 -0
  96. package/.agent/skills/designer/concepts/apple-glass.md +48 -0
  97. package/.agent/skills/designer/concepts/aurora-gradients.md +26 -0
  98. package/.agent/skills/designer/concepts/bento-grids.md +14 -0
  99. package/.agent/skills/designer/concepts/claymorphism.md +27 -0
  100. package/.agent/skills/designer/concepts/neo-brutalism.md +32 -0
  101. package/.agent/skills/designer/data/app-interface.csv +31 -0
  102. package/.agent/skills/designer/data/charts.csv +26 -0
  103. package/.agent/skills/designer/data/colors.csv +162 -0
  104. package/.agent/skills/designer/data/design.csv +1776 -0
  105. package/.agent/skills/designer/data/icons.csv +106 -0
  106. package/.agent/skills/designer/data/landing.csv +35 -0
  107. package/.agent/skills/designer/data/products.csv +162 -0
  108. package/.agent/skills/designer/data/react-performance.csv +45 -0
  109. package/.agent/skills/designer/data/styles.csv +85 -0
  110. package/.agent/skills/designer/data/typography.csv +74 -0
  111. package/.agent/skills/designer/data/ui-reasoning.csv +162 -0
  112. package/.agent/skills/designer/data/ux-guidelines.csv +100 -0
  113. package/.agent/skills/designer/references/accessibility.md +172 -0
  114. package/.agent/skills/designer/references/branding.md +88 -0
  115. package/.agent/skills/designer/references/color-theory.md +139 -0
  116. package/.agent/skills/designer/references/creation.md +118 -0
  117. package/.agent/skills/designer/references/design-systems.md +219 -0
  118. package/.agent/skills/designer/references/frontend_design_aesthetics.md +57 -0
  119. package/.agent/skills/designer/references/layout.md +200 -0
  120. package/.agent/skills/designer/references/motion.md +92 -0
  121. package/.agent/skills/designer/references/review.md +100 -0
  122. package/.agent/skills/designer/references/trends.md +209 -0
  123. package/.agent/skills/designer/references/typography.md +190 -0
  124. package/.agent/skills/designer/scripts/remove_background.py +135 -0
  125. package/.agent/skills/designer/scripts/ui-search/__pycache__/core.cpython-314.pyc +0 -0
  126. package/.agent/skills/designer/scripts/ui-search/__pycache__/design_system.cpython-314.pyc +0 -0
  127. package/.agent/skills/designer/scripts/ui-search/core.py +217 -0
  128. package/.agent/skills/designer/scripts/ui-search/design_system.py +1067 -0
  129. package/.agent/skills/designer/scripts/ui-search/search.py +114 -0
  130. package/.agent/skills/designer/templates/design-motion-spec.md +30 -0
  131. package/.agent/skills/devops-engineer/SKILL.md +90 -0
  132. package/.agent/skills/devops-engineer/docker-compose/README.md +47 -0
  133. package/.agent/skills/devops-engineer/references/ci-cd-pipelines.md +76 -0
  134. package/.agent/skills/devops-engineer/references/cloud-providers.md +57 -0
  135. package/.agent/skills/devops-engineer/references/codebase-normalization.md +104 -0
  136. package/.agent/skills/devops-engineer/references/container-orchestration.md +69 -0
  137. package/.agent/skills/devops-engineer/references/iac-tools.md +63 -0
  138. package/.agent/skills/devops-engineer/references/observability-security.md +45 -0
  139. package/.agent/skills/devops-engineer/references/vercel-supabase.md +17 -0
  140. package/.agent/skills/devops-engineer/templates/release-notes.md +8 -0
  141. package/.agent/skills/frontend-developer/SKILL.md +125 -0
  142. package/.agent/skills/frontend-developer/react-nextjs/README.md +90 -0
  143. package/.agent/skills/frontend-developer/references/angular.md +52 -0
  144. package/.agent/skills/frontend-developer/references/composition_patterns.md +60 -0
  145. package/.agent/skills/frontend-developer/references/core-performance.md +68 -0
  146. package/.agent/skills/frontend-developer/references/modern-signals.md +43 -0
  147. package/.agent/skills/frontend-developer/references/react_performance_rules.md +55 -0
  148. package/.agent/skills/frontend-developer/references/vue-nuxt.md +55 -0
  149. package/.agent/skills/frontend-developer/scripts/validate_compliance.py +65 -0
  150. package/.agent/skills/frontend-developer/threejs/README.md +89 -0
  151. package/.agent/skills/frontend-developer/threejs/animation.md +552 -0
  152. package/.agent/skills/frontend-developer/threejs/fundamentals.md +488 -0
  153. package/.agent/skills/frontend-developer/threejs/geometry.md +548 -0
  154. package/.agent/skills/frontend-developer/threejs/interaction.md +660 -0
  155. package/.agent/skills/frontend-developer/threejs/lighting.md +481 -0
  156. package/.agent/skills/frontend-developer/threejs/loaders.md +623 -0
  157. package/.agent/skills/frontend-developer/threejs/materials.md +520 -0
  158. package/.agent/skills/frontend-developer/threejs/postprocessing.md +602 -0
  159. package/.agent/skills/frontend-developer/threejs/router.json +181 -0
  160. package/.agent/skills/frontend-developer/threejs/shaders.md +642 -0
  161. package/.agent/skills/frontend-developer/threejs/textures.md +628 -0
  162. package/.agent/skills/game-development/2d-games/SKILL.md +119 -0
  163. package/.agent/skills/game-development/3d-games/SKILL.md +135 -0
  164. package/.agent/skills/game-development/SKILL.md +167 -0
  165. package/.agent/skills/game-development/game-art/SKILL.md +185 -0
  166. package/.agent/skills/game-development/game-audio/SKILL.md +190 -0
  167. package/.agent/skills/game-development/game-design/SKILL.md +129 -0
  168. package/.agent/skills/game-development/mobile-games/SKILL.md +108 -0
  169. package/.agent/skills/game-development/multiplayer/SKILL.md +132 -0
  170. package/.agent/skills/game-development/pc-games/SKILL.md +144 -0
  171. package/.agent/skills/game-development/vr-ar/SKILL.md +123 -0
  172. package/.agent/skills/game-development/web-games/SKILL.md +150 -0
  173. package/.agent/skills/lead-architect/SKILL.md +85 -0
  174. package/.agent/skills/lead-architect/references/application-architecture.md +70 -0
  175. package/.agent/skills/lead-architect/references/infrastructure.md +51 -0
  176. package/.agent/skills/lead-architect/references/process.md +42 -0
  177. package/.agent/skills/lead-architect/references/system-architecture.md +62 -0
  178. package/.agent/skills/lead-architect/references/web-fullstack.md +82 -0
  179. package/.agent/skills/lead-architect/templates/adr.md +62 -0
  180. package/.agent/skills/lead-architect/templates/rfc.md +46 -0
  181. package/.agent/skills/lead-architect/templates/sdd.md +62 -0
  182. package/.agent/skills/lead-architect/templates/technical-spec.md +61 -0
  183. package/.agent/skills/marketer/SKILL.md +66 -0
  184. package/.agent/skills/marketer/remotion-best-practices/SKILL.md +58 -0
  185. package/.agent/skills/marketer/remotion-best-practices/rules/3d.md +86 -0
  186. package/.agent/skills/marketer/remotion-best-practices/rules/animations.md +29 -0
  187. package/.agent/skills/marketer/remotion-best-practices/rules/assets/charts-bar-chart.tsx +173 -0
  188. package/.agent/skills/marketer/remotion-best-practices/rules/assets/text-animations-typewriter.tsx +100 -0
  189. package/.agent/skills/marketer/remotion-best-practices/rules/assets/text-animations-word-highlight.tsx +108 -0
  190. package/.agent/skills/marketer/remotion-best-practices/rules/assets.md +78 -0
  191. package/.agent/skills/marketer/remotion-best-practices/rules/audio.md +172 -0
  192. package/.agent/skills/marketer/remotion-best-practices/rules/calculate-metadata.md +104 -0
  193. package/.agent/skills/marketer/remotion-best-practices/rules/can-decode.md +75 -0
  194. package/.agent/skills/marketer/remotion-best-practices/rules/charts.md +58 -0
  195. package/.agent/skills/marketer/remotion-best-practices/rules/compositions.md +146 -0
  196. package/.agent/skills/marketer/remotion-best-practices/rules/display-captions.md +126 -0
  197. package/.agent/skills/marketer/remotion-best-practices/rules/extract-frames.md +229 -0
  198. package/.agent/skills/marketer/remotion-best-practices/rules/fonts.md +152 -0
  199. package/.agent/skills/marketer/remotion-best-practices/rules/get-audio-duration.md +58 -0
  200. package/.agent/skills/marketer/remotion-best-practices/rules/get-video-dimensions.md +68 -0
  201. package/.agent/skills/marketer/remotion-best-practices/rules/get-video-duration.md +58 -0
  202. package/.agent/skills/marketer/remotion-best-practices/rules/gifs.md +138 -0
  203. package/.agent/skills/marketer/remotion-best-practices/rules/images.md +130 -0
  204. package/.agent/skills/marketer/remotion-best-practices/rules/import-srt-captions.md +67 -0
  205. package/.agent/skills/marketer/remotion-best-practices/rules/lottie.md +68 -0
  206. package/.agent/skills/marketer/remotion-best-practices/rules/measuring-dom-nodes.md +35 -0
  207. package/.agent/skills/marketer/remotion-best-practices/rules/measuring-text.md +143 -0
  208. package/.agent/skills/marketer/remotion-best-practices/rules/sequencing.md +106 -0
  209. package/.agent/skills/marketer/remotion-best-practices/rules/tailwind.md +11 -0
  210. package/.agent/skills/marketer/remotion-best-practices/rules/text-animations.md +20 -0
  211. package/.agent/skills/marketer/remotion-best-practices/rules/timing.md +179 -0
  212. package/.agent/skills/marketer/remotion-best-practices/rules/transcribe-captions.md +19 -0
  213. package/.agent/skills/marketer/remotion-best-practices/rules/transitions.md +122 -0
  214. package/.agent/skills/marketer/remotion-best-practices/rules/trimming.md +53 -0
  215. package/.agent/skills/marketer/remotion-best-practices/rules/videos.md +171 -0
  216. package/.agent/skills/mcp-builder/SKILL.md +76 -0
  217. package/.agent/skills/mcp-builder/references/evaluation.md +602 -0
  218. package/.agent/skills/mcp-builder/references/mcp_best_practices.md +249 -0
  219. package/.agent/skills/mcp-builder/references/node_mcp_server.md +970 -0
  220. package/.agent/skills/mcp-builder/references/python_mcp_server.md +719 -0
  221. package/.agent/skills/mobile-developer/SKILL.md +83 -0
  222. package/.agent/skills/mobile-developer/api-routes/SKILL.md +389 -0
  223. package/.agent/skills/mobile-developer/building-ui/SKILL.md +335 -0
  224. package/.agent/skills/mobile-developer/building-ui/references/animations.md +220 -0
  225. package/.agent/skills/mobile-developer/building-ui/references/controls.md +270 -0
  226. package/.agent/skills/mobile-developer/building-ui/references/form-sheet.md +227 -0
  227. package/.agent/skills/mobile-developer/building-ui/references/gradients.md +106 -0
  228. package/.agent/skills/mobile-developer/building-ui/references/icons.md +213 -0
  229. package/.agent/skills/mobile-developer/building-ui/references/media.md +198 -0
  230. package/.agent/skills/mobile-developer/building-ui/references/route-structure.md +229 -0
  231. package/.agent/skills/mobile-developer/building-ui/references/search.md +248 -0
  232. package/.agent/skills/mobile-developer/building-ui/references/storage.md +121 -0
  233. package/.agent/skills/mobile-developer/building-ui/references/tabs.md +368 -0
  234. package/.agent/skills/mobile-developer/building-ui/references/visual-effects.md +197 -0
  235. package/.agent/skills/mobile-developer/building-ui/references/webgpu-three.md +605 -0
  236. package/.agent/skills/mobile-developer/cicd-workflows/SKILL.md +107 -0
  237. package/.agent/skills/mobile-developer/cicd-workflows/scripts/fetch.js +109 -0
  238. package/.agent/skills/mobile-developer/cicd-workflows/scripts/package.json +11 -0
  239. package/.agent/skills/mobile-developer/cicd-workflows/scripts/validate.js +84 -0
  240. package/.agent/skills/mobile-developer/data-fetching/SKILL.md +508 -0
  241. package/.agent/skills/mobile-developer/deployment/SKILL.md +207 -0
  242. package/.agent/skills/mobile-developer/deployment/references/app-store-metadata.md +479 -0
  243. package/.agent/skills/mobile-developer/deployment/references/ios-app-store.md +355 -0
  244. package/.agent/skills/mobile-developer/deployment/references/play-store.md +246 -0
  245. package/.agent/skills/mobile-developer/deployment/references/testflight.md +58 -0
  246. package/.agent/skills/mobile-developer/deployment/references/workflows.md +200 -0
  247. package/.agent/skills/mobile-developer/dev-client/SKILL.md +181 -0
  248. package/.agent/skills/mobile-developer/tailwind-setup/SKILL.md +501 -0
  249. package/.agent/skills/mobile-developer/upgrading-expo/SKILL.md +116 -0
  250. package/.agent/skills/mobile-developer/upgrading-expo/references/new-architecture.md +79 -0
  251. package/.agent/skills/mobile-developer/upgrading-expo/references/react-19.md +79 -0
  252. package/.agent/skills/mobile-developer/upgrading-expo/references/react-compiler.md +59 -0
  253. package/.agent/skills/mobile-developer/use-dom/SKILL.md +434 -0
  254. package/.agent/skills/modern-python/SKILL.md +122 -0
  255. package/.agent/skills/project-manager/SKILL.md +110 -0
  256. package/.agent/skills/project-manager/references/ba-collaboration.md +62 -0
  257. package/.agent/skills/project-manager/references/discovery_process.md +52 -0
  258. package/.agent/skills/project-manager/references/jobs_to_be_done.md +51 -0
  259. package/.agent/skills/project-manager/references/prd_development.md +52 -0
  260. package/.agent/skills/project-manager/references/rules-guide.md +55 -0
  261. package/.agent/skills/project-manager/references/skill-creation.md +98 -0
  262. package/.agent/skills/project-manager/references/strategic-frameworks.md +62 -0
  263. package/.agent/skills/project-manager/references/task-decomposition.md +194 -0
  264. package/.agent/skills/project-manager/references/workflows-guide.md +44 -0
  265. package/.agent/skills/project-manager/router.json +160 -0
  266. package/.agent/skills/project-manager/scripts/compare_skill.py +177 -0
  267. package/.agent/skills/project-manager/scripts/encoding_utils.py +36 -0
  268. package/.agent/skills/project-manager/scripts/init_skill.py +190 -0
  269. package/.agent/skills/project-manager/scripts/quick_validate.py +123 -0
  270. package/.agent/skills/project-manager/templates/pm-strategy-one-pager.md +6 -0
  271. package/.agent/skills/project-manager/templates/prd-strategic.md +38 -0
  272. package/.agent/skills/project-manager/templates/skill-questionnaire.md +118 -0
  273. package/.agent/skills/project-manager/templates/user-story-simple.md +14 -0
  274. package/.agent/skills/prompt-engineer/SKILL.md +319 -0
  275. package/.agent/skills/prompt-engineer/skill-creator/README.md +47 -0
  276. package/.agent/skills/qa-tester/SKILL.md +142 -0
  277. package/.agent/skills/qa-tester/assets/README.md +8 -0
  278. package/.agent/skills/qa-tester/references/accessibility_testing.md +35 -0
  279. package/.agent/skills/qa-tester/references/agent_browser.md +38 -0
  280. package/.agent/skills/qa-tester/references/automation/api_testing.md +23 -0
  281. package/.agent/skills/qa-tester/references/automation/best_practices.md +14 -0
  282. package/.agent/skills/qa-tester/references/automation/jest_vitest.md +26 -0
  283. package/.agent/skills/qa-tester/references/automation/playwright.md +30 -0
  284. package/.agent/skills/qa-tester/references/e2e_testing.md +46 -0
  285. package/.agent/skills/qa-tester/references/integration_testing.md +39 -0
  286. package/.agent/skills/qa-tester/references/performance_testing.md +44 -0
  287. package/.agent/skills/qa-tester/references/property_based_testing.md +44 -0
  288. package/.agent/skills/qa-tester/references/security_audit.md +53 -0
  289. package/.agent/skills/qa-tester/references/security_testing.md +30 -0
  290. package/.agent/skills/qa-tester/references/sharp_edges.md +49 -0
  291. package/.agent/skills/qa-tester/references/static_analysis.md +52 -0
  292. package/.agent/skills/qa-tester/references/supply_chain_audit.md +54 -0
  293. package/.agent/skills/qa-tester/references/test_case_standards.md +96 -0
  294. package/.agent/skills/qa-tester/references/test_report_template.md +32 -0
  295. package/.agent/skills/qa-tester/references/unit_testing.md +50 -0
  296. package/.agent/skills/qa-tester/references/visual_testing.md +32 -0
  297. package/.agent/skills/qa-tester/templates/uat-plan.md +34 -0
  298. package/.agent/skills/research-first/SKILL.md +118 -0
  299. package/.agent/skills-manifest.json +264 -0
  300. package/.agent/workflows/absorb.md +176 -0
  301. package/.agent/workflows/bootstrap.md +91 -0
  302. package/.agent/workflows/brainstorm.md +168 -0
  303. package/.agent/workflows/break-tasks.md +77 -0
  304. package/.agent/workflows/commit.md +349 -0
  305. package/.agent/workflows/custom-behavior.md +64 -0
  306. package/.agent/workflows/debug.md +65 -0
  307. package/.agent/workflows/development.md +49 -0
  308. package/.agent/workflows/documentation.md +221 -0
  309. package/.agent/workflows/gen-tests.md +53 -0
  310. package/.agent/workflows/guide.md +196 -0
  311. package/.agent/workflows/implement-feature.md +182 -0
  312. package/.agent/workflows/install-skill.md +193 -0
  313. package/.agent/workflows/qa.md +54 -0
  314. package/.agent/workflows/ui-ux-design.md +108 -0
  315. package/LICENSE +21 -0
  316. package/README.md +258 -0
  317. package/cli/index.js +345 -0
  318. package/cli/migrate-skills.js +113 -0
  319. package/cli/verify.js +291 -0
  320. package/package.json +49 -0
@@ -0,0 +1,146 @@
1
+ ---
2
+ name: compositions
3
+ description: Defining compositions, stills, folders, default props and dynamic metadata
4
+ metadata:
5
+ tags: composition, still, folder, props, metadata
6
+ ---
7
+
8
+ A `<Composition>` defines the component, width, height, fps and duration of a renderable video.
9
+
10
+ It normally is placed in the `src/Root.tsx` file.
11
+
12
+ ```tsx
13
+ import { Composition } from "remotion";
14
+ import { MyComposition } from "./MyComposition";
15
+
16
+ export const RemotionRoot = () => {
17
+ return (
18
+ <Composition
19
+ id="MyComposition"
20
+ component={MyComposition}
21
+ durationInFrames={100}
22
+ fps={30}
23
+ width={1080}
24
+ height={1080}
25
+ />
26
+ );
27
+ };
28
+ ```
29
+
30
+ ## Default Props
31
+
32
+ Pass `defaultProps` to provide initial values for your component.
33
+ Values must be JSON-serializable (`Date`, `Map`, `Set`, and `staticFile()` are supported).
34
+
35
+ ```tsx
36
+ import { Composition } from "remotion";
37
+ import { MyComposition, MyCompositionProps } from "./MyComposition";
38
+
39
+ export const RemotionRoot = () => {
40
+ return (
41
+ <Composition
42
+ id="MyComposition"
43
+ component={MyComposition}
44
+ durationInFrames={100}
45
+ fps={30}
46
+ width={1080}
47
+ height={1080}
48
+ defaultProps={{
49
+ title: "Hello World",
50
+ color: "#ff0000",
51
+ } satisfies MyCompositionProps}
52
+ />
53
+ );
54
+ };
55
+ ```
56
+
57
+ Use `type` declarations for props rather than `interface` to ensure `defaultProps` type safety.
58
+
59
+ ## Folders
60
+
61
+ Use `<Folder>` to organize compositions in the sidebar.
62
+ Folder names can only contain letters, numbers, and hyphens.
63
+
64
+ ```tsx
65
+ import { Composition, Folder } from "remotion";
66
+
67
+ export const RemotionRoot = () => {
68
+ return (
69
+ <>
70
+ <Folder name="Marketing">
71
+ <Composition id="Promo" /* ... */ />
72
+ <Composition id="Ad" /* ... */ />
73
+ </Folder>
74
+ <Folder name="Social">
75
+ <Folder name="Instagram">
76
+ <Composition id="Story" /* ... */ />
77
+ <Composition id="Reel" /* ... */ />
78
+ </Folder>
79
+ </Folder>
80
+ </>
81
+ );
82
+ };
83
+ ```
84
+
85
+ ## Stills
86
+
87
+ Use `<Still>` for single-frame images. It does not require `durationInFrames` or `fps`.
88
+
89
+ ```tsx
90
+ import { Still } from "remotion";
91
+ import { Thumbnail } from "./Thumbnail";
92
+
93
+ export const RemotionRoot = () => {
94
+ return (
95
+ <Still
96
+ id="Thumbnail"
97
+ component={Thumbnail}
98
+ width={1280}
99
+ height={720}
100
+ />
101
+ );
102
+ };
103
+ ```
104
+
105
+ ## Calculate Metadata
106
+
107
+ Use `calculateMetadata` to make dimensions, duration, or props dynamic based on data.
108
+
109
+ ```tsx
110
+ import { Composition, CalculateMetadataFunction } from "remotion";
111
+ import { MyComposition, MyCompositionProps } from "./MyComposition";
112
+
113
+ const calculateMetadata: CalculateMetadataFunction<MyCompositionProps> = async ({
114
+ props,
115
+ abortSignal,
116
+ }) => {
117
+ const data = await fetch(`https://api.example.com/video/${props.videoId}`, {
118
+ signal: abortSignal,
119
+ }).then((res) => res.json());
120
+
121
+ return {
122
+ durationInFrames: Math.ceil(data.duration * 30),
123
+ props: {
124
+ ...props,
125
+ videoUrl: data.url,
126
+ },
127
+ };
128
+ };
129
+
130
+ export const RemotionRoot = () => {
131
+ return (
132
+ <Composition
133
+ id="MyComposition"
134
+ component={MyComposition}
135
+ durationInFrames={100} // Placeholder, will be overridden
136
+ fps={30}
137
+ width={1080}
138
+ height={1080}
139
+ defaultProps={{ videoId: "abc123" }}
140
+ calculateMetadata={calculateMetadata}
141
+ />
142
+ );
143
+ };
144
+ ```
145
+
146
+ The function can return `props`, `durationInFrames`, `width`, `height`, `fps`, and codec-related defaults. It runs once before rendering begins.
@@ -0,0 +1,126 @@
1
+ ---
2
+ name: display-captions
3
+ description: Displaying captions in Remotion with TikTok-style pages and word highlighting
4
+ metadata:
5
+ tags: captions, subtitles, display, tiktok, highlight
6
+ ---
7
+
8
+ # Displaying captions in Remotion
9
+
10
+ This guide explains how to display captions in Remotion, assuming you already have captions in the `Caption` format.
11
+
12
+ ## Prerequisites
13
+
14
+ First, the @remotion/captions package needs to be installed.
15
+ If it is not installed, use the following command:
16
+
17
+ ```bash
18
+ npx remotion add @remotion/captions # If project uses npm
19
+ bunx remotion add @remotion/captions # If project uses bun
20
+ yarn remotion add @remotion/captions # If project uses yarn
21
+ pnpm exec remotion add @remotion/captions # If project uses pnpm
22
+ ```
23
+
24
+ ## Creating pages
25
+
26
+ Use `createTikTokStyleCaptions()` to group captions into pages. The `combineTokensWithinMilliseconds` option controls how many words appear at once:
27
+
28
+ ```tsx
29
+ import {useMemo} from 'react';
30
+ import {createTikTokStyleCaptions} from '@remotion/captions';
31
+ import type {Caption} from '@remotion/captions';
32
+
33
+ // How often captions should switch (in milliseconds)
34
+ // Higher values = more words per page
35
+ // Lower values = fewer words (more word-by-word)
36
+ const SWITCH_CAPTIONS_EVERY_MS = 1200;
37
+
38
+ const {pages} = useMemo(() => {
39
+ return createTikTokStyleCaptions({
40
+ captions,
41
+ combineTokensWithinMilliseconds: SWITCH_CAPTIONS_EVERY_MS,
42
+ });
43
+ }, [captions]);
44
+ ```
45
+
46
+ ## Rendering with Sequences
47
+
48
+ Map over the pages and render each one in a `<Sequence>`. Calculate the start frame and duration from the page timing:
49
+
50
+ ```tsx
51
+ import {Sequence, useVideoConfig, AbsoluteFill} from 'remotion';
52
+ import type {TikTokPage} from '@remotion/captions';
53
+
54
+ const CaptionedContent: React.FC = () => {
55
+ const {fps} = useVideoConfig();
56
+
57
+ return (
58
+ <AbsoluteFill>
59
+ {pages.map((page, index) => {
60
+ const nextPage = pages[index + 1] ?? null;
61
+ const startFrame = (page.startMs / 1000) * fps;
62
+ const endFrame = Math.min(
63
+ nextPage ? (nextPage.startMs / 1000) * fps : Infinity,
64
+ startFrame + (SWITCH_CAPTIONS_EVERY_MS / 1000) * fps,
65
+ );
66
+ const durationInFrames = endFrame - startFrame;
67
+
68
+ if (durationInFrames <= 0) {
69
+ return null;
70
+ }
71
+
72
+ return (
73
+ <Sequence
74
+ key={index}
75
+ from={startFrame}
76
+ durationInFrames={durationInFrames}
77
+ >
78
+ <CaptionPage page={page} />
79
+ </Sequence>
80
+ );
81
+ })}
82
+ </AbsoluteFill>
83
+ );
84
+ };
85
+ ```
86
+
87
+ ## Word highlighting
88
+
89
+ A caption page contains `tokens` which you can use to highlight the currently spoken word:
90
+
91
+ ```tsx
92
+ import {AbsoluteFill, useCurrentFrame, useVideoConfig} from 'remotion';
93
+ import type {TikTokPage} from '@remotion/captions';
94
+
95
+ const HIGHLIGHT_COLOR = '#39E508';
96
+
97
+ const CaptionPage: React.FC<{page: TikTokPage}> = ({page}) => {
98
+ const frame = useCurrentFrame();
99
+ const {fps} = useVideoConfig();
100
+
101
+ // Current time relative to the start of the sequence
102
+ const currentTimeMs = (frame / fps) * 1000;
103
+ // Convert to absolute time by adding the page start
104
+ const absoluteTimeMs = page.startMs + currentTimeMs;
105
+
106
+ return (
107
+ <AbsoluteFill style={{justifyContent: 'center', alignItems: 'center'}}>
108
+ <div style={{fontSize: 80, fontWeight: 'bold', whiteSpace: 'pre'}}>
109
+ {page.tokens.map((token) => {
110
+ const isActive =
111
+ token.fromMs <= absoluteTimeMs && token.toMs > absoluteTimeMs;
112
+
113
+ return (
114
+ <span
115
+ key={token.fromMs}
116
+ style={{color: isActive ? HIGHLIGHT_COLOR : 'white'}}
117
+ >
118
+ {token.text}
119
+ </span>
120
+ );
121
+ })}
122
+ </div>
123
+ </AbsoluteFill>
124
+ );
125
+ };
126
+ ```
@@ -0,0 +1,229 @@
1
+ ---
2
+ name: extract-frames
3
+ description: Extract frames from videos at specific timestamps using Mediabunny
4
+ metadata:
5
+ tags: frames, extract, video, thumbnail, filmstrip, canvas
6
+ ---
7
+
8
+ # Extracting frames from videos
9
+
10
+ Use Mediabunny to extract frames from videos at specific timestamps. This is useful for generating thumbnails, filmstrips, or processing individual frames.
11
+
12
+ ## The `extractFrames()` function
13
+
14
+ This function can be copy-pasted into any project.
15
+
16
+ ```tsx
17
+ import {
18
+ ALL_FORMATS,
19
+ Input,
20
+ UrlSource,
21
+ VideoSample,
22
+ VideoSampleSink,
23
+ } from "mediabunny";
24
+
25
+ type Options = {
26
+ track: { width: number; height: number };
27
+ container: string;
28
+ durationInSeconds: number | null;
29
+ };
30
+
31
+ export type ExtractFramesTimestampsInSecondsFn = (
32
+ options: Options
33
+ ) => Promise<number[]> | number[];
34
+
35
+ export type ExtractFramesProps = {
36
+ src: string;
37
+ timestampsInSeconds: number[] | ExtractFramesTimestampsInSecondsFn;
38
+ onVideoSample: (sample: VideoSample) => void;
39
+ signal?: AbortSignal;
40
+ };
41
+
42
+ export async function extractFrames({
43
+ src,
44
+ timestampsInSeconds,
45
+ onVideoSample,
46
+ signal,
47
+ }: ExtractFramesProps): Promise<void> {
48
+ using input = new Input({
49
+ formats: ALL_FORMATS,
50
+ source: new UrlSource(src),
51
+ });
52
+
53
+ const [durationInSeconds, format, videoTrack] = await Promise.all([
54
+ input.computeDuration(),
55
+ input.getFormat(),
56
+ input.getPrimaryVideoTrack(),
57
+ ]);
58
+
59
+ if (!videoTrack) {
60
+ throw new Error("No video track found in the input");
61
+ }
62
+
63
+ if (signal?.aborted) {
64
+ throw new Error("Aborted");
65
+ }
66
+
67
+ const timestamps =
68
+ typeof timestampsInSeconds === "function"
69
+ ? await timestampsInSeconds({
70
+ track: {
71
+ width: videoTrack.displayWidth,
72
+ height: videoTrack.displayHeight,
73
+ },
74
+ container: format.name,
75
+ durationInSeconds,
76
+ })
77
+ : timestampsInSeconds;
78
+
79
+ if (timestamps.length === 0) {
80
+ return;
81
+ }
82
+
83
+ if (signal?.aborted) {
84
+ throw new Error("Aborted");
85
+ }
86
+
87
+ const sink = new VideoSampleSink(videoTrack);
88
+
89
+ for await (using videoSample of sink.samplesAtTimestamps(timestamps)) {
90
+ if (signal?.aborted) {
91
+ break;
92
+ }
93
+
94
+ if (!videoSample) {
95
+ continue;
96
+ }
97
+
98
+ onVideoSample(videoSample);
99
+ }
100
+ }
101
+ ```
102
+
103
+ ## Basic usage
104
+
105
+ Extract frames at specific timestamps:
106
+
107
+ ```tsx
108
+ await extractFrames({
109
+ src: "https://remotion.media/video.mp4",
110
+ timestampsInSeconds: [0, 1, 2, 3, 4],
111
+ onVideoSample: (sample) => {
112
+ const canvas = document.createElement("canvas");
113
+ canvas.width = sample.displayWidth;
114
+ canvas.height = sample.displayHeight;
115
+ const ctx = canvas.getContext("2d");
116
+ sample.draw(ctx!, 0, 0);
117
+ },
118
+ });
119
+ ```
120
+
121
+ ## Creating a filmstrip
122
+
123
+ Use a callback function to dynamically calculate timestamps based on video metadata:
124
+
125
+ ```tsx
126
+ const canvasWidth = 500;
127
+ const canvasHeight = 80;
128
+ const fromSeconds = 0;
129
+ const toSeconds = 10;
130
+
131
+ await extractFrames({
132
+ src: "https://remotion.media/video.mp4",
133
+ timestampsInSeconds: async ({ track, durationInSeconds }) => {
134
+ const aspectRatio = track.width / track.height;
135
+ const amountOfFramesFit = Math.ceil(
136
+ canvasWidth / (canvasHeight * aspectRatio)
137
+ );
138
+ const segmentDuration = toSeconds - fromSeconds;
139
+ const timestamps: number[] = [];
140
+
141
+ for (let i = 0; i < amountOfFramesFit; i++) {
142
+ timestamps.push(
143
+ fromSeconds + (segmentDuration / amountOfFramesFit) * (i + 0.5)
144
+ );
145
+ }
146
+
147
+ return timestamps;
148
+ },
149
+ onVideoSample: (sample) => {
150
+ console.log(`Frame at ${sample.timestamp}s`);
151
+
152
+ const canvas = document.createElement("canvas");
153
+ canvas.width = sample.displayWidth;
154
+ canvas.height = sample.displayHeight;
155
+ const ctx = canvas.getContext("2d");
156
+ sample.draw(ctx!, 0, 0);
157
+ },
158
+ });
159
+ ```
160
+
161
+ ## Cancellation with AbortSignal
162
+
163
+ Cancel frame extraction after a timeout:
164
+
165
+ ```tsx
166
+ const controller = new AbortController();
167
+
168
+ setTimeout(() => controller.abort(), 5000);
169
+
170
+ try {
171
+ await extractFrames({
172
+ src: "https://remotion.media/video.mp4",
173
+ timestampsInSeconds: [0, 1, 2, 3, 4],
174
+ onVideoSample: (sample) => {
175
+ using frame = sample;
176
+ const canvas = document.createElement("canvas");
177
+ canvas.width = frame.displayWidth;
178
+ canvas.height = frame.displayHeight;
179
+ const ctx = canvas.getContext("2d");
180
+ frame.draw(ctx!, 0, 0);
181
+ },
182
+ signal: controller.signal,
183
+ });
184
+
185
+ console.log("Frame extraction complete!");
186
+ } catch (error) {
187
+ console.error("Frame extraction was aborted or failed:", error);
188
+ }
189
+ ```
190
+
191
+ ## Timeout with Promise.race
192
+
193
+ ```tsx
194
+ const controller = new AbortController();
195
+
196
+ const timeoutPromise = new Promise<never>((_, reject) => {
197
+ const timeoutId = setTimeout(() => {
198
+ controller.abort();
199
+ reject(new Error("Frame extraction timed out after 10 seconds"));
200
+ }, 10000);
201
+
202
+ controller.signal.addEventListener("abort", () => clearTimeout(timeoutId), {
203
+ once: true,
204
+ });
205
+ });
206
+
207
+ try {
208
+ await Promise.race([
209
+ extractFrames({
210
+ src: "https://remotion.media/video.mp4",
211
+ timestampsInSeconds: [0, 1, 2, 3, 4],
212
+ onVideoSample: (sample) => {
213
+ using frame = sample;
214
+ const canvas = document.createElement("canvas");
215
+ canvas.width = frame.displayWidth;
216
+ canvas.height = frame.displayHeight;
217
+ const ctx = canvas.getContext("2d");
218
+ frame.draw(ctx!, 0, 0);
219
+ },
220
+ signal: controller.signal,
221
+ }),
222
+ timeoutPromise,
223
+ ]);
224
+
225
+ console.log("Frame extraction complete!");
226
+ } catch (error) {
227
+ console.error("Frame extraction was aborted or failed:", error);
228
+ }
229
+ ```
@@ -0,0 +1,152 @@
1
+ ---
2
+ name: fonts
3
+ description: Loading Google Fonts and local fonts in Remotion
4
+ metadata:
5
+ tags: fonts, google-fonts, typography, text
6
+ ---
7
+
8
+ # Using fonts in Remotion
9
+
10
+ ## Google Fonts with @remotion/google-fonts
11
+
12
+ The recommended way to use Google Fonts. It's type-safe and automatically blocks rendering until the font is ready.
13
+
14
+ ### Prerequisites
15
+
16
+ First, the @remotion/google-fonts package needs to be installed.
17
+ If it is not installed, use the following command:
18
+
19
+ ```bash
20
+ npx remotion add @remotion/google-fonts # If project uses npm
21
+ bunx remotion add @remotion/google-fonts # If project uses bun
22
+ yarn remotion add @remotion/google-fonts # If project uses yarn
23
+ pnpm exec remotion add @remotion/google-fonts # If project uses pnpm
24
+ ```
25
+
26
+ ```tsx
27
+ import { loadFont } from "@remotion/google-fonts/Lobster";
28
+
29
+ const { fontFamily } = loadFont();
30
+
31
+ export const MyComposition = () => {
32
+ return <div style={{ fontFamily }}>Hello World</div>;
33
+ };
34
+ ```
35
+
36
+ Preferrably, specify only needed weights and subsets to reduce file size:
37
+
38
+ ```tsx
39
+ import { loadFont } from "@remotion/google-fonts/Roboto";
40
+
41
+ const { fontFamily } = loadFont("normal", {
42
+ weights: ["400", "700"],
43
+ subsets: ["latin"],
44
+ });
45
+ ```
46
+
47
+ ### Waiting for font to load
48
+
49
+ Use `waitUntilDone()` if you need to know when the font is ready:
50
+
51
+ ```tsx
52
+ import { loadFont } from "@remotion/google-fonts/Lobster";
53
+
54
+ const { fontFamily, waitUntilDone } = loadFont();
55
+
56
+ await waitUntilDone();
57
+ ```
58
+
59
+ ## Local fonts with @remotion/fonts
60
+
61
+ For local font files, use the `@remotion/fonts` package.
62
+
63
+ ### Prerequisites
64
+
65
+ First, install @remotion/fonts:
66
+
67
+ ```bash
68
+ npx remotion add @remotion/fonts # If project uses npm
69
+ bunx remotion add @remotion/fonts # If project uses bun
70
+ yarn remotion add @remotion/fonts # If project uses yarn
71
+ pnpm exec remotion add @remotion/fonts # If project uses pnpm
72
+ ```
73
+
74
+ ### Loading a local font
75
+
76
+ Place your font file in the `public/` folder and use `loadFont()`:
77
+
78
+ ```tsx
79
+ import { loadFont } from "@remotion/fonts";
80
+ import { staticFile } from "remotion";
81
+
82
+ await loadFont({
83
+ family: "MyFont",
84
+ url: staticFile("MyFont-Regular.woff2"),
85
+ });
86
+
87
+ export const MyComposition = () => {
88
+ return <div style={{ fontFamily: "MyFont" }}>Hello World</div>;
89
+ };
90
+ ```
91
+
92
+ ### Loading multiple weights
93
+
94
+ Load each weight separately with the same family name:
95
+
96
+ ```tsx
97
+ import { loadFont } from "@remotion/fonts";
98
+ import { staticFile } from "remotion";
99
+
100
+ await Promise.all([
101
+ loadFont({
102
+ family: "Inter",
103
+ url: staticFile("Inter-Regular.woff2"),
104
+ weight: "400",
105
+ }),
106
+ loadFont({
107
+ family: "Inter",
108
+ url: staticFile("Inter-Bold.woff2"),
109
+ weight: "700",
110
+ }),
111
+ ]);
112
+ ```
113
+
114
+ ### Available options
115
+
116
+ ```tsx
117
+ loadFont({
118
+ family: "MyFont", // Required: name to use in CSS
119
+ url: staticFile("font.woff2"), // Required: font file URL
120
+ format: "woff2", // Optional: auto-detected from extension
121
+ weight: "400", // Optional: font weight
122
+ style: "normal", // Optional: normal or italic
123
+ display: "block", // Optional: font-display behavior
124
+ });
125
+ ```
126
+
127
+ ## Using in components
128
+
129
+ Call `loadFont()` at the top level of your component or in a separate file that's imported early:
130
+
131
+ ```tsx
132
+ import { loadFont } from "@remotion/google-fonts/Montserrat";
133
+
134
+ const { fontFamily } = loadFont("normal", {
135
+ weights: ["400", "700"],
136
+ subsets: ["latin"],
137
+ });
138
+
139
+ export const Title: React.FC<{ text: string }> = ({ text }) => {
140
+ return (
141
+ <h1
142
+ style={{
143
+ fontFamily,
144
+ fontSize: 80,
145
+ fontWeight: "bold",
146
+ }}
147
+ >
148
+ {text}
149
+ </h1>
150
+ );
151
+ };
152
+ ```
@@ -0,0 +1,58 @@
1
+ ---
2
+ name: get-audio-duration
3
+ description: Getting the duration of an audio file in seconds with Mediabunny
4
+ metadata:
5
+ tags: duration, audio, length, time, seconds, mp3, wav
6
+ ---
7
+
8
+ # Getting audio duration with Mediabunny
9
+
10
+ Mediabunny can extract the duration of an audio file. It works in browser, Node.js, and Bun environments.
11
+
12
+ ## Getting audio duration
13
+
14
+ ```tsx
15
+ import { Input, ALL_FORMATS, UrlSource } from "mediabunny";
16
+
17
+ export const getAudioDuration = async (src: string) => {
18
+ const input = new Input({
19
+ formats: ALL_FORMATS,
20
+ source: new UrlSource(src, {
21
+ getRetryDelay: () => null,
22
+ }),
23
+ });
24
+
25
+ const durationInSeconds = await input.computeDuration();
26
+ return durationInSeconds;
27
+ };
28
+ ```
29
+
30
+ ## Usage
31
+
32
+ ```tsx
33
+ const duration = await getAudioDuration("https://remotion.media/audio.mp3");
34
+ console.log(duration); // e.g. 180.5 (seconds)
35
+ ```
36
+
37
+ ## Using with local files
38
+
39
+ For local files, use `FileSource` instead of `UrlSource`:
40
+
41
+ ```tsx
42
+ import { Input, ALL_FORMATS, FileSource } from "mediabunny";
43
+
44
+ const input = new Input({
45
+ formats: ALL_FORMATS,
46
+ source: new FileSource(file), // File object from input or drag-drop
47
+ });
48
+
49
+ const durationInSeconds = await input.computeDuration();
50
+ ```
51
+
52
+ ## Using with staticFile in Remotion
53
+
54
+ ```tsx
55
+ import { staticFile } from "remotion";
56
+
57
+ const duration = await getAudioDuration(staticFile("audio.mp3"));
58
+ ```