Terminal
Terminal/Skill
Imports a Builder.io prototype into the current project by running the Builder dev-tools CLI.
By Builder.io
Works with
npx skills add builderio/builder-agent-skills --skill import-prototypeImport a Builder.io prototype into the current project using the Builder dev-tools CLI.
Ask the user for the Builder.io prototype URL if they haven't provided one. It must match this pattern:
https://builder.io/app/projects/...
Validate that the URL starts with https://builder.io/app/projects/. If the user provides a different URL format, tell them the URL must be of the form https://builder.io/app/projects/... and ask them to provide the correct one.
If the user's intention for what to import from the prototype is unclear or unspecified, ask them:
"What would you like to import from this prototype? For example: the full layout, specific components, styles, or something else?"
Use their answer as the {prompt} value. If the user's intent is already clear from context (e.g. "import the hero section" or "import the full page design"), use that directly without asking again.
Run the following command using the Bash tool:
npx --yes @builder.io/dev-tools@latest code --prototype "{builderUrl}" --prompt "{prompt}" --accept
Replace {builderUrl} with the validated Builder.io URL and {prompt} with the user's stated intent.
IMPORTANT: DO NOT KILL THE TERMINAL. THIS PROCESS MAY TAKE A WHILE TO COMPLETE (MAYBE MINUTES). WAIT FOR IT TO FINISH ON ITS OWN.
https://builder.io/app/projects/.@builder.io/dev-tools. No installation step is needed.