🎥 Make videos programmatically with React
Link public skills for agents (#9126)
Jonny Burger40e110ff5124
diff --git a/.agents/skills/mediabunny b/.agents/skills/mediabunnynew file mode 120000index 0000000000..444b3b565f--- /dev/null+++ b/.agents/skills/mediabunny@@ -0,0 +1 @@+../../packages/skills/skills/mediabunny\ No newline at end of filediff --git a/.agents/skills/remotion-best-practices b/.agents/skills/remotion-best-practicesnew file mode 120000index 0000000000..c03ca760af--- /dev/null+++ b/.agents/skills/remotion-best-practices@@ -0,0 +1 @@+../../packages/skills/skills/remotion-best-practices\ No newline at end of filediff --git a/.agents/skills/remotion-captions b/.agents/skills/remotion-captionsnew file mode 120000index 0000000000..1c2463f855--- /dev/null+++ b/.agents/skills/remotion-captions@@ -0,0 +1 @@+../../packages/skills/skills/remotion-captions\ No newline at end of filediff --git a/.agents/skills/remotion-create b/.agents/skills/remotion-createnew file mode 120000index 0000000000..376a410761--- /dev/null+++ b/.agents/skills/remotion-create@@ -0,0 +1 @@+../../packages/skills/skills/remotion-create\ No newline at end of filediff --git a/.agents/skills/remotion-docs b/.agents/skills/remotion-docsnew file mode 120000index 0000000000..9675f03446--- /dev/null+++ b/.agents/skills/remotion-docs@@ -0,0 +1 @@+../../packages/skills/skills/remotion-docs\ No newline at end of filediff --git a/.agents/skills/remotion-interactivity b/.agents/skills/remotion-interactivitynew file mode 120000index 0000000000..30b5450479--- /dev/null+++ b/.agents/skills/remotion-interactivity@@ -0,0 +1 @@+../../packages/skills/skills/remotion-interactivity\ No newline at end of filediff --git a/.agents/skills/remotion-markup b/.agents/skills/remotion-markupnew file mode 120000index 0000000000..d868345414--- /dev/null+++ b/.agents/skills/remotion-markup@@ -0,0 +1 @@+../../packages/skills/skills/remotion-markup\ No newline at end of filediff --git a/.agents/skills/remotion-render b/.agents/skills/remotion-rendernew file mode 120000index 0000000000..7dcbac4062--- /dev/null+++ b/.agents/skills/remotion-render@@ -0,0 +1 @@+../../packages/skills/skills/remotion-render\ No newline at end of filediff --git a/.agents/skills/remotion-saas b/.agents/skills/remotion-saasnew file mode 120000index 0000000000..a256419d83--- /dev/null+++ b/.agents/skills/remotion-saas@@ -0,0 +1 @@+../../packages/skills/skills/remotion-saas\ No newline at end of filediff --git a/.agents/skills/skill-locations/SKILL.md b/.agents/skills/skill-locations/SKILL.mdindex d37ad213eb..b3400bcba8 100644--- a/.agents/skills/skill-locations/SKILL.md+++ b/.agents/skills/skill-locations/SKILL.md@@ -8,5 +8,8 @@ description: Document Remotion skill placement. Use when adding, moving, or editPlace internal agent-only skills in `.agents/skills/<skill-name>/SKILL.md`.Place public, redistributable skills in `packages/skills/skills/<skill-name>/SKILL.md`.+Expose every public skill to agents with a symlink at `.agents/skills/<skill-name>`.+Run `bun run syncskills` after adding a public skill; CI verifies the symlinks with+`bun run checkskills`.When in doubt, ask whether the skill is internal or public before moving it between these roots.diff --git a/package.json b/package.jsonindex 43283fdbd7..0090c7e806 100644--- a/package.json+++ b/package.json@@ -45,8 +45,8 @@"release": "bun publish.ts && turbo run publishprivate --concurrency=1 && git push --tags && git push","publishtemplates": "cd packages/it-tests && bun src/templates/publish.ts","playground": "bun packages/skills-evals/src/playground.ts",- "checkskills": "bun packages/skills/scripts/sync-best-practices.ts --check && bun run validateskills",- "syncskills": "bun packages/skills/scripts/sync-best-practices.ts",+ "checkskills": "bun packages/skills/scripts/sync-agent-skills.ts --check && bun packages/skills/scripts/sync-best-practices.ts --check && bun run validateskills",+ "syncskills": "bun packages/skills/scripts/sync-agent-skills.ts && bun packages/skills/scripts/sync-best-practices.ts","validateskills": "bun packages/skills/scripts/validate-links.ts","cleantypes": "rm -rf packages/**/tsconfig.tsbuildinfo && rm -f packages/tsconfig.tsbuildinfo","clean": "turbo run clean && rm -rf packages/**/dist && rm -rf .cache && rm -rf packages/**/tsconfig.tsbuildinfo && rm -f packages/tsconfig.tsbuildinfo && rm -rf packages/**/.turbo && rm -rf .turbo",diff --git a/packages/skills/scripts/sync-agent-skills.ts b/packages/skills/scripts/sync-agent-skills.tsnew file mode 100644index 0000000000..0cb1642f90--- /dev/null+++ b/packages/skills/scripts/sync-agent-skills.ts@@ -0,0 +1,58 @@+import {lstatSync, readdirSync, readlinkSync, symlinkSync} from 'node:fs';+import path from 'node:path';++const repoRoot = process.env.SKILLS_REPO_ROOT+ ? path.resolve(process.env.SKILLS_REPO_ROOT)+ : path.resolve(__dirname, '..', '..', '..');+const skillsRoot = path.join(repoRoot, 'packages', 'skills', 'skills');+const agentsSkillsRoot = path.join(repoRoot, '.agents', 'skills');+const checkOnly = process.argv.includes('--check');+const issues: string[] = [];++const skillFolders = readdirSync(skillsRoot, {withFileTypes: true})+ .filter((entry) => entry.isDirectory() || entry.isSymbolicLink())+ .map((entry) => entry.name)+ .sort();++for (const skillFolder of skillFolders) {+ const linkedPath = path.join(agentsSkillsRoot, skillFolder);+ const expectedTarget = `../../packages/skills/skills/${skillFolder}`;+ const stats = lstatSync(linkedPath, {throwIfNoEntry: false});++ if (!stats) {+ const message = `Missing ${path.relative(repoRoot, linkedPath)} -> ${expectedTarget}`;+ if (checkOnly) {+ issues.push(message);+ } else {+ symlinkSync(expectedTarget, linkedPath, 'dir');+ console.log(+ `Created ${path.relative(repoRoot, linkedPath)} -> ${expectedTarget}`,+ );+ }+ continue;+ }++ if (!stats.isSymbolicLink()) {+ issues.push(+ `${path.relative(repoRoot, linkedPath)} exists but is not a symlink`,+ );+ continue;+ }++ const actualTarget = readlinkSync(linkedPath);+ if (actualTarget !== expectedTarget) {+ issues.push(+ `${path.relative(repoRoot, linkedPath)} points to ${actualTarget}, expected ${expectedTarget}`,+ );+ }+}++if (issues.length > 0) {+ console.error('Public skills are not linked into .agents/skills:');+ for (const issue of issues) {+ console.error(`- ${issue}`);+ }+ process.exit(1);+}++console.log('All public skills are linked into .agents/skills.');