@framer/agent
v0.0.31
Published
CLI and agent skills for interacting with Framer projects via the Framer Server API.
Keywords
Readme
Framer Agent CLI
CLI and agent skills for interacting with Framer projects via the Framer Server API.
Installation
Install or refresh the globally available skills:
npx @framer/agent@latest setupThat installs skills into ~/.agents/skills and ~/.claude/skills.
How It Works
The CLI and the installed skills are meant to work together. There are three skills:
framer- the base meta skill that explains setup, project selection, and session creation.framer-code-components- explains specific prompts for how to write code components and provides examples.framer-project-<project id>- a dynamically-created skill for interacting with a specific project.
- Running
npx @framer/agent@latest setupwill install the baseframerandframer-code-componentsskills. - The frontmatter of
framer-code-componentstells agents to always loadframerand the generated project skill first. - The frontmatter of
framertells agents to runnpx @framer/agent@latest setupBEFORE loading the skill. This command will auto-update the cli and update the skill files. - Creating a new session for a project will create a
framer-project-<project id>file. This file contains the latest agent system prompt fromframer.agent.getSystemPromptand the latest project context fromframer.agent.getContext. Agents must load this project-specific skill immediately after creating a session before doing any connected-project work.
Local Development
See the CONTRIBUTING.md file in this repository for local development instructions.
