natureco-cli 5.18.3 → 5.20.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.
- package/CHANGELOG.md +32 -0
- package/package.json +1 -1
- package/skills/a-b-testing/SKILL.md +34 -0
- package/skills/accessibility-audit/SKILL.md +34 -0
- package/skills/agent-memory/SKILL.md +34 -0
- package/skills/agent-orchestration/SKILL.md +34 -0
- package/skills/airunway-aks-setup/SKILL.md +73 -0
- package/skills/algorithmic-art/SKILL.md +405 -0
- package/skills/analytics-setup/SKILL.md +34 -0
- package/skills/api-design/SKILL.md +34 -0
- package/skills/api-versioning/SKILL.md +34 -0
- package/skills/appinsights-instrumentation/SKILL.md +76 -0
- package/skills/audio-transcription/SKILL.md +34 -0
- package/skills/authentication-patterns/SKILL.md +34 -0
- package/skills/authorization-rbac/SKILL.md +34 -0
- package/skills/azure-ai/SKILL.md +71 -0
- package/skills/azure-aigateway/SKILL.md +129 -0
- package/skills/azure-cloud-migrate/SKILL.md +52 -0
- package/skills/azure-compliance/SKILL.md +108 -0
- package/skills/azure-compute/SKILL.md +46 -0
- package/skills/azure-cost/SKILL.md +45 -0
- package/skills/azure-deploy/SKILL.md +97 -0
- package/skills/azure-diagnostics/SKILL.md +151 -0
- package/skills/azure-enterprise-infra-planner/SKILL.md +54 -0
- package/skills/azure-hosted-copilot-sdk/SKILL.md +89 -0
- package/skills/azure-kubernetes/SKILL.md +153 -0
- package/skills/azure-kusto/SKILL.md +231 -0
- package/skills/azure-messaging/SKILL.md +57 -0
- package/skills/azure-prepare/SKILL.md +165 -0
- package/skills/azure-quotas/SKILL.md +276 -0
- package/skills/azure-rbac/SKILL.md +17 -0
- package/skills/azure-reliability/SKILL.md +387 -0
- package/skills/azure-resource-lookup/SKILL.md +108 -0
- package/skills/azure-resource-visualizer/SKILL.md +183 -0
- package/skills/azure-storage/SKILL.md +100 -0
- package/skills/azure-upgrade/SKILL.md +91 -0
- package/skills/azure-validate/SKILL.md +72 -0
- package/skills/backup-strategy/SKILL.md +34 -0
- package/skills/bash-scripting/SKILL.md +34 -0
- package/skills/batch-api-calls/SKILL.md +34 -0
- package/skills/batch-processing/SKILL.md +34 -0
- package/skills/brainstorming/SKILL.md +159 -0
- package/skills/brand-guidelines/SKILL.md +73 -0
- package/skills/brandkit/SKILL.md +798 -0
- package/skills/brutalist-skill/SKILL.md +92 -0
- package/skills/bulk-file-operations/SKILL.md +34 -0
- package/skills/cache-responses/SKILL.md +34 -0
- package/skills/caching-strategy/SKILL.md +34 -0
- package/skills/calendar-optimization/SKILL.md +34 -0
- package/skills/canvas-design/SKILL.md +130 -0
- package/skills/cavecrew/SKILL.md +82 -0
- package/skills/caveman-commit/SKILL.md +65 -0
- package/skills/caveman-help/SKILL.md +63 -0
- package/skills/caveman-review/SKILL.md +55 -0
- package/skills/caveman-stats/SKILL.md +10 -0
- package/skills/changelog-generation/SKILL.md +34 -0
- package/skills/chat-bot-design/SKILL.md +34 -0
- package/skills/chunking-strategy/SKILL.md +34 -0
- package/skills/ci-cd-pipeline/SKILL.md +34 -0
- package/skills/classification-pipeline/SKILL.md +34 -0
- package/skills/claude-api/SKILL.md +356 -0
- package/skills/clipboard-master/SKILL.md +34 -0
- package/skills/code-explanation/SKILL.md +34 -0
- package/skills/code-generation/SKILL.md +34 -0
- package/skills/code-migration/SKILL.md +34 -0
- package/skills/code-review-checklist/SKILL.md +34 -0
- package/skills/composition-patterns/SKILL.md +89 -0
- package/skills/contact-management/SKILL.md +34 -0
- package/skills/content-generation/SKILL.md +34 -0
- package/skills/context-pruning/SKILL.md +34 -0
- package/skills/context-window-management/SKILL.md +34 -0
- package/skills/continuous-improvement/SKILL.md +34 -0
- package/skills/cron-scheduling/SKILL.md +34 -0
- package/skills/cross-platform-compat/SKILL.md +34 -0
- package/skills/csv-processing/SKILL.md +34 -0
- package/skills/daily-journal/SKILL.md +34 -0
- package/skills/data-analysis/SKILL.md +34 -0
- package/skills/data-backup/SKILL.md +34 -0
- package/skills/data-cleaning/SKILL.md +34 -0
- package/skills/data-extraction/SKILL.md +34 -0
- package/skills/data-validation/SKILL.md +34 -0
- package/skills/database-migrations/SKILL.md +34 -0
- package/skills/database-schema-design/SKILL.md +34 -0
- package/skills/decision-mapping/SKILL.md +84 -0
- package/skills/decision-matrix/SKILL.md +34 -0
- package/skills/dependency-management/SKILL.md +34 -0
- package/skills/deploy-to-vercel/SKILL.md +296 -0
- package/skills/design-an-interface/SKILL.md +94 -0
- package/skills/design-doc-mermaid/SKILL.md +498 -0
- package/skills/dev-environment-setup/SKILL.md +34 -0
- package/skills/develop-userscripts/SKILL.md +84 -0
- package/skills/distraction-blocker/SKILL.md +34 -0
- package/skills/doc-coauthoring/SKILL.md +375 -0
- package/skills/docker-optimization/SKILL.md +34 -0
- package/skills/document-template/SKILL.md +34 -0
- package/skills/documentation/SKILL.md +109 -0
- package/skills/documentation-gen/SKILL.md +34 -0
- package/skills/docx/SKILL.md +590 -0
- package/skills/edit-article/SKILL.md +15 -0
- package/skills/efficient-formatting/SKILL.md +34 -0
- package/skills/email-management/SKILL.md +34 -0
- package/skills/email-service/SKILL.md +34 -0
- package/skills/embedding-generation/SKILL.md +34 -0
- package/skills/entity-extraction/SKILL.md +34 -0
- package/skills/entra-agent-id/SKILL.md +356 -0
- package/skills/entra-app-registration/SKILL.md +191 -0
- package/skills/environment-config/SKILL.md +34 -0
- package/skills/error-handling/SKILL.md +34 -0
- package/skills/estimation-techniques/SKILL.md +34 -0
- package/skills/event-driven-architecture/SKILL.md +34 -0
- package/skills/excel-automation/SKILL.md +34 -0
- package/skills/execution-monitoring/SKILL.md +34 -0
- package/skills/expense-tracking/SKILL.md +34 -0
- package/skills/faceless-explainer/SKILL.md +202 -0
- package/skills/fastify/SKILL.md +75 -0
- package/skills/feature-engineering/SKILL.md +34 -0
- package/skills/feature-flags/SKILL.md +34 -0
- package/skills/file-conversion/SKILL.md +34 -0
- package/skills/file-upload-handling/SKILL.md +34 -0
- package/skills/fine-tuning-prep/SKILL.md +34 -0
- package/skills/focus-mode/SKILL.md +34 -0
- package/skills/form-validation/SKILL.md +34 -0
- package/skills/function-calling/SKILL.md +34 -0
- package/skills/general-video/SKILL.md +143 -0
- package/skills/git-guardrails-claude-code/SKILL.md +95 -0
- package/skills/git-workflow/SKILL.md +34 -0
- package/skills/github-actions-docs/SKILL.md +98 -0
- package/skills/goal-setting/SKILL.md +34 -0
- package/skills/gpt-tasteskill/SKILL.md +74 -0
- package/skills/graphql-design/SKILL.md +34 -0
- package/skills/grill-me/SKILL.md +7 -0
- package/skills/grilling/SKILL.md +10 -0
- package/skills/habit-tracker/SKILL.md +34 -0
- package/skills/hallucination-detection/SKILL.md +34 -0
- package/skills/handoff/SKILL.md +16 -0
- package/skills/hyperframes/SKILL.md +152 -0
- package/skills/hyperframes-animation/SKILL.md +82 -0
- package/skills/hyperframes-cli/SKILL.md +109 -0
- package/skills/hyperframes-core/SKILL.md +78 -0
- package/skills/hyperframes-creative/SKILL.md +68 -0
- package/skills/hyperframes-media/SKILL.md +97 -0
- package/skills/image-processing/SKILL.md +34 -0
- package/skills/image-to-code-skill/SKILL.md +1228 -0
- package/skills/imagegen-frontend-mobile/SKILL.md +1465 -0
- package/skills/imagegen-frontend-web/SKILL.md +987 -0
- package/skills/implement/SKILL.md +15 -0
- package/skills/init/SKILL.md +91 -0
- package/skills/internal-comms/SKILL.md +32 -0
- package/skills/json-transformation/SKILL.md +34 -0
- package/skills/keyboard-shortcuts/SKILL.md +34 -0
- package/skills/knowledge-base/SKILL.md +34 -0
- package/skills/knowledge-graph/SKILL.md +34 -0
- package/skills/kubernetes-deployment/SKILL.md +34 -0
- package/skills/language-translation/SKILL.md +34 -0
- package/skills/lark-approval/SKILL.md +56 -0
- package/skills/lark-base/SKILL.md +157 -0
- package/skills/lark-doc/SKILL.md +81 -0
- package/skills/lark-shared/SKILL.md +168 -0
- package/skills/lark-workflow-meeting-summary/SKILL.md +122 -0
- package/skills/linting-neostandard-eslint9/SKILL.md +64 -0
- package/skills/llm-chaining/SKILL.md +34 -0
- package/skills/localization-i18n/SKILL.md +34 -0
- package/skills/logging-best-practices/SKILL.md +34 -0
- package/skills/loop-me/SKILL.md +32 -0
- package/skills/machine-learning-pipeline/SKILL.md +34 -0
- package/skills/meeting-notes/SKILL.md +34 -0
- package/skills/meeting-scheduler/SKILL.md +34 -0
- package/skills/message-queues/SKILL.md +34 -0
- package/skills/message-summarization/SKILL.md +34 -0
- package/skills/microservices-architecture/SKILL.md +34 -0
- package/skills/microsoft-foundry/SKILL.md +262 -0
- package/skills/migrate-to-shoehorn/SKILL.md +118 -0
- package/skills/milestone-tracking/SKILL.md +34 -0
- package/skills/minimalist-skill/SKILL.md +85 -0
- package/skills/model-deployment/SKILL.md +34 -0
- package/skills/model-evaluation/SKILL.md +34 -0
- package/skills/monitoring-setup/SKILL.md +34 -0
- package/skills/monorepo-setup/SKILL.md +34 -0
- package/skills/motion-graphics/SKILL.md +170 -0
- package/skills/multi-agent-systems/SKILL.md +34 -0
- package/skills/music-to-video/SKILL.md +197 -0
- package/skills/network-troubleshooting/SKILL.md +34 -0
- package/skills/node/SKILL.md +94 -0
- package/skills/nodejs-core/SKILL.md +156 -0
- package/skills/note-organization/SKILL.md +34 -0
- package/skills/oauth/SKILL.md +186 -0
- package/skills/obsidian-vault/SKILL.md +59 -0
- package/skills/octocat/SKILL.md +93 -0
- package/skills/openclaw-secure-linux-cloud/SKILL.md +157 -0
- package/skills/opensource-guide-coach/SKILL.md +218 -0
- package/skills/output-skill/SKILL.md +49 -0
- package/skills/package-publishing/SKILL.md +34 -0
- package/skills/password-generator/SKILL.md +34 -0
- package/skills/pdf/SKILL.md +314 -0
- package/skills/pdf-processing/SKILL.md +34 -0
- package/skills/performance-optimization/SKILL.md +34 -0
- package/skills/pomodoro-timer/SKILL.md +34 -0
- package/skills/powershell-automation/SKILL.md +34 -0
- package/skills/pptx/SKILL.md +232 -0
- package/skills/pr-to-video/SKILL.md +235 -0
- package/skills/priority-filtering/SKILL.md +34 -0
- package/skills/product-launch-video/SKILL.md +205 -0
- package/skills/project-tracking/SKILL.md +34 -0
- package/skills/prompt-compression/SKILL.md +34 -0
- package/skills/prompt-engineering/SKILL.md +34 -0
- package/skills/push-notifications/SKILL.md +34 -0
- package/skills/python-appservice-deploy/SKILL.md +36 -0
- package/skills/qa/SKILL.md +130 -0
- package/skills/rag-implementation/SKILL.md +34 -0
- package/skills/rate-limiting/SKILL.md +34 -0
- package/skills/react-best-practices/SKILL.md +149 -0
- package/skills/react-native-skills/SKILL.md +121 -0
- package/skills/react-view-transitions/SKILL.md +320 -0
- package/skills/readme-i18n/SKILL.md +176 -0
- package/skills/real-time-communication/SKILL.md +34 -0
- package/skills/redesign-skill/SKILL.md +178 -0
- package/skills/refactoring-strategy/SKILL.md +34 -0
- package/skills/regex-mastery/SKILL.md +34 -0
- package/skills/remotion/SKILL.md +364 -0
- package/skills/report-generation/SKILL.md +34 -0
- package/skills/request-refactor-plan/SKILL.md +68 -0
- package/skills/research-compiler/SKILL.md +34 -0
- package/skills/resolving-merge-conflicts/SKILL.md +14 -0
- package/skills/responsive-design/SKILL.md +34 -0
- package/skills/rest-api-patterns/SKILL.md +34 -0
- package/skills/retrospectives/SKILL.md +34 -0
- package/skills/risk-assessment/SKILL.md +34 -0
- package/skills/roadmap-creation/SKILL.md +34 -0
- package/skills/running-claude-code-via-litellm-copilot/SKILL.md +263 -0
- package/skills/scaffold-exercises/SKILL.md +106 -0
- package/skills/search-implementation/SKILL.md +34 -0
- package/skills/secrets-management/SKILL.md +34 -0
- package/skills/secure-linux-web-hosting/SKILL.md +162 -0
- package/skills/security-audit/SKILL.md +34 -0
- package/skills/selective-memory/SKILL.md +34 -0
- package/skills/semantic-search/SKILL.md +34 -0
- package/skills/semantic-versioning/SKILL.md +34 -0
- package/skills/sentiment-analysis/SKILL.md +34 -0
- package/skills/seo-optimization/SKILL.md +34 -0
- package/skills/setup-pre-commit/SKILL.md +91 -0
- package/skills/shadcn/SKILL.md +267 -0
- package/skills/simple/SKILL.md +52 -0
- package/skills/skill-creator/SKILL.md +485 -0
- package/skills/skill-optimizer/SKILL.md +47 -0
- package/skills/skills-cli/SKILL.md +281 -0
- package/skills/slack-gif-creator/SKILL.md +254 -0
- package/skills/snipgrapher/SKILL.md +58 -0
- package/skills/snippet-manager/SKILL.md +34 -0
- package/skills/soft-skill/SKILL.md +98 -0
- package/skills/sprint-planning/SKILL.md +34 -0
- package/skills/sql-query-optimization/SKILL.md +34 -0
- package/skills/stakeholder-communication/SKILL.md +34 -0
- package/skills/state-management/SKILL.md +34 -0
- package/skills/statistical-analysis/SKILL.md +34 -0
- package/skills/stitch-skill/SKILL.md +184 -0
- package/skills/streaming-responses/SKILL.md +34 -0
- package/skills/structured-output/SKILL.md +34 -0
- package/skills/summarization-techniques/SKILL.md +34 -0
- package/skills/supabase/SKILL.md +135 -0
- package/skills/supabase-postgres-best-practices/SKILL.md +64 -0
- package/skills/system-diagnostics/SKILL.md +34 -0
- package/skills/systematic-debugging/SKILL.md +296 -0
- package/skills/talking-head-recut/SKILL.md +1191 -0
- package/skills/task-decomposition/SKILL.md +34 -0
- package/skills/task-prioritization/SKILL.md +34 -0
- package/skills/taste-skill/SKILL.md +1206 -0
- package/skills/taste-skill-v1/SKILL.md +226 -0
- package/skills/tdd/SKILL.md +108 -0
- package/skills/teach/SKILL.md +140 -0
- package/skills/template-library/SKILL.md +34 -0
- package/skills/test-driven-development/SKILL.md +371 -0
- package/skills/test-generation/SKILL.md +34 -0
- package/skills/testing-strategy/SKILL.md +34 -0
- package/skills/text-expansion/SKILL.md +34 -0
- package/skills/theme-factory/SKILL.md +59 -0
- package/skills/time-blocking/SKILL.md +34 -0
- package/skills/to-prd/SKILL.md +75 -0
- package/skills/token-budgeting/SKILL.md +34 -0
- package/skills/token-optimization/SKILL.md +34 -0
- package/skills/tool-calling-patterns/SKILL.md +34 -0
- package/skills/typescript-magician/SKILL.md +117 -0
- package/skills/tzst/SKILL.md +68 -0
- package/skills/ubiquitous-language/SKILL.md +93 -0
- package/skills/use-my-browser/SKILL.md +110 -0
- package/skills/using-superpowers/SKILL.md +121 -0
- package/skills/vector-database-setup/SKILL.md +34 -0
- package/skills/vercel-cli-with-tokens/SKILL.md +353 -0
- package/skills/vercel-optimize/SKILL.md +322 -0
- package/skills/video-editing/SKILL.md +34 -0
- package/skills/viral-instagram-reels/SKILL.md +180 -0
- package/skills/viral-short-form/SKILL.md +147 -0
- package/skills/viral-short-form-ideas/SKILL.md +184 -0
- package/skills/viral-tiktok-content/SKILL.md +180 -0
- package/skills/visualization-creation/SKILL.md +34 -0
- package/skills/web-artifacts-builder/SKILL.md +74 -0
- package/skills/web-design-guidelines/SKILL.md +39 -0
- package/skills/web-scraping/SKILL.md +34 -0
- package/skills/webapp-testing/SKILL.md +96 -0
- package/skills/webhook-handling/SKILL.md +34 -0
- package/skills/website-to-video/SKILL.md +145 -0
- package/skills/weekly-review/SKILL.md +34 -0
- package/skills/workflow-automation/SKILL.md +34 -0
- package/skills/writing-beats/SKILL.md +67 -0
- package/skills/writing-fragments/SKILL.md +79 -0
- package/skills/writing-great-skills/SKILL.md +82 -0
- package/skills/writing-guidelines/SKILL.md +39 -0
- package/skills/writing-plans/SKILL.md +174 -0
- package/skills/writing-shape/SKILL.md +79 -0
- package/skills/xdrop/SKILL.md +78 -0
- package/skills/xget/SKILL.md +87 -0
- package/skills/xlsx/SKILL.md +292 -0
- package/src/commands/code_v5.js +377 -73
- package/src/commands/repl.js +505 -86
- package/src/providers/model/anthropic.js +84 -0
- package/src/providers/model/gemini.js +49 -0
- package/src/providers/model/minimax.js +48 -0
- package/src/providers/model/ollama.js +42 -0
- package/src/providers/model/openai.js +49 -0
- package/src/providers/search/duckduckgo.js +45 -0
- package/src/providers/search/exa.js +52 -0
- package/src/providers/search/searxng.js +51 -0
- package/src/providers/search/tavily.js +47 -0
- package/src/tools/model_provider.js +71 -0
- package/src/tools/parallel_search.js +40 -49
- package/src/tools/search_provider.js +79 -0
- package/src/tools/skills_download.js +217 -0
- package/src/tools/web_search.js +42 -62
- package/src/tools/workflow.js +21 -9
- package/src/utils/cron.js +82 -126
- package/src/utils/effort-levels.js +42 -0
- package/src/utils/fallback-chain.js +72 -0
- package/src/utils/file-history.js +78 -0
- package/src/utils/model-provider.js +113 -0
- package/src/utils/permissions.js +147 -0
- package/src/utils/plan-mode.js +164 -0
- package/src/utils/provider-detect.js +7 -32
- package/src/utils/sandbox.js +60 -0
- package/src/utils/search-provider.js +62 -0
- package/src/utils/session-search.js +66 -0
- package/src/utils/structured-output.js +20 -0
- package/src/utils/system-prompt.js +28 -2
- package/src/utils/tasks.js +132 -0
- package/src/utils/tool-hooks.js +154 -0
- package/src/utils/tools.js +18 -2
- package/src/utils/ultra-review.js +59 -0
- package/src/utils/worktree.js +192 -0
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: redesign-existing-projects
|
|
3
|
+
description: Upgrades existing websites and apps to premium quality. Audits current design, identifies generic AI patterns, and applies high-end design standards without breaking functionality. Works with any CSS framework or vanilla CSS.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Redesign Skill
|
|
7
|
+
|
|
8
|
+
## How This Works
|
|
9
|
+
|
|
10
|
+
When applied to an existing project, follow this sequence:
|
|
11
|
+
|
|
12
|
+
1. **Scan** — Read the codebase. Identify the framework, styling method (Tailwind, vanilla CSS, styled-components, etc.), and current design patterns.
|
|
13
|
+
2. **Diagnose** — Run through the audit below. List every generic pattern, weak point, and missing state you find.
|
|
14
|
+
3. **Fix** — Apply targeted upgrades working with the existing stack. Do not rewrite from scratch. Improve what's there.
|
|
15
|
+
|
|
16
|
+
## Design Audit
|
|
17
|
+
|
|
18
|
+
### Typography
|
|
19
|
+
|
|
20
|
+
Check for these problems and fix them:
|
|
21
|
+
|
|
22
|
+
- **Browser default fonts or Inter everywhere.** Replace with a font that has character. Good options: `Geist`, `Outfit`, `Cabinet Grotesk`, `Satoshi`. For editorial/creative projects, pair a serif header with a sans-serif body.
|
|
23
|
+
- **Headlines lack presence.** Increase size for display text, tighten letter-spacing, reduce line-height. Headlines should feel heavy and intentional.
|
|
24
|
+
- **Body text too wide.** Limit paragraph width to roughly 65 characters. Increase line-height for readability.
|
|
25
|
+
- **Only Regular (400) and Bold (700) weights used.** Introduce Medium (500) and SemiBold (600) for more subtle hierarchy.
|
|
26
|
+
- **Numbers in proportional font.** Use a monospace font or enable tabular figures (`font-variant-numeric: tabular-nums`) for data-heavy interfaces.
|
|
27
|
+
- **Missing letter-spacing adjustments.** Use negative tracking for large headers, positive tracking for small caps or labels.
|
|
28
|
+
- **All-caps subheaders everywhere.** Try lowercase italics, sentence case, or small-caps instead.
|
|
29
|
+
- **Orphaned words.** Single words sitting alone on the last line. Fix with `text-wrap: balance` or `text-wrap: pretty`.
|
|
30
|
+
|
|
31
|
+
### Color and Surfaces
|
|
32
|
+
|
|
33
|
+
- **Pure `#000000` background.** Replace with off-black, dark charcoal, or tinted dark (`#0a0a0a`, `#121212`, or a dark navy).
|
|
34
|
+
- **Oversaturated accent colors.** Keep saturation below 80%. Desaturate accents so they blend with neutrals instead of screaming.
|
|
35
|
+
- **More than one accent color.** Pick one. Remove the rest. Consistency beats variety.
|
|
36
|
+
- **Mixing warm and cool grays.** Stick to one gray family. Tint all grays with a consistent hue (warm or cool, not both).
|
|
37
|
+
- **Purple/blue "AI gradient" aesthetic.** This is the most common AI design fingerprint. Replace with neutral bases and a single, considered accent.
|
|
38
|
+
- **Generic `box-shadow`.** Tint shadows to match the background hue. Use colored shadows (e.g., dark blue shadow on a blue background) instead of pure black at low opacity.
|
|
39
|
+
- **Flat design with zero texture.** Add subtle noise, grain, or micro-patterns to backgrounds. Pure flat vectors feel sterile.
|
|
40
|
+
- **Perfectly even gradients.** Break the uniformity with radial gradients, noise overlays, or mesh gradients instead of standard linear 45-degree fades.
|
|
41
|
+
- **Inconsistent lighting direction.** Audit all shadows to ensure they suggest a single, consistent light source.
|
|
42
|
+
- **Random dark sections in a light mode page (or vice versa).** A single dark-background section breaking an otherwise light page looks like a copy-paste accident. Either commit to a full dark mode or keep a consistent background tone throughout. If contrast is needed, use a slightly darker shade of the same palette — not a sudden jump to `#111` in the middle of a cream page.
|
|
43
|
+
- **Empty, flat sections with no visual depth.** Sections that are just text on a plain background feel unfinished. Add high-quality background imagery (blurred, overlaid, or masked), subtle patterns, or ambient gradients. Use reliable placeholder sources like `https://picsum.photos/seed/{name}/1920/1080` when real assets are not available. Experiment with background images behind hero sections, feature blocks, or CTAs — even a subtle full-width photo at low opacity adds presence.
|
|
44
|
+
|
|
45
|
+
### Layout
|
|
46
|
+
|
|
47
|
+
- **Everything centered and symmetrical.** Break symmetry with offset margins, mixed aspect ratios, or left-aligned headers over centered content.
|
|
48
|
+
- **Three equal card columns as feature row.** This is the most generic AI layout. Replace with a 2-column zig-zag, asymmetric grid, horizontal scroll, or masonry layout.
|
|
49
|
+
- **Using `height: 100vh` for full-screen sections.** Replace with `min-height: 100dvh` to prevent layout jumping on mobile browsers (iOS Safari viewport bug).
|
|
50
|
+
- **Complex flexbox percentage math.** Replace with CSS Grid for reliable multi-column structures.
|
|
51
|
+
- **No max-width container.** Add a container constraint (around 1200-1440px) with auto margins so content doesn't stretch edge-to-edge on wide screens.
|
|
52
|
+
- **Cards of equal height forced by flexbox.** Allow variable heights or use masonry when content varies in length.
|
|
53
|
+
- **Uniform border-radius on everything.** Vary the radius: tighter on inner elements, softer on containers.
|
|
54
|
+
- **No overlap or depth.** Elements sit flat next to each other. Use negative margins to create layering and visual depth.
|
|
55
|
+
- **Symmetrical vertical padding.** Top and bottom padding are always identical. Adjust optically — bottom padding often needs to be slightly larger.
|
|
56
|
+
- **Dashboard always has a left sidebar.** Try top navigation, a floating command menu, or a collapsible panel instead.
|
|
57
|
+
- **Missing whitespace.** Double the spacing. Let the design breathe. Dense layouts work for data dashboards, not for marketing pages.
|
|
58
|
+
- **Buttons not bottom-aligned in card groups.** When cards have different content lengths, CTAs end up at random heights. Pin buttons to the bottom of each card so they form a clean horizontal line regardless of content above.
|
|
59
|
+
- **Feature lists starting at different vertical positions.** In pricing tables or comparison cards, the list of features should start at the same Y position across all columns. Use consistent spacing above the list or fixed-height title/price blocks.
|
|
60
|
+
- **Inconsistent vertical rhythm in side-by-side elements.** When placing cards, columns, or panels next to each other, align shared elements (titles, descriptions, prices, buttons) across all items. Misaligned baselines make the layout look broken.
|
|
61
|
+
- **Mathematical alignment that looks optically wrong.** Centering by the math doesn't always look centered to the eye. Icons next to text, play buttons in circles, or text in buttons often need 1-2px optical adjustments to feel right.
|
|
62
|
+
|
|
63
|
+
### Interactivity and States
|
|
64
|
+
|
|
65
|
+
- **No hover states on buttons.** Add background shift, slight scale, or translate on hover.
|
|
66
|
+
- **No active/pressed feedback.** Add a subtle `scale(0.98)` or `translateY(1px)` on press to simulate a physical click.
|
|
67
|
+
- **Instant transitions with zero duration.** Add smooth transitions (200-300ms) to all interactive elements.
|
|
68
|
+
- **Missing focus ring.** Ensure visible focus indicators for keyboard navigation. This is an accessibility requirement, not optional.
|
|
69
|
+
- **No loading states.** Replace generic circular spinners with skeleton loaders that match the layout shape.
|
|
70
|
+
- **No empty states.** An empty dashboard showing nothing is a missed opportunity. Design a composed "getting started" view.
|
|
71
|
+
- **No error states.** Add clear, inline error messages for forms. Do not use `window.alert()`.
|
|
72
|
+
- **Dead links.** Buttons that link to `#`. Either link to real destinations or visually disable them.
|
|
73
|
+
- **No indication of current page in navigation.** Style the active nav link differently so users know where they are.
|
|
74
|
+
- **Scroll jumping.** Anchor clicks jump instantly. Add `scroll-behavior: smooth`.
|
|
75
|
+
- **Animations using `top`, `left`, `width`, `height`.** Switch to `transform` and `opacity` for GPU-accelerated, smooth animation.
|
|
76
|
+
|
|
77
|
+
### Content
|
|
78
|
+
|
|
79
|
+
- **Generic names like "John Doe" or "Jane Smith".** Use diverse, realistic-sounding names.
|
|
80
|
+
- **Fake round numbers like `99.99%`, `50%`, `$100.00`.** Use organic, messy data: `47.2%`, `$99.00`, `+1 (312) 847-1928`.
|
|
81
|
+
- **Placeholder company names like "Acme Corp", "Nexus", "SmartFlow".** Invent contextual, believable brand names.
|
|
82
|
+
- **AI copywriting cliches.** Never use "Elevate", "Seamless", "Unleash", "Next-Gen", "Game-changer", "Delve", "Tapestry", or "In the world of...". Write plain, specific language.
|
|
83
|
+
- **Exclamation marks in success messages.** Remove them. Be confident, not loud.
|
|
84
|
+
- **"Oops!" error messages.** Be direct: "Connection failed. Please try again."
|
|
85
|
+
- **Passive voice.** Use active voice: "We couldn't save your changes" instead of "Mistakes were made."
|
|
86
|
+
- **All blog post dates identical.** Randomize dates to appear real.
|
|
87
|
+
- **Same avatar image for multiple users.** Use unique assets for every distinct person.
|
|
88
|
+
- **Lorem Ipsum.** Never use placeholder latin text. Write real draft copy.
|
|
89
|
+
- **Title Case On Every Header.** Use sentence case instead.
|
|
90
|
+
|
|
91
|
+
### Component Patterns
|
|
92
|
+
|
|
93
|
+
- **Generic card look (border + shadow + white background).** Remove the border, or use only background color, or use only spacing. Cards should exist only when elevation communicates hierarchy.
|
|
94
|
+
- **Always one filled button + one ghost button.** Add text links or tertiary styles to reduce visual noise.
|
|
95
|
+
- **Pill-shaped "New" and "Beta" badges.** Try square badges, flags, or plain text labels.
|
|
96
|
+
- **Accordion FAQ sections.** Use a side-by-side list, searchable help, or inline progressive disclosure.
|
|
97
|
+
- **3-card carousel testimonials with dots.** Replace with a masonry wall, embedded social posts, or a single rotating quote.
|
|
98
|
+
- **Pricing table with 3 towers.** Highlight the recommended tier with color and emphasis, not just extra height.
|
|
99
|
+
- **Modals for everything.** Use inline editing, slide-over panels, or expandable sections instead of popups for simple actions.
|
|
100
|
+
- **Avatar circles exclusively.** Try squircles or rounded squares for a less generic look.
|
|
101
|
+
- **Light/dark toggle always a sun/moon switch.** Use a dropdown, system preference detection, or integrate it into settings.
|
|
102
|
+
- **Footer link farm with 4 columns.** Simplify. Focus on main navigational paths and legally required links.
|
|
103
|
+
|
|
104
|
+
### Iconography
|
|
105
|
+
|
|
106
|
+
- **Lucide or Feather icons exclusively.** These are the "default" AI icon choice. Use Phosphor, Heroicons, or a custom set for differentiation.
|
|
107
|
+
- **Rocketship for "Launch", shield for "Security".** Replace cliche metaphors with less obvious icons (bolt, fingerprint, spark, vault).
|
|
108
|
+
- **Inconsistent stroke widths across icons.** Audit all icons and standardize to one stroke weight.
|
|
109
|
+
- **Missing favicon.** Always include a branded favicon.
|
|
110
|
+
- **Stock "diverse team" photos.** Use real team photos, candid shots, or a consistent illustration style instead of uncanny stock imagery.
|
|
111
|
+
|
|
112
|
+
### Code Quality
|
|
113
|
+
|
|
114
|
+
- **Div soup.** Use semantic HTML: `<nav>`, `<main>`, `<article>`, `<aside>`, `<section>`.
|
|
115
|
+
- **Inline styles mixed with CSS classes.** Move all styling to the project's styling system.
|
|
116
|
+
- **Hardcoded pixel widths.** Use relative units (`%`, `rem`, `em`, `max-width`) for flexible layouts.
|
|
117
|
+
- **Missing alt text on images.** Describe image content for screen readers. Never leave `alt=""` or `alt="image"` on meaningful images.
|
|
118
|
+
- **Arbitrary z-index values like `9999`.** Establish a clean z-index scale in the theme/variables.
|
|
119
|
+
- **Commented-out dead code.** Remove all debug artifacts before shipping.
|
|
120
|
+
- **Import hallucinations.** Check that every import actually exists in `package.json` or the project dependencies.
|
|
121
|
+
- **Missing meta tags.** Add proper `<title>`, `description`, `og:image`, and social sharing meta tags.
|
|
122
|
+
|
|
123
|
+
### Strategic Omissions (What AI Typically Forgets)
|
|
124
|
+
|
|
125
|
+
- **No legal links.** Add privacy policy and terms of service links in the footer.
|
|
126
|
+
- **No "back" navigation.** Dead ends in user flows. Every page needs a way back.
|
|
127
|
+
- **No custom 404 page.** Design a helpful, branded "page not found" experience.
|
|
128
|
+
- **No form validation.** Add client-side validation for emails, required fields, and format checks.
|
|
129
|
+
- **No "skip to content" link.** Essential for keyboard users. Add a hidden skip-link.
|
|
130
|
+
- **No cookie consent.** If required by jurisdiction, add a compliant consent banner.
|
|
131
|
+
|
|
132
|
+
## Upgrade Techniques
|
|
133
|
+
|
|
134
|
+
When upgrading a project, pull from these high-impact techniques to replace generic patterns:
|
|
135
|
+
|
|
136
|
+
### Typography Upgrades
|
|
137
|
+
- **Variable font animation.** Interpolate weight or width on scroll or hover for text that feels alive.
|
|
138
|
+
- **Outlined-to-fill transitions.** Text starts as a stroke outline and fills with color on scroll entry or interaction.
|
|
139
|
+
- **Text mask reveals.** Large typography acting as a window to video or animated imagery behind it.
|
|
140
|
+
|
|
141
|
+
### Layout Upgrades
|
|
142
|
+
- **Broken grid / asymmetry.** Elements that deliberately ignore column structure — overlapping, bleeding off-screen, or offset with calculated randomness.
|
|
143
|
+
- **Whitespace maximization.** Aggressive use of negative space to force focus on a single element.
|
|
144
|
+
- **Parallax card stacks.** Sections that stick and physically stack over each other during scroll.
|
|
145
|
+
- **Split-screen scroll.** Two halves of the screen sliding in opposite directions.
|
|
146
|
+
|
|
147
|
+
### Motion Upgrades
|
|
148
|
+
- **Smooth scroll with inertia.** Decouple scrolling from browser defaults for a heavier, cinematic feel.
|
|
149
|
+
- **Staggered entry.** Elements cascade in with slight delays, combining Y-axis translation with opacity fade. Never mount everything at once.
|
|
150
|
+
- **Spring physics.** Replace linear easing with spring-based motion for a natural, weighty feel on all interactive elements.
|
|
151
|
+
- **Scroll-driven reveals.** Content entering through expanding masks, wipes, or draw-on SVG paths tied to scroll progress.
|
|
152
|
+
|
|
153
|
+
### Surface Upgrades
|
|
154
|
+
- **True glassmorphism.** Go beyond `backdrop-filter: blur`. Add a 1px inner border and a subtle inner shadow to simulate edge refraction.
|
|
155
|
+
- **Spotlight borders.** Card borders that illuminate dynamically under the cursor.
|
|
156
|
+
- **Grain and noise overlays.** A fixed, pointer-events-none overlay with subtle noise to break digital flatness.
|
|
157
|
+
- **Colored, tinted shadows.** Shadows that carry the hue of the background rather than using generic black.
|
|
158
|
+
|
|
159
|
+
## Fix Priority
|
|
160
|
+
|
|
161
|
+
Apply changes in this order for maximum visual impact with minimum risk:
|
|
162
|
+
|
|
163
|
+
1. **Font swap** — biggest instant improvement, lowest risk
|
|
164
|
+
2. **Color palette cleanup** — remove clashing or oversaturated colors
|
|
165
|
+
3. **Hover and active states** — makes the interface feel alive
|
|
166
|
+
4. **Layout and spacing** — proper grid, max-width, consistent padding
|
|
167
|
+
5. **Replace generic components** — swap cliche patterns for modern alternatives
|
|
168
|
+
6. **Add loading, empty, and error states** — makes it feel finished
|
|
169
|
+
7. **Polish typography scale and spacing** — the premium final touch
|
|
170
|
+
|
|
171
|
+
## Rules
|
|
172
|
+
|
|
173
|
+
- Work with the existing tech stack. Do not migrate frameworks or styling libraries.
|
|
174
|
+
- Do not break existing functionality. Test after every change.
|
|
175
|
+
- Before importing any new library, check the project's dependency file first.
|
|
176
|
+
- If the project uses Tailwind, check the version (v3 vs v4) before modifying config.
|
|
177
|
+
- If the project has no framework, use vanilla CSS.
|
|
178
|
+
- Keep changes reviewable and focused. Small, targeted improvements over big rewrites.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: refactoring-strategy
|
|
3
|
+
description: Refactor code incrementally with strangle pattern, feature flags, and safety nets
|
|
4
|
+
category: Software Development
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Refactoring Strategy
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
Refactor code incrementally with strangle pattern, feature flags, and safety nets. This skill helps you apply structured, repeatable methods for consistent results.
|
|
11
|
+
|
|
12
|
+
## When to Use
|
|
13
|
+
- When you need to apply refactoring strategy best practices
|
|
14
|
+
- When establishing processes or standards for your workflow
|
|
15
|
+
- When training team members on refactoring strategy
|
|
16
|
+
- When automating or optimizing refactoring strategy tasks
|
|
17
|
+
|
|
18
|
+
## Instructions
|
|
19
|
+
1. **Assess**: Evaluate the current state, requirements, and constraints
|
|
20
|
+
2. **Plan**: Define the approach, steps, and success criteria
|
|
21
|
+
3. **Execute**: Follow the established patterns and best practices
|
|
22
|
+
4. **Verify**: Check results against expected outcomes and quality standards
|
|
23
|
+
5. **Iterate**: Refine based on feedback and lessons learned
|
|
24
|
+
|
|
25
|
+
## Examples
|
|
26
|
+
```
|
|
27
|
+
User: Help me apply refactoring strategy for my current project
|
|
28
|
+
Assistant: I'll help you apply refactoring strategy step by step...
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Related Skills
|
|
32
|
+
- Use with `workflow` tool for orchestrated execution
|
|
33
|
+
- Combine with `task` tool for delegated processing
|
|
34
|
+
- Reference `system-prompt` for system-level integration
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: regex-mastery
|
|
3
|
+
description: Write and debug regular expressions for pattern matching, extraction, and validation
|
|
4
|
+
category: Intelligence & General
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Regex Mastery
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
Write and debug regular expressions for pattern matching, extraction, and validation. This skill helps you apply structured, repeatable methods for consistent results.
|
|
11
|
+
|
|
12
|
+
## When to Use
|
|
13
|
+
- When you need to apply regex mastery best practices
|
|
14
|
+
- When establishing processes or standards for your workflow
|
|
15
|
+
- When training team members on regex mastery
|
|
16
|
+
- When automating or optimizing regex mastery tasks
|
|
17
|
+
|
|
18
|
+
## Instructions
|
|
19
|
+
1. **Assess**: Evaluate the current state, requirements, and constraints
|
|
20
|
+
2. **Plan**: Define the approach, steps, and success criteria
|
|
21
|
+
3. **Execute**: Follow the established patterns and best practices
|
|
22
|
+
4. **Verify**: Check results against expected outcomes and quality standards
|
|
23
|
+
5. **Iterate**: Refine based on feedback and lessons learned
|
|
24
|
+
|
|
25
|
+
## Examples
|
|
26
|
+
```
|
|
27
|
+
User: Help me apply regex mastery for my current project
|
|
28
|
+
Assistant: I'll help you apply regex mastery step by step...
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Related Skills
|
|
32
|
+
- Use with `workflow` tool for orchestrated execution
|
|
33
|
+
- Combine with `task` tool for delegated processing
|
|
34
|
+
- Reference `system-prompt` for system-level integration
|
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: remotion-best-practices
|
|
3
|
+
description: Best practices for Remotion - Video creation in React
|
|
4
|
+
metadata:
|
|
5
|
+
tags: remotion, video, react, animation, composition
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## When to use
|
|
9
|
+
|
|
10
|
+
Use this skills whenever you are dealing with Remotion code to obtain the domain-specific knowledge.
|
|
11
|
+
|
|
12
|
+
## New project setup
|
|
13
|
+
|
|
14
|
+
When in an empty folder or workspace with no existing Remotion project, scaffold one using:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npx create-video@latest --yes --blank --no-tailwind my-video
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Replace `my-video` with a suitable project name.
|
|
21
|
+
|
|
22
|
+
## Designing a video
|
|
23
|
+
|
|
24
|
+
Before designing visual scenes, layouts, promos, motion graphics, or text-heavy videos, load [rules/video-layout.md](rules/video-layout.md) for video-first layout and text sizing guidance.
|
|
25
|
+
|
|
26
|
+
Animate properties using `useCurrentFrame()` and `interpolate()`. Prefer `interpolate()` over `spring()` unless physics-based motion is explicitly needed. Use `Easing.bezier()` to customize timing, including jumpy or overshooting motion.
|
|
27
|
+
|
|
28
|
+
For animations that should be editable in Remotion Studio, keep the `interpolate()` call inline in the `style` prop and use individual CSS transform properties (`scale`, `translate`, `rotate`) instead of composing a `transform` string.
|
|
29
|
+
|
|
30
|
+
```tsx
|
|
31
|
+
import { useCurrentFrame, Easing, interpolate, useVideoConfig } from "remotion";
|
|
32
|
+
|
|
33
|
+
export const FadeIn = () => {
|
|
34
|
+
const frame = useCurrentFrame();
|
|
35
|
+
const { fps } = useVideoConfig();
|
|
36
|
+
|
|
37
|
+
const opacity = interpolate(frame, [0, 2 * fps], [0, 1], {
|
|
38
|
+
extrapolateRight: "clamp",
|
|
39
|
+
extrapolateLeft: "clamp",
|
|
40
|
+
easing: Easing.bezier(0.16, 1, 0.3, 1),
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
return <div style={{ opacity }}>Hello World!</div>;
|
|
44
|
+
};
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Prefer:
|
|
48
|
+
|
|
49
|
+
```tsx
|
|
50
|
+
style={{
|
|
51
|
+
scale: interpolate(frame, [0, 100], [0, 1]),
|
|
52
|
+
translate: interpolate(frame, [0, 100], ["0px 0px", "100px 100px"]),
|
|
53
|
+
rotate: interpolate(frame, [0, 100], ["20deg", "90deg"]),
|
|
54
|
+
}}
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Over:
|
|
58
|
+
|
|
59
|
+
```tsx
|
|
60
|
+
const scale = interpolate(frame, [0, 100], [0, 1]);
|
|
61
|
+
|
|
62
|
+
style={{
|
|
63
|
+
transform: `scale(${scale})`,
|
|
64
|
+
}}
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
CSS transitions or animations are FORBIDDEN - they will not render correctly.
|
|
68
|
+
Tailwind animation class names are FORBIDDEN - they will not render correctly.
|
|
69
|
+
|
|
70
|
+
Place assets in the `public/` folder at your project root.
|
|
71
|
+
|
|
72
|
+
Use `staticFile()` to reference files from the `public/` folder.
|
|
73
|
+
|
|
74
|
+
Add images using the `<Img>` component:
|
|
75
|
+
|
|
76
|
+
```tsx
|
|
77
|
+
import { Img, staticFile } from "remotion";
|
|
78
|
+
|
|
79
|
+
export const MyComposition = () => {
|
|
80
|
+
return <Img src={staticFile("logo.png")} style={{ width: 100, height: 100 }} />;
|
|
81
|
+
};
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Add videos using the `<Video>` component from `@remotion/media`:
|
|
85
|
+
|
|
86
|
+
```tsx
|
|
87
|
+
import { Video } from "@remotion/media";
|
|
88
|
+
import { staticFile } from "remotion";
|
|
89
|
+
|
|
90
|
+
export const MyComposition = () => {
|
|
91
|
+
return <Video src={staticFile("video.mp4")} style={{ opacity: 0.5 }} />;
|
|
92
|
+
};
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Add audio using the `<Audio>` component from `@remotion/media`:
|
|
96
|
+
|
|
97
|
+
```tsx
|
|
98
|
+
import { Audio } from "@remotion/media";
|
|
99
|
+
import { staticFile } from "remotion";
|
|
100
|
+
|
|
101
|
+
export const MyComposition = () => {
|
|
102
|
+
return <Audio src={staticFile("audio.mp3")} />;
|
|
103
|
+
};
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Assets can be also referenced as remote URLs:
|
|
107
|
+
|
|
108
|
+
```tsx
|
|
109
|
+
import { Video } from "@remotion/media";
|
|
110
|
+
|
|
111
|
+
export const MyComposition = () => {
|
|
112
|
+
return <Video src="https://remotion.media/video.mp4" />
|
|
113
|
+
};
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
To delay content wrap it in `<Sequence>` and use `from`.
|
|
117
|
+
To limit the duration of an element, use `durationInFrames` of `<Sequence>`.
|
|
118
|
+
`<Sequence>` by default is an absolute fill. For inline content, use `layout="none"`.
|
|
119
|
+
|
|
120
|
+
```tsx
|
|
121
|
+
import { Sequence } from "remotion";
|
|
122
|
+
|
|
123
|
+
export const Title = () => {
|
|
124
|
+
const frame = useCurrentFrame();
|
|
125
|
+
const { fps } = useVideoConfig();
|
|
126
|
+
|
|
127
|
+
const opacity = interpolate(frame, [0, 2 * fps], [0, 1], {
|
|
128
|
+
extrapolateRight: "clamp",
|
|
129
|
+
extrapolateLeft: "clamp",
|
|
130
|
+
easing: Easing.bezier(0.16, 1, 0.3, 1),
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
return <div style={{ opacity }}>Title</div>;
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
export const Subtitle = () => {
|
|
137
|
+
return <div>Subtitle</div>;
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
const Main = () => {
|
|
141
|
+
const {fps} = useVideoConfig();
|
|
142
|
+
|
|
143
|
+
return (
|
|
144
|
+
<AbsoluteFill>
|
|
145
|
+
<Sequence>
|
|
146
|
+
<Background />
|
|
147
|
+
</Sequence>
|
|
148
|
+
<Sequence from={1 * fps} durationInFrames={2 * fps} layout="none">
|
|
149
|
+
<Title />
|
|
150
|
+
</Sequence>
|
|
151
|
+
<Sequence from={2 * fps} durationInFrames={2 * fps} layout="none">
|
|
152
|
+
<Subtitle />
|
|
153
|
+
</Sequence>
|
|
154
|
+
</AbsoluteFill>
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
The width, height, fps, and duration of a video is defined in `src/Root.tsx`:
|
|
160
|
+
|
|
161
|
+
```tsx
|
|
162
|
+
import { Composition } from "remotion";
|
|
163
|
+
import { MyComposition } from "./MyComposition";
|
|
164
|
+
|
|
165
|
+
export const RemotionRoot = () => {
|
|
166
|
+
return (
|
|
167
|
+
<Composition
|
|
168
|
+
id="MyComposition"
|
|
169
|
+
component={MyComposition}
|
|
170
|
+
durationInFrames={100}
|
|
171
|
+
fps={30}
|
|
172
|
+
width={1080}
|
|
173
|
+
height={1080}
|
|
174
|
+
/>
|
|
175
|
+
);
|
|
176
|
+
};
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
Metadata can also be calculated dynamically:
|
|
180
|
+
|
|
181
|
+
```tsx
|
|
182
|
+
import { Composition, CalculateMetadataFunction } from "remotion";
|
|
183
|
+
import { MyComposition, MyCompositionProps } from "./MyComposition";
|
|
184
|
+
|
|
185
|
+
const calculateMetadata: CalculateMetadataFunction<
|
|
186
|
+
MyCompositionProps
|
|
187
|
+
> = async ({ props, abortSignal }) => {
|
|
188
|
+
const data = await fetch(`https://api.example.com/video/${props.videoId}`, {
|
|
189
|
+
signal: abortSignal,
|
|
190
|
+
}).then((res) => res.json());
|
|
191
|
+
|
|
192
|
+
return {
|
|
193
|
+
durationInFrames: Math.ceil(data.duration * 30),
|
|
194
|
+
props: {
|
|
195
|
+
...props,
|
|
196
|
+
videoUrl: data.url,
|
|
197
|
+
},
|
|
198
|
+
width: 1080,
|
|
199
|
+
height: 1080,
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
export const RemotionRoot = () => {
|
|
204
|
+
return (
|
|
205
|
+
<Composition
|
|
206
|
+
id="MyComposition"
|
|
207
|
+
component={MyComposition}
|
|
208
|
+
fps={30}
|
|
209
|
+
width={1080}
|
|
210
|
+
height={1080}
|
|
211
|
+
defaultProps={{ videoId: "abc123" }}
|
|
212
|
+
calculateMetadata={calculateMetadata}
|
|
213
|
+
/>
|
|
214
|
+
);
|
|
215
|
+
};
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
## Starting preview
|
|
219
|
+
|
|
220
|
+
Start the Remotion Studio to preview a video:
|
|
221
|
+
|
|
222
|
+
```bash
|
|
223
|
+
npx remotion studio
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
## Optional: one-frame render check
|
|
227
|
+
|
|
228
|
+
You can render a single frame with the CLI to sanity-check layout, colors, or timing.
|
|
229
|
+
Skip it for trivial edits, pure refactors, or when you already have enough confidence from Studio or prior renders.
|
|
230
|
+
|
|
231
|
+
```bash
|
|
232
|
+
npx remotion still [composition-id] --scale=0.25 --frame=30
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
At 30 fps, `--frame=30` is the one-second mark (`--frame` is zero-based).
|
|
236
|
+
|
|
237
|
+
## Captions
|
|
238
|
+
|
|
239
|
+
When dealing with captions or subtitles, load the [./rules/subtitles.md](./rules/subtitles.md) file for more information.
|
|
240
|
+
|
|
241
|
+
## Using FFmpeg
|
|
242
|
+
|
|
243
|
+
For some video operations, such as trimming videos or detecting silence, FFmpeg should be used. Load the [./rules/ffmpeg.md](./rules/ffmpeg.md) file for more information.
|
|
244
|
+
|
|
245
|
+
## Silence detection
|
|
246
|
+
|
|
247
|
+
When needing to detect and trim silent segments from video or audio files, load the [./rules/silence-detection.md](./rules/silence-detection.md) file.
|
|
248
|
+
|
|
249
|
+
## Audio visualization
|
|
250
|
+
|
|
251
|
+
When needing to visualize audio (spectrum bars, waveforms, bass-reactive effects), load the [./rules/audio-visualization.md](./rules/audio-visualization.md) file for more information.
|
|
252
|
+
|
|
253
|
+
## Sound effects
|
|
254
|
+
|
|
255
|
+
When needing to use sound effects, load the [./rules/sfx.md](./rules/sfx.md) file for more information.
|
|
256
|
+
|
|
257
|
+
## Visual and pixel effects
|
|
258
|
+
|
|
259
|
+
When creating a visual effect, prefer: 1. normal Remotion/HTML/CSS/SVG/filter/blend/mask animation, 2. a listed effect via [rules/effects.md](rules/effects.md), including on HTML rendered through `<HtmlInCanvas>`, 3. a custom `createEffect()` via [rules/effects.md](rules/effects.md) when the user asks for a reusable/project-specific effect, 4. custom `<HtmlInCanvas onPaint>` via [rules/html-in-canvas.md](rules/html-in-canvas.md) only if no effect fits.
|
|
260
|
+
|
|
261
|
+
For light leak overlays, see [rules/light-leaks.md](rules/light-leaks.md). Docs: https://www.remotion.dev/docs/effects
|
|
262
|
+
|
|
263
|
+
Available effects: `brightness()`, `contrast()`, `colorKey()`, `duotone()`, `grayscale()`, `hue()`, `invert()`, `saturation()`, `tint()`, `thermalVision()`, `blur()`, `linearProgressiveBlur()`, `zoomBlur()`, `dropShadow()`, `glow()`, `lightTrail()`, `evolve()`, `mirror()`, `scale()`, `uvTranslate()`, `xyTranslate()`, `barrelDistortion()`, `chromaticAberration()`, `fisheye()`, `cornerPin()`, `wave()`, `burlap()`, `emboss()`, `dotGrid()`, `halftone()`, `noise()`, `noiseDisplacement()`, `pattern()`, `pixelate()`, `pixelDissolve()`, `scanlines()`, `speckle()`, `shine()`, `shrinkwrap()`, `vignette()`, `contourLines()`, `checkerboard()`, `halftoneLinearGradient()`, `gridlines()`, `whiteNoise()`, `tvSignalOff()`, `lines()`, `rings()`, `waves()`, `zigzag()`, `lightLeak()`, `starburst()`.
|
|
264
|
+
|
|
265
|
+
## 3D content
|
|
266
|
+
|
|
267
|
+
See [rules/3d.md](rules/3d.md) for 3D content in Remotion using Three.js and React Three Fiber.
|
|
268
|
+
|
|
269
|
+
## Advanced audio
|
|
270
|
+
|
|
271
|
+
See [rules/audio.md](rules/audio.md) for advanced audio features like trimming, volume, speed, pitch.
|
|
272
|
+
|
|
273
|
+
## Dynamic duration, dimensions and data
|
|
274
|
+
|
|
275
|
+
See [rules/calculate-metadata.md](rules/calculate-metadata.md) for dynamically set composition duration, dimensions, and props.
|
|
276
|
+
|
|
277
|
+
## Advanced compositions
|
|
278
|
+
|
|
279
|
+
See [rules/compositions.md](rules/compositions.md) for how to define stills, folders, default props and for how to nest compositions.
|
|
280
|
+
|
|
281
|
+
## Google Fonts
|
|
282
|
+
|
|
283
|
+
Is the recommended way to load fonts in Remotion. See [rules/google-fonts.md](rules/google-fonts.md) for how to load Google Fonts.
|
|
284
|
+
|
|
285
|
+
## Local fonts
|
|
286
|
+
|
|
287
|
+
See [rules/local-fonts.md](rules/local-fonts.md) for how to load local fonts.
|
|
288
|
+
|
|
289
|
+
## Getting audio duration
|
|
290
|
+
|
|
291
|
+
See [rules/get-audio-duration.md](rules/get-audio-duration.md) for getting the duration of an audio file in seconds with Mediabunny.
|
|
292
|
+
|
|
293
|
+
## Getting video dimensions
|
|
294
|
+
|
|
295
|
+
See [rules/get-video-dimensions.md](rules/get-video-dimensions.md) for getting the width and height of a video file with Mediabunny.
|
|
296
|
+
|
|
297
|
+
## Getting video duration
|
|
298
|
+
|
|
299
|
+
See [rules/get-video-duration.md](rules/get-video-duration.md) for getting the duration of a video file in seconds with Mediabunny.
|
|
300
|
+
|
|
301
|
+
## GIFs
|
|
302
|
+
|
|
303
|
+
See [rules/gifs.md](rules/gifs.md) for how to display GIFs synchronized with Remotion's timeline.
|
|
304
|
+
|
|
305
|
+
## Advanced Images
|
|
306
|
+
|
|
307
|
+
See [rules/images.md](rules/images.md) for sizing and positioning images, dynamic image paths, and getting image dimensions.
|
|
308
|
+
|
|
309
|
+
## Lottie animations
|
|
310
|
+
|
|
311
|
+
See [rules/lottie.md](rules/lottie.md) for embedding Lottie animations in Remotion.
|
|
312
|
+
|
|
313
|
+
## Measuring DOM nodes
|
|
314
|
+
|
|
315
|
+
See [rules/measuring-dom-nodes.md](rules/measuring-dom-nodes.md) for measuring DOM element dimensions in Remotion.
|
|
316
|
+
|
|
317
|
+
## Measuring text
|
|
318
|
+
|
|
319
|
+
See [rules/measuring-text.md](rules/measuring-text.md) for measuring text dimensions, fitting text to containers, and checking overflow.
|
|
320
|
+
|
|
321
|
+
## Advanced sequencing
|
|
322
|
+
|
|
323
|
+
See [rules/sequencing.md](rules/sequencing.md) for more sequencing patterns - delay, trim, limit duration of items.
|
|
324
|
+
|
|
325
|
+
## TailwindCSS
|
|
326
|
+
|
|
327
|
+
See [rules/tailwind.md](rules/tailwind.md) for using TailwindCSS in Remotion.
|
|
328
|
+
|
|
329
|
+
## Text animations
|
|
330
|
+
|
|
331
|
+
See [rules/text-animations.md](rules/text-animations.md) for typography and text animation patterns.
|
|
332
|
+
|
|
333
|
+
## Advanced timing
|
|
334
|
+
|
|
335
|
+
See [rules/timing.md](rules/timing.md) for advanced timing with `interpolate` and Bézier easing, and springs.
|
|
336
|
+
|
|
337
|
+
## Transitions
|
|
338
|
+
|
|
339
|
+
See [rules/transitions.md](rules/transitions.md) for scene transition patterns.
|
|
340
|
+
|
|
341
|
+
## Transparent videos
|
|
342
|
+
|
|
343
|
+
See [rules/transparent-videos.md](rules/transparent-videos.md) for rendering out a video with transparency.
|
|
344
|
+
|
|
345
|
+
## Trimming
|
|
346
|
+
|
|
347
|
+
See [rules/trimming.md](rules/trimming.md) for trimming patterns - cutting the beginning or end of animations.
|
|
348
|
+
|
|
349
|
+
## Advanced Videos
|
|
350
|
+
|
|
351
|
+
See [rules/videos.md](rules/videos.md) for advanced knowledge about embedding videos - trimming, volume, speed, looping, pitch.
|
|
352
|
+
|
|
353
|
+
## Parameterized videos
|
|
354
|
+
|
|
355
|
+
See [rules/parameters.md](rules/parameters.md) for making a composition parametrizable by adding a Zod schema.
|
|
356
|
+
|
|
357
|
+
## Maps
|
|
358
|
+
|
|
359
|
+
For simple maps with little flyovers, consider using static map images.
|
|
360
|
+
For complex maps with animated routes or flyovers, load the maps rule: [rules/maplibre.md](rules/maplibre.md)
|
|
361
|
+
|
|
362
|
+
## Voiceover
|
|
363
|
+
|
|
364
|
+
See [rules/voiceover.md](rules/voiceover.md) for adding AI-generated voiceover to Remotion compositions using ElevenLabs TTS.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: report-generation
|
|
3
|
+
description: Generate reports with data aggregation, narrative writing, and PDF/HTML output
|
|
4
|
+
category: Intelligence & General
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Report Generation
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
Generate reports with data aggregation, narrative writing, and PDF/HTML output. This skill helps you apply structured, repeatable methods for consistent results.
|
|
11
|
+
|
|
12
|
+
## When to Use
|
|
13
|
+
- When you need to apply report generation best practices
|
|
14
|
+
- When establishing processes or standards for your workflow
|
|
15
|
+
- When training team members on report generation
|
|
16
|
+
- When automating or optimizing report generation tasks
|
|
17
|
+
|
|
18
|
+
## Instructions
|
|
19
|
+
1. **Assess**: Evaluate the current state, requirements, and constraints
|
|
20
|
+
2. **Plan**: Define the approach, steps, and success criteria
|
|
21
|
+
3. **Execute**: Follow the established patterns and best practices
|
|
22
|
+
4. **Verify**: Check results against expected outcomes and quality standards
|
|
23
|
+
5. **Iterate**: Refine based on feedback and lessons learned
|
|
24
|
+
|
|
25
|
+
## Examples
|
|
26
|
+
```
|
|
27
|
+
User: Help me apply report generation for my current project
|
|
28
|
+
Assistant: I'll help you apply report generation step by step...
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Related Skills
|
|
32
|
+
- Use with `workflow` tool for orchestrated execution
|
|
33
|
+
- Combine with `task` tool for delegated processing
|
|
34
|
+
- Reference `system-prompt` for system-level integration
|