🎥 Make videos programmatically with React
import {makeHyperlink} from './hyperlinks/make-link';
import {selectAsync} from './prompts';
export type SkillsInstallation = 'recommended' | 'choose';
export const askSkills = async (): Promise<SkillsInstallation | null> => {
const link = makeHyperlink({
text: 'agent skills',
url: 'https://remotion.dev/docs/ai/skills',
fallback: 'agent skills',
});
return (await selectAsync({
message: `Add ${link}?`,
initial: 0,
choices: [
{
title: 'Install all skills',
description: 'Installs every Remotion skill',
value: 'recommended',
},
{
title: 'Choose individual skills',
description: 'Select the skills that fit your project',
value: 'choose',
},
{
title: 'Skip skill installation',
value: null,
},
],
})) as SkillsInstallation | null;
};