CLI and Agent skill for interacting with Framer projects via the Framer Server API.
npx skills add framer/daltonThen, simply open your preferred agent, ask to interact with your Framer project and the agent will handle the rest.
See skills/framer/SKILL.md for full CLI usage and API documentation.
Build and symlink to PATH + install skill locally:
make install-devUse this when you change something in the server API implementation.
To make the CLI use the local instance of FramerStudio, do the following:
-
Run
make devin FramerStudio -
Clone
FramerHeadlessAPI, and launch it against the local tunnel: instructions -
Make sure you bootsrap (see the Boostrap section)
-
When interacting with your agent, run it in this repo, and tell it to load the
framer-localskill instead offramer. (Currently configured only for Claude Code.)Alternatively, tell yor agent something like this:
Use the framer skill, but use `FRAMER_HEADLESS_SERVER_URL=ws://localhost:8080/channel/headless-plugin framer` (never with @latest) for all commands instead of `npx framer-dalton`(
FRAMER_HEADLESS_SERVER_URLand other env variables are documented inframer-api-devkit.)
Use this when you change something in the server API interface (e.g. add new API methods).
To make the CLI aware of the updated methods, you need to update the framer-api package and regenerate the types:
- Publish the package with your changes: either make a new PR (a bot will post an
yarn add https://pkg.pr.new/...command in a comment), or publish it to a local registry like Verdaccio. - Install the package locally:
npm install ... - Regenerate types:
make generate-types
make uninstall-dev