/framer-pack:framer-performance-tuningfrom framer-pack
Optimizes Framer API performance with caching, batching, connection pooling, and image optimization. Use for slow API responses or CMS sync speed.
Ships in framer-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Optimize Framer plugin, component, and Server API performance. Key areas: CMS sync speed, component render performance, and plugin responsiveness.
// Process large collections in batches to avoid timeouts
async function batchSync(collection: any, items: any[], batchSize = 50) {
const total = items.length;
for (let i = 0; i < total; i += batchSize) {
await collection.setItems(items.slice(i, i + batchSize));
const progress = Math.min(i + batchSize, total);
framer.notify(`Synced ${progress}/${total}`);
}
}
import { memo, useMemo } from 'react';
// Memoize expensive components
export default memo(function DataGrid({ data, columns }) {
const processedData = useMemo(() =>
data.map(row => columns.reduce((acc, col) => ({ ...acc, [col.key]: row[col.key] }), {})),
[data, columns]
);
return (
<div style={{ display: 'grid', gridTemplateColumns: `repeat(${columns.length}, 1fr)` }}>
{processedData.map((row, i) => columns.map(col => (
<div key={`${i}-${col.key}`} style={{ padding: 8 }}>{row[col.key]}</div>
)))}
</div>
);
});
// Reuse Server API connection instead of reconnecting each time
let clientInstance: any = null;
async function getClient() {
if (!clientInstance) {
const { framer } = await import('framer-api');
clientInstance = await framer.connect({
apiKey: process.env.FRAMER_API_KEY!,
siteId: process.env.FRAMER_SITE_ID!,
});
}
return clientInstance;
}
// Pre-optimize image URLs before syncing to CMS
function optimizeImageUrl(url: string, width = 800): string {
// Use image CDN if available
if (url.includes('cloudinary.com')) {
return url.replace('/upload/', `/upload/w_${width},q_auto,f_auto/`);
}
if (url.includes('imgix.net')) {
return `${url}?w=${width}&auto=format,compress`;
}
return url;
}
For cost optimization, see framer-cost-tuning.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
18 skills in this plugin
/framer-ci-integrationConfigure Framer CI/CD integration with GitHub Actions and testing.
Use when setting up automated testing, configuring CI pipelines,
or integrating Framer tests into your build process.
Trigger with phrases like "framer CI", "framer GitHub Actions",
"framer automated tests", "CI framer".
/framer-common-errorsDiagnose and fix Framer common errors and exceptions.
Use when encountering Framer errors, debugging failed requests,
or troubleshooting integration issues.
Trigger with phrases like "framer error", "fix framer",
"framer not working", "debug framer".
/framer-core-workflow-aExecute Framer primary workflow: Core Workflow A.
Use when implementing primary use case,
building main features, or core integration tasks.
Trigger with phrases like "framer main workflow",
"primary task with framer".
/framer-core-workflow-bExecute Framer secondary workflow: Core Workflow B.
Use when implementing secondary use case,
or complementing primary workflow.
Trigger with phrases like "framer secondary workflow",
"secondary task with framer".
/framer-cost-tuningOptimize Framer costs through tier selection, sampling, and usage monitoring.
Use when analyzing Framer billing, reducing API costs,
or implementing usage monitoring and budget alerts.
Trigger with phrases like "framer cost", "framer billing",
"reduce framer costs", "framer pricing", "framer expensive", "framer budget".
/framer-debug-bundleCollect Framer debug evidence for support tickets and troubleshooting.
Use when encountering persistent issues, preparing support tickets,
or collecting diagnostic information for Framer problems.
Trigger with phrases like "framer debug", "framer support bundle",
"collect framer logs", "framer diagnostic".
npx claudepluginhub flight505/skill-forge --plugin framer-packOther plugins' skills for the same job