Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Create a minimal working Framer example. Use when starting a new Framer integration, testing your setup, or learning basic Framer API patterns. Trigger with phrases like "framer hello world", "framer example", "framer quick start", "simple framer code".
.claude/skills/jeremylongshore-framer-hello-world/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 11% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 18% | 0% |
| case-10 | ✗→✓ | ▲ Improved | -1% | 0% |
| case-12 | ✗→✓ | ▲ Improved | 7% | 0% |
| case-13 | ✗→✓ | ▲ Improved | 12% | 0% |
Build a minimal Framer plugin that inserts a styled text layer onto the canvas, and a code component that renders inside Framer sites. Both use the framer-plugin SDK which provides the framer global for editor interaction.
framer-install-auth setupnpm run dev)tsx// src/App.tsx — Plugin UI that runs inside Framer editor import { framer } from 'framer-plugin'; framer.showUI({ width: 300, height: 200, title: 'Hello World Plugin' }); export function App() { const insertText = async () => { await framer.addText('Hello from my plugin!', { position: { x: 100, y: 100 }, style: { fontSize: 24, color: '#333' }, }); framer.notify('Text inserted on canvas!'); }; const insertImage = async () => { await framer.addImage({ url: 'https://picsum.photos/400/300', position: { x: 100, y: 200 }, }); }; return ( <div style={{ padding: 16, display: 'flex', flexDirection: 'column', gap: 8 }}> <h2>Hello World</h2> <button onClick={insertText}>Insert Text</button> <button onClick={insertImage}>Insert Image</button> </div> ); }
tsx// Code component — renders inside Framer sites (not a plugin) // Create via: Framer editor > Assets > Code > New Component import { addPropertyControls, ControlType } from 'framer'; interface Props { text: string; color: string; } export default function HelloComponent({ text, color }: Props) { return ( <div style={{ display: 'flex', alignItems: 'center', justifyContent: 'center', height: '100%', fontSize: 24, fontWeight: 600, color, background: 'linear-gradient(135deg, #667eea 0%, #764ba2 100%)', borderRadius: 12, padding: 20, }}> {text} </div> ); } addPropertyControls(HelloComponent, { text: { type: ControlType.String, title: 'Text', defaultValue: 'Hello Framer!' }, color: { type: ControlType.Color, title: 'Color', defaultValue: '#ffffff' }, });
tsx// Code override — modifies existing layer behavior // Create via: Framer editor > Assets > Code > New Override import { Override } from 'framer'; export function FadeInOnScroll(): Override { return { initial: { opacity: 0, y: 20 }, whileInView: { opacity: 1, y: 0 }, transition: { duration: 0.6, ease: 'easeOut' }, viewport: { once: true }, }; } export function HoverScale(): Override { return { whileHover: { scale: 1.05 }, whileTap: { scale: 0.95 }, transition: { type: 'spring', stiffness: 400, damping: 17 }, }; }
typescript// server-hello.ts — headless access without opening Framer import { framer } from 'framer-api'; async function main() { const client = await framer.connect({ apiKey: process.env.FRAMER_API_KEY!, siteId: process.env.FRAMER_SITE_ID!, }); // List all pages const pages = await client.getPages(); console.log('Pages:', pages.map(p => p.name)); // List CMS collections const collections = await client.getCollections(); for (const col of collections) { const items = await col.getItems(); console.log(`Collection "${col.name}": ${items.length} items`); } } main().catch(console.error);
| Error | Cause | Solution | |-------|-------|----------| | framer is not defined | Running outside editor | Plugin code only works in Framer editor iframe | | Component not rendering | Missing export default | Code components must use export default | | Override not applying | Wrong export name | Each override must be a named export function | | Server API timeout | Invalid site ID | Check FRAMER_SITE_ID in site settings |
Proceed to framer-local-dev-loop for development workflow.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 19,634 | 18,905 | -4% | 1 | 1 | 0% | 4,045 | 4,495 | +11% | 0 | 0 | — |
case-02 | pass→pass | 16,319 | 13,265 | -19% | 1 | 1 | 0% | 2,361 | 3,122 | +32% | 0 | 0 | — |
case-03 | fail→pass | 22,686 | 18,291 | -19% | 1 | 1 | 0% | 3,550 | 4,196 | +18% | 0 | 0 | — |
case-04 | pass→pass | 18,186 | 13,399 | -26% | 1 | 1 | 0% | 2,724 | 2,935 | +8% | 0 | 0 | — |
case-05 | pass→pass | 12,558 | 16,267 | +30% | 1 | 1 | 0% | 1,957 | 3,144 | +61% | 0 | 0 | — |
case-06 | pass→pass | 13,943 | 14,011 | +0% | 1 | 1 | 0% | 1,688 | 3,016 | +79% | 0 | 0 | — |
case-07 | pass→pass | 16,817 | 14,464 | -14% | 1 | 1 | 0% | 2,034 | 3,071 | +51% | 0 | 0 | — |
case-08 | pass→pass | 14,187 | 3,808 | -73% | 1 | 1 | 0% | 1,486 | 2,095 | +41% | 0 | 0 | — |
case-09 | pass→pass | 8,282 | 6,484 | -22% | 1 | 1 | 0% | 1,457 | 2,535 | +74% | 0 | 0 | — |
case-10 | fail→pass | 19,640 | 5,284 | -73% | 1 | 1 | 0% | 2,312 | 2,280 | -1% | 0 | 0 | — |
case-11 | pass→pass | 7,851 | 5,523 | -30% | 1 | 1 | 0% | 1,446 | 2,419 | +67% | 0 | 0 | — |
case-12 | fail→pass | 13,789 | 5,708 | -59% | 1 | 1 | 0% | 2,245 | 2,400 | +7% | 0 | 0 | — |
case-13 | fail→pass | 10,573 | 4,430 | -58% | 1 | 1 | 0% | 1,849 | 2,076 | +12% | 0 | 0 | — |
case-14 | pass→pass | 15,092 | 6,507 | -57% | 1 | 1 | 0% | 1,914 | 2,578 | +35% | 0 | 0 | — |
case-15 | pass→pass | 16,385 | 10,527 | -36% | 1 | 1 | 0% | 2,140 | 3,271 | +53% | 0 | 0 | — |
case-16 | pass→pass | 14,878 | 5,465 | -63% | 1 | 1 | 0% | 1,891 | 2,378 | +26% | 0 | 0 | — |
case-17 | fail→pass | 21,190 | 10,620 | -50% | 1 | 1 | 0% | 2,838 | 2,344 | -17% | 0 | 0 | — |
case-18 | fail→pass | 11,009 | 5,685 | -48% | 1 | 1 | 0% | 2,293 | 2,518 | +10% | 0 | 0 | — |
case-19 | fail→fail | 11,389 | 8,423 | -26% | 1 | 1 | 0% | 1,152 | 1,957 | +70% | 0 | 0 | — |
case-20 | fail→pass | 15,679 | 7,363 | -53% | 1 | 1 | 0% | 2,034 | 1,864 | -8% | 0 | 0 | — |
case-21 | pass→pass | 5,969 | 3,802 | -36% | 1 | 1 | 0% | 1,198 | 2,123 | +77% | 0 | 0 | — |
case-22 | pass→pass | 10,430 | 8,274 | -21% | 1 | 1 | 0% | 1,122 | 1,729 | +54% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +36 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.